]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_refiner/nCicUnifHint.ml
new instantiate, only known bug is w.r.t. in/out scope and file matita/contribs/ng_as...
[helm.git] / helm / software / components / ng_refiner / nCicUnifHint.ml
index 313fbbd0d13470354a71d607468df38114fd001a..0f0708d638f58cef8fac17303492c6f7111a68b6 100644 (file)
@@ -212,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
@@ -284,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