The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.Algebra.MonoidAlgebra.NoZeroDivisors

12 declarations and 1 deprecated aliases. Mathlib docs · Source

Variations on non-zero divisors in AddMonoidAlgebras

This file studies the interaction between typeclass assumptions on two Types R and A and whether R[A] has non-zero zero-divisors. For some background on related questions, see Kaplansky's Conjectures, especially the zero divisor conjecture.

Conjecture. Let K be a field, and G a torsion-free group. The group ring K[G] does not contain nontrivial zero divisors, that is, it is a domain.

In this file we show that if R satisfies NoZeroDivisors and A is a grading type satisfying UniqueProds A (resp. UniqueSums A), then MonoidAlgebra R A (resp. AddMonoidAlgebra R A) also satisfies NoZeroDivisors.

Because of the instances to UniqueProds/Sums, we obtain a formalization of the well-known result that if R is a field and A is a left-ordered group, then R[A] contains no non-zero zero-divisors. The actual assumptions on R are weaker.

Main results

  • MonoidAlgebra.mul_apply_mul_eq_mul_of_uniqueMul and AddMonoidAlgebra.mul_apply_add_eq_mul_of_uniqueAdd general sufficient results stating that certain monomials in a product have as coefficient a product of coefficients of the factors.
  • The instance showing that Semiring R, NoZeroDivisors R, Mul A, UniqueProds A imply NoZeroDivisors R[A].
  • The instance showing that Semiring R, NoZeroDivisors R, Add A, UniqueSums A imply NoZeroDivisors R[A].

TODO: move the rest of the docs to UniqueProds?

  • NoZeroDivisors.of_left_ordered shows that if R is a semiring with no non-zero zero-divisors, A is a linearly ordered, add right cancel semigroup with strictly monotone left addition, then R[A] has no non-zero zero-divisors.
  • NoZeroDivisors.of_right_ordered shows that if R is a semiring with no non-zero zero-divisors, A is a linearly ordered, add left cancel semigroup with strictly monotone right addition, then R[A] has no non-zero zero-divisors.

The conditions on A imposed in NoZeroDivisors.of_left_ordered are sometimes referred to as left-ordered. The conditions on A imposed in NoZeroDivisors.of_right_ordered are sometimes referred to as right-ordered.

These conditions are sufficient, but not necessary. As mentioned above, Kaplansky's Conjecture asserts that A being torsion-free may be enough.

theorem MonoidAlgebra.coeff_mul_mul_of_uniqueMul E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [inst_1 : Mul A] {f g : MonoidAlgebra R A} {a0 b0 : A},
  UniqueMul f.coeff.support g.coeff.support a0 b0 → (f * g).coeff (a0 * b0) = f.coeff a0 * g.coeff b0

The coefficient of a monomial in a product f * g that can be reached in at most one way as a product of monomials in the supports of f and g is a product.

theorem AddMonoidAlgebra.coeff_mul_add_of_uniqueAdd E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [inst_1 : Add A] {f g : AddMonoidAlgebra R A} {a0 b0 : A},
  UniqueAdd f.coeff.support g.coeff.support a0 b0 → (f * g).coeff (a0 + b0) = f.coeff a0 * g.coeff b0

The coefficient of a monomial in a product f * g that can be reached in at most one way as a product of monomials in the supports of f and g is a product.

instance AddMonoidAlgebra.instNoZeroDivisorsOfUniqueSums E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [NoZeroDivisors R] [inst_2 : Add A] [UniqueSums A],
  NoZeroDivisors (AddMonoidAlgebra R A)

instance MonoidAlgebra.instNoZeroDivisorsOfUniqueProds E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [NoZeroDivisors R] [inst_2 : Mul A] [UniqueProds A],
  NoZeroDivisors (MonoidAlgebra R A)

instance AddMonoidAlgebra.instIsLeftCancelAddZeroOfIsCancelAddOfUniqueSums E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [IsCancelAdd R] [IsLeftCancelMulZero R] [inst_3 : Add A]
  [UniqueSums A], IsLeftCancelMulZero (AddMonoidAlgebra R A)

instance MonoidAlgebra.instIsLeftCancelMulZeroOfIsCancelAddOfUniqueProds E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [IsCancelAdd R] [IsLeftCancelMulZero R] [inst_3 : Mul A]
  [UniqueProds A], IsLeftCancelMulZero (MonoidAlgebra R A)

instance AddMonoidAlgebra.instIsRightCancelAddZeroOfIsCancelAddOfUniqueSums E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [IsCancelAdd R] [IsRightCancelMulZero R] [inst_3 : Add A]
  [UniqueSums A], IsRightCancelMulZero (AddMonoidAlgebra R A)

instance MonoidAlgebra.instIsRightCancelMulZeroOfIsCancelAddOfUniqueProds E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [IsCancelAdd R] [IsRightCancelMulZero R] [inst_3 : Mul A]
  [UniqueProds A], IsRightCancelMulZero (MonoidAlgebra R A)

instance AddMonoidAlgebra.instIsCancelAddZeroOfIsCancelAddOfUniqueSums E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [IsCancelAdd R] [IsCancelMulZero R] [inst_3 : Add A] [UniqueSums A],
  IsCancelMulZero (AddMonoidAlgebra R A)

instance MonoidAlgebra.instIsCancelMulZeroOfIsCancelAddOfUniqueProds E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [IsCancelAdd R] [IsCancelMulZero R] [inst_3 : Mul A]
  [UniqueProds A], IsCancelMulZero (MonoidAlgebra R A)

instance MonoidAlgebra.instIsDomainOfIsCancelAddOfUniqueProds E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [IsCancelAdd R] [IsDomain R] [inst_3 : Monoid A] [UniqueProds A],
  IsDomain (MonoidAlgebra R A)

instance AddMonoidAlgebra.instIsDomainOfIsCancelAddOfUniqueSums E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Semiring R] [IsCancelAdd R] [IsDomain R] [inst_3 : AddMonoid A] [UniqueSums A],
  IsDomain (AddMonoidAlgebra R A)

Deprecated aliases

NameNew nameSince
MonoidAlgebra.mul_apply_mul_eq_mul_of_uniqueMulMonoidAlgebra.coeff_mul_mul_of_uniqueMul2026-06-18