]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/helena/src/basic_ag/bagSubstitution.ml
update in ground_2 and models
[helm.git] / helm / software / helena / src / basic_ag / bagSubstitution.ml
index 5585b5d6a25a7c135a11425987779957a97a87a7..a8109c3ffbc82e9bbc6161696752ec11bfa08342 100644 (file)
@@ -12,6 +12,8 @@
 module S = Share
 module Z = Bag
 
+IFDEF TYPE THEN
+
 (* Internal functions *******************************************************)
 
 let rec lref_map_bind f map b = match b with
@@ -36,8 +38,8 @@ and lref_map f map t = match t with
       let f w' u' = f (S.sh2 w w' u u' t Z.appl) in
       let f w' = lref_map (f w') map u in 
       lref_map f map w
-   | Z.Bind (a, l, b, u) ->
-      let f b' u' = f (S.sh2 b b' u u' t (Z.bind a l)) in
+   | Z.Bind (y, l, b, u) ->
+      let f b' u' = f (S.sh2 b b' u u' t (Z.bind y l)) in
       let f b' = lref_map (f b') map u in 
       lref_map_bind f map b
 
@@ -46,3 +48,5 @@ and lref_map f map t = match t with
 let subst f new_l old_l t =
    let map i = if i = old_l then new_l else i in
    if new_l = old_l then f t else lref_map f map t
+
+END