Associated, prime, and irreducible 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
,
however this is not true in general.
We also define an equivalence relation Associated
saying that two elements of a monoid differ by a multiplication by a unit.
Then we show that the quotient type Associates
is a monoid
and prove basic properties of this quotient.
Irreducibility is preserved by multiplicative equivalences.
Note that surjective + local hom is not enough. Consider the additive monoids M = ℕ ⊕ ℕ
, N = ℕ
,
with a surjective local (additive) hom f : M →+ N
sending (m, n)
to 2m + n
.
It is local because the only add unit in N
is 0
, with preimage {(0, 0)}
also an add unit.
Then x = (1, 0)
is irreducible in M
, but f x = 2 = 1 + 1
is not irreducible in N
.
Alias of pow_injective_of_not_isUnit
.