lean2/tests/lean/run/tactic10.lean
Leonardo de Moura c50227ea6e feat(library/tactic): change apply tactic semantics: goals are not reversed; and dependent arguments are not included
This commit also adds the tactic rapply that corresponds to the previous
semantics we have been using.
2014-10-22 18:11:09 -07:00

9 lines
200 B
Text

import logic
open tactic
theorem tst (a b : Prop) (H : a ↔ b) : b ↔ a
:= by rapply iff.intro;
apply (assume Ha, iff.elim_left H Ha);
apply (assume Hb, iff.elim_right H Hb)
check tst