raise (AssertFailure
((sprintf
"Type checking error: %s in context\n%s.\nException: %s.\nBroken invariant: unification must be invoked only on well typed terms"
- (CicPp.ppterm (CicMetaSubst.apply_subst subst term))
+ (CicMetaSubst.ppterm subst term)
(CicMetaSubst.ppcontext subst context) msg)))
(* NUOVA UNIFICAZIONE *)
let fo_unif_subst subst context metasenv t1 t2 =
let enrich_msg msg =
sprintf "Unification error unifying %s of type %s with %s of type %s in context\n%s\nand metasenv\n%s\nbecause %s"
- (CicPp.ppterm (CicMetaSubst.apply_subst subst t1))
+ (CicMetaSubst.ppterm subst t1)
(try
CicPp.ppterm (type_of_aux' metasenv subst context t1)
with _ -> "MALFORMED")
- (CicPp.ppterm (CicMetaSubst.apply_subst subst t2))
+ (CicMetaSubst.ppterm subst t2)
(try
CicPp.ppterm (type_of_aux' metasenv subst context t2)
with _ -> "MALFORMED")