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 / V05. Groups

Mathlib.Algebra.GroupWithZero.Prod

10 declarations and 1 deprecated aliases. Mathlib docs · Source

Products of monoids with zero, groups with zero

In this file we define MonoidWithZero, GroupWithZero, etc... instances for M₀ × N₀.

Main declarations

  • mulMonoidWithZeroHom: Multiplication bundled as a monoid with zero homomorphism.
  • divMonoidWithZeroHom: Division bundled as a monoid with zero homomorphism.

Multiplication and division as homomorphisms

instance Prod.instMulZeroClass E0 #

{M₀ : Type u_1} → {N₀ : Type u_2} → [MulZeroClass M₀] → [MulZeroClass N₀] → MulZeroClass (M₀ × N₀)

instance Prod.instSemigroupWithZero E0 #

{M₀ : Type u_1} → {N₀ : Type u_2} → [SemigroupWithZero M₀] → [SemigroupWithZero N₀] → SemigroupWithZero (M₀ × N₀)

instance Prod.instMulZeroOneClass E0 #

{M₀ : Type u_1} → {N₀ : Type u_2} → [MulZeroOneClass M₀] → [MulZeroOneClass N₀] → MulZeroOneClass (M₀ × N₀)

instance Prod.instMonoidWithZero E0 #

{M₀ : Type u_1} → {N₀ : Type u_2} → [MonoidWithZero M₀] → [MonoidWithZero N₀] → MonoidWithZero (M₀ × N₀)

instance Prod.instCommMonoidWithZero E0 #

{M₀ : Type u_1} → {N₀ : Type u_2} → [CommMonoidWithZero M₀] → [CommMonoidWithZero N₀] → CommMonoidWithZero (M₀ × N₀)

theorem WithZero.coe_withZeroUnitsEquiv E0 #

∀ (M₀ : Type u_1) [inst : GroupWithZero M₀] [inst_1 : DecidablePred fun x ↦ x = 0],
  ↑WithZero.withZeroUnitsEquiv = WithZero.lift' (Units.coeHom M₀)

def mulMonoidWithZeroHom E3 #

{M₀ : Type u_1} → [inst : CommMonoidWithZero M₀] → M₀ × M₀ →*₀ M₀

Multiplication as a multiplicative homomorphism with zero.

theorem mulMonoidWithZeroHom_apply E0 #

∀ {M₀ : Type u_1} [inst : CommMonoidWithZero M₀] (a : M₀ × M₀), mulMonoidWithZeroHom a = (↑mulMonoidHom).toFun a

def divMonoidWithZeroHom E3 #

{M₀ : Type u_1} → [inst : CommGroupWithZero M₀] → M₀ × M₀ →*₀ M₀

Division as a multiplicative homomorphism with zero.

theorem divMonoidWithZeroHom_apply E0 #

∀ {M₀ : Type u_1} [inst : CommGroupWithZero M₀] (a : M₀ × M₀), divMonoidWithZeroHom a = (↑divMonoidHom).toFun a

Deprecated aliases

NameNew nameSince
WithZero.ofClass_withZeroUnitsEquivWithZero.coe_withZeroUnitsEquiv2026-09-15