]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/src/toplevel/metaBrg.ml
- initial support for abstractions with explicit levels
[helm.git] / helm / software / lambda-delta / src / toplevel / metaBrg.ml
index 72298dd13e88bbd2e3ec8bbda9141f3fc447eb86..f1497697c4a0363d9b3fea98c6c26da51d697f18 100644 (file)
@@ -11,6 +11,7 @@
 
 module C = Cps
 module E = Entity
+module N = Level
 module B = Brg
 module M = Meta
 
@@ -33,15 +34,15 @@ let rec xlate_term c f = function
    | M.Abst (id, w, t)   ->
       let f w = 
          let a = [E.Name (id, true)] in
-        let f t = f (B.Bind (a, B.Abst w, t)) in
-         xlate_term (B.push c B.empty a (B.Abst w)) f t
+        let f t = f (B.Bind (a, B.Abst (N.infinite, w), t)) in
+         xlate_term (B.push c B.empty a (B.Abst (N.infinite, w))) f t
       in
       xlate_term c f w
 
 let xlate_pars f pars =
    let map f (id, w) c =
       let a = [E.Name (id, true)] in
-      let f w = f (B.push c B.empty a (B.Abst w)) in
+      let f w = f (B.push c B.empty a (B.Abst (N.infinite, w))) in
       xlate_term c f w
    in
    C.list_fold_right f map pars B.empty