lean2/tests/lean/run/tactic11.lean
Leonardo de Moura b4793df653 feat(frontends/lean): rename '[fact]' to '[visible]'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-08 07:47:42 -07:00

9 lines
302 B
Text

import logic
open tactic
theorem tst (a b : Prop) (H : a ↔ b) : b ↔ a
:= have H1 [visible] : a → b, -- We need to mark H1 as fact, otherwise it is not visible by tactics
from iff.elim_left H,
by apply iff.intro;
apply (assume Hb, iff.elim_right H Hb);
apply (assume Ha, H1 Ha)