]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/helena/src/basic_rg/brgCrg.ml
new options activated
[helm.git] / helm / software / helena / src / basic_rg / brgCrg.ml
index 1715494d49043309693f4fe944de619acc6ece03..645610dd44f4c62db2570a2d2d5888b0904a9ee3 100644 (file)
@@ -18,25 +18,25 @@ module B = Brg
 (* internal functions: crg to brg term **************************************)
 
 let rec xlate_term f = function
-   | D.TSort (a, l)     -> f (B.Sort (a, l))
-   | D.TGRef (a, n)     -> f (B.GRef (a, n))
-   | D.TLRef (a, i)     -> f (B.LRef (a, i))
-   | D.TCast (a, u, t)  ->
+   | D.TSort (a, l)       -> f (B.Sort (a, l))
+   | D.TGRef (a, n)       -> f (B.GRef (a, n))
+   | D.TLRef (a, i)       -> f (B.LRef (a, i))
+   | D.TCast (a, u, t)    ->
       let f tt uu = f (B.Cast (a, uu, tt)) in
       let f tt = xlate_term (f tt) u in
       xlate_term f t 
-   | D.TAppl (a, v, t) ->
-      let f tt vv = f (B.Appl (a, vv, tt)) in
+   | D.TAppl (a, x, v, t) ->
+      let f tt vv = f (B.Appl (a, x, vv, tt)) in
       let f tt = xlate_term (f tt) v in
       xlate_term f t 
-   | D.TProj (_, e, t)  -> 
+   | D.TProj (_, e, t)    -> 
       D.shift (xlate_term f) e t
-   | D.TBind (a, b, t)  -> 
+   | D.TBind (a, b, t)    -> 
       xlate_term (xlate_bind f a b) t
 
 and xlate_bind f a b t = match b with
-   | D.Abst (x, n, w) ->
-      let f ww = f (B.Bind (a, B.Abst (x, n, ww), t)) in 
+   | D.Abst (r, n, w) ->
+      let f ww = f (B.Bind (a, B.Abst (r, n, ww), t)) in 
       xlate_term f w
    | D.Abbr v         ->
       let f vv = f (B.Bind (a, B.Abbr vv, t)) in 
@@ -47,25 +47,25 @@ and xlate_bind f a b t = match b with
 (* internal functions: brg to crg term **************************************)
 
 let rec xlate_bk_term f = function
-   | B.Sort (a, l)     -> f (D.TSort (a, l))
-   | B.GRef (a, n)     -> f (D.TGRef (a, n))
-   | B.LRef (a, i)     -> f (D.TLRef (a, i))
-   | B.Cast (a, u, t)  ->
+   | B.Sort (a, l)       -> f (D.TSort (a, l))
+   | B.GRef (a, n)       -> f (D.TGRef (a, n))
+   | B.LRef (a, i)       -> f (D.TLRef (a, i))
+   | B.Cast (a, u, t)    ->
       let f tt uu = f (D.TCast (a, uu, tt)) in
       let f tt = xlate_bk_term (f tt) u in
       xlate_bk_term f t 
-   | B.Appl (a, u, t)  ->
-      let f tt uu = f (D.TAppl (a, uu, tt)) in
+   | B.Appl (a, x, u, t) ->
+      let f tt uu = f (D.TAppl (a, x, uu, tt)) in
       let f tt = xlate_bk_term (f tt) u in
       xlate_bk_term f t 
-   | B.Bind (a, b, t)  ->
+   | B.Bind (a, b, t)    ->
       let f tt bb = f (D.TBind (a, bb, tt)) in
       let f tt = xlate_bk_bind (f tt) b in
       xlate_bk_term f t 
 
 and xlate_bk_bind f = function
-   | B.Abst (x, n, t) ->
-      let f tt = f (D.Abst (x, n, tt)) in
+   | B.Abst (r, n, t) ->
+      let f tt = f (D.Abst (r, n, tt)) in
       xlate_bk_term f t
    | B.Abbr t         ->
       let f tt = f (D.Abbr tt) in