aboutsummaryrefslogtreecommitdiff
path: root/proofs/proofview.ml
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-09-25 08:26:52 +0200
committerPierre-Marie Pédrot2014-09-26 19:10:16 +0200
commit38fbd7ca90ce3b852fa19b9706a00e64c5d73046 (patch)
treee72ff92fc435458036b1edab2d81169d71359b96 /proofs/proofview.ml
parent1dccd3509f62560c0a48189f5a3b67ab195deab0 (diff)
Adding a tclNEWGOALS primitive.
Diffstat (limited to 'proofs/proofview.ml')
-rw-r--r--proofs/proofview.ml7
1 files changed, 7 insertions, 0 deletions
diff --git a/proofs/proofview.ml b/proofs/proofview.ml
index 6ecf4da7e6..e63db14ab8 100644
--- a/proofs/proofview.ml
+++ b/proofs/proofview.ml
@@ -538,6 +538,13 @@ let tclINDEPENDENT tac =
| [_] -> tac
| _ -> list_iter_goal () (fun _ () -> tac)
+let tclNEWGOALS gls =
+ Proof.modify begin fun step ->
+ let map gl = Goal.advance step.solution gl in
+ let gls = List.map_filter map gls in
+ { step with comb = step.comb @ gls }
+ end
+
(* No backtracking can happen here, hence, as opposed to the dispatch tacticals,
everything is done in one step. *)
let sensitive_on_proofview s env step =