Skip to content

Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.

Python

refactor(Lib/PadicHodge/Limit): extract coefficient-ring norm bound in exists_uniform_trace_sum_eq_jump

Rohan Arun0ce6abbdc3ff
diff --git a/src/Lib/PadicHodge/Limit/TraceLimit.lean b/src/Lib/PadicHodge/Limit/TraceLimit.lean
index 5059f1fb914..70c23a0fafc 100644
--- a/src/Lib/PadicHodge/Limit/TraceLimit.lean
+++ b/src/Lib/PadicHodge/Limit/TraceLimit.lean
@@ -280,6 +280,25 @@ private lemma New.Period.map_mulVec_apply_eq_smul_of_isHodgeFrame {p : ℕ} [The
simp [↓map_mul, O.map_adjugate, comp_def, ← map_det, hy, hY_det, hUU', M, h_conj.eq,
mul_assoc, mul_adjugate, -mapMatrix_apply, ← U.map_mul, map_smul',
-TensorProduct.algebraMap_apply, smul_mulVec]
+/-- Choose a coefficient subring `R : CoeffRing p` containing unit-norm elements of
+`localFieldOf Γ` and a bound `κ : BdRPlus` with `thetaBdR κ ≠ 0` such that
+`O y = e • z` implies `‖thetaBdR (κ * z)‖ ≤ 1`. -/
+private lemma New.Period.exists_coeffRing_norm_bound_of_overGp {p : ℕ} [ThePrime p]
+ (Γ : Type) [Group Γ] [OverGp Γ p] {e : Amax} (he_ne_zero : algebraMap Amax BdR e ≠ 0) :
+ ∃ (R : CoeffRing p) (κ : BdRPlus),
+ thetaBdR κ ≠ 0 ∧
+ (∀ x ∈ localFieldOf Γ, ‖x‖ ≤ 1 → x ∈ (R : Subalgebra ℤ_[p] (PadicAlgCl p))) ∧
+ ∀ {z : BdRPlus} {y : TensorProduct ℤ_[p] Amax R},
+ ((toAlgHom ℤ_[p] R BdRPlus).liftEquiv ℤ_[p] Amax R BdRPlus) y = e • z →
+ ‖thetaBdR (κ * z)‖ ≤ 1 := by
+ obtain ⟨R, hR⟩ : ∃ R : CoeffRing p,
+ ∀ x ∈ localFieldOf Γ, ‖x‖ ≤ 1 → x ∈ (R : Subalgebra ℤ_[p] (PadicAlgCl p)) := by
+ obtain ⟨s, hs⟩ := (localFieldOf Γ).essFiniteType_iff.mp inferInstance
+ rw [← hs]
+ exact CoeffRing.exists_mem_of_mem_adjoin s
+ obtain ⟨κ, hκ, h_bound⟩ := exists_norm_thetaBdR_mul_le R he_ne_zero
+ exact ⟨R, κ, hκ, hR, fun hy ↦ h_bound hy⟩
+
/-- Hodge–Tate projectors of lattices with jumps in `[0, n]` have bounded denominators (`𝒥` maps `Γ`
to `Gp p` with open image). Some `t ∈ ℂ_p`, depending on `Γ`, `n`, `w` only, serves each crystalline
`T` with jumps in `[0, n]`, basis `ε`, `x ∈ T`. Some `z` has (a) `‖z s‖ ≤ 1` and (b) for potentially
@@ -306,18 +325,12 @@ lemma New.Period.exists_uniform_trace_sum_eq_jump {p : ℕ} [ThePrime p] (Γ : T
-- `e` is a uniform denominator: every such `T` has a period matrix `U` over `Amax`, with
-- invariant columns, and `U'` with `U * U' = e • 1`.
obtain ⟨e, he_unit, h_unif⟩ := Lift.uniform_period_bound Γ n
- -- `R` contains the integers of `localFieldOf Γ`, a finite extension of `ℚ_p`.
- obtain ⟨R, hR⟩ : ∃ R : CoeffRing p,
- ∀ x ∈ localFieldOf Γ, ‖x‖ ≤ 1 → x ∈ (R : Subalgebra ℤ_[p] (PadicAlgCl p)) := by
- obtain ⟨s, hs⟩ := (localFieldOf Γ).essFiniteType_iff.mp inferInstance
- rw [← hs]
- exact CoeffRing.exists_mem_of_mem_adjoin s
have he_ne_zero : algebraMap Amax BdR e ≠ 0 :=
(algebraMap_apply _ Bmax BdR e).trans_ne (he_unit.map _).ne_zero
- -- `O` is the map `Amax ⊗ R → BdRPlus`; `κ` bounds the denominators of preimages under `O`.
+ obtain ⟨R, κ, hκ, hR, h_bound⟩ :=
+ New.Period.exists_coeffRing_norm_bound_of_overGp Γ he_ne_zero
set O : TensorProduct ℤ_[p] Amax R →ₐ[Amax] BdRPlus :=
(toAlgHom ℤ_[p] R BdRPlus).liftEquiv ℤ_[p] Amax R BdRPlus
- obtain ⟨κ, hκ, h_bound⟩ := exists_norm_thetaBdR_mul_le R he_ne_zero
refine ⟨(thetaBdR κ)⁻¹, fun {T ι} _ _ _ ε ρ x h_crys ↦ ?_⟩
obtain ⟨U, U', hUU', hU⟩ := (h_unif ε h_crys).right
-- The invariant matrix `U` becomes a Hodge frame: `U * Y = hodgeMatrix W k = W * diag (t ^ k)`,