Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Dirichlet's unit theorem for orders

Proved
DirichletUnitTheorem.dirichlet_unit_theorem_order

by Lucas · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebraic-number-theorynumber-theory

Let KKK be a number field and let O⊆OK\mathcal O\subseteq\mathcal O_KO⊆OK​ be an order, i.e. a subring of OK\mathcal O_KOK​ of finite index (as an additive subgroup). Then O×\mathcal O^\timesO× is finitely generated of rank

rank⁡O×=r1+r2−1.\operatorname{rank}\mathcal O^\times = r_1 + r_2 - 1.rankO×=r1​+r2​−1.

So the unit theorem applies not only to the maximal order OK\mathcal O_KOK​ but to every order.

Formalization Note An order is encoded as a subring of OK\mathcal O_KOK​ whose additive group has finite index; every order of KKK is of this form.

Preamble
import Mathlib
open NumberField
Formal statement
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 DirichletUnitTheorem
Source
Wikipedia, "Dirichlet's unit theorem" (article supplied by the account owner as a PDF), lead section ("The theorem not only applies to the maximal order OK but to any order O ⊂ OK").
Read-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, KKK is a number field (a field of characteristic zero that is finite-dimensional over Q\mathbb QQ), OK\mathcal O_KOK​ is its ring of integers and OK×\mathcal O_K^\timesOK×​ the unit group. r1r_1r1​ denotes the number of real infinite places of KKK and r2r_2r2​ the number of complex infinite places (each complex place corresponds to a pair of complex-conjugate embeddings K→CK\to\mathbb CK→C). The rank of an abelian group AAA is its rank as a Z\mathbb ZZ-module: the supremum of the cardinalities of Z\mathbb ZZ-linearly independent families (for the multiplicative group OK×\mathcal O_K^\timesOK×​: multiplicatively independent families). Torsion elements never belong to such a family. Statement. Let KKK be a number field and O\mathcal OO a subring of OK\mathcal O_KOK​ whose underlying additive subgroup has finite index in OK\mathcal O_KOK​. Then the unit group O×\mathcal O^\timesO× of the ring O\mathcal OO is finitely generated, and its rank (a cardinal) equals the natural number r1+r2−1r_1+r_2-1r1​+r2​−1 (truncated subtraction; r1+r2≥1r_1+r_2\ge1r1​+r2​≥1 always).

Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 10, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me