The areas / V10. Commutative algebra II: valuations, Dedekind domains, local algebra
Mathlib.RingTheory.WittVector.Basic
34 declarations. Mathlib docs Β· Source
Witt vectors
This file verifies that the ring operations on WittVector p R
satisfy the axioms of a commutative ring.
Main definitions
WittVector.map: lifts a ring homomorphismR β+* Sto a ring homomorphismπ R β+* π S.WittVector.ghostComponent n x: evaluates thenth Witt polynomial on the firstncoefficients ofx, producing a value inR. This is a ring homomorphism.WittVector.ghostMap: a ring homomorphismπ R β+* (β β R), obtained by packaging all the ghost components together. Ifpis invertible inR, then the ghost map is an equivalence, which we use to define the ring operations onπ R.WittVector.CommRing: the ring structure induced by the ghost components.
Notation
We use notation π R, entered \bbW, for the Witt vectors over R.
Implementation notes
As we prove that the ghost components respect the ring operations, we face a number of repetitive proofs. To avoid duplicating code we factor these proofs into a custom tactic, only slightly more powerful than a tactic macro. This tactic is not particularly useful outside of its applications in this file.
References
-
[Hazewinkel, Witt Vectors][Haze09]
-
[Commelin and Lewis, Formalizing the Ring of Witt Vectors][CL21]
def WittVector.mapFun E1 #
{p : β} β {Ξ± : Type u_3} β {Ξ² : Type u_4} β (Ξ± β Ξ²) β WittVector p Ξ± β WittVector p Ξ²
f : Ξ± β Ξ² induces a map from π Ξ± to π Ξ² by applying f componentwise.
If f is a ring homomorphism, then so is f, see WittVector.map f.
theorem WittVector.mapFun.injective E1 #
β {p : β} {Ξ± : Type u_3} {Ξ² : Type u_4} (f : Ξ± β Ξ²), Function.Injective f β Function.Injective (WittVector.mapFun f)
theorem WittVector.mapFun.surjective E1 #
β {p : β} {Ξ± : Type u_3} {Ξ² : Type u_4} (f : Ξ± β Ξ²), Function.Surjective f β Function.Surjective (WittVector.mapFun f)
theorem WittVector.mapFun.zero E1 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S), WittVector.mapFun (βf) 0 = 0
theorem WittVector.mapFun.one E1 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S), WittVector.mapFun (βf) 1 = 1
theorem WittVector.mapFun.add E1 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S) (x y : WittVector p R),
WittVector.mapFun (βf) (x + y) = WittVector.mapFun (βf) x + WittVector.mapFun (βf) y
theorem WittVector.mapFun.sub E1 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S) (x y : WittVector p R),
WittVector.mapFun (βf) (x - y) = WittVector.mapFun (βf) x - WittVector.mapFun (βf) y
theorem WittVector.mapFun.mul E1 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S) (x y : WittVector p R),
WittVector.mapFun (βf) (x * y) = WittVector.mapFun (βf) x * WittVector.mapFun (βf) y
theorem WittVector.mapFun.neg E1 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S) (x : WittVector p R), WittVector.mapFun (βf) (-x) = -WittVector.mapFun (βf) x
theorem WittVector.mapFun.nsmul E1 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S) (n : β) (x : WittVector p R), WittVector.mapFun (βf) (n β’ x) = n β’ WittVector.mapFun (βf) x
theorem WittVector.mapFun.zsmul E1 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S) (z : β€) (x : WittVector p R), WittVector.mapFun (βf) (z β’ x) = z β’ WittVector.mapFun (βf) x
theorem WittVector.mapFun.pow E1 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S) (x : WittVector p R) (n : β), WittVector.mapFun (βf) (x ^ n) = WittVector.mapFun (βf) x ^ n
theorem WittVector.mapFun.natCast E1 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S) (n : β), WittVector.mapFun βf βn = βn
theorem WittVector.mapFun.intCast E1 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S) (n : β€), WittVector.mapFun βf βn = βn
def WittVector.Β«tacticGhost_fun_tac_,_Β» E1 #
Lean.ParserDescr
An auxiliary tactic for proving that ghostFun respects the ring operations.
theorem WittVector.matrix_vecEmpty_coeff E1 #
β {p : β} {R : Type u_5} (i : Fin 0) (j : β), (![] i).coeff j = ![] i j
instance WittVector.instCommRing E0 #
(p : β) β (R : Type u_1) β [CommRing R] β [Fact (Nat.Prime p)] β CommRing (WittVector p R)
The commutative ring structure on π R.
def WittVector.map E3 #
{p : β} β
{R : Type u_1} β
{S : Type u_2} β
[inst : CommRing R] β
[inst_1 : CommRing S] β [inst_2 : Fact (Nat.Prime p)] β (R β+* S) β WittVector p R β+* WittVector p S
WittVector.map f is the ring homomorphism π R β+* π S naturally induced
by a ring homomorphism f : R β+* S. It acts coefficientwise.
theorem WittVector.map_injective E0 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S), Function.Injective βf β Function.Injective β(WittVector.map f)
theorem WittVector.map_surjective E0 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S), Function.Surjective βf β Function.Surjective β(WittVector.map f)
theorem WittVector.map_coeff E0 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S) (x : WittVector p R) (n : β), ((WittVector.map f) x).coeff n = f (x.coeff n)
theorem WittVector.map_id E0 #
β {p : β} (R : Type u_1) [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)],
WittVector.map (RingHom.id R) = RingHom.id (WittVector p R)
theorem WittVector.map_eq_zero_iff E0 #
β {p : β} {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Fact (Nat.Prime p)]
(f : R β+* S) {x : WittVector p R}, (WittVector.map f) x = 0 β β (n : β), f (x.coeff n) = 0
def WittVector.ghostMap E3 #
{p : β} β {R : Type u_1} β [inst : CommRing R] β [inst_1 : Fact (Nat.Prime p)] β WittVector p R β+* β β R
WittVector.ghostMap is a ring homomorphism that maps each Witt vector
to the sequence of its ghost components.
def WittVector.ghostComponent E1 #
{p : β} β {R : Type u_1} β [inst : CommRing R] β [inst_1 : Fact (Nat.Prime p)] β β β WittVector p R β+* R
Evaluates the nth Witt polynomial on the first n coefficients of x,
producing a value in R.
theorem WittVector.ghostComponent_apply E0 #
β {p : β} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (n : β) (x : WittVector p R),
(WittVector.ghostComponent n) x = (MvPolynomial.aeval x.coeff) (wittPolynomial p β€ n)
theorem WittVector.pow_dvd_ghostComponent_of_dvd_coeff E1 #
β {p : β} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {x : WittVector p R} {n : β},
(β i β€ n, βp β£ x.coeff i) β βp ^ (n + 1) β£ (WittVector.ghostComponent n) x
theorem WittVector.ghostMap_apply E0 #
β {p : β} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x : WittVector p R) (n : β),
WittVector.ghostMap x n = (WittVector.ghostComponent n) x
def WittVector.ghostEquiv E1 #
(p : β) β
(R : Type u_1) β [inst : CommRing R] β [inst_1 : Fact (Nat.Prime p)] β [Invertible βp] β WittVector p R β+* (β β R)
WittVector.ghostMap is a ring isomorphism when p is invertible in R.
theorem WittVector.ghostEquiv_coe E0 #
β (p : β) (R : Type u_1) [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] [inst_2 : Invertible βp],
β(WittVector.ghostEquiv p R) = WittVector.ghostMap
theorem WittVector.ghostMap.bijective_of_invertible E1 #
β (p : β) (R : Type u_1) [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] [Invertible βp],
Function.Bijective βWittVector.ghostMap
def WittVector.constantCoeff E1 #
{p : β} β {R : Type u_1} β [inst : CommRing R] β [inst_1 : Fact (Nat.Prime p)] β WittVector p R β+* R
WittVector.coeff x 0 as a RingHom
theorem WittVector.constantCoeff_apply E0 #
β {p : β} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x : WittVector p R),
WittVector.constantCoeff x = x.coeff 0
instance WittVector.instNontrivial E0 #
β {p : β} {R : Type u_1} [CommRing R] [Fact (Nat.Prime p)] [Nontrivial R], Nontrivial (WittVector p R)