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.Group.Irreducible.Defs

18 declarations. Mathlib docs · Source

Irreducible elements in a monoid

This file defines irreducible elements of a monoid (Irreducible), as non-units that can't be written as the product of two non-units. This generalises irreducible elements of a ring. We also define the additive variant (AddIrreducible).

In decomposition monoids (e.g., ℕ, ℤ), this predicate is equivalent to Prime (see irreducible_iff_prime), however this is not true in general.

structure AddIrreducible E1 #

{M : Type u_1} → [AddMonoid M] → M → Prop

AddIrreducible p states that p is not an additive unit and cannot be written as a sum of additive non-units.

Wikidata Q2989575

ctor AddIrreducible.mk E0 #

∀ {M : Type u_1} [inst : AddMonoid M] {p : M},
  ¬IsAddUnit p → (∀ ⦃a b : M⦄, p = a + b → IsAddUnit a ∨ IsAddUnit b) → AddIrreducible p

theorem AddIrreducible.not_isAddUnit E1 #

∀ {M : Type u_1} [inst : AddMonoid M] {p : M}, AddIrreducible p → ¬IsAddUnit p

An irreducible element is not an additive unit.

theorem AddIrreducible.isAddUnit_or_isAddUnit E1 #

∀ {M : Type u_1} [inst : AddMonoid M] {p : M}, AddIrreducible p → ∀ ⦃a b : M⦄, p = a + b → IsAddUnit a ∨ IsAddUnit b

If an irreducible element can be written as a sum, then one term is an additive unit.

structure Irreducible E3 #

{M : Type u_1} → [Monoid M] → M → Prop

Irreducible p states that p is non-unit and only factors into units.

We explicitly avoid stating that p is non-zero, this would require a semiring. Assuming only a monoid allows us to reuse irreducible for associated elements.

Wikidata Q2989575

ctor Irreducible.mk E0 #

∀ {M : Type u_1} [inst : Monoid M] {p : M}, ¬IsUnit p → (∀ ⦃a b : M⦄, p = a * b → IsUnit a ∨ IsUnit b) → Irreducible p

theorem Irreducible.not_isUnit E1 #

∀ {M : Type u_1} [inst : Monoid M] {p : M}, Irreducible p → ¬IsUnit p

An irreducible element is not a unit.

theorem Irreducible.isUnit_or_isUnit E1 #

∀ {M : Type u_1} [inst : Monoid M] {p : M}, Irreducible p → ∀ ⦃a b : M⦄, p = a * b → IsUnit a ∨ IsUnit b

If an irreducible element factors, then one factor is a unit.

theorem addIrreducible_iff E0 #

∀ {M : Type u_1} [inst : AddMonoid M] {p : M},
  AddIrreducible p ↔ ¬IsAddUnit p ∧ ∀ ⦃a b : M⦄, p = a + b → IsAddUnit a ∨ IsAddUnit b

theorem irreducible_iff E0 #

∀ {M : Type u_1} [inst : Monoid M] {p : M}, Irreducible p ↔ ¬IsUnit p ∧ ∀ ⦃a b : M⦄, p = a * b → IsUnit a ∨ IsUnit b

theorem not_addIrreducible_zero E0 #

∀ {M : Type u_1} [inst : AddMonoid M], ¬AddIrreducible 0

theorem not_irreducible_one E0 #

∀ {M : Type u_1} [inst : Monoid M], ¬Irreducible 1

theorem Irreducible.ne_one E1 #

∀ {M : Type u_1} [inst : Monoid M] {p : M}, Irreducible p → p ≠ 1

theorem AddIrreducible.ne_zero E1 #

∀ {M : Type u_1} [inst : AddMonoid M] {p : M}, AddIrreducible p → p ≠ 0

theorem of_addIrreducible_add E1 #

∀ {M : Type u_1} [inst : AddMonoid M] {a b : M}, AddIrreducible (a + b) → IsAddUnit a ∨ IsAddUnit b

theorem of_irreducible_mul E1 #

∀ {M : Type u_1} [inst : Monoid M] {a b : M}, Irreducible (a * b) → IsUnit a ∨ IsUnit b

theorem irreducible_or_factor E1 #

∀ {M : Type u_1} [inst : Monoid M] {p : M}, ¬IsUnit p → Irreducible p ∨ ∃ a b, ¬IsUnit a ∧ ¬IsUnit b ∧ p = a * b

theorem addIrreducible_or_factor E1 #

∀ {M : Type u_1} [inst : AddMonoid M] {p : M},
  ¬IsAddUnit p → AddIrreducible p ∨ ∃ a b, ¬IsAddUnit a ∧ ¬IsAddUnit b ∧ p = a + b