let _ =
+ Sys.catch_break true;
let do_old_logging = ref true in
HelmLogger.register_log_callback
(fun ?append_NL html_msg ->
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