The unit rank is positive except for and imaginary quadratic fields
ProvedDirichletUnitTheorem.unit_rank_pos_iffLet be a number field. The unit rank of is positive if and only if is neither nor an imaginary quadratic field:
Equivalently, and the imaginary quadratic fields are exactly the number fields with only finitely many units.
Formalization Note " is " is encoded as ; "imaginary quadratic" as degree and IsTotallyComplex.
import Mathlib open NumberField
namespace DirichletUnitTheorem
theorem unit_rank_pos_iff (K : Type*) [Field K] [NumberField K] :
0 < Module.rank ℤ (Additive (𝓞 K)ˣ) ↔
¬ (Module.finrank ℚ K = 1 ∨ (Module.finrank ℚ K = 2 ∧ IsTotallyComplex K)) := 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 : the rank of (a cardinal) is strictly greater than if and only if it is not the case that either , or ( and is totally complex, i.e. every infinite place of is complex).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.