Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The local degree formula: rk⁡ZpF℘≤ef\operatorname{rk}_{\mathbb{Z}_p} \mathbb{F}_\wp \le efrkZp​​F℘​≤ef

Proved
Leopoldt.rank_adicCompletion_le_ramificationIdx_mul_inertiaDeg

by Shuze Chen · Sep 11, 2026 · Mathlib 0df444a (Lean v4.33.1)

local-fieldsnumber-theoryp-adic

Let ppp be a prime, F\mathbb{F}F a number field and ℘\wp℘ a prime of O(F)\mathcal{O}(\mathbb{F})O(F) above ppp, and let F℘\mathbb{F}_\wpF℘​ be the completion. Write e=e(℘∣p)e = e(\wp \mid p)e=e(℘∣p) for the ramification index and f=f(℘∣p)f = f(\wp \mid p)f=f(℘∣p) for the residue degree of ℘\wp℘ over Z\mathbb{Z}Z. Then, as a Zp\mathbb{Z}_pZp​-module,

rk⁡ZpF℘  ≤  ef.\operatorname{rk}_{\mathbb{Z}_p} \mathbb{F}_\wp \;\le\; e f .rkZp​​F℘​≤ef.

This is the local degree formula [F℘:Qp]=ef[\mathbb{F}_\wp : \mathbb{Q}_p] = ef[F℘​:Qp​]=ef, in the form of an inequality of Zp\mathbb{Z}_pZp​-ranks. Its global counterpart, ∑℘∣pe℘f℘=[F:Q]\sum_{\wp \mid p} e_\wp f_\wp = [\mathbb{F}:\mathbb{Q}]∑℘∣p​e℘​f℘​=[F:Q], is in Mathlib; the local statement — that completing at ℘\wp℘ turns that summand into the degree of the completion over Qp\mathbb{Q}_pQp​ — is not.

The classical proof is that O℘\mathcal{O}_\wpO℘​ is a free Zp\mathbb{Z}_pZp​-module with basis {πiωj}0≤i<e, 0≤j<f\{\pi^i \omega_j\}_{0 \le i < e,\ 0 \le j < f}{πiωj​}0≤i<e, 0≤j<f​, where π\piπ is a uniformiser and the ωj\omega_jωj​ lift a basis of the residue field over Fp\mathbb{F}_pFp​; the field F℘\mathbb{F}_\wpF℘​ is O℘[1/p]\mathcal{O}_\wp[1/p]O℘​[1/p], of the same rank. Only the upper bound is asserted here, which is all that the applications need.

Formalization note. The Zp\mathbb{Z}_pZp​-algebra structure on F℘\mathbb{F}_\wpF℘​ is the one supplied by Definitions.Def_PadicLog: the canonical map Zp→F℘\mathbb{Z}_p \to \mathbb{F}_\wpZp​→F℘​ obtained as the limit of the integer approximations. Ideal.ramificationIdx and Ideal.inertiaDeg are taken relative to Z\mathbb{Z}Z, matching the shape in which the mission's statement Leopoldt.rank_oneUnits_le_ramificationIdx_mul_inertiaDeg uses them.

Preamble
import Definitions.Def_PadicLog

open NumberField IsDedekindDomain
Formal statement
namespace Leopoldt
theorem rank_adicCompletion_le_ramificationIdx_mul_inertiaDeg (p : ℕ) [Fact p.Prime]
    (F : Type*) [Field F] [NumberField F] (v : PrimesOver p F) :
    Module.rank ℤ_[p] (v.1.adicCompletion F)
      ≤ (v.1.asIdeal.ramificationIdx ℤ * v.1.asIdeal.inertiaDeg ℤ : ℕ) := by sorry
end Leopoldt
Source
The local degree formula for a complete discretely valued field: [F_wp : Q_p] = e(wp|p) f(wp|p). See J. Neukirch, Algebraic Number Theory, Springer Grundlehren 322 (1999), Chapter II, Section 6 (Proposition 6.8: for a complete discretely valued field, the degree of a finite extension is the product of the ramification index and the residue degree), together with Chapter II, Section 8 for the number-field case; or J.-P. Serre, Local Fields, Springer GTM 67 (1979), Chapter II, Section 3, Proposition 10. It is submitted as the remaining input of the mission's leaf Leopoldt.rank_oneUnits_le_ramificationIdx_mul_inertiaDeg after the p-adic analytic content of that leaf has been discharged by the p-adic logarithm; Mathlib has the global formula (sum over the primes above p of e*f equals the degree, Ideal.sum_ramification_inertia) but not the local one.

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me