]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_refiner/nCicUnifHint.ml
Bugfix in tipify: a metavariable was set to type without sortifying its type.
[helm.git] / helm / software / components / ng_refiner / nCicUnifHint.ml
index 1ea21dbcc0832d78551a956c8e660bcbbb877bdc..0f0708d638f58cef8fac17303492c6f7111a68b6 100644 (file)
@@ -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