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 RingTheory.WittVector.Basic
.
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 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 #
witt_vector p R
: the type ofp
-typical Witt vectors with coefficients inR
.witt_vector.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 #
-
[Hazewinkel, Witt Vectors][Haze09]
-
[Commelin and Lewis, Formalizing the Ring of Witt Vectors][CL21]
witt_vector 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 witt_vector p R
is a ring of characteristic 0
.
The canonical example is witt_vector 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
- (_ : LawfulFunctor (WittVector p)) = (_ : LawfulFunctor (WittVector p))
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 witt_vector.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 structure_polynomial.lean
establishes the
ring operations on π R
. For example, witt_vector.witt_add
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.instZeroWittVector R = { zero := WittVector.eval (WittVector.wittZero p) ![] }
Equations
- WittVector.instInhabitedWittVector R = { default := 0 }
Equations
- WittVector.instOneWittVector R = { one := WittVector.eval (WittVector.wittOne p) ![] }
Equations
- WittVector.instAddWittVector R = { add := fun (x y : WittVector p R) => WittVector.eval (WittVector.wittAdd p) ![x, y] }
Equations
- WittVector.instSubWittVector R = { sub := fun (x y : WittVector p R) => WittVector.eval (WittVector.wittSub p) ![x, y] }
Equations
- WittVector.hasNatScalar R = { smul := fun (n : β) (x : WittVector p R) => WittVector.eval (WittVector.wittNSMul p n) ![x] }
Equations
- WittVector.hasIntScalar R = { smul := fun (n : β€) (x : WittVector p R) => WittVector.eval (WittVector.wittZSMul p n) ![x] }
Equations
- WittVector.instMulWittVector R = { mul := fun (x y : WittVector p R) => WittVector.eval (WittVector.wittMul p) ![x, y] }
Equations
- WittVector.instNegWittVector R = { neg := fun (x : WittVector p R) => WittVector.eval (WittVector.wittNeg p) ![x] }
Equations
- WittVector.hasNatPow R = { pow := fun (x : WittVector p R) (n : β) => WittVector.eval (WittVector.wittPow p n) ![x] }
Equations
- WittVector.instNatCastWittVector R = { natCast := Nat.unaryCast }
Equations
- WittVector.instIntCastWittVector R = { intCast := Int.castDef }