The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.Ring.Commute
46 declarations. Mathlib docs · Source
theorem Commute.add_right E0 #
∀ {R : Type u} [inst : Distrib R] {a b c : R}, Commute a b → Commute a c → Commute a (b + c)
theorem Commute.add_left E0 #
∀ {R : Type u} [inst : Distrib R] {a b c : R}, Commute a c → Commute b c → Commute (a + b) c
theorem Commute.mul_self_sub_mul_self_eq E0 #
∀ {R : Type u} [inst : NonUnitalNonAssocRing R] {a b : R}, Commute a b → a * a - b * b = (a + b) * (a - b)
Representation of a difference of two squares of commuting elements as a product.
theorem Commute.mul_self_sub_mul_self_eq' E1 #
∀ {R : Type u} [inst : NonUnitalNonAssocRing R] {a b : R}, Commute a b → a * a - b * b = (a - b) * (a + b)
theorem Commute.mul_self_eq_mul_self_iff E0 #
∀ {R : Type u} [inst : NonUnitalNonAssocRing R] [NoZeroDivisors R] {a b : R},
Commute a b → (a * a = b * b ↔ a = b ∨ a = -b)
theorem Commute.neg_right E1 #
∀ {R : Type u} [inst : Mul R] [inst_1 : HasDistribNeg R] {a b : R}, Commute a b → Commute a (-b)
theorem Commute.neg_right_iff E0 #
∀ {R : Type u} [inst : Mul R] [inst_1 : HasDistribNeg R] {a b : R}, Commute a (-b) ↔ Commute a b
theorem Commute.neg_left E1 #
∀ {R : Type u} [inst : Mul R] [inst_1 : HasDistribNeg R] {a b : R}, Commute a b → Commute (-a) b
theorem Commute.neg_left_iff E0 #
∀ {R : Type u} [inst : Mul R] [inst_1 : HasDistribNeg R] {a b : R}, Commute (-a) b ↔ Commute a b
theorem Commute.neg_one_right E1 #
∀ {R : Type u} [inst : MulOneClass R] [inst_1 : HasDistribNeg R] (a : R), Commute a (-1)
theorem Commute.neg_one_left E1 #
∀ {R : Type u} [inst : MulOneClass R] [inst_1 : HasDistribNeg R] (a : R), Commute (-1) a
theorem Commute.sub_right E0 #
∀ {R : Type u} [inst : NonUnitalNonAssocRing R] {a b c : R}, Commute a b → Commute a c → Commute a (b - c)
theorem Commute.sub_left E0 #
∀ {R : Type u} [inst : NonUnitalNonAssocRing R] {a b c : R}, Commute a c → Commute b c → Commute (a - b) c
theorem Commute.add_sq E1 #
∀ {R : Type u} [inst : Semiring R] {a b : R}, Commute a b → (a + b) ^ 2 = a ^ 2 + 2 * a * b + b ^ 2
theorem Commute.sq_sub_sq E1 #
∀ {R : Type u} [inst : Ring R] {a b : R}, Commute a b → a ^ 2 - b ^ 2 = (a + b) * (a - b)
theorem Commute.sub_sq E1 #
∀ {R : Type u} [inst : Ring R] {a b : R}, Commute a b → (a - b) ^ 2 = a ^ 2 - 2 * a * b + b ^ 2
theorem Commute.sq_eq_sq_iff_eq_or_eq_neg E1 #
∀ {R : Type u} [inst : Ring R] {a b : R} [NoZeroDivisors R], Commute a b → (a ^ 2 = b ^ 2 ↔ a = b ∨ a = -b)
theorem neg_one_pow_eq_or E1 #
∀ (R : Type u) [inst : Monoid R] [inst_1 : HasDistribNeg R] (n : ℕ), (-1) ^ n = 1 ∨ (-1) ^ n = -1
theorem neg_pow E1 #
∀ {R : Type u} [inst : Monoid R] [inst_1 : HasDistribNeg R] (a : R) (n : ℕ), (-a) ^ n = (-1) ^ n * a ^ n
theorem neg_pow' E1 #
∀ {R : Type u} [inst : Monoid R] [inst_1 : HasDistribNeg R] (a : R) (n : ℕ), (-a) ^ n = a ^ n * (-1) ^ n
theorem neg_sq E1 #
∀ {R : Type u} [inst : Monoid R] [inst_1 : HasDistribNeg R] (a : R), (-a) ^ 2 = a ^ 2
theorem neg_one_sq E1 #
∀ {R : Type u} [inst : Monoid R] [inst_1 : HasDistribNeg R], (-1) ^ 2 = 1
theorem neg_pow_two E1 #
∀ {R : Type u} [inst : Monoid R] [inst_1 : HasDistribNeg R] (a : R), (-a) ^ 2 = a ^ 2
Alias of neg_sq.
theorem neg_one_pow_two E1 #
∀ {R : Type u} [inst : Monoid R] [inst_1 : HasDistribNeg R], (-1) ^ 2 = 1
Alias of neg_one_sq.
theorem neg_one_pow_mul_eq_zero_iff E0 #
∀ {R : Type u} [inst : Ring R] {a : R} {n : ℕ}, (-1) ^ n * a = 0 ↔ a = 0
theorem mul_neg_one_pow_eq_zero_iff E0 #
∀ {R : Type u} [inst : Ring R] {a : R} {n : ℕ}, a * (-1) ^ n = 0 ↔ a = 0
theorem neg_one_pow_eq_pow_mod_two E1 #
∀ {R : Type u} [inst : Ring R] (n : ℕ), (-1) ^ n = (-1) ^ (n % 2)
theorem sq_eq_one_iff E0 #
∀ {R : Type u} [inst : Ring R] {a : R} [NoZeroDivisors R], a ^ 2 = 1 ↔ a = 1 ∨ a = -1
theorem sq_ne_one_iff E0 #
∀ {R : Type u} [inst : Ring R] {a : R} [NoZeroDivisors R], a ^ 2 ≠ 1 ↔ a ≠ 1 ∧ a ≠ -1
theorem mul_self_sub_mul_self E1 #
∀ {R : Type u} [inst : NonUnitalNonAssocCommRing R] (a b : R), a * a - b * b = (a + b) * (a - b)
Representation of a difference of two squares in a commutative ring as a product.
theorem mul_self_sub_one E1 #
∀ {R : Type u} [inst : NonAssocRing R] (a : R), a * a - 1 = (a + 1) * (a - 1)
theorem mul_self_eq_mul_self_iff E0 #
∀ {R : Type u} [inst : NonUnitalNonAssocCommRing R] [NoZeroDivisors R] {a b : R}, a * a = b * b ↔ a = b ∨ a = -b
theorem mul_self_eq_one_iff E0 #
∀ {R : Type u} [inst : NonAssocRing R] [NoZeroDivisors R] {a : R}, a * a = 1 ↔ a = 1 ∨ a = -1
theorem sq_sub_sq E1 #
∀ {R : Type u} [inst : CommRing R] (a b : R), a ^ 2 - b ^ 2 = (a + b) * (a - b)
theorem pow_two_sub_pow_two E1 #
∀ {R : Type u} [inst : CommRing R] (a b : R), a ^ 2 - b ^ 2 = (a + b) * (a - b)
Alias of sq_sub_sq.
theorem sub_sq E1 #
∀ {R : Type u} [inst : CommRing R] (a b : R), (a - b) ^ 2 = a ^ 2 - 2 * a * b + b ^ 2
theorem sub_pow_two E1 #
∀ {R : Type u} [inst : CommRing R] (a b : R), (a - b) ^ 2 = a ^ 2 - 2 * a * b + b ^ 2
Alias of sub_sq.
theorem sub_sq' E1 #
∀ {R : Type u} [inst : CommRing R] (a b : R), (a - b) ^ 2 = a ^ 2 + b ^ 2 - 2 * a * b
theorem sub_sq_comm E1 #
∀ {R : Type u} [inst : CommRing R] (a b : R), (a - b) ^ 2 = (b - a) ^ 2
theorem sq_eq_sq_iff_eq_or_eq_neg E1 #
∀ {R : Type u} [inst : CommRing R] [NoZeroDivisors R] {a b : R}, a ^ 2 = b ^ 2 ↔ a = b ∨ a = -b
theorem Units.sq_eq_sq_iff_eq_or_eq_neg E1 #
∀ {R : Type u} [inst : CommRing R] [NoZeroDivisors R] {a b : Rˣ}, a ^ 2 = b ^ 2 ↔ a = b ∨ a = -b
theorem Units.inv_eq_self_iff E0 #
∀ {R : Type u} [inst : Ring R] [NoZeroDivisors R] (u : Rˣ), u⁻¹ = u ↔ u = 1 ∨ u = -1
In the unit group of an integral domain, a unit is its own inverse iff the unit is one or one's additive inverse.
instance Ring.instBracket E0 #
{R : Type u} → [NonUnitalNonAssocRing R] → Bracket R R
theorem Ring.lie_def E0 #
∀ {R : Type u} [inst : NonUnitalNonAssocRing R] (x y : R), ⁅x, y⁆ = x * y - y * x
theorem commute_iff_lie_eq E0 #
∀ {R : Type u} [inst : NonUnitalNonAssocRing R] {x y : R}, Commute x y ↔ ⁅x, y⁆ = 0
theorem Commute.lie_eq E0 #
∀ {R : Type u} [inst : NonUnitalNonAssocRing R] {x y : R}, Commute x y → ⁅x, y⁆ = 0