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