diff options
| author | Arnaud Spiwack | 2014-10-21 21:53:35 +0200 |
|---|---|---|
| committer | Arnaud Spiwack | 2014-10-22 07:31:45 +0200 |
| commit | a5a355ec3e9cbbfa28be53b9ba6ef914136b0aba (patch) | |
| tree | 7d005f87c55567d8a120b7cdc4679fad04810e5c /proofs/proofview.ml | |
| parent | cadfe23210c8edaab1f22d0edb7acc33fb9ff782 (diff) | |
Proofview: move more functions to the Unsafe module.
Diffstat (limited to 'proofs/proofview.ml')
| -rw-r--r-- | proofs/proofview.ml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/proofs/proofview.ml b/proofs/proofview.ml index 4a83ed6d20..a84a2d34dc 100644 --- a/proofs/proofview.ml +++ b/proofs/proofview.ml @@ -621,13 +621,6 @@ let tclINDEPENDENT tac = | [_] -> tac | _ -> list_iter_goal () (fun _ () -> tac) -let tclNEWGOALS gls = - Pv.modify begin fun step -> - let map gl = advance step.solution gl in - let gls = List.map_filter map gls in - { step with comb = step.comb @ gls } - end - (* Equality function on goals *) let goal_equal evars1 gl1 evars2 gl2 = let evi1 = Evd.find evars1 gl1 in @@ -861,21 +854,29 @@ let numgoals = let in_proofview p k = k p.solution -let reset_future_goals p = - { p with solution = Evd.reset_future_goals p.solution } - module Unsafe = struct (* A [Proofview.tactic] version of [Refiner.tclEVARS] *) let tclEVARS evd = Pv.modify (fun ps -> { ps with solution = evd }) + let tclNEWGOALS gls = + Pv.modify begin fun step -> + let map gl = advance step.solution gl in + let gls = List.map_filter map gls in + { step with comb = step.comb @ gls } + end + let tclEVARSADVANCE evd = Pv.modify (fun ps -> { solution = evd; comb = undefined evd ps.comb }) let tclEVARUNIVCONTEXT ctx = Pv.modify (fun ps -> { ps with solution = Evd.set_universe_context ps.solution ctx }) + let reset_future_goals p = + { p with solution = Evd.reset_future_goals p.solution } + + end module Notations = struct |
