]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/src/basic_ag/bagSubstitution.ml
when sort inclusion is enabled, we can produce conversion constraints in xml
[helm.git] / helm / software / lambda-delta / src / basic_ag / bagSubstitution.ml
index 46cd95c149ed6c8943b63241ed4316efbe818b0c..7a341783c3032b1c36edd6644a2f5064c65591a6 100644 (file)
@@ -9,35 +9,35 @@
      \ /   This software is distributed as is, NO WARRANTY.              
       V_______________________________________________________________ *)
 
-module S = Share
+module W = Share
 module Z = Bag
 
 (* Internal functions *******************************************************)
 
 let rec lref_map_bind f map b = match b with
    | Z.Abbr v ->
-      let f v' = f (S.sh1 v v' b Z.abbr) in
+      let f v' = f (W.sh1 v v' b Z.abbr) in
       lref_map f map v      
    | Z.Abst w ->
-      let f w' = f (S.sh1 w w' b Z.abst) in
+      let f w' = f (W.sh1 w w' b Z.abst) in
       lref_map f map w
    | Z.Void   -> f b
 
 and lref_map f map t = match t with
    | Z.LRef i            -> 
-      let ii = map i in f (S.sh1 i ii t Z.lref)
+      let ii = map i in f (W.sh1 i ii t Z.lref)
    | Z.GRef _            -> f t
    | Z.Sort _            -> f t
    | Z.Cast (w, u)       ->
-      let f w' u' = f (S.sh2 w w' u u' t Z.cast) in
+      let f w' u' = f (W.sh2 w w' u u' t Z.cast) in
       let f w' = lref_map (f w') map u in 
       lref_map f map w
    | Z.Appl (w, u)       ->
-      let f w' u' = f (S.sh2 w w' u u' t Z.appl) in
+      let f w' u' = f (W.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 (l, id, b, u) ->
-      let f b' u' = f (S.sh2 b b' u u' t (Z.bind l id)) in
+      let f b' u' = f (W.sh2 b b' u u' t (Z.bind l id)) in
       let f b' = lref_map (f b') map u in 
       lref_map_bind f map b