aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Herbelin2014-11-11 12:20:43 +0100
committerHugo Herbelin2014-11-11 13:32:42 +0100
commit34465413bc2d6b3426de783a0d35b968f7ea3b61 (patch)
treeebacd66bafed398bea95d893bce49b1cb9e4ed63
parentd7e7e9a62fd951b2103d2b6fb9ce2589a16022ca (diff)
Renouncing to check only at the end of the call to "apply in" the
absence of remaining dependent evars when several arguments are given. For simplicity of implementation, checking instead for every step of the n-ary "apply in".
-rw-r--r--tactics/tactics.ml7
1 files changed, 4 insertions, 3 deletions
diff --git a/tactics/tactics.ml b/tactics/tactics.ml
index f8d8b09d75..6603c82cd2 100644
--- a/tactics/tactics.ml
+++ b/tactics/tactics.ml
@@ -1597,9 +1597,10 @@ let apply_in_delayed_once sidecond_first with_delta with_destruct with_evars nam
let env = Proofview.Goal.env gl in
let sigma = Proofview.Goal.sigma gl in
let sigma, c = f env sigma in
- Proofview.Unsafe.tclEVARS sigma <*>
- (apply_in_once sidecond_first with_delta with_destruct with_evars naming id
- (clear_flag,(loc,c)) tac)
+ Tacticals.New.tclWITHHOLES with_evars
+ (apply_in_once sidecond_first with_delta with_destruct with_evars
+ naming id (clear_flag,(loc,c)))
+ sigma tac
end
(* A useful resolution tactic which, if c:A->B, transforms |- C into