2014-11-26 14:49:48 -08:00
|
|
|
import logic
|
|
|
|
|
|
|
|
example {a b c : Prop} : a → b → c → a ∧ b :=
|
|
|
|
begin
|
2015-03-27 17:26:06 -07:00
|
|
|
intros [Ha, Hb, Hc],
|
|
|
|
clears [Hc, c],
|
2014-11-26 14:49:48 -08:00
|
|
|
apply (and.intro Ha Hb),
|
|
|
|
end
|
|
|
|
|
|
|
|
example {a b c : Prop} : a → b → c → c ∧ b :=
|
|
|
|
begin
|
2015-03-27 17:26:06 -07:00
|
|
|
intros [Ha, Hb, Hc],
|
|
|
|
clears [Ha, a],
|
2014-11-26 14:49:48 -08:00
|
|
|
apply (and.intro Hc Hb),
|
|
|
|
end
|