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(New/Derivatives/FormalGroup/Resolution): extract resolution sum entry helper

Rohan Arun9c727730c0c9
diff --git a/src/New/Derivatives/FormalGroup/Resolution.lean b/src/New/Derivatives/FormalGroup/Resolution.lean
index 8a68288501d..79f5ad90510 100644
--- a/src/New/Derivatives/FormalGroup/Resolution.lean
+++ b/src/New/Derivatives/FormalGroup/Resolution.lean
@@ -125,6 +125,20 @@ noncomputable def daggerForms [PadicPlace p] (u : J → n → E) (j : J) (x : In
ℂ_[p] :=
ιₚ (dagger (u j) x)
+/-- For a resolution datum `(u, m)` and integral `ℂ_p` lifts `ν`, `μ` of the frame and
+dual-form values at `x`, the weighted sum `∑ j, m j * ν j * μ j y` equals `1` if `x = y` and
+`0` otherwise. -/
+private lemma sum_mul_valRingCp_eq_ite {E J n : Type*} [Field E] [CMType E] [Fintype J]
+ {p : ℕ} [PadicPlace p] [Fintype n] {u : J → n → E} {m : J → ℕ}
+ (hu : IsResolution u m) (x : InfinitePlace E × n) {ν : J → valRingCp p}
+ {μ : J → InfinitePlace E × n → valRingCp p}
+ (hν : ∀ j : J, (ν j : ℂ_[p]) = ιₚ (Φ x.1 (u j x.2)))
+ (hμ : ∀ (j : J) (y : InfinitePlace E × n), (μ j y : ℂ_[p]) = daggerForms u j y)
+ (y : InfinitePlace E × n) :
+ ∑ j : J, m j * ν j * μ j y = if x = y then 1 else 0 := by
+ ext
+ simpa [hν, hμ, daggerForms, mul_assoc, apply_ite] using congrArg ιₚ (hu x y)
+
/-- Let `∑ m_j u_j u_j† = 1` (`IsResolution u m`), where `u j` in `Eⁿ` is read as the complex vector
with coordinates `Φ w (u j c)`, and fix `x = (w, c)`. Suppose the integral elements `ν j` of `ℂ_p`
are the images of `Φ w (u j c)` under the embedding `ιₚ` of `ℂ`, and the integral vectors `μ j` are
@@ -136,9 +150,8 @@ lemma IsResolution.sum_smul_linearSeries [PadicPlace p] [Fintype n] {u : J → n
(hν : ∀ j : J, (ν j : ℂ_[p]) = ιₚ (Φ x.1 (u j x.2)))
(hμ : ∀ (j : J) (y : InfinitePlace E × n), (μ j y : ℂ_[p]) = daggerForms u j y) :
∑ j : J, (m j * ν j) • linearSeries (μ j) = MvPowerSeries.X x := by
- have h_entry (y : InfinitePlace E × n) : ∑ j, m j * ν j * μ j y = if x = y then 1 else 0 := by
- ext
- simpa [hν, hμ, daggerForms, mul_assoc, apply_ite] using congrArg ιₚ (hu x y)
+ have h_entry (y : InfinitePlace E × n) : ∑ j, m j * ν j * μ j y = if x = y then 1 else 0 :=
+ sum_mul_valRingCp_eq_ite hu x hν hμ y
simp_rw [← linearSeries_smul]
rw [← linearSeries_sum]
simp [linearSeries, Finset.sum_apply, h_entry]