Dirichlet's unit theorem
ProvedFamousTheorems.dirichlet_unit_theoremDirichlet's unit theorem. Let be a number field with real and complex places, and put . There are units of the ring of integers such that every unit can be written uniquely as
Thus .
It is one of the two finiteness theorems of algebraic number theory, alongside finiteness of the class number. It is the source of the regulator in the class number formula, and it explains Pell's equation for real quadratic fields.
Formalization note. Mathlib's NumberField.Units.exist_unique_eq_mul_prod, with the fundamental system NumberField.Units.fundSystem K as witness. NumberField.Units.rank K is defined as the number of infinite places minus one, i.e. , and NumberField.Units.torsion K is the subgroup of roots of unity.
import Mathlib
namespace FamousTheorems
theorem dirichlet_unit_theorem (K : Type*) [Field K] [NumberField K] :
∃ u : Fin (NumberField.Units.rank K) → (NumberField.RingOfIntegers K)ˣ, ∀ x : (NumberField.RingOfIntegers K)ˣ,
∃! ζe : NumberField.Units.torsion K × (Fin (NumberField.Units.rank K) → ℤ),
x = (ζe.1 : (NumberField.RingOfIntegers K)ˣ) * ∏ i, u i ^ ζe.2 i := by sorry
end FamousTheoremsConfirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.