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.Defs

78 declarations and 1 deprecated aliases. Mathlib docs Β· Source

Witt vectors

In this file we define the type of p-typical Witt vectors and ring operations on it. The ring axioms are verified in Mathlib/RingTheory/WittVector/Basic.lean.

For a fixed commutative ring R and prime p, a Witt vector x : π•Ž R is an infinite sequence β„• β†’ R of elements of R. However, the ring operations + and * are not defined in the obvious component-wise way. Instead, these operations are defined via certain polynomials using the machinery in Mathlib/RingTheory/WittVector/StructurePolynomial.lean. The nth value of the sum of two Witt vectors can depend on the 0-th through nth values of the summands. This effectively simulates a β€œcarrying” operation.

Main definitions

  • WittVector p R: the type of p-typical Witt vectors with coefficients in R.
  • WittVector.coeff x n: projects the nth value of the Witt vector x.

Notation

We use notation π•Ž R, entered \bbW, for the Witt vectors over R.

References

  • [Hazewinkel, Witt Vectors][Haze09]

  • [Commelin and Lewis, Formalizing the Ring of Witt Vectors][CL21]

theorem WittVector.wittZero.congr_simp E1 #

βˆ€ (p p_1 : β„•) (e_p : p = p_1) [hp : Fact (Nat.Prime p)] (a a_1 : β„•),
  a = a_1 β†’ WittVector.wittZero p a = WittVector.wittZero p_1 a_1

theorem WittVector.mk.injEq E0 #

βˆ€ (p : β„•) {R : Type u_1} (coeff coeff_1 : β„• β†’ R), (WittVector.mk p coeff = WittVector.mk p coeff_1) = (coeff = coeff_1)

theorem WittVector.wittSub.congr_simp E1 #

βˆ€ (p p_1 : β„•) (e_p : p = p_1) [hp : Fact (Nat.Prime p)] (a a_1 : β„•),
  a = a_1 β†’ WittVector.wittSub p a = WittVector.wittSub p_1 a_1

theorem WittVector.wittNSMul.congr_simp E1 #

βˆ€ (p p_1 : β„•) (e_p : p = p_1) [hp : Fact (Nat.Prime p)] (n n_1 : β„•),
  n = n_1 β†’ βˆ€ (a a_1 : β„•), a = a_1 β†’ WittVector.wittNSMul p n a = WittVector.wittNSMul p_1 n_1 a_1

theorem WittVector.wittMul.congr_simp E1 #

βˆ€ (p p_1 : β„•) (e_p : p = p_1) [hp : Fact (Nat.Prime p)] (a a_1 : β„•),
  a = a_1 β†’ WittVector.wittMul p a = WittVector.wittMul p_1 a_1

theorem WittVector.wittNeg.congr_simp E1 #

βˆ€ (p p_1 : β„•) (e_p : p = p_1) [hp : Fact (Nat.Prime p)] (a a_1 : β„•),
  a = a_1 β†’ WittVector.wittNeg p a = WittVector.wittNeg p_1 a_1

theorem WittVector.wittOne.congr_simp E1 #

βˆ€ (p p_1 : β„•) (e_p : p = p_1) [hp : Fact (Nat.Prime p)] (a a_1 : β„•),
  a = a_1 β†’ WittVector.wittOne p a = WittVector.wittOne p_1 a_1

theorem WittVector.wittAdd.congr_simp E1 #

βˆ€ (p p_1 : β„•) (e_p : p = p_1) [hp : Fact (Nat.Prime p)] (a a_1 : β„•),
  a = a_1 β†’ WittVector.wittAdd p a = WittVector.wittAdd p_1 a_1

def WittVector.ctorIdx E1 #

{p : β„•} β†’ {R : Type u_1} β†’ WittVector p R β†’ β„•

theorem WittVector.wittZSMul.congr_simp E1 #

βˆ€ (p p_1 : β„•) (e_p : p = p_1) [hp : Fact (Nat.Prime p)] (n n_1 : β„€),
  n = n_1 β†’ βˆ€ (a a_1 : β„•), a = a_1 β†’ WittVector.wittZSMul p n a = WittVector.wittZSMul p_1 n_1 a_1

theorem WittVector.mk.inj E1 #

βˆ€ {p : β„•} {R : Type u_1} {coeff coeff_1 : β„• β†’ R}, WittVector.mk p coeff = WittVector.mk p coeff_1 β†’ coeff = coeff_1

theorem WittVector.wittPow.congr_simp E1 #

βˆ€ (p p_1 : β„•) (e_p : p = p_1) [hp : Fact (Nat.Prime p)] (n n_1 : β„•),
  n = n_1 β†’ βˆ€ (a a_1 : β„•), a = a_1 β†’ WittVector.wittPow p n a = WittVector.wittPow p_1 n_1 a_1

structure WittVector E3 #

β„• β†’ Type u_1 β†’ Type u_1

WittVector p R is the ring of p-typical Witt vectors over the commutative ring R, where p is a prime number.

If p is invertible in R, this ring is isomorphic to β„• β†’ R (the product of β„• copies of R). If R is a ring of characteristic p, then WittVector p R is a ring of characteristic 0. The canonical example is WittVector p (ZMod p), which is isomorphic to the p-adic integers β„€_[p].

ctor WittVector.mk E0 #

(p : β„•) β†’ {R : Type u_1} β†’ (β„• β†’ R) β†’ WittVector p R

Construct a Witt vector mk p x : π•Ž R from a sequence x of elements of R.

abbrev WittVector.coeff E1 #

{p : β„•} β†’ {R : Type u_1} β†’ WittVector p R β†’ β„• β†’ R

x.coeff n is the nth coefficient of the Witt vector x.

This concept does not have a standard name in the literature.

def WittVector.delabMk E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prevents mk p x being printed as { coeff := x } by delabStructureInstance.

theorem WittVector.ext_iff E0 #

βˆ€ {p : β„•} {R : Type u_1} {x y : WittVector p R}, x = y ↔ βˆ€ (n : β„•), x.coeff n = y.coeff n

theorem WittVector.ext E1 #

βˆ€ {p : β„•} {R : Type u_1} {x y : WittVector p R}, (βˆ€ (n : β„•), x.coeff n = y.coeff n) β†’ x = y

theorem WittVector.coeff_surjective E1 #

βˆ€ {p : β„•} {R : Type u_1} (n : β„•), Function.Surjective fun x ↦ x.coeff n

theorem WittVector.coeff_mk E0 #

βˆ€ (p : β„•) {R : Type u_1} (x : β„• β†’ R), (WittVector.mk p x).coeff = x

instance WittVector.instFunctor E0 #

(p : β„•) β†’ Functor (WittVector p)

These instances are not needed for the rest of the development, but it is interesting to establish early on that WittVector p is a lawful functor.

instance WittVector.instLawfulFunctor E0 #

βˆ€ (p : β„•), LawfulFunctor (WittVector p)

def WittVector.wittZero E3 #

(p : β„•) β†’ [hp : Fact (Nat.Prime p)] β†’ β„• β†’ MvPolynomial (Fin 0 Γ— β„•) β„€

The polynomials used for defining the element 0 of the ring of Witt vectors.

def WittVector.wittOne E3 #

(p : β„•) β†’ [hp : Fact (Nat.Prime p)] β†’ β„• β†’ MvPolynomial (Fin 0 Γ— β„•) β„€

The polynomials used for defining the element 1 of the ring of Witt vectors.

def WittVector.wittAdd E3 #

(p : β„•) β†’ [hp : Fact (Nat.Prime p)] β†’ β„• β†’ MvPolynomial (Fin 2 Γ— β„•) β„€

The polynomials used for defining the addition of the ring of Witt vectors.

def WittVector.wittNSMul E1 #

(p : β„•) β†’ [hp : Fact (Nat.Prime p)] β†’ β„• β†’ β„• β†’ MvPolynomial (Fin 1 Γ— β„•) β„€

The polynomials used for defining repeated addition of the ring of Witt vectors.

def WittVector.wittZSMul E1 #

(p : β„•) β†’ [hp : Fact (Nat.Prime p)] β†’ β„€ β†’ β„• β†’ MvPolynomial (Fin 1 Γ— β„•) β„€

The polynomials used for defining repeated addition of the ring of Witt vectors.

def WittVector.wittSub E3 #

(p : β„•) β†’ [hp : Fact (Nat.Prime p)] β†’ β„• β†’ MvPolynomial (Fin 2 Γ— β„•) β„€

The polynomials used for describing the subtraction of the ring of Witt vectors.

def WittVector.wittMul E3 #

(p : β„•) β†’ [hp : Fact (Nat.Prime p)] β†’ β„• β†’ MvPolynomial (Fin 2 Γ— β„•) β„€

The polynomials used for defining the multiplication of the ring of Witt vectors.

def WittVector.wittNeg E3 #

(p : β„•) β†’ [hp : Fact (Nat.Prime p)] β†’ β„• β†’ MvPolynomial (Fin 1 Γ— β„•) β„€

The polynomials used for defining the negation of the ring of Witt vectors.

def WittVector.wittPow E1 #

(p : β„•) β†’ [hp : Fact (Nat.Prime p)] β†’ β„• β†’ β„• β†’ MvPolynomial (Fin 1 Γ— β„•) β„€

The polynomials used for defining repeated addition of the ring of Witt vectors.

def WittVector.peval E1 #

{R : Type u_1} β†’ [CommRing R] β†’ {k : β„•} β†’ MvPolynomial (Fin k Γ— β„•) β„€ β†’ (Fin k β†’ β„• β†’ R) β†’ R

An auxiliary definition used in WittVector.eval. Evaluates a polynomial whose variables come from the disjoint union of k copies of β„•, with a curried evaluation x. This can be defined more generally but we use only a specific instance here.

def WittVector.eval E1 #

{p : β„•} β†’
  {R : Type u_1} β†’ [CommRing R] β†’ {k : β„•} β†’ (β„• β†’ MvPolynomial (Fin k Γ— β„•) β„€) β†’ (Fin k β†’ WittVector p R) β†’ WittVector p R

Let Ο† be a family of polynomials, indexed by natural numbers, whose variables come from the disjoint union of k copies of β„•, and let xα΅’ be a Witt vector for 0 ≀ i < k.

eval Ο† x evaluates Ο† mapping the variable X_(i, n) to the nth coefficient of xα΅’.

Instantiating Ο† with certain polynomials defined in Mathlib/RingTheory/WittVector/StructurePolynomial.lean establishes the ring operations on π•Ž R. For example, WittVector.wittAdd is such a Ο† with k = 2; evaluating this at (xβ‚€, x₁) gives us the sum of two Witt vectors xβ‚€ + x₁.

instance WittVector.instZero E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ Zero (WittVector p R)

instance WittVector.instInhabited E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ Inhabited (WittVector p R)

instance WittVector.instOne E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ One (WittVector p R)

instance WittVector.instAdd E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ Add (WittVector p R)

instance WittVector.instSub E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ Sub (WittVector p R)

instance WittVector.hasNatScalar E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ SMul β„• (WittVector p R)

instance WittVector.hasIntScalar E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ SMul β„€ (WittVector p R)

instance WittVector.instMul E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ Mul (WittVector p R)

instance WittVector.instNeg E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ Neg (WittVector p R)

instance WittVector.hasNatPow E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ Pow (WittVector p R) β„•

instance WittVector.instNatCast E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ NatCast (WittVector p R)

instance WittVector.instIntCast E0 #

{p : β„•} β†’ {R : Type u_1} β†’ [hp : Fact (Nat.Prime p)] β†’ [CommRing R] β†’ IntCast (WittVector p R)

theorem WittVector.wittZero_eq_zero E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (n : β„•), WittVector.wittZero p n = 0

theorem WittVector.wittOne_zero_eq_one E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)], WittVector.wittOne p 0 = 1

theorem WittVector.wittOne_pos_eq_zero E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (n : β„•), 0 < n β†’ WittVector.wittOne p n = 0

theorem WittVector.wittAdd_zero E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)], WittVector.wittAdd p 0 = MvPolynomial.X (0, 0) + MvPolynomial.X (1, 0)

theorem WittVector.wittSub_zero E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)], WittVector.wittSub p 0 = MvPolynomial.X (0, 0) - MvPolynomial.X (1, 0)

theorem WittVector.wittMul_zero E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)], WittVector.wittMul p 0 = MvPolynomial.X (0, 0) * MvPolynomial.X (1, 0)

theorem WittVector.wittNeg_zero E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)], WittVector.wittNeg p 0 = -MvPolynomial.X (0, 0)

theorem WittVector.constantCoeff_wittAdd E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (n : β„•), MvPolynomial.constantCoeff (WittVector.wittAdd p n) = 0

theorem WittVector.constantCoeff_wittSub E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (n : β„•), MvPolynomial.constantCoeff (WittVector.wittSub p n) = 0

theorem WittVector.constantCoeff_wittMul E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (n : β„•), MvPolynomial.constantCoeff (WittVector.wittMul p n) = 0

theorem WittVector.constantCoeff_wittNeg E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (n : β„•), MvPolynomial.constantCoeff (WittVector.wittNeg p n) = 0

theorem WittVector.constantCoeff_wittNSMul E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (m n : β„•), MvPolynomial.constantCoeff (WittVector.wittNSMul p m n) = 0

theorem WittVector.constantCoeff_wittZSMul E0 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (z : β„€) (n : β„•), MvPolynomial.constantCoeff (WittVector.wittZSMul p z n) = 0

theorem WittVector.zero_coeff E0 #

βˆ€ (p : β„•) (R : Type u_1) [hp : Fact (Nat.Prime p)] [inst : CommRing R] (n : β„•), WittVector.coeff 0 n = 0

theorem WittVector.one_coeff_zero E0 #

βˆ€ (p : β„•) (R : Type u_1) [hp : Fact (Nat.Prime p)] [inst : CommRing R], WittVector.coeff 1 0 = 1

theorem WittVector.one_coeff_eq_of_pos E0 #

βˆ€ (p : β„•) (R : Type u_1) [hp : Fact (Nat.Prime p)] [inst : CommRing R] (n : β„•), 0 < n β†’ WittVector.coeff 1 n = 0

theorem WittVector.v2_coeff E0 #

βˆ€ {p' : β„•} {R' : Type u_2} (x y : WittVector p' R') (i : Fin 2), (![x, y] i).coeff = ![x.coeff, y.coeff] i

theorem WittVector.add_coeff E1 #

βˆ€ {p : β„•} {R : Type u_1} [hp : Fact (Nat.Prime p)] [inst : CommRing R] (x y : WittVector p R) (n : β„•),
  (x + y).coeff n = WittVector.peval (WittVector.wittAdd p n) ![x.coeff, y.coeff]

theorem WittVector.sub_coeff E3 #

βˆ€ {p : β„•} {R : Type u_1} [hp : Fact (Nat.Prime p)] [inst : CommRing R] (x y : WittVector p R) (n : β„•),
  (x - y).coeff n = WittVector.peval (WittVector.wittSub p n) ![x.coeff, y.coeff]

theorem WittVector.mul_coeff E1 #

βˆ€ {p : β„•} {R : Type u_1} [hp : Fact (Nat.Prime p)] [inst : CommRing R] (x y : WittVector p R) (n : β„•),
  (x * y).coeff n = WittVector.peval (WittVector.wittMul p n) ![x.coeff, y.coeff]

theorem WittVector.neg_coeff E1 #

βˆ€ {p : β„•} {R : Type u_1} [hp : Fact (Nat.Prime p)] [inst : CommRing R] (x : WittVector p R) (n : β„•),
  (-x).coeff n = WittVector.peval (WittVector.wittNeg p n) ![x.coeff]

theorem WittVector.nsmul_coeff E1 #

βˆ€ {p : β„•} {R : Type u_1} [hp : Fact (Nat.Prime p)] [inst : CommRing R] (m : β„•) (x : WittVector p R) (n : β„•),
  (m β€’ x).coeff n = WittVector.peval (WittVector.wittNSMul p m n) ![x.coeff]

theorem WittVector.zsmul_coeff E1 #

βˆ€ {p : β„•} {R : Type u_1} [hp : Fact (Nat.Prime p)] [inst : CommRing R] (m : β„€) (x : WittVector p R) (n : β„•),
  (m β€’ x).coeff n = WittVector.peval (WittVector.wittZSMul p m n) ![x.coeff]

theorem WittVector.pow_coeff E1 #

βˆ€ {p : β„•} {R : Type u_1} [hp : Fact (Nat.Prime p)] [inst : CommRing R] (m : β„•) (x : WittVector p R) (n : β„•),
  (x ^ m).coeff n = WittVector.peval (WittVector.wittPow p m n) ![x.coeff]

theorem WittVector.add_coeff_zero E1 #

βˆ€ {p : β„•} {R : Type u_1} [hp : Fact (Nat.Prime p)] [inst : CommRing R] (x y : WittVector p R),
  (x + y).coeff 0 = x.coeff 0 + y.coeff 0

theorem WittVector.mul_coeff_zero E1 #

βˆ€ {p : β„•} {R : Type u_1} [hp : Fact (Nat.Prime p)] [inst : CommRing R] (x y : WittVector p R),
  (x * y).coeff 0 = x.coeff 0 * y.coeff 0

theorem WittVector.wittAdd_vars E1 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (n : β„•), (WittVector.wittAdd p n).vars βŠ† Finset.univ Γ—Λ’ Finset.range (n + 1)

theorem WittVector.wittSub_vars E1 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (n : β„•), (WittVector.wittSub p n).vars βŠ† Finset.univ Γ—Λ’ Finset.range (n + 1)

theorem WittVector.wittMul_vars E1 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (n : β„•), (WittVector.wittMul p n).vars βŠ† Finset.univ Γ—Λ’ Finset.range (n + 1)

theorem WittVector.wittNeg_vars E1 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (n : β„•), (WittVector.wittNeg p n).vars βŠ† Finset.univ Γ—Λ’ Finset.range (n + 1)

theorem WittVector.wittNSMul_vars E1 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (m n : β„•), (WittVector.wittNSMul p m n).vars βŠ† Finset.univ Γ—Λ’ Finset.range (n + 1)

theorem WittVector.wittZSMul_vars E1 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (m : β„€) (n : β„•),
  (WittVector.wittZSMul p m n).vars βŠ† Finset.univ Γ—Λ’ Finset.range (n + 1)

theorem WittVector.wittPow_vars E1 #

βˆ€ (p : β„•) [hp : Fact (Nat.Prime p)] (m n : β„•), (WittVector.wittPow p m n).vars βŠ† Finset.univ Γ—Λ’ Finset.range (n + 1)

Deprecated aliases

NameNew nameSince
WittVector.mk'WittVector.mk2026-09-03