Principal ideal powers, S-units and a class number bound
Lib.General.NumberTheory.SUnitsAndClassNumber.lean
Reading
Upstream documentation written by Claude
For every ideal
Iof a ring of integers of a number field some powerI ^ nwithn ≠ 0is principal. For ideals of norm greater than 1 the generators can be chosen large at every complex embedding.Main definitions and results
New.ThetaTori.exists_pow_eq_span_inv_lt: for an ideal of norm greater than 1, some power is principal with a non-unit generator of arbitrarily large absolute value at every complex embedding.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
New.SUnit.dirichlet_unit_theorem: for a finite setSof finite places of a number fieldK, theS-units are finitely generated of rank#S + #(infinite places) - 1. This follows from Mathlib's unit theorem and the finiteness of the class number, in the formNew.exists_valuation_eq_exp_mul. Valuations are multiplicative, with values inℤᵐ⁰, and a uniformiser has valuationexp (-1).New.eq_zero_of_forall_norm_lt_one: an algebraic integer of absolute value below1at every infinite place is0. HereΦ v, from an instance ofNew.PlaceEmbedding, is a chosen complex embedding that induces the infinite placev.New.classNumber_le: a number field of degreenand discriminantdhas class number at most(2 ^ n * |d|) ^ (n + 1).
Minkowski's bound is at most 2 ^ n * |d| (New.minkowski_bound_le_two_pow_mul_discr), so each
class has an integral ideal of norm k ≤ 2 ^ n * |d| as a member. Such an ideal is generated by
k and one more element, and the proof counts the possible pairs.
New.conj_mem_quadInt: for a primed ≡ 7mod8, the ringNew.quadInt d, the image of the ring of integers of ℚ(√−d) in ℂ, is stable under complex conjugation.
Relation to the literature
Dirichlet's S-unit theorem is deduced from the unit theorem in Mathlib, and the class number bound
is a crude explicit form of the finiteness of the class number, deduced from Minkowski's bound in
Mathlib.
Declarations
lemma New.classNumber_le (F : Type*) [Field F] [NumberField F] : classNumber F ≤ (2 ^ finrank ℚ F * (discr F).natAbs) ^ (finrank ℚ F + 1)
Import route to Main
Lib.General.NumberTheory.SUnitsAndClassNumber → Lib.CM.Sigma.ThetaSections (pinned import) → Lib.CM.GoodReduction (pinned import) → Lib.CM.FiniteLattices (pinned import) → New.Derivatives.Vacuum.IntegralVacuum (pinned import) → New.Reduction.Data.AdmissibleData (pinned import) → New.Reduction.Data.Existence (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)