The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.CharP.MixedCharZero
13 declarations. Mathlib docs · Source
Equal and mixed characteristic
In commutative algebra, some statements are simpler when working over a ℚ-algebra R, in which
case one also says that the ring has "equal characteristic zero". A ring that is not a
ℚ-algebra has either positive characteristic or there exists a prime ideal I ⊂ R such that
the quotient R ⧸ I has positive characteristic p > 0. In this case one speaks of
"mixed characteristic (0, p)", where p is only unique if R is local.
Examples of mixed characteristic rings are ℤ or the p-adic integers/numbers.
This file provides the main theorem split_by_characteristic that splits any proposition P into
the following three cases:
- Positive characteristic:
CharP R p(wherep ≠ 0) - Equal characteristic zero:
Algebra ℚ R - Mixed characteristic:
MixedCharZero R p(wherepis prime)
Main definitions
MixedCharZero: A ring has mixed characteristic(0, p)if it has characteristic zero and there exists an ideal such that the quotientR ⧸ Ihas characteristicp.
Main results
split_equalCharZero_mixedCharZero: Split a statement into equal/mixed characteristic zero.
This main theorem has the following three corollaries which include the positive characteristic case for convenience:
split_by_characteristic: Generally consider positive charp ≠ 0.split_by_characteristic_domain: In a domain we can assume thatpis prime.split_by_characteristic_localRing: In a local ring we can assume thatpis a prime power.
Implementation notes
We use the terms EqualCharZero and AlgebraRat despite there not being any such definitions
in mathlib.
The former refers to the statement ∀ I : Ideal R, I ≠ ⊤ → CharZero (R ⧸ I), the latter
refers to the existence of an instance [Algebra ℚ R]. The two are shown to be
equivalent conditions.
TODO
- Relate mixed characteristic in a local ring to p-adic numbers [NumberTheory.PAdics].
Mixed characteristic
Equal characteristic zero
A commutative ring R has "equal characteristic zero" if it satisfies one of the following
equivalent properties:
Ris aℚ-algebra.- The quotient
R ⧸ Ihas characteristic zero for any proper idealI ⊂ R. Rhas characteristic zero and does not have mixed characteristic for any primep.
We show (1) ↔ (2) ↔ (3), and most of the following is concerned with constructing
an explicit algebra map ℚ →+* R (given by x ↦ (x.num : R) /ₚ ↑x.pnatDen)
for the direction (1) ← (2).
Note: Property (2) is denoted as EqualCharZero in the statement names below.
The construction of the algebra map ℚ →+* R (given by x ↦ (x.num : R) /ₚ ↑x.pnatDen)
is marked private as it is considered an implementation detail.
Splitting statements into different characteristic
Statements to split a proof by characteristic. There are 3 theorems here that are very
similar. They only differ in the assumptions we can make on the positive characteristic
case:
Generally we need to consider all p ≠ 0, but if R is a local ring, we can assume
that p is a prime power. And if R is a domain, we can even assume that p is prime.
class MixedCharZero E3 #
(R : Type u_1) → [CommRing R] → ℕ → Prop
A ring of characteristic zero is of "mixed characteristic (0, p)" if there exists an ideal
such that the quotient R ⧸ I has characteristic p.
Remark: For p = 0, MixedChar R 0 is a meaningless definition (i.e. satisfied by any ring)
as R ⧸ ⊥ ≅ R has by definition always characteristic zero.
One could require (I ≠ ⊥) in the definition, but then MixedChar R 0 would mean something
like ℤ-algebra of extension degree ≥ 1 and would be completely independent from
whether something is a ℚ-algebra or not (e.g. ℚ[X] would satisfy it but ℚ wouldn't).
ctor MixedCharZero.mk E0 #
∀ {R : Type u_1} [inst : CommRing R] {p : ℕ} [toCharZero : CharZero R],
(∃ I, I ≠ ⊤ ∧ CharP (R ⧸ I) p) → MixedCharZero R p
theorem MixedCharZero.toCharZero E1 #
∀ {R : Type u_1} {inst : CommRing R} (p : ℕ) [self : MixedCharZero R p], CharZero R
theorem MixedCharZero.charP_quotient E1 #
∀ {R : Type u_1} {inst : CommRing R} {p : ℕ} [self : MixedCharZero R p], ∃ I, I ≠ ⊤ ∧ CharP (R ⧸ I) p
theorem MixedCharZero.reduce_to_p_prime E1 #
∀ (R : Type u_1) [inst : CommRing R] {P : Prop},
(∀ p > 0, MixedCharZero R p → P) ↔ ∀ (p : ℕ), Nat.Prime p → MixedCharZero R p → P
Reduction to p prime: When proving any statement P about mixed characteristic rings we
can always assume that p is prime.
theorem MixedCharZero.reduce_to_maximal_ideal E1 #
∀ (R : Type u_1) [inst : CommRing R] {p : ℕ},
Nat.Prime p → ((∃ I, I ≠ ⊤ ∧ CharP (R ⧸ I) p) ↔ ∃ I, I.IsMaximal ∧ CharP (R ⧸ I) p)
Reduction to I prime ideal: When proving statements about mixed characteristic rings,
after we reduced to p prime, we can assume that the ideal I in the definition is maximal.
theorem EqualCharZero.iff_not_mixedCharZero E1 #
∀ (R : Type u_1) [inst : CommRing R] [CharZero R],
(∀ (I : Ideal R), I ≠ ⊤ → CharZero (R ⧸ I)) ↔ ∀ p > 0, ¬MixedCharZero R p
A ring of characteristic zero has equal characteristic iff it does not
have mixed characteristic for any p.
theorem EqualCharZero.nonempty_algebraRat_iff E0 #
∀ (R : Type u_1) [inst : CommRing R], Nonempty (Algebra ℚ R) ↔ ∀ (I : Ideal R), I ≠ ⊤ → CharZero (R ⧸ I)
A ring is a ℚ-algebra iff it has equal characteristic zero.
theorem isEmpty_algebraRat_iff_mixedCharZero E1 #
∀ (R : Type u_1) [inst : CommRing R] [CharZero R], IsEmpty (Algebra ℚ R) ↔ ∃ p > 0, MixedCharZero R p
A ring of characteristic zero is not a ℚ-algebra iff it has mixed characteristic for some p.
theorem split_equalCharZero_mixedCharZero E3 #
∀ (R : Type u_1) [inst : CommRing R] {P : Prop} [CharZero R],
(∀ (a : Algebra ℚ R), P) → (∀ (p : ℕ), Nat.Prime p → MixedCharZero R p → P) → P
Split a Prop in characteristic zero into equal and mixed characteristic.
theorem split_by_characteristic E3 #
∀ (R : Type u_1) [inst : CommRing R] {P : Prop},
(∀ (p : ℕ), p ≠ 0 → CharP R p → P) → (∀ (a : Algebra ℚ R), P) → (∀ (p : ℕ), Nat.Prime p → MixedCharZero R p → P) → P
Split any Prop over R into the three cases:
- positive characteristic.
- equal characteristic zero.
- mixed characteristic
(0, p).
theorem split_by_characteristic_domain E3 #
∀ (R : Type u_1) [inst : CommRing R] {P : Prop} [IsDomain R],
(∀ (p : ℕ), Nat.Prime p → CharP R p → P) →
(∀ (a : Algebra ℚ R), P) → (∀ (p : ℕ), Nat.Prime p → MixedCharZero R p → P) → P
In an IsDomain R, split any Prop over R into the three cases:
- prime characteristic.
- equal characteristic zero.
- mixed characteristic
(0, p).
theorem split_by_characteristic_localRing E3 #
∀ (R : Type u_1) [inst : CommRing R] {P : Prop} [IsLocalRing R],
(∀ (p : ℕ), IsPrimePow p → CharP R p → P) →
(∀ (a : Algebra ℚ R), P) → (∀ (p : ℕ), Nat.Prime p → MixedCharZero R p → P) → P
In a local ring R, split any predicate over R into the three cases:
- prime power characteristic.
- equal characteristic zero.
- mixed characteristic
(0, p).