Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.
Python
refactor(Lib/Adelic/TraceFormula): use the summability decay threshold
alkor2000b846786a4d48
diff --git a/src/Lib/Adelic/TraceFormula/Convergence.lean b/src/Lib/Adelic/TraceFormula/Convergence.leanindex 78832e0769a..c77230c6830 100644--- a/src/Lib/Adelic/TraceFormula/Convergence.lean+++ b/src/Lib/Adelic/TraceFormula/Convergence.lean@@ -272,21 +272,20 @@ theorem exists_tsum_enorm_kernelTerm_le_height {B : ℕ} {k : GInf E s → ℂ}simpa only [pow_zero, mul_one] usingh_bound Z g x 1 zero_le_one fun γ _ _ ↦ (le_prod_opNorm _).1.trans_eq (one_mul _).symm-/-- If `k` has decay of order at least `13 (card n)³`, then the terms of the rational points in+/-- If `k` has decay of order greater than `8 (card n)²`, then the terms of the rational points in`Z` in the kernel of `k ⊗ φ` are summable. -/-theorem summable_kernelTerm {B : ℕ} {k : GInf E s → ℂ} (hB : 13 * card n ^ 3 ≤ B)+theorem summable_kernelTerm {B : ℕ} {k : GInf E s → ℂ} (hB : 8 * card n ^ 2 < B)(φ : TestFunction (Gf E n))(hk : ∃ C : ℝ, ∀ g : GInf E s,‖k g‖ * (∏ w : InfinitePlace E, ‖((g w : GL n ℂ) : Matrix n n ℂ)‖) ^ B ≤ C)(Z : Set (U V.J)) (g x : G E s) :Summable fun γ : U V.J ↦ V.kernelTerm k φ (Z.indicator 1) g γ x := by- obtain ⟨C, -, h_bound⟩ := V.exists_tsum_enorm_kernelTerm_le_height- (eight_mul_sq_lt_of_thirteen_mul_cube_le card_pos hB) φ hk+ obtain ⟨C, -, h_bound⟩ := V.exists_tsum_enorm_kernelTerm_le_height hB φ hkexact Summable.of_eNorm ((h_bound Z g x).trans_lt ENNReal.ofReal_lt_top).ne/-- For a fixed real kernel of sufficient decay, the partial kernel at `g, x` is linear in thefinite test function. -/-def partialKernelLinear {B : ℕ} {k : GInf E s → ℂ} (hB : 13 * card n ^ 3 ≤ B)+def partialKernelLinear {B : ℕ} {k : GInf E s → ℂ} (hB : 8 * card n ^ 2 < B)(hk : ∃ C : ℝ, ∀ g : GInf E s,‖k g‖ * (∏ w : InfinitePlace E, ‖((g w : GL n ℂ) : Matrix n n ℂ)‖) ^ B ≤ C)(Z : Set (U V.J)) (g x : G E s) : TestFunction (Gf E n) →ₗ[ℂ] ℂ where@@ -298,9 +297,9 @@ def partialKernelLinear {B : ℕ} {k : GInf E s → ℂ} (hB : 13 * card n ^ 3map_smul' c φ := bysimp [partialKernel, kernelTerm, ← tsum_mul_left, mul_left_comm _ c]-/-- If `k` has decay of order at least `13 (card n)³`, then the values of `k ⊗ φ` at `x⁻¹ γ x`,+/-- If `k` has decay of order greater than `8 (card n)²`, then the values of `k ⊗ φ` at `x⁻¹ γ x`,for the rational points `γ` with characteristic polynomial in `S`, are summable. -/-theorem summable_polyTerm {B : ℕ} {k : GInf E s → ℂ} (hB : 13 * card n ^ 3 ≤ B)+theorem summable_polyTerm {B : ℕ} {k : GInf E s → ℂ} (hB : 8 * card n ^ 2 < B)(φ : TestFunction (Gf E n))(hk : ∃ C : ℝ, ∀ g : GInf E s,‖k g‖ * (∏ w : InfinitePlace E, ‖((g w : GL n ℂ) : Matrix n n ℂ)‖) ^ B ≤ C)@@ -460,8 +459,8 @@ theorem exists_norm_tsum_polyTerm_le {B : ℕ} {k : GInf E s → ℂ} (hB : 13 *obtain ⟨J, hJ, h_level, -⟩ := TestFunction.exists_isLevel_invariant φobtain ⟨κ, -, h_cusp⟩ := exists_height_le_or_cuspFrame (s := s) ⟨J, hJ.isOpen⟩set d := 4 * Core.numInfPlaces E * card n ^ 2- obtain ⟨C₀, hC₀, h₀⟩ := V.exists_tsum_enorm_kernelTerm_le_height- (eight_mul_sq_lt_of_thirteen_mul_cube_le card_pos hB) φ he.decay+ have hB_sum := eight_mul_sq_lt_of_thirteen_mul_cube_le card_pos hB+ obtain ⟨C₀, hC₀, h₀⟩ := V.exists_tsum_enorm_kernelTerm_le_height hB_sum φ he.decayobtain ⟨C₁, hC₁, h_moves⟩ := V.exists_tsum_enorm_kernelTerm_le_of_notMem hB φ he.decayobtain ⟨C₂, h_keeps⟩ := V.exists_norm_partialKernel_spanStabilizer_le hB φ he h_levelrefine ⟨max (C₀ * κ ^ d) (C₂ * κ ^ d + C₁ * κ ^ d), fun x S ↦ ?_⟩@@ -477,8 +476,8 @@ theorem exists_norm_tsum_polyTerm_le {B : ℕ} {k : GInf E s → ℂ} (hB : 13 *let stab := spanStabilizer V.J A.isotropicColsrw [show (∑' γ, V.kernelTerm k φ (inS.indicator 1) x γ x) =V.partialKernel k φ (stab ∩ inS) x x + V.partialKernel k φ (inS \ stab) x x by- simp only [partialKernel, ← (V.summable_kernelTerm hB φ he.decay _ x x).tsum_add- (V.summable_kernelTerm hB φ he.decay _ x x)]+ simp only [partialKernel, ← (V.summable_kernelTerm hB_sum φ he.decay _ x x).tsum_add+ (V.summable_kernelTerm hB_sum φ he.decay _ x x)]exact tsum_congr fun γ ↦ by by_cases hγ : γ ∈ stab <;> simp [kernelTerm, Set.indicator, hγ]]exact le_max_of_le_right <| norm_add_le_of_le (h_keeps x δ A h_cover S)(norm_tsum_le_of_tsum_enorm_le (by positivity) (h_moves x δ A _ fun _ hγ ↦ hγ.2))diff --git a/src/Lib/Adelic/TraceFormula/OrbitalUnfolding.lean b/src/Lib/Adelic/TraceFormula/OrbitalUnfolding.leanindex 4616f770980..417cba83767 100644--- a/src/Lib/Adelic/TraceFormula/OrbitalUnfolding.lean+++ b/src/Lib/Adelic/TraceFormula/OrbitalUnfolding.lean@@ -271,7 +271,8 @@ theorem partialKernel_convIndicator_eq_sum {K : Subgroup (Gf E n)} [hK : IsLevel((V.formRep e).asAlgebraHom a (b i)).val g * starRingEnd ℂ ((b i : V.Form e).val g') := byclassical-- Both sides are linear in `a`, and for a group element `h` this is the case of `1_K` at `g h`.- let kernel := V.partialKernelLinear hB he.decay .univ g g'+ let kernel :=+ V.partialKernelLinear (eight_mul_sq_lt_of_thirteen_mul_cube_le card_pos hB) he.decay .univ g g'change kernel (convIndicator hK.isOpen hK.isCompact a) = _have h_add (y y' : V.Form e) : (y + y').val g = y.val g + y'.val g := rflhave h_smul (c : ℂ) (y : V.Form e) : (c • y).val g = c * y.val g := rfldiff --git a/src/Lib/Adelic/TraceFormula/ReduciblePolynomials.lean b/src/Lib/Adelic/TraceFormula/ReduciblePolynomials.leanindex 146f60ce888..0f96b2654e1 100644--- a/src/Lib/Adelic/TraceFormula/ReduciblePolynomials.lean+++ b/src/Lib/Adelic/TraceFormula/ReduciblePolynomials.lean@@ -131,8 +131,9 @@ integrable. It is a linear form in the test function `φ : TestFunction (Gf E n)underlying function `φ.1 : Gf E n → ℂ`. -/def geometricSide (hB : 13 * Fintype.card n ^ 3 ≤ B) (he : IsCuspKernel B k) (S : Set E[X]) :TestFunction (Gf E n) →ₗ[ℂ] ℂ :=- let kernel (x : G E s) := V.partialKernelLinear hB he.decay- {γ : U V.J | ((γ : GL n E) : Matrix n n E).charpoly ∈ S} x x+ let kernel (x : G E s) :=+ V.partialKernelLinear (eight_mul_sq_lt_of_thirteen_mul_cube_le Fintype.card_pos hB) he.decay+ {γ : U V.J | ((γ : GL n E) : Matrix n n E).charpoly ∈ S} x x{ toFun φ := ∫ x : G E s, kernel x φ ∂V.quotMeasuremap_add' φ ψ := byhave h_int (f : TestFunction (Gf E n)) :@@ -160,7 +161,8 @@ lemma geometricSide_coe_finset (hB : 13 * Fintype.card n ^ 3 ≤ B) (he : IsCusprw [← integral_finsetSum F fun R _ ↦ V.integrable_tsum_polyTerm hB he φ {R}]congr with xchange ∑' γ : U V.J, V.polyTerm k φ F γ x = ∑ R ∈ F, ∑' γ : U V.J, V.polyTerm k φ {R} γ x- rw [← Summable.tsum_finsetSum fun R _ ↦ V.summable_polyTerm hB φ he.decay {R} x]+ have hB_sum := eight_mul_sq_lt_of_thirteen_mul_cube_le Fintype.card_pos hB+ rw [← Summable.tsum_finsetSum fun R _ ↦ V.summable_polyTerm hB_sum φ he.decay {R} x]exact tsum_congr fun γ ↦ by simp [kernelTerm, Set.indicator_apply]/-- Let `V` be a hermitian space with a point over the CM field `E`, and let `φ` be a test function@@ -178,7 +180,9 @@ theorem hasSum_geometricSide (hB : 13 * Fintype.card n ^ 3 ≤ B) (he : IsCuspKehave h_pointwise (x : G E s) :Tendsto (fun F : Finset E[X] ↦ ∑' γ : U V.J, V.polyTerm k φ F γ x) atTop(𝓝 (∑' γ : U V.J, V.polyTerm k φ .univ γ x)) := by- refine tendsto_tsum_of_dominated_convergence (V.summable_polyTerm hB φ he.decay .univ x).norm+ have hB_sum := eight_mul_sq_lt_of_thirteen_mul_cube_le Fintype.card_pos hB+ refine tendsto_tsum_of_dominated_convergence+ (V.summable_polyTerm hB_sum φ he.decay .univ x).norm(fun γ ↦ tendsto_const_nhds.congr' ?_) (.of_forall fun F γ ↦ ?_)· filter_upwards [eventually_finset_mem_atTop (γ : Matrix n n E).charpoly] with F hFsimp [kernelTerm, hF]