NCicMetaSubst.saturate ~delta:max_int [] ctx ty 0
in
let ctx, ty = intros ty in
+ let ity =
+ match ity with
+ | NCic.Appl [eq;t;a;b] ->
+ NCic.Appl [eq;t;NCicReduction.whd ~delta:0 ctx a;b]
+ | t -> t
+ in
+ prerr_endline
+ (Printf.sprintf "%s == %s"
+ (NCicPp.ppterm ~metasenv:menv ~subst:[] ~context:ctx ity)
+ (NCicPp.ppterm ~metasenv:menv ~subst:[] ~context:ctx sty));
let metasenv, subst =
try
- NCicUnification.unify menv [] ctx ity sty
+ prerr_endline ("INIZIO: " ^ NUri.string_of_uri u);
+ NCicUnification.unify menv [] ctx ity sty
with
| NCicUnification.Uncertain msg
| NCicUnification.UnificationFailure msg