aboutsummaryrefslogtreecommitdiff
path: root/proofs/proofview.ml
diff options
context:
space:
mode:
Diffstat (limited to 'proofs/proofview.ml')
-rw-r--r--proofs/proofview.ml8
1 files changed, 8 insertions, 0 deletions
diff --git a/proofs/proofview.ml b/proofs/proofview.ml
index 08a4d41c97..f1759548ec 100644
--- a/proofs/proofview.ml
+++ b/proofs/proofview.ml
@@ -993,6 +993,14 @@ struct
refine f
end
+ let update (evd, gls) f =
+ let nevd, ans = f evd in
+ let fold ev _ accu =
+ if not (Evd.mem evd ev) then build_goal ev :: accu else accu
+ in
+ let gls = Evd.fold_undefined fold nevd gls in
+ (nevd, gls), ans
+
end
module NonLogical = Proofview_monad.NonLogical