Unit rank of is
ProvedLeopoldt.units_rank_cyclotomicFieldLet be a natural number and let be the -th cyclotomic field. Its unit rank, i.e. the -rank of the unit group of its ring of integers given by Dirichlet's unit theorem, is
where is Euler's totient function and the subtraction is truncated at .
For the field has degree and is totally complex, so , and the rank is . For the field is and the rank is , which the formula also gives since . In particular the unit rank is at most exactly when , i.e. for the fields , , , , , ; this is the range in which statements about the unit group of cyclotomic fields (such as Leopoldt's conjecture) are elementary.
Formalization Note. CyclotomicField n ℚ is Mathlib's splitting field of the -th cyclotomic polynomial over ; for that polynomial is the constant and the field is . Natural-number division and subtraction are truncating, matching with .
import Mathlib.NumberTheory.NumberField.Cyclotomic.Embeddings import Mathlib.NumberTheory.NumberField.Units.DirichletTheorem open NumberField
namespace Leopoldt
theorem units_rank_cyclotomicField (n : ℕ) :
Units.rank (CyclotomicField n ℚ) = n.totient / 2 - 1 := by sorry
end Leopoldt