The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.Ring.Idempotent
20 declarations. Mathlib docs · Source
Idempotent elements of a ring
This file proves result about idempotent elements of a ring, like:
IsIdempotentElem.one_sub_iff: In a (non-associative) ring,ais an idempotent if and only if1 - ais an idempotent.
theorem IsIdempotentElem.one_sub E1 #
∀ {R : Type u_1} [inst : NonAssocRing R] {a : R}, IsIdempotentElem a → IsIdempotentElem (1 - a)
theorem IsIdempotentElem.one_sub_iff E0 #
∀ {R : Type u_1} [inst : NonAssocRing R] {a : R}, IsIdempotentElem (1 - a) ↔ IsIdempotentElem a
theorem IsIdempotentElem.mul_one_sub_self E0 #
∀ {R : Type u_1} [inst : NonAssocRing R] {a : R}, IsIdempotentElem a → a * (1 - a) = 0
theorem IsIdempotentElem.one_sub_mul_self E0 #
∀ {R : Type u_1} [inst : NonAssocRing R] {a : R}, IsIdempotentElem a → (1 - a) * a = 0
theorem isIdempotentElem_iff_mul_one_sub_self E1 #
∀ {R : Type u_1} [inst : NonAssocRing R] {a : R}, IsIdempotentElem a ↔ a * (1 - a) = 0
theorem isIdempotentElem_iff_one_sub_mul_self E1 #
∀ {R : Type u_1} [inst : NonAssocRing R] {a : R}, IsIdempotentElem a ↔ (1 - a) * a = 0
instance IsIdempotentElem.instComplSubtype E0 #
{R : Type u_1} → [inst : NonAssocRing R] → Compl { a // IsIdempotentElem a }
theorem IsIdempotentElem.coe_compl E0 #
∀ {R : Type u_1} [inst : NonAssocRing R] (a : { a // IsIdempotentElem a }), ↑aᶜ = 1 - ↑a
theorem IsIdempotentElem.compl_compl E0 #
∀ {R : Type u_1} [inst : NonAssocRing R] (a : { a // IsIdempotentElem a }), aᶜᶜ = a
theorem IsIdempotentElem.zero_compl E0 #
∀ {R : Type u_1} [inst : NonAssocRing R], 0ᶜ = 1
theorem IsIdempotentElem.one_compl E0 #
∀ {R : Type u_1} [inst : NonAssocRing R], 1ᶜ = 0
theorem IsIdempotentElem.of_mul_add E1 #
∀ {R : Type u_1} [inst : Semiring R] {a b : R}, a * b = 0 → a + b = 1 → IsIdempotentElem a ∧ IsIdempotentElem b
theorem IsIdempotentElem.add_sub_mul_of_commute E1 #
∀ {R : Type u_1} [inst : NonUnitalRing R] {a b : R},
Commute a b → IsIdempotentElem a → IsIdempotentElem b → IsIdempotentElem (a + b - a * b)
theorem IsIdempotentElem.add_sub_mul E1 #
∀ {R : Type u_1} [inst : CommRing R] {a b : R},
IsIdempotentElem a → IsIdempotentElem b → IsIdempotentElem (a + b - a * b)
theorem IsIdempotentElem.add E1 #
∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] {a b : R},
IsIdempotentElem a → IsIdempotentElem b → a * b + b * a = 0 → IsIdempotentElem (a + b)
a + b is idempotent when a and b anti-commute.
theorem IsIdempotentElem.add_iff E0 #
∀ {R : Type u_1} [inst : NonUnitalNonAssocSemiring R] [IsCancelAdd R] {a b : R},
IsIdempotentElem a → IsIdempotentElem b → (IsIdempotentElem (a + b) ↔ a * b + b * a = 0)
a + b is idempotent if and only if a and b anti-commute.
theorem IsIdempotentElem.sub E1 #
∀ {R : Type u_1} [inst : NonUnitalNonAssocRing R] {a b : R},
IsIdempotentElem a → IsIdempotentElem b → a * b = a → b * a = a → IsIdempotentElem (b - a)
b - a is idempotent when a * b = a and b * a = a.
theorem IsIdempotentElem.mul_eq_zero_of_anticommute E1 #
∀ {R : Type u_1} {a b : R} [inst : NonUnitalSemiring R] [HasUniqueDiv R],
IsIdempotentElem a → a * b + b * a = 0 → a * b = 0
If idempotent a and element b anti-commute, then their product is zero.
theorem IsIdempotentElem.commute_of_anticommute E1 #
∀ {R : Type u_1} {a b : R} [inst : NonUnitalSemiring R] [HasUniqueDiv R],
IsIdempotentElem a → a * b + b * a = 0 → Commute a b
If idempotent a and element b anti-commute, then they commute.
So anti-commutativity implies commutativity when one of them is idempotent.
theorem IsIdempotentElem.sub_iff E0 #
∀ {R : Type u_1} [inst : NonUnitalRing R] [HasUniqueDiv R] {p q : R},
IsIdempotentElem p → IsIdempotentElem q → (IsIdempotentElem (q - p) ↔ p * q = p ∧ q * p = p)