]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/basic_ag/bag.ml
some renaming and some interfaces improved
[helm.git] / helm / software / lambda-delta / basic_ag / bag.ml
index b04fc5ab6aa84edc4be107a60cb8dca852f0e7ab..32a9b0c5b983b2361b5495776d6de7575935717e 100644 (file)
@@ -12,8 +12,8 @@
 (* kernel version: basic, absolute, global *)
 (* note          : experimental *) 
 
-type uri = NUri.uri
-type id = Aut.id
+type uri = Item.uri
+type id = Item.id
 
 type bind = Void         (* exclusion *)
           | Abst of term (* abstraction *)
@@ -26,13 +26,13 @@ and term = Sort of int                    (* hierarchy index *)
          | Appl of term * term            (* argument, function *)
          | Bind of int * id * bind * term (* location, name, binder, scope *)
 
-type obj = int * uri * bind (* age, uri, binder, contents *)
+type obj = bind Item.obj (* age, uri, binder *)
 
-type item = obj option
+type item = bind Item.item
 
-type context = (int * id * bind) list (* location, name, binder *) 
+type lenv = (int * id * bind) list (* location, name, binder *) 
 
-type message = (context, term) Log.item list
+type message = (lenv, term) Log.item list
 
 (* Currified constructors ***************************************************)
 
@@ -60,9 +60,9 @@ let new_location () = let loc = !location in incr location; loc
 
 let locations () = !location
 
-(* context handling functions ***********************************************)
+(* local environment handling functions *************************************)
 
-let empty_context = []
+let empty_lenv = []
 
 let push msg f es l id b =
    let rec does_not_occur loc = function