(* kernel version: basic, absolute, global *)
(* note : experimental *)
-type uri = Common.uri
-type id = Common.id
+type uri = Entity.uri
+type id = Entity.id
type bind = Void (* exclusion *)
| Abst of term (* abstraction *)
and term = Sort of int (* hierarchy index *)
| LRef of int (* location *)
| GRef of uri (* reference *)
- | Cast of term * term (* type, term *)
+ | Cast of term * term (* domain, element *)
| Appl of term * term (* argument, function *)
| Bind of int * id * bind * term (* location, name, binder, scope *)
-type obj = bind Common.obj (* age, uri, binder *)
+type entity = term Entity.entity (* attrs, uri, binder *)
-type item = bind Common.item
+type lenv = (int * id * bind) list (* location, name, binder *)
-type context = (int * id * bind) list (* location, name, binder *)
-
-type message = (context, term) Log.item list
+type message = (lenv, term) Log.item list
(* Currified constructors ***************************************************)
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