Utils.metas_of_term p
;;
+let remove_local_context eq =
+ let w, p, (ty, left, right, o), menv,id = open_equality eq in
+ let p = Utils.remove_local_context p in
+ let ty = Utils.remove_local_context ty in
+ let left = Utils.remove_local_context left in
+ let right = Utils.remove_local_context right in
+ w, p, (ty, left, right, o), menv, id
+;;
+
let relocate newmeta menv to_be_relocated =
let subst, newmetasenv, newmeta =
List.fold_right
let menv = Subst.apply_subst_metasenv subst menv @ newmetasenv in
subst, menv, newmeta
-
let fix_metas newmeta eq =
let w, p, (ty, left, right, o), menv,_ = open_equality eq in
let to_be_relocated =