Johan Commelin and I have released a preprint of our new paper, Formalizing the Ring of Witt Vectors! (Update, Nov 25: the paper has been accepted at CPP ‘21.) We describe the construction of the p-typical Witt vectors and their ring structure in Lean, and show that the ring of Witt vectors over the integers modulo p is isomorphic to the ring of p-adic integers.
Witt vectors are a notoriously messy topic to cover informally. The ring structure depends on a layer of definitions binding certain polynomials together. Without caution, trying to prove things about this ring structure can lead to unfolding horrible polynomial identities that are both intractable and unenlightening.
Johan and I developed a framework in Lean to vastly simplify these calculations. The horror is minimized and neatly contained in one or two preliminary proofs; after that, some simple Lean metaprograms are able to handle these calculations cleanly and uniformly.