Dirichlet's unit theorem for orders
ProvedDirichletUnitTheorem.dirichlet_unit_theorem_orderLet be a number field and let be an order, i.e. a subring of of finite index (as an additive subgroup). Then is finitely generated of rank
So the unit theorem applies not only to the maximal order but to every order.
Formalization Note An order is encoded as a subring of whose additive group has finite index; every order of is of this form.
import Mathlib open NumberField
namespace DirichletUnitTheorem
theorem dirichlet_unit_theorem_order (K : Type*) [Field K] [NumberField K]
(O : Subring (𝓞 K)) (hO : O.toAddSubgroup.FiniteIndex) :
Group.FG Oˣ ∧
Module.rank ℤ (Additive Oˣ) =
((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. Let be a number field and a subring of whose underlying additive subgroup has finite index in . Then the unit group of the ring is finitely generated, and its rank (a cardinal) equals the natural number (truncated subtraction; always).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.