X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmetadata%2FmetadataTypes.ml;h=e186b377a2acda45d3eccbe9d6acb8c9285730bc;hb=489ee5290cce2247291b8c5c53b98d493e7f6b99;hp=5284d96b5dd48377585ce62d8133cd0459dd824e;hpb=58dc98ecc3943c9945dee039fe03e1344cc60e4f;p=helm.git diff --git a/helm/ocaml/metadata/metadataTypes.ml b/helm/ocaml/metadata/metadataTypes.ml index 5284d96b5..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