]> matita.cs.unibo.it Git - helm.git/blob - helm/gTopLevel/invokeTactics.mli
ocaml 3.09 transition
[helm.git] / helm / gTopLevel / invokeTactics.mli
1 (* Copyright (C) 2000-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 (******************************************************************************)
27 (*                                                                            *)
28 (*                               PROJECT HELM                                 *)
29 (*                                                                            *)
30 (*                Claudio Sacerdoti Coen <sacerdot@cs.unibo.it>               *)
31 (*                                 30/01/2003                                 *)
32 (*                                                                            *)
33 (*                                                                            *)
34 (******************************************************************************)
35
36 exception RefreshSequentException of exn
37 exception RefreshProofException of exn
38
39 module type Callbacks =
40   sig
41     (* input widgets *)
42     val sequent_viewer : unit -> TermViewer.sequent_viewer
43     val term_editor : unit -> TermEditor.term_editor
44     val scratch_window :
45      unit ->
46       < sequent_viewer: TermViewer.sequent_viewer ;
47         show: unit -> unit ;
48         term: Cic.term ;
49         set_term : Cic.term -> unit ;
50         metasenv: Cic.metasenv ;
51         set_metasenv : Cic.metasenv -> unit ;
52         context: Cic.context ;
53         set_context : Cic.context -> unit >
54     (* GUI refresh functions *)
55     val refresh_proof : unit -> unit
56     val refresh_goals : unit -> unit
57     (* callbacks for user-tactics interaction *)
58     val decompose_uris_choice_callback :
59       (UriManager.uri * int * 'a) list ->
60       (UriManager.uri * int * 'b list) list
61     val mk_fresh_name_callback : ProofEngineTypes.mk_fresh_name_type
62     val mqi_handle : MQIConn.handle
63     val dbd:Mysql.dbd
64   end
65
66 module type Tactics =
67  sig
68    val intros : unit -> unit
69    val exact : ?term:string -> unit -> unit
70    val apply : ?term:string -> unit -> unit
71    val elimintrossimpl : ?term:string -> unit -> unit
72    val elimtype : ?term:string -> unit -> unit
73    val whd : unit -> unit
74    val reduce : unit -> unit
75    val simpl : unit -> unit
76    val fold_whd : ?term:string -> unit -> unit
77    val fold_reduce : ?term:string -> unit -> unit
78    val fold_simpl : ?term:string -> unit -> unit
79    val cut : ?term:string -> unit -> unit
80    val change : unit -> unit
81    val letin : ?term:string -> unit -> unit
82    val ring : unit -> unit
83    val clearbody : unit -> unit
84    val clear : unit -> unit
85    val fourier : unit -> unit
86    val rewritesimpl : ?term:string -> unit -> unit
87    val rewritebacksimpl : ?term:string -> unit -> unit
88    val replace : unit -> unit
89    val reflexivity : unit -> unit
90    val symmetry : unit -> unit
91    val transitivity : ?term:string -> unit -> unit
92    val exists : unit -> unit
93    val split : unit -> unit
94    val left : unit -> unit
95    val right : unit -> unit
96    val assumption : unit -> unit
97    val generalize : unit -> unit
98    val absurd : ?term:string -> unit -> unit
99    val contradiction : unit -> unit
100    val decompose : ?term:string -> unit -> unit
101    val injection : ?term:string -> unit -> unit
102    val discriminate : ?term:string -> unit -> unit
103    val whd_in_scratch : unit -> unit
104    val reduce_in_scratch : unit -> unit
105    val simpl_in_scratch : unit -> unit
106    val auto : unit -> unit  
107  end
108
109 module Make (C : Callbacks) : Tactics
110