Documentation

Init.Sym.Lemmas

theorem Lean.Sym.or_eq_true_left (a b : Prop) (h : a = True) :
(a ∨ b) = True
theorem Lean.Sym.or_eq_right (a b : Prop) (h : a = False) :
(a ∨ b) = b
theorem Lean.Sym.and_eq_false_left (a b : Prop) (h : a = False) :
(a ∧ b) = False
theorem Lean.Sym.and_eq_left (a b : Prop) (h : a = True) :
(a ∧ b) = b
theorem Lean.Sym.imp_subst {α : Sort u} {x t : α} (motive : α → Prop) (k : x = t → motive t) :
x = t → motive x
theorem Lean.Sym.ite_cond_congr {α : Sort u} (c : Prop) {inst : Decidable c} (a b : α) (c' : Prop) {inst' : Decidable c'} (h : c = c') :
(if c then a else b) = if c' then a else b
theorem Lean.Sym.ite_true {α : Sort u} (c : Prop) {inst : Decidable c} (a b : α) {ht : c} :
(if c then a else b) = a
theorem Lean.Sym.ite_true_congr {α : Sort u} (c : Prop) {inst : Decidable c} (a b : α) (c' : Prop) (h : c = c') {ht : c'} :
(if c then a else b) = a
theorem Lean.Sym.ite_false {α : Sort u} (c : Prop) {inst : Decidable c} (a b : α) {ht : ¬c} :
(if c then a else b) = b
theorem Lean.Sym.ite_false_congr {α : Sort u} (c : Prop) {inst : Decidable c} (a b : α) (c' : Prop) (h : c = c') {ht : ¬c'} :
(if c then a else b) = b
theorem Lean.Sym.ite_of_decide_eq_true {α : Sort u} (c : Prop) {inst : Decidable c} (a b : α) {ht : decide c = true} :
(if c then a else b) = a
theorem Lean.Sym.ite_of_decide_eq_false {α : Sort u} (c : Prop) {inst : Decidable c} (a b : α) {ht : decide c = false} :
(if c then a else b) = b
theorem Lean.Sym.ite_of_decide_eq_true_congr {α : Sort u} (c : Prop) {inst : Decidable c} (a b : α) (c' : Prop) (h : c = c') {x✝ : Decidable c'} {ht : decide c' = true} :
(if c then a else b) = a
theorem Lean.Sym.ite_of_decide_eq_false_congr {α : Sort u} (c : Prop) {inst : Decidable c} (a b : α) (c' : Prop) (h : c = c') {x✝ : Decidable c'} {ht : decide c' = false} :
(if c then a else b) = b
theorem Lean.Sym.dite_true {α : Sort u} (c : Prop) {inst : Decidable c} (a : c → α) (b : ¬c → α) {ht : c} :
dite c a b = a ht
theorem Lean.Sym.dite_true_congr {α : Sort u} (c : Prop) {inst : Decidable c} (a : c → α) (b : ¬c → α) (c' : Prop) (h : c = c') {ht : c'} :
dite c a b = a ⋯
theorem Lean.Sym.dite_false {α : Sort u} (c : Prop) {inst : Decidable c} (a : c → α) (b : ¬c → α) {ht : ¬c} :
dite c a b = b ht
theorem Lean.Sym.dite_false_congr {α : Sort u} (c : Prop) {inst : Decidable c} (a : c → α) (b : ¬c → α) (c' : Prop) (h : c = c') {ht : ¬c'} :
dite c a b = b ⋯
theorem Lean.Sym.dite_cond_congr {α : Sort u} (c : Prop) {inst : Decidable c} (a : c → α) (b : ¬c → α) (c' : Prop) {inst' : Decidable c'} (h : c = c') :
dite c a b = if h' : c' then a ⋯ else b ⋯
theorem Lean.Sym.cond_cond_eq_true {α : Sort u} (c : Bool) (a b : α) (h : c = true) :
(bif c then a else b) = a
theorem Lean.Sym.cond_cond_eq_false {α : Sort u} (c : Bool) (a b : α) (h : c = false) :
(bif c then a else b) = b
theorem Lean.Sym.cond_cond_congr {α : Sort u} (c : Bool) (a b : α) (c' : Bool) (h : c = c') :
(bif c then a else b) = bif c' then a else b
theorem Lean.Sym.Nat.lt_eq_true (a b : Nat) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.Int.lt_eq_true (a b : Int) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.Rat.lt_eq_true (a b : Rat) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.Int8.lt_eq_true (a b : Int8) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.Int16.lt_eq_true (a b : Int16) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.Int32.lt_eq_true (a b : Int32) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.Int64.lt_eq_true (a b : Int64) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.UInt8.lt_eq_true (a b : UInt8) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.UInt16.lt_eq_true (a b : UInt16) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.UInt32.lt_eq_true (a b : UInt32) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.UInt64.lt_eq_true (a b : UInt64) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.Fin.lt_eq_true {n : Nat} (a b : Fin n) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.BitVec.lt_eq_true {n : Nat} (a b : BitVec n) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.String.lt_eq_true (a b : String) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.Char.lt_eq_true (a b : Char) (h : decide (a < b) = true) :
(a < b) = True
theorem Lean.Sym.Nat.lt_eq_false (a b : Nat) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.Int.lt_eq_false (a b : Int) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.Rat.lt_eq_false (a b : Rat) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.Int8.lt_eq_false (a b : Int8) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.Int16.lt_eq_false (a b : Int16) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.Int32.lt_eq_false (a b : Int32) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.Int64.lt_eq_false (a b : Int64) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.UInt8.lt_eq_false (a b : UInt8) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.UInt16.lt_eq_false (a b : UInt16) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.UInt32.lt_eq_false (a b : UInt32) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.UInt64.lt_eq_false (a b : UInt64) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.Fin.lt_eq_false {n : Nat} (a b : Fin n) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.BitVec.lt_eq_false {n : Nat} (a b : BitVec n) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.String.lt_eq_false (a b : String) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.Char.lt_eq_false (a b : Char) (h : decide (a < b) = false) :
(a < b) = False
theorem Lean.Sym.Nat.le_eq_true (a b : Nat) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.Int.le_eq_true (a b : Int) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.Rat.le_eq_true (a b : Rat) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.Int8.le_eq_true (a b : Int8) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.Int16.le_eq_true (a b : Int16) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.Int32.le_eq_true (a b : Int32) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.Int64.le_eq_true (a b : Int64) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.UInt8.le_eq_true (a b : UInt8) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.UInt16.le_eq_true (a b : UInt16) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.UInt32.le_eq_true (a b : UInt32) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.UInt64.le_eq_true (a b : UInt64) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.Fin.le_eq_true {n : Nat} (a b : Fin n) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.BitVec.le_eq_true {n : Nat} (a b : BitVec n) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.String.le_eq_true (a b : String) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.Char.le_eq_true (a b : Char) (h : decide (a ≤ b) = true) :
(a ≤ b) = True
theorem Lean.Sym.Nat.le_eq_false (a b : Nat) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.Int.le_eq_false (a b : Int) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.Rat.le_eq_false (a b : Rat) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.Int8.le_eq_false (a b : Int8) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.Int16.le_eq_false (a b : Int16) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.Int32.le_eq_false (a b : Int32) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.Int64.le_eq_false (a b : Int64) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.UInt8.le_eq_false (a b : UInt8) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.UInt16.le_eq_false (a b : UInt16) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.UInt32.le_eq_false (a b : UInt32) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.UInt64.le_eq_false (a b : UInt64) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.Fin.le_eq_false {n : Nat} (a b : Fin n) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.BitVec.le_eq_false {n : Nat} (a b : BitVec n) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.String.le_eq_false (a b : String) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.Char.le_eq_false (a b : Char) (h : decide (a ≤ b) = false) :
(a ≤ b) = False
theorem Lean.Sym.Bool.eq_eq_true (a b : Bool) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.Nat.eq_eq_true (a b : Nat) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.Int.eq_eq_true (a b : Int) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.Rat.eq_eq_true (a b : Rat) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.Int8.eq_eq_true (a b : Int8) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.Int16.eq_eq_true (a b : Int16) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.Int32.eq_eq_true (a b : Int32) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.Int64.eq_eq_true (a b : Int64) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.UInt8.eq_eq_true (a b : UInt8) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.UInt16.eq_eq_true (a b : UInt16) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.UInt32.eq_eq_true (a b : UInt32) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.UInt64.eq_eq_true (a b : UInt64) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.Fin.eq_eq_true {n : Nat} (a b : Fin n) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.BitVec.eq_eq_true {n : Nat} (a b : BitVec n) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.Char.eq_eq_true (a b : Char) (h : decide (a = b) = true) :
(a = b) = True
theorem Lean.Sym.Bool.eq_eq_false (a b : Bool) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.Nat.eq_eq_false (a b : Nat) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.Int.eq_eq_false (a b : Int) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.Rat.eq_eq_false (a b : Rat) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.Int8.eq_eq_false (a b : Int8) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.Int16.eq_eq_false (a b : Int16) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.Int32.eq_eq_false (a b : Int32) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.Int64.eq_eq_false (a b : Int64) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.UInt8.eq_eq_false (a b : UInt8) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.UInt16.eq_eq_false (a b : UInt16) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.UInt32.eq_eq_false (a b : UInt32) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.UInt64.eq_eq_false (a b : UInt64) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.Fin.eq_eq_false {n : Nat} (a b : Fin n) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.BitVec.eq_eq_false {n : Nat} (a b : BitVec n) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.Char.eq_eq_false (a b : Char) (h : decide (a = b) = false) :
(a = b) = False
theorem Lean.Sym.Nat.dvd_eq_true (a b : Nat) (h : decide (a ∣ b) = true) :
(a ∣ b) = True
theorem Lean.Sym.Int.dvd_eq_true (a b : Int) (h : decide (a ∣ b) = true) :
(a ∣ b) = True
theorem Lean.Sym.Nat.dvd_eq_false (a b : Nat) (h : decide (a ∣ b) = false) :
(a ∣ b) = False
theorem Lean.Sym.Int.dvd_eq_false (a b : Int) (h : decide (a ∣ b) = false) :
(a ∣ b) = False
theorem Lean.Sym.decide_isTrue (p : Prop) {inst : Decidable p} {h : p} :
theorem Lean.Sym.decide_isTrue_congr (p p' : Prop) (heq : p = p') {inst : Decidable p} {hp : p'} :
theorem Lean.Sym.decide_isFalse (p : Prop) {inst : Decidable p} {h : ¬p} :
theorem Lean.Sym.decide_isFalse_congr (p p' : Prop) (heq : p = p') {inst : Decidable p} {hnp : ¬p'} :
theorem Lean.Sym.decide_eq_congr (p p' : Prop) (heq : p = p') {inst : Decidable p} {inst' : Decidable p'} {b : Bool} {h : decide p' = b} :
decide p = b
theorem Lean.Sym.decide_prop_eq_true (p : Prop) {inst : Decidable p} (h : p = True) :
theorem Lean.Sym.eq_prop_eq_and (p q : Prop) :
(p = q) = ((p → q) ∧ (q → p))
theorem Lean.Sym.iff_eq_and (p q : Prop) :
(p ↔ q) = ((p → q) ∧ (q → p))
theorem Lean.Sym.ite_eq_and (c : Prop) [Decidable c] (t e : Prop) :
(if c then t else e) = ((c → t) ∧ (¬c → e))
theorem Lean.Sym.cond_eq_and (c : Bool) (t e : Prop) :
(bif c then t else e) = ((c = true → t) ∧ (¬c = true → e))
theorem Lean.Sym.imp_eq (p q : Prop) :
(p → q) = (¬p ∨ q)
theorem Lean.Sym.exists_and_eq {α : Sort u_1} (p : α → Prop) (q : Prop) :
((∃ (x : α), p x) ∧ q) = ∃ (x : α), p x ∧ q
theorem Lean.Sym.and_exists_eq {α : Sort u_1} (p : Prop) (q : α → Prop) :
(p ∧ ∃ (x : α), q x) = ∃ (x : α), p ∧ q x
theorem Lean.Sym.exists_or_exists_eq {α : Sort u_1} (p q : α → Prop) :
((∃ (x : α), p x) ∨ ∃ (x : α), q x) = ∃ (x : α), p x ∨ q x
theorem Lean.Sym.forall_and_forall_eq {α : Sort u_1} (p q : α → Prop) :
((∀ (x : α), p x) ∧ ∀ (x : α), q x) = ∀ (x : α), p x ∧ q x
theorem Lean.Sym.forall_or_eq {α : Sort u_1} (p : α → Prop) (q : Prop) :
((∀ (x : α), p x) ∨ q) = ∀ (x : α), p x ∨ q
theorem Lean.Sym.or_forall_eq {α : Sort u_1} (p : Prop) (q : α → Prop) :
(p ∨ ∀ (x : α), q x) = ∀ (x : α), p ∨ q x
theorem Lean.Sym.forall_and_eq {α : Sort u_1} [Nonempty α] (p : α → Prop) (q : Prop) :
((∀ (x : α), p x) ∧ q) = ∀ (x : α), p x ∧ q
theorem Lean.Sym.and_forall_eq {α : Sort u_1} [Nonempty α] (p : Prop) (q : α → Prop) :
(p ∧ ∀ (x : α), q x) = ∀ (x : α), p ∧ q x
theorem Lean.Sym.exists_or_eq {α : Sort u_1} [Nonempty α] (p : α → Prop) (q : Prop) :
((∃ (x : α), p x) ∨ q) = ∃ (x : α), p x ∨ q
theorem Lean.Sym.or_exists_eq {α : Sort u_1} [Nonempty α] (p : Prop) (q : α → Prop) :
(p ∨ ∃ (x : α), q x) = ∃ (x : α), p ∨ q x