match goal_path with
| None -> assert false (* (==), [t1'] *)
| Some path ->
- let roots = CicUtil.select ~term:gty' ~context:path in
+ let roots = ProofEngineHelpers.select ~term:gty' ~pattern:path in
let subterms =
List.fold_left (
fun acc (i, r) ->
- let wanted = CicSubstitution.lift i t1' in
+ let wanted = CicSubstitution.lift (List.length i) t1' in
PEH.find_subterms ~eq:PER.alpha_equivalence ~wanted r @ acc
) [] roots
in
ProofEngineTypes.mk_tactic (rewrite_back_simpl_tac ~term)
;;
-let replace_tac ~what ~with_what =
- let replace_tac ~what ~with_what status =
+let replace_tac ~pattern ~with_what =
+(*
+ let replace_tac ~pattern ~with_what status =
let (proof, goal) = status in
let module C = Cic in
let module U = UriManager in
raise (ProofEngineTypes.Fail "Replace: empty context")
in
ProofEngineTypes.mk_tactic (replace_tac ~what ~with_what)
+*) assert false
;;