2014-11-26 21:09:42 +00:00
|
|
|
import logic
|
|
|
|
|
|
|
|
example {a b c : Prop} : a → b → c → a ∧ b :=
|
|
|
|
begin
|
2015-03-28 00:26:06 +00:00
|
|
|
intros [Ha, Hb, Hc],
|
2014-11-26 21:09:42 +00:00
|
|
|
clear Hc,
|
|
|
|
clear c,
|
|
|
|
apply (and.intro Ha Hb),
|
|
|
|
end
|
|
|
|
|
|
|
|
example {a b c : Prop} : a → b → c → c ∧ b :=
|
|
|
|
begin
|
2015-03-28 00:26:06 +00:00
|
|
|
intros [Ha, Hb, Hc],
|
2014-11-26 21:09:42 +00:00
|
|
|
clear Ha,
|
|
|
|
clear a,
|
|
|
|
apply (and.intro Hc Hb),
|
|
|
|
end
|