1 (* Copyright (C) 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 val id_tac : ProofEngineTypes.tactic
27 val fail_tac: ProofEngineTypes.tactic
29 (* module type Status =
31 |+ type external_input_status +|
34 |+ type external_output_status +|
36 |+ val internalize: external_input_status -> input_status
37 val externalize: output_status -> external_output_status +|
41 val mk_tactic : (input_status -> output_status) -> tactic
42 val apply_tactic : tactic -> input_status -> output_status
46 val goals : output_status -> ProofEngineTypes.goal list
47 val get_stack : input_status -> stack
48 val set_stack : stack -> output_status -> output_status
50 val inject : input_status -> output_status
51 val focus : goal -> output_status -> input_status
58 val first: tactics: (string * tactic) list -> tactic
59 val thens: start: tactic -> continuations: tactic list -> tactic
60 val then_: start: tactic -> continuation: tactic -> tactic
61 val seq: tactics: tactic list -> tactic (** "folding" of then_ *)
62 val repeat_tactic: tactic: tactic -> tactic
63 val do_tactic: n: int -> tactic: tactic -> tactic
64 val try_tactic: tactic: tactic -> tactic
65 val solve_tactics: tactics: (string * tactic) list -> tactic
66 val progress_tactic: tactic: tactic -> tactic
70 val tactic: tactic -> tactic (** apply tactic to all goal in env *)
76 val pos: int list -> tactic
79 val focus: int list -> tactic
84 module Make (S: Continuationals.Status) : T with type tactic = S.tactic
86 include T with type tactic = ProofEngineTypes.tactic
90 before:ProofEngineTypes.goal list ->
91 after:ProofEngineTypes.goal list ->
92 opened:ProofEngineTypes.goal list ->
93 ProofEngineTypes.goal list * ProofEngineTypes.goal list