diff options
author | 2014-10-13 18:26:05 +0200 | |
---|---|---|
committer | 2014-10-16 10:37:40 +0200 | |
commit | 0ae6d27680e5b87bbb00c6941cee1b0c309624ec (patch) | |
tree | ddc4f3477cc698ddd0284ca7d337027c2b5c97dd /proofs/proofview.ml | |
parent | 91f34a0a6744a06cb65c9ffe387f54f857a7bb28 (diff) |
Goal: remove some functions from the compatibility layer.
The rest will take more work.
Diffstat (limited to 'proofs/proofview.ml')
-rw-r--r-- | proofs/proofview.ml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/proofs/proofview.ml b/proofs/proofview.ml index e6c8032bf..30c763ac1 100644 --- a/proofs/proofview.ml +++ b/proofs/proofview.ml @@ -851,7 +851,7 @@ module V82 = struct { Evd.it = comb ; sigma = solution } let top_goals initial { solution=solution; } = - let goals = List.map (fun (t,_) -> Goal.V82.build (fst (Term.destEvar t))) initial in + let goals = List.map (fun (t,_) -> fst (Term.destEvar t)) initial in { Evd.it = goals ; sigma=solution; } let top_evars initial = @@ -896,8 +896,6 @@ module V82 = struct end type goal = Goal.goal -let partial_solution = Goal.V82.partial_solution -let partial_solution_to = Goal.V82.partial_solution_to module Goal = struct @@ -1022,8 +1020,11 @@ struct let sigma = if unsafe then sigma else typecheck_proof c concl env sigma in (** Proceed to the refinement *) let sigma = match evkmain with - | None -> partial_solution sigma gl.Goal.self c - | Some evk -> partial_solution_to sigma gl.Goal.self evk c in + | None -> Evd.define gl.Goal.self c sigma + | Some evk -> + let id = Evd.evar_ident gl.Goal.self sigma in + Evd.rename evk id (Evd.define gl.Goal.self c sigma) + in (** Select the goals *) let comb = undefined sigma (List.rev evs) in let sigma = List.fold_left mark_as_goal sigma comb in |