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 n
th value of the sum of two Witt vectors can depend on the 0
-th through n
th values
of the summands. This effectively simulates a βcarryingβ operation.
Main definitions #
WittVector p R
: the type ofp
-typical Witt vectors with coefficients inR
.WittVector.coeff x n
: projects then
th value of the Witt vectorx
.
Notation #
We use notation π R
, entered \bbW
, for the Witt vectors over R
.
References #
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]
.
- mk' :: (
- coeff : β β R
x.coeff n
is then
th coefficient of the Witt vectorx
.This concept does not have a standard name in the literature.
- )
Instances For
Construct a Witt vector mk p x : π R
from a sequence x
of elements of R
.
Equations
- WittVector.mk p coeff = { coeff := coeff }
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- β― = β―
The polynomials used for defining the element 0
of the ring of Witt vectors.
Equations
Instances For
The polynomials used for defining the element 1
of the ring of Witt vectors.
Equations
Instances For
The polynomials used for defining the addition of the ring of Witt vectors.
Equations
Instances For
The polynomials used for defining repeated addition of the ring of Witt vectors.
Equations
- WittVector.wittNSMul p n = wittStructureInt p (n β’ MvPolynomial.X 0)
Instances For
The polynomials used for defining repeated addition of the ring of Witt vectors.
Equations
- WittVector.wittZSMul p n = wittStructureInt p (n β’ MvPolynomial.X 0)
Instances For
The polynomials used for describing the subtraction of the ring of Witt vectors.
Equations
Instances For
The polynomials used for defining the multiplication of the ring of Witt vectors.
Equations
Instances For
The polynomials used for defining the negation of the ring of Witt vectors.
Equations
Instances For
The polynomials used for defining repeated addition of the ring of Witt vectors.
Equations
- WittVector.wittPow p n = wittStructureInt p (MvPolynomial.X 0 ^ n)
Instances For
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.
Equations
- WittVector.peval Ο x = (MvPolynomial.aeval (Function.uncurry x)) Ο
Instances For
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 n
th 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β
.
Equations
- WittVector.eval Ο x = WittVector.mk p fun (n : β) => WittVector.peval (Ο n) fun (i : Fin k) => (x i).coeff
Instances For
Equations
- WittVector.instZero = { zero := WittVector.eval (WittVector.wittZero p) ![] }
Equations
- WittVector.instInhabited = { default := 0 }
Equations
- WittVector.instOne = { one := WittVector.eval (WittVector.wittOne p) ![] }
Equations
- WittVector.instAdd = { add := fun (x y : WittVector p R) => WittVector.eval (WittVector.wittAdd p) ![x, y] }
Equations
- WittVector.instSub = { sub := fun (x y : WittVector p R) => WittVector.eval (WittVector.wittSub p) ![x, y] }
Equations
- WittVector.hasNatScalar = { smul := fun (n : β) (x : WittVector p R) => WittVector.eval (WittVector.wittNSMul p n) ![x] }
Equations
- WittVector.hasIntScalar = { smul := fun (n : β€) (x : WittVector p R) => WittVector.eval (WittVector.wittZSMul p n) ![x] }
Equations
- WittVector.instMul = { mul := fun (x y : WittVector p R) => WittVector.eval (WittVector.wittMul p) ![x, y] }
Equations
- WittVector.instNeg = { neg := fun (x : WittVector p R) => WittVector.eval (WittVector.wittNeg p) ![x] }
Equations
- WittVector.hasNatPow = { pow := fun (x : WittVector p R) (n : β) => WittVector.eval (WittVector.wittPow p n) ![x] }
Equations
- WittVector.instNatCast = { natCast := Nat.unaryCast }
Equations
- WittVector.instIntCast = { intCast := Int.castDef }