Dirichlet's unit theorem
ProvedDirichletUnitTheorem.dirichlet_unit_theoremDirichlet's unit theorem. Let be a number field with ring of integers , let be the number of real embeddings of and the number of conjugate pairs of complex (non-real) embeddings of . Then the unit group is finitely generated, and its rank (the maximal number of multiplicatively independent units) is
Together with the finiteness of the torsion subgroup this means , where is the finite cyclic group of roots of unity in . It is one of the two basic finiteness theorems of algebraic number theory, alongside finiteness of the class group.
Formalization Note The rank is Mathlib's Module.rank ℤ of the additive version of the unit group, a cardinal; and are Mathlib's nrRealPlaces and nrComplexPlaces. The natural-number subtraction is harmless because .
import Mathlib open NumberField
namespace DirichletUnitTheorem
theorem dirichlet_unit_theorem (K : Type*) [Field K] [NumberField K] :
Group.FG (𝓞 K)ˣ ∧
Module.rank ℤ (Additive (𝓞 K)ˣ) =
((InfinitePlace.nrRealPlaces K + InfinitePlace.nrComplexPlaces K - 1 : ℕ) : Cardinal) := by sorry
end DirichletUnitTheoremRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind
Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted this Lean statement, at the explicit request of the account owner. Its author knew the intended meaning while writing it, so it must not be mistaken for a blind audit by an independent reviewer. Please compare it against the Lean code itself.
Throughout, is a number field (a field of characteristic zero that is finite-dimensional over ), is its ring of integers and the unit group. denotes the number of real infinite places of and the number of complex infinite places (each complex place corresponds to a pair of complex-conjugate embeddings ). The rank of an abelian group is its rank as a -module: the supremum of the cardinalities of -linearly independent families (for the multiplicative group : multiplicatively independent families). Torsion elements never belong to such a family. Statement. For every number field (in an arbitrary universe):
- the multiplicative group is finitely generated as a group, and
- the rank of , viewed as a cardinal number, equals the natural number (computed with truncated natural-number subtraction, which would give if ; this cannot occur, since every number field has at least one infinite place).
No other hypotheses are made.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.