X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Focaml%2Fmetadata%2FmetadataTypes.ml;h=e186b377a2acda45d3eccbe9d6acb8c9285730bc;hb=b67ea513f11d1ef3d9fd228c64913561424662e2;hp=51f79c8288c9e9c6cecddb310f434df4618fd264;hpb=6fa3218efdfca5dd28fee2ef7a8c5e8de67ce829;p=helm.git diff --git a/helm/ocaml/metadata/metadataTypes.ml b/helm/ocaml/metadata/metadataTypes.ml index 51f79c828..e186b377a 100644 --- a/helm/ocaml/metadata/metadataTypes.ml +++ b/helm/ocaml/metadata/metadataTypes.ml @@ -23,6 +23,8 @@ * http://helm.cs.unibo.it/ *) +(* $Id$ *) + let position_prefix = "http://www.cs.unibo.it/helm/schemas/schema-helm#" (* let position_prefix = "" *) @@ -32,9 +34,16 @@ let mainhyp_pos = position_prefix ^ "MainHypothesis" let inhyp_pos = position_prefix ^ "InHypothesis" let inbody_pos = position_prefix ^ "InBody" +type relation = + | Eq of int + | Le of int + | Lt of int + | Ge of int + | Gt of int + type main_position = - [ `MainConclusion of int option (* Pi depth *) - | `MainHypothesis of int option (* Pi depth *) + [ `MainConclusion of relation option (* Pi depth *) + | `MainHypothesis of relation option (* Pi depth *) ] type position = @@ -49,13 +58,13 @@ type pi_depth = int type metadata = [ `Sort of Cic.sort * main_position | `Rel of main_position - | `Obj of string * position + | `Obj of UriManager.uri * position ] type constr = [ `Sort of Cic.sort * main_position list | `Rel of main_position list - | `Obj of string * position list + | `Obj of UriManager.uri * position list ] let constr_of_metadata: metadata -> constr = function @@ -69,6 +78,7 @@ let rel_tbl_original = "refRel" let obj_tbl_original = "refObj" let name_tbl_original = "objectName" let count_tbl_original = "count" +let hits_tbl_original = "hits" (** the names currently used *) let sort_tbl_real = ref sort_tbl_original @@ -98,6 +108,7 @@ let library_rel_tbl = rel_tbl_original let library_obj_tbl = obj_tbl_original let library_name_tbl = name_tbl_original let library_count_tbl = count_tbl_original +let library_hits_tbl = hits_tbl_original let are_tables_ownerized () = sort_tbl () <> library_sort_tbl