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.Prime.Defs

25 declarations and 1 deprecated aliases. Mathlib docs · Source

Prime elements

In this file we define the predicate Prime p saying that an element of a commutative monoid with zero is prime. Namely, Prime p means that p isn't zero, it isn't a unit, and p ∣ a * b → p ∣ a ∨ p ∣ b for all a, b;

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

Main definitions

  • Prime: a prime element of a commutative monoid with zero

Main results

  • irreducible_iff_prime: the two definitions are equivalent in a decomposition monoid.

def Prime E3 #

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

An element p of a commutative monoid with zero (e.g., a ring) is called prime, if it's not zero, not a unit, and p ∣ a * b → p ∣ a ∨ p ∣ b for all a, b.

theorem Prime.ne_zero E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M}, Prime p → p ≠ 0

theorem Prime.not_isUnit E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M}, Prime p → ¬IsUnit p

theorem Prime.not_dvd_one E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M}, Prime p → ¬p ∣ 1

theorem Prime.ne_one E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M}, Prime p → p ≠ 1

theorem Prime.dvd_or_dvd E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M}, Prime p → ∀ {a b : M}, p ∣ a * b → p ∣ a ∨ p ∣ b

theorem Prime.dvd_mul E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M}, Prime p → ∀ {a b : M}, p ∣ a * b ↔ p ∣ a ∨ p ∣ b

theorem Prime.isPrimal E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M}, Prime p → IsPrimal p

theorem Prime.not_dvd_mul E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M}, Prime p → ∀ {a b : M}, ¬p ∣ a → ¬p ∣ b → ¬p ∣ a * b

theorem Prime.dvd_of_dvd_pow E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M}, Prime p → ∀ {a : M} {n : ℕ}, p ∣ a ^ n → p ∣ a

theorem Prime.dvd_pow_iff_dvd E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {p : M}, Prime p → ∀ {a : M} {n : ℕ}, n ≠ 0 → (p ∣ a ^ n ↔ p ∣ a)

theorem not_prime_zero E0 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M], ¬Prime 0

theorem not_prime_one E0 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M], ¬Prime 1

theorem Irreducible.not_dvd_isUnit E1 #

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

theorem Irreducible.not_dvd_one E1 #

∀ {M : Type u_1} [inst : CommMonoid M] {p : M}, Irreducible p → ¬p ∣ 1

theorem Irreducible.not_dvd_unit E1 #

∀ {M : Type u_1} [inst : CommMonoid M] {p : M} (u : Mˣ), Irreducible p → ¬p ∣ ↑u

theorem Irreducible.isUnit_of_mul_self_dvd E1 #

∀ {M : Type u_1} [inst : CommMonoid M] {p a : M}, Irreducible p → a * a ∣ p → IsUnit a

theorem not_irreducible_zero E0 #

∀ {M : Type u_1} [inst : MonoidWithZero M], ¬Irreducible 0

theorem Irreducible.ne_zero E1 #

∀ {M : Type u_1} [inst : MonoidWithZero M] {p : M}, Irreducible p → p ≠ 0

theorem Irreducible.dvd_symm E1 #

∀ {M : Type u_1} [inst : Monoid M] {p q : M}, Irreducible p → Irreducible q → p ∣ q → q ∣ p

If p and q are irreducible, then p ∣ q implies q ∣ p.

theorem Irreducible.dvd_comm E1 #

∀ {M : Type u_1} [inst : Monoid M] {p q : M}, Irreducible p → Irreducible q → (p ∣ q ↔ q ∣ p)

theorem Irreducible.prime_of_isPrimal E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] {a : M}, Irreducible a → IsPrimal a → Prime a

theorem Irreducible.prime E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] [DecompositionMonoid M] {a : M}, Irreducible a → Prime a

theorem Prime.irreducible E1 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] [IsCancelMulZero M] {p : M}, Prime p → Irreducible p

theorem irreducible_iff_prime E3 #

∀ {M : Type u_1} [inst : CommMonoidWithZero M] [IsCancelMulZero M] [DecompositionMonoid M] {a : M},
  Irreducible a ↔ Prime a

Deprecated aliases

NameNew nameSince
Prime.not_unitPrime.not_isUnit2026-08-02