A (mostly) human formalization in Lean 4 / Mathlib of the Stickelberger theorem and the
Kronecker-Weber theorem.
Both theorems are now formalized, modulo a handful of statements that are waiting on
Mathlib pull requests (see Status below).
This repository is no longer kept up to date. The work now continues in Mathlib, in the pull requests #46022 (Stickelberger) and #46376 (Kronecker-Weber), and in the pull requests they depend on.
- Blueprint
- Blueprint as pdf
- Dependency graph
- Documentation pages for this repository
- Lean Zulip channel for coordination
Stickelberger's theorem describes how prime ideals of ℤ[ζ] (where ζ is a root of
unity) factor in terms of Gauss sums: it produces an explicit element of the group ring
ℤ[Gal(ℚ(ζ)/ℚ)] — the Stickelberger element — that annihilates the class group of
ℚ(ζ). In this project it is stated as
stickelberger_theorem:
the Stickelberger element annihilates the ideal class group of a cyclotomic field. The
proof, adapted to Mathlib, is in the pull request
#46022; the results it needs
are being upstreamed one by one from this project.
The Kronecker-Weber theorem states that every abelian extension of ℚ is contained in
a cyclotomic field ℚ(ζₙ) for some n. It is stated as
kronecker_weber.
The proof formalized here proceeds by reducing to abelian extensions of prime power degree
ramified at a single prime, and derives the Kronecker-Weber theorem from Stickelberger's
theorem following the approach of Lemmermeyer's paper
Kronecker-Weber via Stickelberger. The proof, adapted to
Mathlib, is in the pull request
#46376, which builds on #46022.
Both Stickelberger and kronecker_weber are proved, and no file of this project contains
a sorry of its own. What remains are a few statements admitted on purpose, each of them a
result submitted to Mathlib and awaiting review; until those land,
#print axioms kronecker_weber still reports sorryAx.
These statements live in
SKW.Prereqs.OtherPR and
SKW.PRed2Mathlib.Teichmuller.
The up-to-date list of the Mathlib pull requests the two proofs depend on is kept in the
descriptions of #46022 and
#46376.
The blueprint tracks the mathematical proof and its Lean status, and the dependency graph shows how the pieces fit together.
SKW/Stickelberger/Stickelberger.leanandSKW/KroneckerWeber/KroneckerWeber.leancontain the main development; the Teichmüller character they rely on has been submitted to Mathlib (#45940) and lives inSKW/PRed2Mathlib/Teichmuller.leanuntil it is merged.SKW/Prereqs/Stickelberger.leanandSKW/Prereqs/KroneckerWeber.leangather the general results these files need that are not (yet) in Mathlib.SKW/Prereqs/OtherPR.leanholds the admitted statements listed above, andSKW/PRed2Mathlib/the results already submitted to Mathlib, to be deleted once merged.SKW/Upstream.leancollects results not needed for the proof but worth adding to Mathlib.Archive/keeps older material that is no longer built.
This project is released under the Apache 2.0 license, the same license as Mathlib.
Claude Code was used as an assistant for this project. Beyond searching Mathlib for existing results, carrying out mechanical refactorings (renamings, moving material to its proper file, following the Mathlib naming conventions) and keeping the blueprint in step with the Lean code, Claude also took part in the mathematics: finding the right form for several statements, proposing the mathematical proof of some intermediate steps, and spotting where an argument could be simplified or made more general.
This project relies on Mathlib, the
Lean community's mathematical library, and on the
leanblueprint and
doc-gen4 tools for the blueprint and
documentation websites.