2014-12-01 05:16:01 +00:00
|
|
|
prelude
|
2014-09-17 21:39:05 +00:00
|
|
|
definition Prop : Type.{1} := Type.{0}
|
2014-10-02 23:20:52 +00:00
|
|
|
constant and : Prop → Prop → Prop
|
2014-07-01 23:55:41 +00:00
|
|
|
infixl `∧`:25 := and
|
2014-10-02 23:20:52 +00:00
|
|
|
constant and_intro : forall (a b : Prop), a → b → a ∧ b
|
|
|
|
constants a b c d : Prop
|
2014-06-21 00:17:39 +00:00
|
|
|
axiom Ha : a
|
|
|
|
axiom Hb : b
|
|
|
|
axiom Hc : c
|
|
|
|
check
|
|
|
|
have a ∧ b, from and_intro a b Ha Hb,
|
2015-02-25 22:30:42 +00:00
|
|
|
assert b ∧ a, from and_intro b a Hb Ha,
|
2014-06-21 00:17:39 +00:00
|
|
|
have H : a ∧ b, from and_intro a b Ha Hb,
|
2015-02-25 22:30:42 +00:00
|
|
|
assert H : a ∧ b, from and_intro a b Ha Hb,
|
2014-06-21 00:17:39 +00:00
|
|
|
then have a ∧ b, from and_intro a b Ha Hb,
|
2015-02-25 22:30:42 +00:00
|
|
|
then assert b ∧ a, from and_intro b a Hb Ha,
|
2014-06-21 00:17:39 +00:00
|
|
|
then have H : a ∧ b, from and_intro a b Ha Hb,
|
2015-02-25 22:30:42 +00:00
|
|
|
then assert H : a ∧ b, from and_intro a b Ha Hb,
|
2014-09-08 14:47:42 +00:00
|
|
|
Ha
|