| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | (* spiwack: I'm choosing, for now, to have [goal_selector] be a |
| 12 | different type than [goal_reference] mostly because if it makes sense |
| 13 | to print a goal that is out of focus (or already solved) it doesn't |
| 14 | make sense to apply a tactic to it. Hence it the types may look very |
| 15 | similar, they do not seem to mean the same thing. *) |
| 16 | type t = |
| 17 | | SelectAlreadyFocused |
| 18 | | SelectList of Proofview.goal_range_selector list |
| 19 | | SelectAll |
| 20 | |
| 21 | val select_nth : int -> t |
| 22 | |
| 23 | val pr_goal_selector : t -> Pp.t |
| 24 | val get_default_goal_selector : unit -> t |
| 25 | |
| 26 | val tclSELECT : ?nosuchgoal:'a Proofview.tactic -> t -> 'a Proofview.tactic -> 'a Proofview.tactic |