1 (* Copyright (C) 2000, HELM Team.
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.
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.
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.
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,
22 * For details, see the HELM World-Wide-Web page,
23 * http://cs.unibo.it/helm/.
26 (**************************************************************************)
30 (* Andrea Asperti <asperti@cs.unibo.it> *)
33 (**************************************************************************)
35 type recursion_kind = NoRecursive | Recursive | CoRecursive;;
39 { proof_name : string option;
41 proof_kind : recursion_kind ;
42 proof_context : ('term context_element) list ;
43 proof_apply_context: ('term proof) list;
44 proof_conclude : 'term conclude_item;
47 'term context_element =
48 Declaration of 'term declaration
49 | Hypothesis of 'term declaration
50 | Proof of 'term proof
51 | Definition of 'term definition
52 | Joint of 'term joint
55 { dec_name : string option;
63 { def_name : string option;
71 joint_kind : recursion_kind ;
72 joint_defs : 'term context_element list
76 { conclude_id :string;
77 conclude_aref : string;
78 conclude_method : string;
79 conclude_args : ('term arg) list ;
80 conclude_conclusion : 'term option
87 | ArgProof of 'term proof
88 | ArgMethod of string (* ???? *)
92 premise_xref : string ;
93 premise_binder : string option;
94 premise_n : int option;
100 ?name:string option -> (* name *)
101 ids_to_inner_sorts:(Cic.id, string) Hashtbl.t ->
102 (* ids_to_inner_sorts *)
103 ids_to_inner_types:(Cic.id, Cic2acic.anntypes) Hashtbl.t ->
104 (* ids_to_inner_types *)
105 Cic.annterm -> (* annotated term *)