diff options
| author | aspiwack | 2012-02-07 16:51:46 +0000 |
|---|---|---|
| committer | aspiwack | 2012-02-07 16:51:46 +0000 |
| commit | 8e30bdf78eb5feb274b16fb1db1c7350e771ee99 (patch) | |
| tree | f79ed83ea54bce692ec865b180fc410558173410 /proofs/proofview.ml | |
| parent | 5e8634d9ad5f87404e59f59888b318ca8367afc1 (diff) | |
A "Grab Existential Variables" to transform the unresolved evars at the end of a proof into goals.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14973 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'proofs/proofview.ml')
| -rw-r--r-- | proofs/proofview.ml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/proofs/proofview.ml b/proofs/proofview.ml index 0d50d521f3..4246cc9c7b 100644 --- a/proofs/proofview.ml +++ b/proofs/proofview.ml @@ -475,6 +475,17 @@ module V82 = struct let has_unresolved_evar pv = Evd.has_undefined pv.solution + (* Main function in the implementation of Grab Existential Variables.*) + let grab pv = + let goals = + List.map begin fun (e,_) -> + Goal.build e + end (Evd.undefined_list pv.solution) + in + { pv with comb = goals } + + + (* Returns the open goals of the proofview together with the evar_map to interprete them. *) let goals { comb = comb ; solution = solution } = |
