]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_unification/cicRefine.ml
version 0.7.1
[helm.git] / helm / ocaml / cic_unification / cicRefine.ml
index 47d186dcb27425dfb7cf4aab0b2b5362fd8105fd..5c031f4733b6806f2da7c1b9ef683d8d589112ec 100644 (file)
@@ -287,7 +287,7 @@ and type_of_aux' metasenv context t ugraph =
               * Moreover the inferred type is closer to the expected one. 
                *)
              C.LetIn (n,s',t'),CicSubstitution.subst s' inferredty,
-                subst',metasenv',ugraph2
+                subst'',metasenv'',ugraph2
        | C.Appl (he::((_::_) as tl)) ->
            let he',hetype,subst',metasenv',ugraph1 = 
              type_of_aux subst metasenv context he ugraph 
@@ -1045,7 +1045,7 @@ let typecheck metasenv uri obj =
                    let t = CicSubstitution.subst t' t in
                     i - 1,t
                  ) tys (typesno - 1,t)) in
-             let ty' = undebrujin ty in
+             let ty' = undebrujin ty' in
               metasenv,ugraph,(name,ty')::res
            ) cl (metasenv,ugraph,[])
          in