X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_refiner%2FnCicUnifHint.ml;h=0f0708d638f58cef8fac17303492c6f7111a68b6;hb=186638106f23401e88e512a4a6dfd07d73d8be04;hp=1ea21dbcc0832d78551a956c8e660bcbbb877bdc;hpb=1bff098f89787157818e2eb62acd6fcf4a2979d2;p=helm.git diff --git a/helm/software/components/ng_refiner/nCicUnifHint.ml b/helm/software/components/ng_refiner/nCicUnifHint.ml index 1ea21dbcc..0f0708d63 100644 --- a/helm/software/components/ng_refiner/nCicUnifHint.ml +++ b/helm/software/components/ng_refiner/nCicUnifHint.ml @@ -144,6 +144,7 @@ let add_user_provided_hint db t precedence = index_hint db c a b precedence ;; +(* let db () = let combine f l = List.flatten @@ -203,6 +204,7 @@ let db () = !user_db (List.flatten hints) *) ;; +*) let saturate ?(delta=0) metasenv subst context ty goal_arity = assert (goal_arity >= 0); @@ -210,7 +212,8 @@ let saturate ?(delta=0) metasenv subst context ty goal_arity = | NCic.Prod (name,s,t) as ty -> let metasenv1, _, arg,_ = NCicMetaSubst.mk_meta ~attrs:[`Name name] metasenv context - (`WithType s) in + ~with_type:s `IsTerm + in let t, metasenv1, args, pno = aux metasenv1 (NCicSubstitution.subst arg t) in @@ -282,7 +285,8 @@ let look_for_hint hdb metasenv subst context t1 t2 = | NCic.LetIn (name,ty,bo,t) -> let m,_,i,_= NCicMetaSubst.mk_meta ~attrs:[`Name name] m context - (`WithType ty)in + ~with_type:ty `IsTerm + in let t = NCicSubstitution.subst i t in aux () (m, (i,bo)::l) t | t -> NCicUntrusted.map_term_fold_a (fun _ () -> ()) () aux acc t