X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnReference.mli;h=d291b621b7140c828e12a5614ffd28a15ea85890;hb=9be9ca06b0050a29f0d5611c2d3254125557e59d;hp=7f43c13e799cd3af071c6a6a0223941ac48c9cef;hpb=738ff6e752f9e5facba4e92bdb64453062f52c7d;p=helm.git diff --git a/helm/software/components/ng_kernel/nReference.mli b/helm/software/components/ng_kernel/nReference.mli index 7f43c13e7..d291b621b 100644 --- a/helm/software/components/ng_kernel/nReference.mli +++ b/helm/software/components/ng_kernel/nReference.mli @@ -15,13 +15,15 @@ exception IllFormedReference of string Lazy.t type spec = | Decl - | Def - | Fix of int * int (* fixno, recparamno *) + | Def of int (* height *) + | Fix of int * int * int (* fixno, recparamno, height *) | CoFix of int - | Ind of bool * int (* inductive, indtyno *) - | Con of int * int (* indtyno, constrno *) + | Ind of bool * int * int (* inductive, indtyno, leftno *) + | Con of int * int * int (* indtyno, constrno, leftno *) -type reference = private Ref of int * NUri.uri * spec +type reference = private Ref of NUri.uri * spec + +val reference_of_spec: NUri.uri -> spec -> reference val eq: reference -> reference -> bool val string_of_reference: reference -> string @@ -29,5 +31,7 @@ val reference_of_string: string -> reference (* given the reference of an inductive type, returns the i-th contructor *) val mk_constructor: int -> reference -> reference +(* given the reference of an inductive type constructor, returns the indty *) +val mk_indty: bool -> reference -> reference val mk_fix: int -> int -> reference -> reference val mk_cofix: int -> reference -> reference