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

19 declarations. Mathlib docs · Source

init and tail

Given a Witt vector x, we are sometimes interested in its components before and after an index n. This file defines those operations, proves that init is polynomial, and shows how that polynomial interacts with MvPolynomial.bind₁.

Main declarations

  • WittVector.init n x: the first n coefficients of x, as a Witt vector. All coefficients at indices ≥ n are 0.
  • WittVector.tail n x: the complementary part to init. All coefficients at indices < n are 0, otherwise they are the same as in x.
  • WittVector.coeff_add_of_disjoint: if x and y are Witt vectors such that for every n the n-th coefficient of x or of y is 0, then the coefficients of x + y are just x.coeff n + y.coeff n.

References

  • [Hazewinkel, Witt Vectors][Haze09]

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

def WittVector.select E1 #

{p : ℕ} → {R : Type u_1} → [CommRing R] → (ℕ → Prop) → WittVector p R → WittVector p R

WittVector.select P x, for a predicate P : ℕ → Prop is the Witt vector whose n-th coefficient is x.coeff n if P n is true, and 0 otherwise.

def WittVector.selectPoly E1 #

(ℕ → Prop) → ℕ → MvPolynomial ℕ ℤ

The polynomial that witnesses that WittVector.select is a polynomial function. selectPoly n is X n if P n holds, and 0 otherwise.

theorem WittVector.coeff_select E1 #

∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] (P : ℕ → Prop) (x : WittVector p R) (n : ℕ),
  (WittVector.select P x).coeff n = (MvPolynomial.aeval x.coeff) (WittVector.selectPoly P n)

instance WittVector.select_isPoly E0 #

∀ {p : ℕ} {P : ℕ → Prop}, WittVector.IsPoly p fun x x_1 x_2 ↦ WittVector.select P x_2

theorem WittVector.select_add_select_not E1 #

∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] (P : ℕ → Prop) [hp : Fact (Nat.Prime p)] (x : WittVector p R),
  WittVector.select P x + WittVector.select (fun i ↦ ¬P i) x = x

theorem WittVector.coeff_add_of_disjoint E3 #

∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [hp : Fact (Nat.Prime p)] (x y : WittVector p R),
  (∀ (n : ℕ), x.coeff n = 0 ∨ y.coeff n = 0) → (x + y).coeff n = x.coeff n + y.coeff n

def WittVector.init E3 #

{p : ℕ} → {R : Type u_1} → [CommRing R] → ℕ → WittVector p R → WittVector p R

WittVector.init n x is the Witt vector of which the first n coefficients are those from x and all other coefficients are 0. See WittVector.tail for the complementary part.

def WittVector.tail E1 #

{p : ℕ} → {R : Type u_1} → [CommRing R] → ℕ → WittVector p R → WittVector p R

WittVector.tail n x is the Witt vector of which the first n coefficients are 0 and all other coefficients are those from x. See WittVector.init for the complementary part.

theorem WittVector.init_add_tail E0 #

∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x : WittVector p R) (n : ℕ),
  WittVector.init n x + WittVector.tail n x = x

def WittVector.initRing E1 #

Lean.ParserDescr

init_ring is an auxiliary tactic that discharges goals factoring init over ring operations.

theorem WittVector.init_init E0 #

∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] (x : WittVector p R) (n : ℕ),
  WittVector.init n (WittVector.init n x) = WittVector.init n x

theorem WittVector.init_add E1 #

∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x y : WittVector p R) (n : ℕ),
  WittVector.init n (x + y) = WittVector.init n (WittVector.init n x + WittVector.init n y)

theorem WittVector.init_mul E1 #

∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x y : WittVector p R) (n : ℕ),
  WittVector.init n (x * y) = WittVector.init n (WittVector.init n x * WittVector.init n y)

theorem WittVector.init_neg E1 #

∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x : WittVector p R) (n : ℕ),
  WittVector.init n (-x) = WittVector.init n (-WittVector.init n x)

theorem WittVector.init_sub E1 #

∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x y : WittVector p R) (n : ℕ),
  WittVector.init n (x - y) = WittVector.init n (WittVector.init n x - WittVector.init n y)

theorem WittVector.init_nsmul E1 #

∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (m : ℕ) (x : WittVector p R) (n : ℕ),
  WittVector.init n (m • x) = WittVector.init n (m • WittVector.init n x)

theorem WittVector.init_zsmul E1 #

∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (m : ℤ) (x : WittVector p R) (n : ℕ),
  WittVector.init n (m • x) = WittVector.init n (m • WittVector.init n x)

theorem WittVector.init_pow E1 #

∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (m : ℕ) (x : WittVector p R) (n : ℕ),
  WittVector.init n (x ^ m) = WittVector.init n (WittVector.init n x ^ m)

theorem WittVector.init_isPoly E1 #

∀ (p n : ℕ), WittVector.IsPoly p fun x x_1 ↦ WittVector.init n

WittVector.init n x is polynomial in the coefficients of x.