X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_kernel%2FnReference.mli;h=d7f87e57c1712e63cba89dd1ea29d49d00893c14;hb=c6c248e635ef35e9515ed981374ce2a0cef30e62;hp=b73239465691af895fde32b484385e5bfb505e2e;hpb=7f5d0adf3d44aa3e52e882dbe5f42358b8ee96cf;p=helm.git diff --git a/helm/software/components/ng_kernel/nReference.mli b/helm/software/components/ng_kernel/nReference.mli index b73239465..d7f87e57c 100644 --- a/helm/software/components/ng_kernel/nReference.mli +++ b/helm/software/components/ng_kernel/nReference.mli @@ -15,23 +15,24 @@ 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 compare: reference -> reference -> int val string_of_reference: reference -> string +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 - - -(* CACCA *) -val reference_of_ouri: UriManager.uri -> spec -> reference -val ouri_of_reference: reference -> UriManager.uri