lean2/tests/lean/interactive/t13.lean
Leonardo de Moura 6569b07b7c feat(frontends/lean/parser): rename 'show' expression to 'have'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 11:25:58 -08:00

12 lines
327 B
Text

(*
-- Define a simple tactic using Lua
auto = Repeat(OrElse(assumption_tac(), conj_tac(), conj_hyp_tac()))
*)
Theorem T1 (A B : Bool) : A /\ B -> B /\ A :=
fun assumption : A /\ B,
let lemma1 := (have A by auto),
lemma2 := (have B by auto)
in (have B /\ A by auto)
print Environment 1.