aboutsummaryrefslogtreecommitdiffhomepage
path: root/proofs/logic.ml
diff options
context:
space:
mode:
authorGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2016-09-24 19:03:25 +0200
committerGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2016-09-24 19:27:53 +0200
commitf487472a5628fdb43245e782b304705172a1f569 (patch)
treec748816ff6b3e0a8b7cbab5888731f465120784b /proofs/logic.ml
parent8463f0a3f34aa1ca314bde1f3d19a3895df9dcaa (diff)
Moving "move" in the new proof engine.
Diffstat (limited to 'proofs/logic.ml')
-rw-r--r--proofs/logic.ml14
1 files changed, 5 insertions, 9 deletions
diff --git a/proofs/logic.ml b/proofs/logic.ml
index aa0b9bac6..e4c833627 100644
--- a/proofs/logic.ml
+++ b/proofs/logic.ml
@@ -276,6 +276,11 @@ let move_hyp toleft (left,declfrom,right) hto =
List.fold_left (fun sign d -> push_named_context_val d sign)
right left
+let move_hyp_in_named_context hfrom hto sign =
+ let (left,right,declfrom,toleft) =
+ split_sign hfrom hto (named_context_of_val sign) in
+ move_hyp toleft (left,declfrom,right) hto
+
(**********************************************************************)
@@ -549,12 +554,3 @@ let prim_refiner r sigma goal =
let sgl = List.rev sgl in
let sigma = Goal.V82.partial_solution sigma goal oterm in
(sgl, sigma)
-
- | Move (hfrom, hto) ->
- let (left,right,declfrom,toleft) =
- split_sign hfrom hto (named_context_of_val sign) in
- let hyps' =
- move_hyp toleft (left,declfrom,right) hto in
- let (gl,ev,sigma) = mk_goal hyps' cl in
- let sigma = Goal.V82.partial_solution_to sigma goal gl ev in
- ([gl], sigma)