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 0asks that only0 : ℕmaps to0 : Runder the mapℕ → R;CharZero Rrequires 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
- ⋯ = ⋯
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.