2014-08-25 02:58:48 +00:00
|
|
|
import logic
|
2014-06-30 07:51:11 +00:00
|
|
|
|
2014-07-22 16:43:18 +00:00
|
|
|
theorem tst (a b : Prop) (H : a ↔ b) : b ↔ a
|
2014-09-08 14:47:42 +00:00
|
|
|
:= have H1 [visible] : a → b, -- We need to mark H1 as fact, otherwise it is not visible by tactics
|
2014-09-05 04:25:21 +00:00
|
|
|
from iff.elim_left H,
|
2014-10-23 01:11:09 +00:00
|
|
|
by rapply iff.intro;
|
2014-10-24 05:36:32 +00:00
|
|
|
intro Ha;
|
|
|
|
apply (H1 Ha);
|
|
|
|
intro Hb;
|
|
|
|
apply (iff.elim_right H Hb)
|
2014-10-15 00:12:57 +00:00
|
|
|
|
|
|
|
theorem tst2 (a b : Prop) (H : a ↔ b) : b ↔ a
|
|
|
|
:= have H1 [visible] : a → b,
|
|
|
|
from iff.elim_left H,
|
|
|
|
begin
|
2014-10-23 01:11:09 +00:00
|
|
|
rapply iff.intro,
|
2014-10-24 05:36:32 +00:00
|
|
|
intro Ha;
|
|
|
|
apply (H1 Ha),
|
|
|
|
intro Hb;
|
|
|
|
apply (iff.elim_right H Hb)
|
2014-10-15 00:12:57 +00:00
|
|
|
end
|