diff options
author | Arnaud Spiwack <arnaud@spiwack.net> | 2014-10-16 10:21:17 +0200 |
---|---|---|
committer | Arnaud Spiwack <arnaud@spiwack.net> | 2014-10-16 10:37:53 +0200 |
commit | 025c4f63b28671a24bd6c46f9b23a3dad76fd179 (patch) | |
tree | 2759d9c0eaa5e62329727677bf54caf06ac9ffe6 /proofs/proof.ml | |
parent | e6708590ce648921f27395ce535e35d52aa2cc0f (diff) |
Goal: remove [advance] from the API.
Now [Goal] only contains a few helpers.
Diffstat (limited to 'proofs/proof.ml')
-rw-r--r-- | proofs/proof.ml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/proofs/proof.ml b/proofs/proof.ml index 7d953d570..8ad7adc16 100644 --- a/proofs/proof.ml +++ b/proofs/proof.ml @@ -321,12 +321,9 @@ let run_tactic env tac pr = let (_,tacticced_proofview,(status,(to_shelve,give_up))) = Proofview.apply env tac sp in let shelf = let pre_shelf = pr.shelf@to_shelve in - (* Compacting immediately: if someone shelves a goal, he probably - expects to solve it soon. *) + (* avoid already to count already solved goals as shelved. *) Proofview.in_proofview tacticced_proofview begin fun sigma -> - Option.List.flatten begin - List.map (fun g -> Goal.advance sigma g) pre_shelf - end + List.filter (fun g -> Evd.is_undefined sigma g) pre_shelf end in let given_up = pr.given_up@give_up in |