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/Shimura/GoodReduction): keep the calc in bddAbove_of_mem_sizes

Sheapec65766a55399
diff --git a/src/Lib/Shimura/GoodReduction/TorsionSizes.lean b/src/Lib/Shimura/GoodReduction/TorsionSizes.lean
index 85379a6eeb8..bbbc2597595 100644
--- a/src/Lib/Shimura/GoodReduction/TorsionSizes.lean
+++ b/src/Lib/Shimura/GoodReduction/TorsionSizes.lean
@@ -367,7 +367,7 @@ points of `V/L`, where `f` is a theta function of type (`B`, χ) for some χ wit
Every such φ is bounded above. -/
lemma bddAbove_of_mem_sizes (hφ : φ ∈ B.sizes v) : BddAbove (range φ) := by
-- Let `φ` be the size of `g`, with multiplier of order dividing `n`. Then `g ^ (4 * n)` is a
- -- combination of translates of `g (2 ·) ^ n`, with coefficients `c i`. Write `|c i|` for
+ -- combination of translates of `g₂ = g (2 ·) ^ n`, with coefficients `c i`. Write `|c i|` for
-- `v (c i)`.
-- The maximum `M` of `φ` on a group `H`, finite modulo `L`, holding the translations and a given
-- point then has `M ^ (4 * n) ≤ M ^ n * max |c i|`, so `M ≤ max 1 (max |c i|)`.
@@ -379,6 +379,7 @@ lemma bddAbove_of_mem_sizes (hφ : φ ∈ B.sizes v) : BddAbove (range φ) := by
obtain ⟨t, ht, c, hc⟩ :=
(mem_span_image_iff_exists_fun ℂ).mp
(h_ample.isAppellHumbert.pow_four_mul_mem_span_thetaShift h_ample.isPosRiemann hn hχn hg)
+ set g₂ : V → ℂ := (g ∘ ((2 : ℂ) • ·)) ^ n
refine ⟨1 ⊔ iSup (v ∘ c), forall_mem_range.mpr fun ⟨x, m, hm, hx⟩ ↦ ?_⟩
-- `H`: the points killed by `N * m` modulo `L`; `φ` is periodic, so takes finitely many values
let H : Submodule ℤ (torsionPoints L) := L.comap ((N * m) • (torsionPoints L).subtype)
@@ -398,10 +399,12 @@ lemma bddAbove_of_mem_sizes (hφ : φ ∈ B.sizes v) : BddAbove (range φ) := by
rw [← hc]
refine sizeAt_sum_le fun i _ ↦ ?_
rw [← map_smul]
- refine (hB.sizeAt_thetaShift (a i) z).trans_le ?_
- rw [sizeAt_smul_pow_comp_two]
- gcongr
- exacts [h_le _ (nsmul_mem (add_mem z.property (ha i)) 2), Finite.le_ciSup (v ∘ c) i]
+ calc _ = ((4 * n) • B).sizeAt v (c i • g₂) (z + a i) := hB.sizeAt_thetaShift (a i) z
+ _ = B.sizeAt v g (2 • (z + a i)) ^ n * v (c i) :=
+ sizeAt_smul_pow_comp_two (c i) (z + a i : torsionPoints L)
+ _ ≤ M ^ n * iSup (v ∘ c) := by
+ gcongr
+ exacts [h_le _ (nsmul_mem (add_mem z.property (ha i)) 2), Finite.le_ciSup (v ∘ c) i]
have h_pow : M ^ (4 * n) ≤ M ^ n * iSup (v ∘ c) := by
rw [iSup_pow]
exact ciSup_le' fun z ↦ (sizeAt_pow.ge (z : torsionPoints L)).trans (h_size_pow_le z)