]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_unification/cicMetaSubst.ml
apply_subst did not apply the substitution to the explicit named substitution
[helm.git] / helm / ocaml / cic_unification / cicMetaSubst.ml
index 7cf16ee53403f1d908c20984a3834d42f445e514..d7b52acfaf2ce8918b57fb90384765f46d468fab 100644 (file)
@@ -41,7 +41,11 @@ let apply_subst_gen ~appl_fun subst term =
   let module S = CicSubstitution in 
    function
       C.Rel _ as t -> t
-    | C.Var _  as t -> t
+    | C.Var (uri,exp_named_subst) ->
+       let exp_named_subst' =
+         List.map (fun (uri, t) -> (uri, um_aux t)) exp_named_subst
+       in
+       C.Var (uri, exp_named_subst')
     | C.Meta (i, l) -> 
         (try
           let t = List.assoc i subst in