aboutsummaryrefslogtreecommitdiff
path: root/tactics/tacticals.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2021-03-22 12:42:02 +0100
committerGaëtan Gilbert2021-03-22 13:04:20 +0100
commitcbe88ec043df8dff118e437f00c0299a464c8e8a (patch)
tree704217f492b2a9f55d2149235f268e4d9c1cbdce /tactics/tacticals.ml
parentb3347fd5c3164dbe649bd819cdc0ef34b021b47a (diff)
Factorize goal selector handling
As a bonus ltac2 can produce bullet suggestions.
Diffstat (limited to 'tactics/tacticals.ml')
-rw-r--r--tactics/tacticals.ml11
1 files changed, 2 insertions, 9 deletions
diff --git a/tactics/tacticals.ml b/tactics/tacticals.ml
index 68afd9a128..2d69047d1e 100644
--- a/tactics/tacticals.ml
+++ b/tactics/tacticals.ml
@@ -683,15 +683,6 @@ module New = struct
let tclPROGRESS t =
Proofview.tclINDEPENDENT (Proofview.tclPROGRESS t)
- (* Select a subset of the goals *)
- let tclSELECT = let open Goal_select in function
- | SelectNth i -> Proofview.tclFOCUS i i
- | SelectList l -> Proofview.tclFOCUSLIST l
- | SelectId id -> Proofview.tclFOCUSID id
- | SelectAll -> anomaly ~label:"tclSELECT" Pp.(str "SelectAll not allowed here")
- | SelectAlreadyFocused ->
- anomaly ~label:"tclSELECT" Pp.(str "SelectAlreadyFocused not allowed here")
-
(* Check that holes in arguments have been resolved *)
let check_evars env sigma extsigma origsigma =
@@ -905,4 +896,6 @@ module New = struct
let (sigma, t) = Typing.type_of ?refresh env sigma c in
Proofview.Unsafe.tclEVARS sigma <*> tac sigma t)
+ let tclSELECT = Goal_select.tclSELECT
+
end