X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_omdoc%2Fcontent.mli;h=c1122b8f2b2627d67dccd9ccd3fd4a4e0643af16;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=b58b84b54c62b611fe3161a5b14e1f651f9cc043;hpb=4bcd14a9ed245ccae631697a05ff5a377c02b179;p=helm.git diff --git a/helm/ocaml/cic_omdoc/content.mli b/helm/ocaml/cic_omdoc/content.mli index b58b84b54..c1122b8f2 100644 --- a/helm/ocaml/cic_omdoc/content.mli +++ b/helm/ocaml/cic_omdoc/content.mli @@ -25,7 +25,7 @@ type id = string;; type joint_recursion_kind = - [ `Recursive + [ `Recursive of int list (* decreasing arguments *) | `CoRecursive | `Inductive of int (* paramsno *) | `CoInductive of int (* paramsno *) @@ -36,7 +36,7 @@ type var_or_const = Var | Const;; type 'term declaration = { dec_name : string option; - dec_id : string ; + dec_id : id ; dec_inductive : bool; dec_aref : string; dec_type : 'term @@ -45,14 +45,15 @@ type 'term declaration = type 'term definition = { def_name : string option; - def_id : string ; + def_id : id ; def_aref : string ; def_term : 'term } ;; type 'term inductive = - { inductive_id : string ; + { inductive_id : id ; + inductive_name : string; inductive_kind : bool; inductive_type : 'term; inductive_constructors : 'term declaration list @@ -79,7 +80,7 @@ type ('term,'proof) in_joint_context_element = ;; type ('term,'proof) joint = - { joint_id : string ; + { joint_id : id ; joint_kind : joint_recursion_kind ; joint_defs : ('term,'proof) in_joint_context_element list } @@ -91,7 +92,7 @@ type ('term,'proof) joint_context_element = type 'term proof = { proof_name : string option; - proof_id : string ; + proof_id : id ; proof_context : 'term in_proof_context_element list ; proof_apply_context: 'term proof list; proof_conclude : 'term conclude_item @@ -99,12 +100,12 @@ type 'term proof = and 'term in_proof_context_element = [ 'term decl_context_element - | ('term,'term proof) def_context_element + | ('term,'term proof) def_context_element | ('term,'term proof) joint_context_element ] and 'term conclude_item = - { conclude_id :string; + { conclude_id : id; conclude_aref : string; conclude_method : string; conclude_args : ('term arg) list ; @@ -112,18 +113,25 @@ and 'term conclude_item = } and 'term arg = - Aux of int + Aux of string | Premise of premise + | Lemma of lemma | Term of 'term | ArgProof of 'term proof | ArgMethod of string (* ???? *) and premise = - { premise_id: string; + { premise_id: id; premise_xref : string ; premise_binder : string option; premise_n : int option; } + +and lemma = + { lemma_id: id; + lemma_name : string; + lemma_uri: string + } ;; type 'term conjecture = id * int * 'term context * 'term @@ -131,7 +139,6 @@ type 'term conjecture = id * int * 'term context * 'term and 'term context = 'term hypothesis list and 'term hypothesis = - id * ['term decl_context_element | ('term,'term proof) def_context_element ] option ;;