Proved
Leopoldt.units_rank_eq_defect_add_zpRankBelowleopoldtnumber-theory
Let be a prime and a number field, with and the -adic closure of in the semilocal units . Then Dirichlet's unit rank splits as the Leopoldt defect plus the -rank of the closure:
This is the defining relation read as an identity of natural numbers; it holds exactly because , so that the truncated subtraction used in the Lean definition of defect coincides with the true difference. It lets one move freely between statements about the defect and statements about the rank of .
Formalization Note defect p K is Units.rank K - zpRankBelow p (finrank ℚ K) (unitClosure p K) with truncated natural-number subtraction (Definitions.Def_LeopoldtDefect).
Preamble
import Definitions.Def_LeopoldtDefect open NumberField
Formal statement
namespace Leopoldt
theorem units_rank_eq_defect_add_zpRankBelow (p : ℕ) [Fact p.Prime]
(K : Type*) [Field K] [NumberField K] :
Units.rank K = defect p K + zpRankBelow p (Module.finrank ℚ K) (unitClosure p K) := by sorry
end Leopoldt
Source
P. Mihăilescu, On CM -extensions and the Leopoldt conjecture for CM fields, arXiv:1105.4544, §1.1 (Notations and fundamental facts): definition of the Leopoldt defect as a non-negative integer (Leopoldt's conjecture: ).