aboutsummaryrefslogtreecommitdiff
path: root/proofs/proofview.ml
diff options
context:
space:
mode:
authorMatthieu Sozeau2014-05-08 13:50:46 +0200
committerMatthieu Sozeau2014-05-08 19:23:51 +0200
commitb440899b0f07a23dfce69ae38b0a2b993cc6370c (patch)
treee1751770ae8dcd7c92aef28b2f8ca35edbe3a9c7 /proofs/proofview.ml
parenta6c966a23e24be9543b01b6944826ab5479fd784 (diff)
- Add a primitive tclEVARUNIVERSECONTEXT to reset the universe context of an evar_map
in tactics, avoiding useless and potentially costly merge's of constraints. - Implement revert and generalize using the new tactics (not bound to syntax though, as they are not backwards-compatible yet).
Diffstat (limited to 'proofs/proofview.ml')
-rw-r--r--proofs/proofview.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/proofs/proofview.ml b/proofs/proofview.ml
index 83a703a3a9..6651e49652 100644
--- a/proofs/proofview.ml
+++ b/proofs/proofview.ml
@@ -682,6 +682,9 @@ module V82 = struct
let tclEVARS evd =
Proof.modify (fun ps -> { ps with solution = evd })
+ let tclEVARUNIVCONTEXT ctx =
+ Proof.modify (fun ps -> { ps with solution = Evd.set_universe_context ps.solution ctx })
+
let has_unresolved_evar pv =
Evd.has_undefined pv.solution