X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fng_refiner%2FnCicRefiner.ml;h=550c75e9382c4ec9173f76d1da3d9428f28644d0;hb=db7ecce6c398a42f14557067bf18b61cf75da80e;hp=a59a6fd359109202b3c8aed7c39efcaf1c6e3339;hpb=46ee64f692a1e5e65864ebb82ec875e8d115843c;p=helm.git diff --git a/matita/components/ng_refiner/nCicRefiner.ml b/matita/components/ng_refiner/nCicRefiner.ml index a59a6fd35..550c75e93 100644 --- a/matita/components/ng_refiner/nCicRefiner.ml +++ b/matita/components/ng_refiner/nCicRefiner.ml @@ -505,13 +505,14 @@ and try_coercions status (* we try with a coercion *) let rec first exc = function | [] -> - let expty = - match expty with - `Type expty -> status#ppterm ~metasenv ~subst ~context expty - | `Sort -> "[[sort]]" - | `Prod -> "[[prod]]" in pp (lazy "WWW: no more coercions!"); - raise (wrap_exc (lazy (localise orig_t, Printf.sprintf + raise (wrap_exc (lazy + let expty = + match expty with + `Type expty -> status#ppterm ~metasenv ~subst ~context expty + | `Sort -> "[[sort]]" + | `Prod -> "[[prod]]" in + (localise orig_t, Printf.sprintf "The term\n%s\nhas type\n%s\nbut is here used with type\n%s" (status#ppterm ~metasenv ~subst ~context t) (status#ppterm ~metasenv ~subst ~context infty) @@ -915,7 +916,7 @@ and force_to_sort status metasenv subst context t orig_t localise ty = " is not a sort: " ^ status#ppterm ~metasenv ~subst ~context ty)) in let ty = NCicReduction.whd status ~subst context ty in let exn = - if NCicUnification.could_reduce ty then + if NCicUnification.could_reduce status ~subst context ty then Uncertain msg else RefineFailure msg