in
(* match Indexing.subsumption env table goal_equation with*)
match Indexing.unification env table goal_equation with
- | Some (subst, equality, pos ) ->
+ | Some (subst, equality, swapped ) ->
prerr_endline
("GOAL SUBSUMED BY: " ^ Equality.string_of_equality equality);
prerr_endline ("SUBST:" ^ Subst.ppsubst subst);
let (_,p,(ty,l,r,_),m,id) = Equality.open_equality equality in
let cicmenv = Subst.apply_subst_metasenv subst (m @ menv) in
let p =
- if pos = Utils.Left then
+ if swapped then
Equality.symmetric eq_ty l id uri m
else
p