The areas / V01. The language of Mathlib
Mathlib.Basic.Logic.Lemmas
13 declarations. Mathlib docs · Source
theorem iff_assoc E1 #
∀ {a b c : Prop}, ((a ↔ b) ↔ c) ↔ (a ↔ (b ↔ c))
theorem iff_left_comm E1 #
∀ {a b c : Prop}, (a ↔ (b ↔ c)) ↔ (b ↔ (a ↔ c))
theorem iff_right_comm E1 #
∀ {a b c : Prop}, ((a ↔ b) ↔ c) ↔ ((a ↔ c) ↔ b)
theorem HEq.eq E1 #
∀ {α : Sort u_1} {a b : α}, a ≍ b → a = b
Alias of the forward direction of heq_iff_eq.
theorem Eq.heq E1 #
∀ {α : Sort u_1} {a b : α}, a = b → a ≍ b
Alias of the reverse direction of heq_iff_eq.
theorem dite_dite_distrib_left E1 #
∀ {α : Sort u_1} {p q : Prop} [inst : Decidable p] [inst_1 : Decidable q] {a : p → α} {b : ¬p → q → α}
{c : ¬p → ¬q → α},
(dite p a fun hp ↦ dite q (b hp) (c hp)) = if hq : q then dite p a fun hp ↦ b hp hq else dite p a fun hp ↦ c hp hq
theorem dite_dite_distrib_right E1 #
∀ {α : Sort u_1} {p q : Prop} [inst : Decidable p] [inst_1 : Decidable q] {a : p → q → α} {b : p → ¬q → α} {c : ¬p → α},
dite p (fun hp ↦ dite q (a hp) (b hp)) c = if hq : q then dite p (fun hp ↦ a hp hq) c else dite p (fun hp ↦ b hp hq) c
theorem ite_dite_distrib_left E1 #
∀ {α : Sort u_1} {p q : Prop} [inst : Decidable p] [inst_1 : Decidable q] {a : α} {b : q → α} {c : ¬q → α},
(if p then a else dite q b c) = if hq : q then if p then a else b hq else if p then a else c hq
theorem ite_dite_distrib_right E1 #
∀ {α : Sort u_1} {p q : Prop} [inst : Decidable p] [inst_1 : Decidable q] {a : q → α} {b : ¬q → α} {c : α},
(if p then dite q a b else c) = if hq : q then if p then a hq else c else if p then b hq else c
theorem dite_ite_distrib_left E1 #
∀ {α : Sort u_1} {p q : Prop} [inst : Decidable p] [inst_1 : Decidable q] {a : p → α} {b c : ¬p → α},
(dite p a fun hp ↦ if q then b hp else c hp) = if q then dite p a b else dite p a c
theorem dite_ite_distrib_right E1 #
∀ {α : Sort u_1} {p q : Prop} [inst : Decidable p] [inst_1 : Decidable q] {a b : p → α} {c : ¬p → α},
dite p (fun hp ↦ if q then a hp else b hp) c = if q then dite p a c else dite p b c
theorem ite_ite_distrib_left E1 #
∀ {α : Sort u_1} {p q : Prop} [inst : Decidable p] [inst_1 : Decidable q] {a b c : α},
(if p then a else if q then b else c) = if q then if p then a else b else if p then a else c
theorem ite_ite_distrib_right E1 #
∀ {α : Sort u_1} {p q : Prop} [inst : Decidable p] [inst_1 : Decidable q] {a b c : α},
(if p then if q then a else b else c) = if q then if p then a else c else if p then b else c