]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/nReference.mli
parameter sintax added to axiom statement
[helm.git] / helm / software / components / ng_kernel / nReference.mli
index fcb12a995d8f7a59d68684ce78d9cda36bcfc976..d7f87e57c1712e63cba89dd1ea29d49d00893c14 100644 (file)
@@ -15,19 +15,24 @@ exception IllFormedReference of string Lazy.t
 
 type spec = 
  | Decl 
- | Def of int (* height *)
- | Fix of int * int * int (* fixno, recparamno, height *)
+ | 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 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