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 is prime if it is non-zero.
If a ring R
is of characteristic p
, then for any prime number q
different from p
,
it is not zero in R
.
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.
Exponential characteristic #
This section defines the exponential characteristic, which is defined to be 1 for a ring with characteristic 0 and the same as the ordinary characteristic, if the ordinary characteristic is prime. This concept is useful to simplify some theorem statements. This file establishes a few basic results relating it to the (ordinary characteristic). The definition is stated for a semiring, but the actual results are for nontrivial rings (as far as exponential characteristic one is concerned), respectively a ring without zero-divisors (for prime characteristic).
The definition of the exponential characteristic of a semiring.
- zero: ∀ {R : Type u_1} [inst : AddMonoidWithOne R] [inst_1 : CharZero R], ExpChar R 1
- prime: ∀ {R : Type u_1} [inst : AddMonoidWithOne R] {q : ℕ}, Nat.Prime q → ∀ [hchar : CharP R q], ExpChar R q
Instances
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
The exponential characteristic is unique.
The exponential characteristic is one if the characteristic is zero.
The exponential characteristic is a prime number or one.
See also CharP.char_is_prime_or_zero
.
The exponential characteristic is positive.
Any power of the exponential characteristic is positive.
Noncomputable function that outputs the unique exponential characteristic of a semiring.
Equations
- ringExpChar R = max (ringChar R) 1
Instances For
The exponential characteristic is one if the characteristic is zero.
The characteristic is zero if the exponential characteristic is one.
The exponential characteristic is one iff the characteristic is zero.
Equations
- ⋯ = ⋯