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 >
55 val output_html : Ui_logger.html_msg -> unit
56 (* GUI refresh functions *)
57 val refresh_proof : unit -> unit
58 val refresh_goals : unit -> unit
59 (* callbacks for user-tactics interaction *)
60 val decompose_uris_choice_callback :
61 (UriManager.uri * int * 'a) list ->
62 (UriManager.uri * int * 'b list) list
63 val mk_fresh_name_callback :
64 Cic.context -> Cic.name -> typ:Cic.term -> Cic.name
69 val intros : unit -> unit
70 val exact : ?term:string -> unit -> unit
71 val apply : ?term:string -> unit -> unit
72 val elimintrossimpl : ?term:string -> unit -> unit
73 val elimtype : ?term:string -> unit -> unit
74 val whd : unit -> unit
75 val reduce : unit -> unit
76 val simpl : unit -> unit
77 val fold_whd : ?term:string -> unit -> unit
78 val fold_reduce : ?term:string -> unit -> unit
79 val fold_simpl : ?term:string -> unit -> unit
80 val cut : ?term:string -> unit -> unit
81 val change : unit -> unit
82 val letin : ?term:string -> unit -> unit
83 val ring : unit -> unit
84 val clearbody : unit -> unit
85 val clear : unit -> unit
86 val fourier : unit -> unit
87 val rewritesimpl : ?term:string -> unit -> unit
88 val rewritebacksimpl : ?term:string -> unit -> unit
89 val replace : unit -> unit
90 val reflexivity : unit -> unit
91 val symmetry : unit -> unit
92 val transitivity : ?term:string -> unit -> unit
93 val exists : unit -> unit
94 val split : unit -> unit
95 val left : unit -> unit
96 val right : unit -> unit
97 val assumption : unit -> unit
98 val generalize : unit -> unit
99 val absurd : ?term:string -> unit -> unit
100 val contradiction : unit -> unit
101 val decompose : ?term:string -> unit -> unit
102 val injection : ?term:string -> unit -> unit
103 val discriminate : ?term:string -> unit -> unit
104 val whd_in_scratch : unit -> unit
105 val reduce_in_scratch : unit -> unit
106 val simpl_in_scratch : unit -> unit
109 module Make (C : Callbacks) : Tactics