The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.CharZero.Defs
19 declarations. Mathlib docs · Source
Characteristic zero
A ring R is called of characteristic zero if every natural number n is non-zero when considered
as an element of R. Since this definition doesn't mention the multiplicative structure of R
except for the existence of 1 in this file characteristic zero is defined for additive monoids
with 1.
Main definition
CharZero is the typeclass of an additive monoid with one such that the natural homomorphism
from the natural numbers into it is injective.
TODO
- Unify with
CharP(possibly using an out-parameter)
class CharZero E3 #
(R : Type u_1) → [AddMonoidWithOne R] → Prop
Typeclass for monoids with characteristic zero. (This is usually stated on fields but it makes sense for any additive monoid with 1.)
Warning: for a semiring R, CharZero R and CharP R 0 need not coincide.
CharZero Rrequires an injectionℕ ↪ R;CharP R 0asks that only0 : ℕmaps to0 : Runder the mapℕ → R. For instance, endowing{0, 1}with addition given bymax(i.e.1is absorbing), shows thatCharZero {0, 1}does not hold and yetCharP {0, 1} 0does. This example is formalized inCounterexamples/CharPZeroNeCharZero.lean.
ctor CharZero.mk E0 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R], Function.Injective Nat.cast → CharZero R
theorem CharZero.cast_injective E1 #
∀ {R : Type u_1} {inst : AddMonoidWithOne R} [self : CharZero R], Function.Injective Nat.cast
An additive monoid with one has characteristic zero if the canonical map ℕ → R is
injective.
theorem charZero_of_inj_zero E1 #
∀ {R : Type u_1} [inst : AddGroupWithOne R], (∀ (n : ℕ), ↑n = 0 → n = 0) → CharZero R
theorem Nat.cast_injective E1 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R], Function.Injective Nat.cast
theorem Nat.cast_inj E0 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R] {m n : ℕ}, ↑m = ↑n ↔ m = n
theorem Nat.cast_eq_zero E0 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R] {n : ℕ}, ↑n = 0 ↔ n = 0
theorem Nat.cast_ne_zero E1 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R] {n : ℕ}, ↑n ≠ 0 ↔ n ≠ 0
theorem Nat.cast_add_one_ne_zero E1 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R] (n : ℕ), ↑n + 1 ≠ 0
theorem Nat.cast_eq_one E0 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R] {n : ℕ}, ↑n = 1 ↔ n = 1
theorem Nat.cast_ne_one E1 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R] {n : ℕ}, ↑n ≠ 1 ↔ n ≠ 1
theorem OfNat.ofNat_ne_zero E0 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R] (n : ℕ) [inst_2 : n.AtLeastTwo], OfNat.ofNat n ≠ 0
theorem OfNat.zero_ne_ofNat E0 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R] (n : ℕ) [inst_2 : n.AtLeastTwo], 0 ≠ OfNat.ofNat n
theorem OfNat.ofNat_ne_one E0 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R] (n : ℕ) [inst_2 : n.AtLeastTwo], OfNat.ofNat n ≠ 1
theorem OfNat.one_ne_ofNat E0 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R] (n : ℕ) [inst_2 : n.AtLeastTwo], 1 ≠ OfNat.ofNat n
theorem OfNat.ofNat_eq_ofNat E0 #
∀ {R : Type u_1} [inst : AddMonoidWithOne R] [CharZero R] {m n : ℕ} [inst_2 : m.AtLeastTwo] [inst_3 : n.AtLeastTwo],
OfNat.ofNat m = OfNat.ofNat n ↔ OfNat.ofNat m = OfNat.ofNat n
instance NeZero.charZero E0 #
∀ {M : Type u_2} {n : ℕ} [NeZero n] [inst : AddMonoidWithOne M] [CharZero M], NeZero ↑n
instance NeZero.charZero_one E0 #
∀ {M : Type u_2} [inst : AddMonoidWithOne M] [CharZero M], NeZero 1
instance NeZero.charZero_ofNat E0 #
∀ {M : Type u_2} {n : ℕ} [inst : n.AtLeastTwo] [inst_1 : AddMonoidWithOne M] [CharZero M], NeZero (OfNat.ofNat n)