]> matita.cs.unibo.it Git - helm.git/blob - components/ng_kernel/nReference.mli
tagged 0.5.0-rc1
[helm.git] / components / ng_kernel / nReference.mli
1 (*
2     ||M||  This file is part of HELM, an Hypertextual, Electronic        
3     ||A||  Library of Mathematics, developed at the Computer Science     
4     ||T||  Department, University of Bologna, Italy.                     
5     ||I||                                                                
6     ||T||  HELM is free software; you can redistribute it and/or         
7     ||A||  modify it under the terms of the GNU General Public License   
8     \   /  version 2 or (at your option) any later version.      
9      \ /   This software is distributed as is, NO WARRANTY.     
10       V_______________________________________________________________ *)
11
12 (* $Id$ *)
13
14 exception IllFormedReference of string Lazy.t
15
16 type spec = 
17  | Decl 
18  | Def
19  | Fix of int * int (* fixno, recparamno *)
20  | CoFix of int
21  | Ind of int
22  | Con of int * int (* indtyno, constrno *)
23
24 type reference = private Ref of int *  NUri.uri * spec
25
26 val eq: reference -> reference -> bool
27 val string_of_reference: reference -> string 
28
29 (* given the reference of an inductive type, returns the i-th contructor *)
30 val mk_constructor: int -> reference -> reference
31 val mk_fix: int -> int -> reference -> reference
32
33
34 (* CACCA *)
35 val reference_of_ouri: UriManager.uri -> spec ->  reference
36 val ouri_of_reference: reference -> UriManager.uri