]> matita.cs.unibo.it Git - helm.git/blob - helm/ocaml/metadata/metadataTypes.mli
ocaml 3.09 transition
[helm.git] / helm / ocaml / metadata / metadataTypes.mli
1 (* Copyright (C) 2004, HELM Team.
2  * 
3  * This file is part of HELM, an Hypertextual, Electronic
4  * Library of Mathematics, developed at the Computer Science
5  * Department, University of Bologna, Italy.
6  * 
7  * HELM is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  * 
12  * HELM is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with HELM; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20  * MA  02111-1307, USA.
21  * 
22  * For details, see the HELM World-Wide-Web page,
23  * http://helm.cs.unibo.it/
24  *)
25
26 val inconcl_pos : string 
27 val mainconcl_pos : string
28 val mainhyp_pos : string
29 val inhyp_pos : string
30 val inbody_pos : string
31
32 type relation = 
33   | Eq of int
34   | Le of int
35   | Lt of int
36   | Ge of int
37   | Gt of int
38
39 type main_position =
40   [ `MainConclusion of relation option (* Pi depth *)
41   | `MainHypothesis of relation option (* Pi depth *)
42   ]
43
44 type position =
45   [ main_position
46   | `InConclusion
47   | `InHypothesis
48   | `InBody
49   ]
50
51 type pi_depth = int
52
53 type metadata =
54   [ `Sort of Cic.sort * main_position
55   | `Rel of main_position
56   | `Obj of UriManager.uri * position
57   ]
58
59 type constr =
60   [ `Sort of Cic.sort * main_position list
61   | `Rel of main_position list
62   | `Obj of UriManager.uri * position list
63   ]
64
65 val constr_of_metadata: metadata -> constr
66
67   (** invoke this function to set the current owner. Afterwards the functions
68   * below will return the name of the table of the set owner *)
69 val ownerize_tables : string -> unit
70 val are_tables_ownerized : unit -> bool
71
72 val sort_tbl: unit -> string  
73 val rel_tbl: unit -> string
74 val obj_tbl: unit -> string
75 val name_tbl: unit -> string
76 val count_tbl: unit -> string
77
78 val library_sort_tbl:  string  
79 val library_rel_tbl:  string
80 val library_obj_tbl:  string
81 val library_name_tbl:  string
82 val library_count_tbl: string
83 val library_hits_tbl: string
84