aboutsummaryrefslogtreecommitdiffhomepage
path: root/proofs
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2005-04-29 18:31:15 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2005-04-29 18:31:15 +0000
commit11ef6b79e5d5b3dd0c46829040f417bd364b9a2d (patch)
tree9543d6ed87260343e67e789df7f4a75e58768f30 /proofs
parent3c87bc951eed7bf2b6362af329b1e3a939ac26fe (diff)
Protection against saving a proof with still non-instantiated evars (cf bug #901)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6974 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'proofs')
-rw-r--r--proofs/refiner.ml9
1 files changed, 6 insertions, 3 deletions
diff --git a/proofs/refiner.ml b/proofs/refiner.ml
index cd592296d..804d009b1 100644
--- a/proofs/refiner.ml
+++ b/proofs/refiner.ml
@@ -772,9 +772,12 @@ let extract_pftreestate pts =
(str"Cannot extract from a proof-tree in which we have descended;" ++
spc () ++ str"Please ascend to the root");
let pfterm,subgoals = extract_open_pftreestate pts in
- if subgoals <> [] then
- errorlabstrm "extract_proof"
- (str "Attempt to save an incomplete proof");
+ let exl = Evd.non_instantiated pts.tpfsigma in
+ if subgoals <> [] or exl <> [] then
+ (if subgoals <> [] then
+ str "Attempt to save an incomplete proof"
+ else
+ str "Attempt to save a proof with existential variables still non-instantiated");
let env = Global.env_of_context pts.tpf.goal.evar_hyps in
strong whd_betaiotaevar env pts.tpfsigma pfterm
(***