The areas / V10. Commutative algebra II: valuations, Dedekind domains, local algebra
Mathlib.RingTheory.WittVector.Truncated
67 declarations. Mathlib docs · Source
Truncated Witt vectors
The ring of truncated Witt vectors (of length n) is a quotient of the ring of Witt vectors.
It retains the first n coefficients of each Witt vector.
In this file, we set up the basic quotient API for this ring.
The ring of Witt vectors is the projective limit of all the rings of truncated Witt vectors.
Main declarations
TruncatedWittVector: the underlying type of the ring of truncated Witt vectorsTruncatedWittVector.instCommRing: the ring structure on truncated Witt vectorsWittVector.truncate: the quotient homomorphism that truncates a Witt vector, to obtain a truncated Witt vectorTruncatedWittVector.truncate: the homomorphism that truncates a truncated Witt vector of lengthnto one of lengthm(for somem ≤ n)WittVector.lift: the unique ring homomorphism into the ring of Witt vectors that is compatible with a family of ring homomorphisms to the truncated Witt vectors: this realizes the ring of Witt vectors as projective limit of the rings of truncated Witt vectors
References
-
[Hazewinkel, Witt Vectors][Haze09]
-
[Commelin and Lewis, Formalizing the Ring of Witt Vectors][CL21]
theorem TruncatedWittVector.truncate.congr_simp E1 #
∀ {p n : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {m : ℕ} (hm : n ≤ m),
TruncatedWittVector.truncate hm = TruncatedWittVector.truncate hm
theorem WittVector.lift.congr_simp E1 #
∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {S : Type u_2} [inst_2 : Semiring S]
(f f_1 : (k : ℕ) → S →+* TruncatedWittVector p k R) (e_f : f = f_1)
(f_compat : ∀ (k₁ k₂ : ℕ) (hk : k₁ ≤ k₂), (TruncatedWittVector.truncate hk).comp (f k₂) = f k₁),
WittVector.lift f f_compat = WittVector.lift f_1 ⋯
def TruncatedWittVector E3 #
ℕ → ℕ → Type u_2 → Type u_2
A truncated Witt vector over R is a vector of elements of R,
i.e., the first n coefficients of a Witt vector.
We will define operations on this type that are compatible with the (untruncated) Witt
vector operations.
TruncatedWittVector p n R takes a parameter p : ℕ that is not used in the definition.
In practice, this number p is assumed to be a prime number,
and under this assumption we construct a ring structure on TruncatedWittVector p n R.
(TruncatedWittVector p₁ n R and TruncatedWittVector p₂ n R are definitionally
equal as types but will have different ring operations.)
instance instInhabitedTruncatedWittVector E0 #
(p n : ℕ) → (R : Type u_2) → [Inhabited R] → Inhabited (TruncatedWittVector p n R)
def TruncatedWittVector.mk E1 #
(p : ℕ) → {n : ℕ} → {R : Type u_1} → (Fin n → R) → TruncatedWittVector p n R
Create a TruncatedWittVector from a vector x.
def TruncatedWittVector.coeff E1 #
{p n : ℕ} → {R : Type u_1} → Fin n → TruncatedWittVector p n R → R
x.coeff i is the ith entry of x.
theorem TruncatedWittVector.ext E1 #
∀ {p n : ℕ} {R : Type u_1} {x y : TruncatedWittVector p n R},
(∀ (i : Fin n), TruncatedWittVector.coeff i x = TruncatedWittVector.coeff i y) → x = y
theorem TruncatedWittVector.ext_iff E0 #
∀ {p n : ℕ} {R : Type u_1} {x y : TruncatedWittVector p n R},
x = y ↔ ∀ (i : Fin n), TruncatedWittVector.coeff i x = TruncatedWittVector.coeff i y
theorem TruncatedWittVector.coeff_mk E0 #
∀ {p n : ℕ} {R : Type u_1} (x : Fin n → R) (i : Fin n), TruncatedWittVector.coeff i (TruncatedWittVector.mk p x) = x i
theorem TruncatedWittVector.mk_coeff E0 #
∀ {p n : ℕ} {R : Type u_1} (x : TruncatedWittVector p n R),
(TruncatedWittVector.mk p fun i ↦ TruncatedWittVector.coeff i x) = x
def TruncatedWittVector.out E1 #
{p n : ℕ} → {R : Type u_1} → [CommRing R] → TruncatedWittVector p n R → WittVector p R
We can turn a truncated Witt vector x into a Witt vector
by setting all coefficients after x to be 0.
theorem TruncatedWittVector.coeff_out E0 #
∀ {p n : ℕ} {R : Type u_1} [inst : CommRing R] (x : TruncatedWittVector p n R) (i : Fin n),
x.out.coeff ↑i = TruncatedWittVector.coeff i x
theorem TruncatedWittVector.out_injective E1 #
∀ {p n : ℕ} {R : Type u_1} [inst : CommRing R], Function.Injective TruncatedWittVector.out
def WittVector.truncateFun E1 #
{p : ℕ} → (n : ℕ) → {R : Type u_1} → WittVector p R → TruncatedWittVector p n R
truncateFun n x uses the first n entries of x to construct a TruncatedWittVector,
which has the same base p as x.
This function is bundled into a ring homomorphism in WittVector.truncate
theorem WittVector.coeff_truncateFun E0 #
∀ {p n : ℕ} {R : Type u_1} (x : WittVector p R) (i : Fin n),
TruncatedWittVector.coeff i (WittVector.truncateFun n x) = x.coeff ↑i
theorem WittVector.out_truncateFun E0 #
∀ {p n : ℕ} {R : Type u_1} [inst : CommRing R] (x : WittVector p R),
(WittVector.truncateFun n x).out = WittVector.init n x
theorem TruncatedWittVector.truncateFun_out E0 #
∀ {p n : ℕ} {R : Type u_1} [inst : CommRing R] (x : TruncatedWittVector p n R), WittVector.truncateFun n x.out = x
instance TruncatedWittVector.instZero E0 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → Zero (TruncatedWittVector p n R)
instance TruncatedWittVector.instOne E0 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → One (TruncatedWittVector p n R)
instance TruncatedWittVector.instNatCast E0 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → NatCast (TruncatedWittVector p n R)
instance TruncatedWittVector.instIntCast E0 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → IntCast (TruncatedWittVector p n R)
instance TruncatedWittVector.instAdd E0 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → Add (TruncatedWittVector p n R)
instance TruncatedWittVector.instMul E0 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → Mul (TruncatedWittVector p n R)
instance TruncatedWittVector.instNeg E0 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → Neg (TruncatedWittVector p n R)
instance TruncatedWittVector.instSub E0 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → Sub (TruncatedWittVector p n R)
instance TruncatedWittVector.hasNatScalar E0 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → SMul ℕ (TruncatedWittVector p n R)
instance TruncatedWittVector.hasIntScalar E0 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → SMul ℤ (TruncatedWittVector p n R)
instance TruncatedWittVector.hasNatPow E0 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → Pow (TruncatedWittVector p n R) ℕ
theorem TruncatedWittVector.coeff_zero E0 #
∀ (p n : ℕ) (R : Type u_1) [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (i : Fin n),
TruncatedWittVector.coeff i 0 = 0
theorem WittVector.truncateFun_surjective E1 #
∀ (p n : ℕ) (R : Type u_1) [CommRing R], Function.Surjective (WittVector.truncateFun n)
theorem WittVector.truncateFun_zero E0 #
∀ (p n : ℕ) (R : Type u_1) [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)], WittVector.truncateFun n 0 = 0
theorem WittVector.truncateFun_one E0 #
∀ (p n : ℕ) (R : Type u_1) [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)], WittVector.truncateFun n 1 = 1
theorem WittVector.truncateFun_add E0 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x y : WittVector p R),
WittVector.truncateFun n (x + y) = WittVector.truncateFun n x + WittVector.truncateFun n y
theorem WittVector.truncateFun_mul E0 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x y : WittVector p R),
WittVector.truncateFun n (x * y) = WittVector.truncateFun n x * WittVector.truncateFun n y
theorem WittVector.truncateFun_neg E1 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x : WittVector p R),
WittVector.truncateFun n (-x) = -WittVector.truncateFun n x
theorem WittVector.truncateFun_sub E1 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x y : WittVector p R),
WittVector.truncateFun n (x - y) = WittVector.truncateFun n x - WittVector.truncateFun n y
theorem WittVector.truncateFun_nsmul E1 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (m : ℕ) (x : WittVector p R),
WittVector.truncateFun n (m • x) = m • WittVector.truncateFun n x
theorem WittVector.truncateFun_zsmul E1 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (m : ℤ) (x : WittVector p R),
WittVector.truncateFun n (m • x) = m • WittVector.truncateFun n x
theorem WittVector.truncateFun_pow E1 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x : WittVector p R) (m : ℕ),
WittVector.truncateFun n (x ^ m) = WittVector.truncateFun n x ^ m
theorem WittVector.truncateFun_natCast E1 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (m : ℕ),
WittVector.truncateFun n ↑m = ↑m
theorem WittVector.truncateFun_intCast E1 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (m : ℤ),
WittVector.truncateFun n ↑m = ↑m
instance TruncatedWittVector.instCommRing E3 #
(p n : ℕ) → (R : Type u_1) → [CommRing R] → [Fact (Nat.Prime p)] → CommRing (TruncatedWittVector p n R)
def WittVector.truncate E3 #
{p : ℕ} →
(n : ℕ) →
{R : Type u_1} → [inst : CommRing R] → [inst_1 : Fact (Nat.Prime p)] → WittVector p R →+* TruncatedWittVector p n R
truncate n is a ring homomorphism that truncates x to its first n entries
to obtain a TruncatedWittVector, which has the same base p as x.
theorem WittVector.truncate_surjective E1 #
∀ (p n : ℕ) (R : Type u_1) [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)],
Function.Surjective ⇑(WittVector.truncate n)
theorem WittVector.coeff_truncate E0 #
∀ {p n : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x : WittVector p R) (i : Fin n),
TruncatedWittVector.coeff i ((WittVector.truncate n) x) = x.coeff ↑i
theorem WittVector.mem_ker_truncate E0 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (x : WittVector p R),
x ∈ RingHom.ker (WittVector.truncate n) ↔ ∀ i < n, x.coeff i = 0
theorem WittVector.truncate_mk' E0 #
∀ (p n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] (f : ℕ → R),
(WittVector.truncate n) (WittVector.mk p f) = TruncatedWittVector.mk p fun k ↦ f ↑k
def TruncatedWittVector.truncate E3 #
{p n : ℕ} →
{R : Type u_1} →
[inst : CommRing R] →
[inst_1 : Fact (Nat.Prime p)] → {m : ℕ} → n ≤ m → TruncatedWittVector p m R →+* TruncatedWittVector p n R
A ring homomorphism that truncates a truncated Witt vector of length m to
a truncated Witt vector of length n, for n ≤ m.
theorem TruncatedWittVector.truncate_comp_wittVector_truncate E0 #
∀ {p n : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {m : ℕ} (hm : n ≤ m),
(TruncatedWittVector.truncate hm).comp (WittVector.truncate m) = WittVector.truncate n
theorem TruncatedWittVector.truncate_wittVector_truncate E0 #
∀ {p n : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {m : ℕ} (hm : n ≤ m) (x : WittVector p R),
(TruncatedWittVector.truncate hm) ((WittVector.truncate m) x) = (WittVector.truncate n) x
theorem TruncatedWittVector.truncate_truncate E0 #
∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {n₁ n₂ n₃ : ℕ} (h1 : n₁ ≤ n₂) (h2 : n₂ ≤ n₃)
(x : TruncatedWittVector p n₃ R),
(TruncatedWittVector.truncate h1) ((TruncatedWittVector.truncate h2) x) = (TruncatedWittVector.truncate ⋯) x
theorem TruncatedWittVector.truncate_comp E0 #
∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {n₁ n₂ n₃ : ℕ} (h1 : n₁ ≤ n₂) (h2 : n₂ ≤ n₃),
(TruncatedWittVector.truncate h1).comp (TruncatedWittVector.truncate h2) = TruncatedWittVector.truncate ⋯
theorem TruncatedWittVector.truncate_surjective E1 #
∀ {p n : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {m : ℕ} (hm : n ≤ m),
Function.Surjective ⇑(TruncatedWittVector.truncate hm)
theorem TruncatedWittVector.coeff_truncate E0 #
∀ {p n : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {m : ℕ} (hm : n ≤ m) (i : Fin n)
(x : TruncatedWittVector p m R),
TruncatedWittVector.coeff i ((TruncatedWittVector.truncate hm) x) = TruncatedWittVector.coeff (Fin.castLE hm i) x
instance TruncatedWittVector.instFintype E0 #
{p n : ℕ} → {R : Type u_2} → [Fintype R] → Fintype (TruncatedWittVector p n R)
theorem TruncatedWittVector.card E1 #
∀ (p n : ℕ) {R : Type u_2} [inst : Fintype R], Fintype.card (TruncatedWittVector p n R) = Fintype.card R ^ n
theorem TruncatedWittVector.iInf_ker_truncate E1 #
∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)], ⨅ i, RingHom.ker (WittVector.truncate i) = ⊥
def WittVector.liftFun E1 #
{p : ℕ} →
{R : Type u_1} →
[inst : CommRing R] →
[inst_1 : Fact (Nat.Prime p)] →
{S : Type u_2} → [inst_2 : Semiring S] → ((k : ℕ) → S →+* TruncatedWittVector p k R) → S → WittVector p R
Given a family fₖ : S → TruncatedWittVector p k R and s : S, we produce a Witt vector by
defining the kth entry to be the final entry of fₖ s.
theorem WittVector.truncate_liftFun E0 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {S : Type u_2} [inst_2 : Semiring S]
{f : (k : ℕ) → S →+* TruncatedWittVector p k R},
(∀ (k₁ k₂ : ℕ) (hk : k₁ ≤ k₂), (TruncatedWittVector.truncate hk).comp (f k₂) = f k₁) →
∀ (s : S), (WittVector.truncate n) (WittVector.liftFun f s) = (f n) s
def WittVector.lift E3 #
{p : ℕ} →
{R : Type u_1} →
[inst : CommRing R] →
[inst_1 : Fact (Nat.Prime p)] →
{S : Type u_2} →
[inst_2 : Semiring S] →
(f : (k : ℕ) → S →+* TruncatedWittVector p k R) →
(∀ (k₁ k₂ : ℕ) (hk : k₁ ≤ k₂), (TruncatedWittVector.truncate hk).comp (f k₂) = f k₁) →
S →+* WittVector p R
Given compatible ring homs from S into TruncatedWittVector n for each n, we can lift these
to a ring hom S → 𝕎 R.
lift defines the universal property of 𝕎 R as the inverse limit of TruncatedWittVector n.
theorem WittVector.truncate_lift E0 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {S : Type u_2} [inst_2 : Semiring S]
{f : (k : ℕ) → S →+* TruncatedWittVector p k R}
(f_compat : ∀ (k₁ k₂ : ℕ) (hk : k₁ ≤ k₂), (TruncatedWittVector.truncate hk).comp (f k₂) = f k₁) (s : S),
(WittVector.truncate n) ((WittVector.lift f f_compat) s) = (f n) s
theorem WittVector.truncate_comp_lift E0 #
∀ {p : ℕ} (n : ℕ) {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {S : Type u_2} [inst_2 : Semiring S]
{f : (k : ℕ) → S →+* TruncatedWittVector p k R}
(f_compat : ∀ (k₁ k₂ : ℕ) (hk : k₁ ≤ k₂), (TruncatedWittVector.truncate hk).comp (f k₂) = f k₁),
(WittVector.truncate n).comp (WittVector.lift f f_compat) = f n
theorem WittVector.lift_unique E1 #
∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {S : Type u_2} [inst_2 : Semiring S]
{f : (k : ℕ) → S →+* TruncatedWittVector p k R}
(f_compat : ∀ (k₁ k₂ : ℕ) (hk : k₁ ≤ k₂), (TruncatedWittVector.truncate hk).comp (f k₂) = f k₁)
(g : S →+* WittVector p R), (∀ (k : ℕ), (WittVector.truncate k).comp g = f k) → WittVector.lift f f_compat = g
The uniqueness part of the universal property of 𝕎 R.
def WittVector.liftEquiv E1 #
{p : ℕ} →
{R : Type u_1} →
[inst : CommRing R] →
[inst_1 : Fact (Nat.Prime p)] →
{S : Type u_2} →
[inst_2 : Semiring S] →
{ f // ∀ (k₁ k₂ : ℕ) (hk : k₁ ≤ k₂), (TruncatedWittVector.truncate hk).comp (f k₂) = f k₁ } ≃
(S →+* WittVector p R)
The universal property of 𝕎 R as projective limit of truncated Witt vector rings.
theorem WittVector.liftEquiv_apply E0 #
∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {S : Type u_2} [inst_2 : Semiring S]
(f : { f // ∀ (k₁ k₂ : ℕ) (hk : k₁ ≤ k₂), (TruncatedWittVector.truncate hk).comp (f k₂) = f k₁ }),
WittVector.liftEquiv f = WittVector.lift ↑f ⋯
theorem WittVector.liftEquiv_symm_apply_coe E0 #
∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {S : Type u_2} [inst_2 : Semiring S]
(g : S →+* WittVector p R) (k : ℕ), ↑(WittVector.liftEquiv.symm g) k = (WittVector.truncate k).comp g
theorem WittVector.hom_ext E1 #
∀ {p : ℕ} {R : Type u_1} [inst : CommRing R] [inst_1 : Fact (Nat.Prime p)] {S : Type u_2} [inst_2 : Semiring S]
(g₁ g₂ : S →+* WittVector p R),
(∀ (k : ℕ), (WittVector.truncate k).comp g₁ = (WittVector.truncate k).comp g₂) → g₁ = g₂