From: Claudio Sacerdoti Coen Date: Mon, 12 Oct 2009 17:04:46 +0000 (+0000) Subject: Bug fixed: in case of (t ...) where t has flexible type, a failure obtained X-Git-Tag: make_still_working~3332 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=34c2ba63c8eb5fccfd9a1fb8ac1df5895c8b58b3;p=helm.git Bug fixed: in case of (t ...) where t has flexible type, a failure obtained without extending ... (since this could cause divergence) should be considered an uncertain (since extension may be necessary). --- diff --git a/helm/software/components/ng_refiner/nCicRefiner.ml b/helm/software/components/ng_refiner/nCicRefiner.ml index b88e261f1..ac280e81f 100644 --- a/helm/software/components/ng_refiner/nCicRefiner.ml +++ b/helm/software/components/ng_refiner/nCicRefiner.ml @@ -537,7 +537,10 @@ and eat_prods rdb ~localise force_ty metasenv subst context expty orig_t orig_he aux metasenv subst args_so_far he ty_he (NCic.Implicit `Term :: NCic.Implicit `Vector :: tl) with - Uncertain msg | RefineFailure msg -> raise (wrap_exc msg exc))) + Uncertain msg | RefineFailure msg -> raise (wrap_exc msg exc)) + | RefineFailure msg when not (has_some_more_pis ty_he) -> + (* instantiating the head could change the has_some_more_pis flag *) + raise (Uncertain msg)) | arg::tl -> match NCicReduction.whd ~subst context ty_he with | C.Prod (_,s,t) ->