X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fbasic_ag%2Fbag.ml;h=1aa9b62e749a79b5f2494ce0d09b67932235584f;hb=550489243bb7bbd995ce3484cbb3a3711371b949;hp=32a9b0c5b983b2361b5495776d6de7575935717e;hpb=8a4c83c6341976f2bb70eb44a0c70f2aa95ad3ea;p=helm.git diff --git a/helm/software/lambda-delta/basic_ag/bag.ml b/helm/software/lambda-delta/basic_ag/bag.ml index 32a9b0c5b..1aa9b62e7 100644 --- a/helm/software/lambda-delta/basic_ag/bag.ml +++ b/helm/software/lambda-delta/basic_ag/bag.ml @@ -12,8 +12,8 @@ (* kernel version: basic, absolute, global *) (* note : experimental *) -type uri = Item.uri -type id = Item.id +type uri = Entity.uri +type id = Entity.id type bind = Void (* exclusion *) | Abst of term (* abstraction *) @@ -22,18 +22,22 @@ type bind = Void (* exclusion *) 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 Item.obj (* age, uri, binder *) - -type item = bind Item.item +type entity = term Entity.entity (* attrs, uri, binder *) type lenv = (int * id * bind) list (* location, name, binder *) type message = (lenv, term) Log.item list +(* helpers ******************************************************************) + +let mk_uri si root s = + let kernel = if si then "bag-si" else "bag" in + String.concat "/" ["ld:"; kernel; root; s ^ ".ld"] + (* Currified constructors ***************************************************) let abst w = Abst w