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