The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

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 homomorphism R β†’+* S to a ring homomorphism π•Ž R β†’+* π•Ž S.
  • WittVector.ghostComponent n x: evaluates the nth Witt polynomial on the first n coefficients of x, producing a value in R. This is a ring homomorphism.
  • WittVector.ghostMap: a ring homomorphism π•Ž R β†’+* (β„• β†’ R), obtained by packaging all the ghost components together. If p is invertible in R, 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)