2014-07-22 16:43:18 +00:00
|
|
|
abbreviation Prop : Type.{1} := Type.{0}
|
|
|
|
variable and : Prop → Prop → Prop
|
2014-07-01 23:55:41 +00:00
|
|
|
infixl `∧`:25 := and
|
2014-07-22 16:43:18 +00:00
|
|
|
variable and_intro : forall (a b : Prop), a → b → a ∧ b
|
|
|
|
variables 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,
|
2014-09-08 14:47:42 +00:00
|
|
|
have [visible] 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,
|
2014-09-08 14:47:42 +00:00
|
|
|
have H [visible] : 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,
|
2014-09-08 14:47:42 +00:00
|
|
|
then have [visible] 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,
|
2014-09-08 14:47:42 +00:00
|
|
|
then have H [visible] : a ∧ b, from and_intro a b Ha Hb,
|
|
|
|
Ha
|