]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/tactics/tacticals.mli
1. tactical "try_tacticals" renamed to "first"
[helm.git] / helm / ocaml / tactics / tacticals.mli
index ab2f718238aebaab580376085b2b9ada202ed7f6..06afc21dc1755c060f3de4e727844f62baa9fb20 100644 (file)
  * http://cs.unibo.it/helm/.
  *)
 
-
 val id_tac : ProofEngineTypes.tactic
+val fail_tac: ProofEngineTypes.tactic
 
- (* tacticals *)
-val try_tactics:
-  tactics: (string * ProofEngineTypes.tactic) list -> ProofEngineTypes.tactic
+module type Status =
+ sig
+   type input_status
+   type output_status
+   type tactic
+   val id_tac : tactic
+   val mk_tactic : (input_status -> output_status) -> tactic
+   val apply_tactic : tactic -> input_status -> output_status
+   val goals : output_status -> ProofEngineTypes.goal list
+   val set_goals: output_status -> ProofEngineTypes.goal list -> output_status
+   val focus : output_status -> ProofEngineTypes.goal -> input_status
+ end
 
-val thens:
- start: ProofEngineTypes.tactic ->
continuations: ProofEngineTypes.tactic list -> ProofEngineTypes.tactic
+module type T =
+ sig
 type tactic
 
-val then_:
- start: ProofEngineTypes.tactic ->
- continuation: ProofEngineTypes.tactic -> ProofEngineTypes.tactic
+  val first: tactics: (string * tactic) list -> tactic
 
- (** "folding" of then_ *)
-val seq: tactics: ProofEngineTypes.tactic list -> ProofEngineTypes.tactic
+  val thens: start: tactic -> continuations: tactic list -> tactic
 
-val repeat_tactic: 
- tactic: ProofEngineTypes.tactic -> ProofEngineTypes.tactic
+  val then_: start: tactic -> continuation: tactic -> tactic
 
-val do_tactic:
- n: int ->
- tactic: ProofEngineTypes.tactic -> ProofEngineTypes.tactic 
+   (** "folding" of then_ *)
+  val seq: tactics: tactic list -> tactic
 
-val try_tactic:
- tactic: ProofEngineTypes.tactic -> ProofEngineTypes.tactic 
+  val repeat_tactic: tactic: tactic -> tactic
 
-val solve_tactics:
- tactics: (string * ProofEngineTypes.tactic) list -> ProofEngineTypes.tactic
+  val do_tactic: n: int -> tactic: tactic -> tactic 
 
-val fail_tac: ProofEngineTypes.tactic
+  val try_tactic: tactic: tactic -> tactic 
+
+  val solve_tactics: tactics: (string * tactic) list -> tactic
+ end
+
+module Make (S:Status) : T with type tactic = S.tactic
+
+include T with type tactic = ProofEngineTypes.tactic