]> matita.cs.unibo.it Git - helm.git/commitdiff
subst_meta was missing
authorEnrico Tassi <enrico.tassi@inria.fr>
Wed, 15 Oct 2008 22:24:01 +0000 (22:24 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Wed, 15 Oct 2008 22:24:01 +0000 (22:24 +0000)
helm/software/components/ng_refiner/nCicUnification.ml

index 10bc29a62d2ca398aa9b092859fea079b1d6f5db..24ab7b4afbf1129cafb2d0462a169bf26ca42913 100644 (file)
@@ -174,6 +174,7 @@ and instantiate test_eq_only metasenv subst context n lc t swap =
   try
     let _, _,oldt,_ = NCicUtils.lookup_subst n subst in
     let oldt = NCicSubstitution.subst_meta lc oldt in
+    let t = NCicSubstitution.subst_meta lc t in
     (* conjecture: always fail --> occur check *)
     unify test_eq_only metasenv subst context oldt t
   with NCicUtils.Subst_not_found _ -> 
@@ -181,7 +182,7 @@ and instantiate test_eq_only metasenv subst context n lc t swap =
      * we could ? := Type_j with j <= i... *)
     let subst = (n, (name, ctx, t, ty)) :: subst in
     pp (lazy ("?"^string_of_int n^" := "^NCicPp.ppterm
-      ~metasenv ~subst ~context:ctx (NCicSubstitution.subst_meta lc t)));
+      ~metasenv ~subst ~context (NCicSubstitution.subst_meta lc t)));
     let metasenv = 
       List.filter (fun (m,_) -> not (n = m)) metasenv 
     in