1 (* Copyright (C) 2000-2002, 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 (* Claudio Sacerdoti Coen <sacerdot@cs.unibo.it> *)
34 (******************************************************************************)
36 exception RefreshSequentException of exn
37 exception RefreshProofException of exn
39 module type Callbacks =
42 val sequent_viewer : unit -> TermViewer.sequent_viewer
43 val term_editor : unit -> TermEditor.term_editor
46 < sequent_viewer: TermViewer.sequent_viewer ;
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
67 val intros : unit -> unit
68 val exact : ?term:string -> unit -> unit
69 val apply : ?term:string -> unit -> unit
70 val elimintrossimpl : ?term:string -> unit -> unit
71 val elimtype : ?term:string -> unit -> unit
72 val whd : unit -> unit
73 val reduce : unit -> unit
74 val simpl : unit -> unit
75 val fold_whd : ?term:string -> unit -> unit
76 val fold_reduce : ?term:string -> unit -> unit
77 val fold_simpl : ?term:string -> unit -> unit
78 val cut : ?term:string -> unit -> unit
79 val change : unit -> unit
80 val letin : ?term:string -> unit -> unit
81 val ring : unit -> unit
82 val clearbody : unit -> unit
83 val clear : unit -> unit
84 val fourier : unit -> unit
85 val rewritesimpl : ?term:string -> unit -> unit
86 val rewritebacksimpl : ?term:string -> unit -> unit
87 val replace : unit -> unit
88 val reflexivity : unit -> unit
89 val symmetry : unit -> unit
90 val transitivity : ?term:string -> unit -> unit
91 val exists : unit -> unit
92 val split : unit -> unit
93 val left : unit -> unit
94 val right : unit -> unit
95 val assumption : unit -> unit
96 val generalize : unit -> unit
97 val absurd : ?term:string -> unit -> unit
98 val contradiction : unit -> unit
99 val decompose : ?term:string -> unit -> unit
100 val injection : ?term:string -> unit -> unit
101 val discriminate : ?term:string -> unit -> unit
102 val whd_in_scratch : unit -> unit
103 val reduce_in_scratch : unit -> unit
104 val simpl_in_scratch : unit -> unit
105 val auto : unit -> unit
108 module Make (C : Callbacks) : Tactics