lean2/tests/lean/tactic6.lean
Leonardo de Moura f1b97b18b4 refactor(frontends/lean/parser): tactic macros, and tactic Lua bindings
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-26 15:54:53 -08:00

22 lines
No EOL
601 B
Text

(** import("tactic.lua") **)
Theorem T (a b c : Bool): a => b /\ c => c /\ a /\ b := _.
apply Discharge
apply Discharge
conj_hyp
apply Conj
(** Focus(Then(show_tac(), conj_tac(), show_tac(), assumption_tac()), 2) **)
exact
done
Theorem T2 (a b c : Bool): a => b /\ c => c /\ a /\ b := _.
apply Discharge
apply Discharge
conj_hyp
apply Conj
(** show_tac() **)
(** Focus(Then(show_tac(), conj_tac(), Focus(assumption_tac(), 1)), 2) **)
(** show_tac() **)
(** Focus(assumption_tac(), 1) **)
(** show_tac() **)
(** Focus(assumption_tac(), 1) **)
done