X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fsrc%2Fcommon%2Fentity.ml;fp=helm%2Fsoftware%2Flambda-delta%2Fsrc%2Fcommon%2Fentity.ml;h=f587a8d54543d28e94d620d02cf740bb268a2f39;hb=22fd9c98a22929f0319286c0693fcdaee43a72df;hp=6da0b3aeb23a88506b28399aede5fe685f0f07f0;hpb=10d33a8c1be31d0c7aeccee8968fd5218ca2510a;p=helm.git diff --git a/helm/software/lambda-delta/src/common/entity.ml b/helm/software/lambda-delta/src/common/entity.ml index 6da0b3aeb..f587a8d54 100644 --- a/helm/software/lambda-delta/src/common/entity.ml +++ b/helm/software/lambda-delta/src/common/entity.ml @@ -11,6 +11,7 @@ module U = NUri module G = Options +module N = Level type uri = U.uri @@ -28,9 +29,9 @@ type attr = Name of name (* name *) type attrs = attr list (* attributes *) -type 'term bind = Abst of 'term (* declaration: domain *) - | Abbr of 'term (* definition: body *) - | Void (* exclusion *) +type 'term bind = Abst of N.level * 'term (* declaration: level, domain *) + | Abbr of 'term (* definition: body *) + | Void (* exclusion *) type 'term entity = attrs * uri * 'term bind (* attrs, name, binder *) @@ -113,11 +114,11 @@ let rec rev_append_names ns = function | _ :: tl -> rev_append_names ns tl let xlate f xlate_term = function - | a, uri, Abst t -> - let f t = f (a, uri, Abst t) in xlate_term f t - | a, uri, Abbr t -> + | a, uri, Abst (n, t) -> + let f t = f (a, uri, Abst (n, t)) in xlate_term f t + | a, uri, Abbr t -> let f t = f (a, uri, Abbr t) in xlate_term f t - | _, _, Void -> + | _, _, Void -> assert false let initial_status () = {