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): use section binders and call helper directly

Rohan Arun4e9efa29689c
diff --git a/src/New/Derivatives/FormalGroup/Resolution.lean b/src/New/Derivatives/FormalGroup/Resolution.lean
index 79f5ad90510..5d895610705 100644
--- a/src/New/Derivatives/FormalGroup/Resolution.lean
+++ b/src/New/Derivatives/FormalGroup/Resolution.lean
@@ -128,10 +128,9 @@ noncomputable def daggerForms [PadicPlace p] (u : J → n → E) (j : J) (x : In
/-- 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}
+private lemma sum_mul_valRingCp_eq_ite [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) :
@@ -150,11 +149,9 @@ 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 :=
- sum_mul_valRingCp_eq_ite hu x hν hμ y
simp_rw [← linearSeries_smul]
rw [← linearSeries_sum]
- simp [linearSeries, Finset.sum_apply, h_entry]
+ simp [linearSeries, Finset.sum_apply, sum_mul_valRingCp_eq_ite hu x hν hμ]
/-- The product `∏ θ(μ_j z) ^ m j` of copies of the theta function `C.θ` along linear forms `μ_j`,
as a power series with coefficients in `ℂ_p`. Here `C` is a lattice in `ℂ` with a point `t` of