Characteristic of semirings #
The generator of the kernel of the unique homomorphism ℕ → R for a semiring R.
Warning: for a semiring R
, CharP R 0
and CharZero R
need not coincide.
CharP R 0
asks that only0 : ℕ
maps to0 : R
under the mapℕ → R
;CharZero R
requires an injectionℕ ↪ R
.
For instance, endowing {0, 1}
with addition given by max
(i.e. 1
is absorbing), shows that
CharZero {0, 1}
does not hold and yet CharP {0, 1} 0
does.
This example is formalized in Counterexamples/CharPZeroNeCharZero.lean
.
Instances
Equations
- ⋯ = ⋯
Noncomputable function that outputs the unique characteristic of a semiring.
Equations
Instances For
Equations
- ⋯ = ⋯
The characteristic of a finite ring cannot be zero.
We have 2 ≠ 0
in a nontrivial ring whose characteristic is not 2
.
Characteristic ≠ 2
and nontrivial implies that -1 ≠ 1
.
Characteristic ≠ 2
in a domain implies that -a = a
iff a = 0
.
The characteristic of the product of rings is the least common multiple of the characteristics of the two rings.
Equations
- ⋯ = ⋯
The characteristic of the product of two rings of the same characteristic is the same as the characteristic of the rings
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
If two integers from {0, 1, -1}
result in equal elements in a ring R
that is nontrivial and of characteristic not 2
, then they are equal.