X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Ftactics%2FsubstTactic.ml;h=feff68f3fb8186f4ab4644ff2b07cce1b0e7accc;hb=834f5d5e341519cbb7c77b4fff5b0b3c7d425e6b;hp=cc107451ee70182c1bbabbb4b8f557534bb87ef7;hpb=93cc04b6bdb9772d8e4d96cf019ad8394e26b92a;p=helm.git diff --git a/helm/software/components/tactics/substTactic.ml b/helm/software/components/tactics/substTactic.ml index cc107451e..feff68f3f 100644 --- a/helm/software/components/tactics/substTactic.ml +++ b/helm/software/components/tactics/substTactic.ml @@ -40,7 +40,7 @@ module TC = CicTypeChecker let lift_rewrite_tac ~context ~direction ~pattern equality = let lift_rewrite_tac status = let (proof, goal) = status in - let (_, metasenv, _, _, _) = proof in + let (_, metasenv, _subst, _, _, _) = proof in let _, new_context, _ = CicUtil.lookup_meta goal metasenv in let n = List.length new_context - List.length context in let equality = S.lift n equality in @@ -51,7 +51,7 @@ let lift_rewrite_tac ~context ~direction ~pattern equality = let lift_destruct_tac ~context ~what = let lift_destruct_tac status = let (proof, goal) = status in - let (_, metasenv, _, _, _) = proof in + let (_, metasenv, _subst, _, _, _) = proof in let _, new_context, _ = CicUtil.lookup_meta goal metasenv in let n = List.length new_context - List.length context in let what = S.lift n what in @@ -79,7 +79,7 @@ let rec subst_tac ~try_tactic ~hyp = in let subst_tac status = let (proof, goal) = status in - let (_, metasenv, _, _, _) = proof in + let (_, metasenv, _subst, _, _, _) = proof in let _, context, _ = CicUtil.lookup_meta goal metasenv in let what = match PEH.get_rel context hyp with | Some t -> t @@ -148,7 +148,7 @@ let subst_tac = | _ -> None in let (proof, goal) = status in - let (_, metasenv, _, _, _) = proof in + let (_, metasenv, _subst, _, _, _) = proof in let _, context, _ = CicUtil.lookup_meta goal metasenv in let tactics = HEL.list_rev_map_filter map context in let result = PET.apply_tactic (T.seq ~tactics) status in