]> matita.cs.unibo.it Git - helm.git/blob - helm/gTopLevel/proofEngine.mli
ocaml 3.09 transition
[helm.git] / helm / gTopLevel / proofEngine.mli
1 (* Copyright (C) 2002, 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://cs.unibo.it/helm/.
24  *)
25
26   (* proof engine status *)
27 val get_proof : unit -> ProofEngineTypes.proof option
28 val set_proof : ProofEngineTypes.proof option -> unit
29 val goal : ProofEngineTypes.goal option ref
30
31   (** return a pair of "xml" (as defined in Xml module) representing the current
32   proof type and body, respectively *)
33 val get_current_status_as_xml : unit -> Xml.token Stream.t * Xml.token Stream.t
34
35   (* start a new goal undoing part of the proof *)
36 val perforate : Cic.context -> Cic.term -> Cic.term -> unit
37
38   (* reduction tactics *)
39 val whd : Cic.term list -> unit
40 val reduce : Cic.term list -> unit
41 val simpl : Cic.term list -> unit
42 val fold_whd : Cic.term -> unit
43 val fold_reduce : Cic.term -> unit
44 val fold_simpl : Cic.term -> unit
45
46   (* scratch area reduction tactics *)
47 val whd_in_scratch : Cic.term list -> Cic.term -> Cic.term
48 val reduce_in_scratch : Cic.term list -> Cic.term -> Cic.term
49 val simpl_in_scratch : Cic.term list -> Cic.term -> Cic.term
50
51   (* "primitive" tactics *)
52 val apply : Cic.term -> unit
53 val intros :
54  ?mk_fresh_name_callback:ProofEngineTypes.mk_fresh_name_type -> unit -> unit
55 val cut :
56  ?mk_fresh_name_callback:ProofEngineTypes.mk_fresh_name_type -> Cic.term -> unit
57 val letin :
58  ?mk_fresh_name_callback:ProofEngineTypes.mk_fresh_name_type -> Cic.term -> unit
59 val exact : Cic.term -> unit
60 val elim_intros_simpl : Cic.term -> unit
61 val change : goal_input:Cic.term -> input:Cic.term -> unit
62
63   (* structural tactics *)
64 val clearbody : Cic.hypothesis -> unit
65 val clear : Cic.hypothesis -> unit
66
67   (* other tactics *)
68 val elim_type : Cic.term -> unit
69 val ring : unit -> unit
70 val fourier : unit -> unit
71 val rewrite_simpl : Cic.term -> unit
72 val rewrite_back_simpl : Cic.term -> unit
73 val replace : goal_input:Cic.term -> input:Cic.term -> unit
74 val auto : dbd:Mysql.dbd -> unit -> unit 
75
76 val reflexivity : unit -> unit
77 val symmetry : unit -> unit
78 val transitivity : Cic.term -> unit
79
80 val exists : unit -> unit
81 val split : unit -> unit
82 val left : unit -> unit
83 val right : unit -> unit
84
85 val assumption : unit -> unit
86
87 val generalize :
88  ?mk_fresh_name_callback:ProofEngineTypes.mk_fresh_name_type ->
89   Cic.term list -> unit
90
91 val absurd : Cic.term -> unit
92 val contradiction : unit -> unit
93
94 val decompose :
95  uris_choice_callback:
96   ((UriManager.uri * int * (UriManager.uri * Cic.term) list) list ->
97    (UriManager.uri * int * (UriManager.uri * Cic.term) list) list) ->
98  Cic.term -> unit
99
100 val injection : Cic.term -> unit
101 val discriminate : Cic.term -> unit
102 val decide_equality : unit -> unit
103 val compare : Cic.term -> unit