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/Adelic/TraceFormula): isolate vanishing for coprime factors

alkor2000ec81728a9052
diff --git a/src/Lib/Adelic/TraceFormula/ReduciblePolynomials.lean b/src/Lib/Adelic/TraceFormula/ReduciblePolynomials.lean
index 0f96b2654e1..27709b2eab2 100644
--- a/src/Lib/Adelic/TraceFormula/ReduciblePolynomials.lean
+++ b/src/Lib/Adelic/TraceFormula/ReduciblePolynomials.lean
@@ -234,6 +234,22 @@ lemma geometricSide_singleton_eq_zero_of_forall (hB : 13 * Fintype.card n ^ 3
· simp [kernelTerm, hγ]
simp [geometricSide_apply, h_term]
+/-- If the test function is cuspidal at the split place `w`, the geometric term for a product of
+two coprime nonunits vanishes. The factors remain coprime over the completion at `w`. -/
+lemma geometricSide_singleton_eq_zero_of_coprime_factors (hB : 13 * Fintype.card n ^ 3 ≤ B)
+ (hk : IsCuspKernel B k) {w : FinPlace E} {hw : w.IsSplit} {φ : TestFunction (Gf E n)}
+ (h_cusp : IsCuspidalAt hw φ) {A C : E[X]} (h_coprime : IsCoprime A C)
+ (hA : ¬IsUnit A) (hC : ¬IsUnit C) : V.geometricSide hB hk {A * C} φ = 0 := by
+ -- The geometric term is an invariant linear form on the characteristic-polynomial fibre at `w`.
+ set f : E →+* LocField w := algebraMap E (LocField w)
+ have h_fibre (ψ : TestFunction (Gf E n))
+ (h_zero : ∀ y : Gf E n, (y.atPlace w).val.charpoly = A.map f * C.map f → ψ.val y = 0) :
+ V.geometricSide hB hk {A * C} ψ = 0 :=
+ V.geometricSide_singleton_eq_zero_of_forall hB hk w (by rwa [Polynomial.map_mul])
+ exact eq_zero_of_coprime_factors hw (h_coprime.map (mapRingHom f))
+ (mt (isUnit_map f).1 hA) (mt (isUnit_map f).1 hC) _ (V.geometricSide_translate hB hk _)
+ h_fibre h_cusp
+
/-- Let `k` be a cusp kernel of order `B ≥ 13 * card n ^ 3`. Let the test function `φ` be cuspidal
at the split place `w` (the sums of its translates over the unipotent radicals of the proper
parabolic subgroups over the residue field vanish), and let each point of the support of `φ` be
@@ -259,15 +275,7 @@ theorem geometricSide_singleton_eq_zero (hB : 13 * Fintype.card n ^ 3 ≤ B)
(h_supp y hy_ne).charpoly_ne_pow (Q.map (algebraMap E _)) hj (by simp [hy_charpoly, hQ])
obtain ⟨A, C, h_coprime, hA, hC, rfl⟩ :=
exists_isCoprime_mul_of_not_irreducible h_monic hR h_pow
- -- The part of `R = A * C` is an invariant linear form that only sees the fibre of `R` at `w`.
- set f : E →+* LocField w := algebraMap E (LocField w)
- have h_fibre (ψ : TestFunction (Gf E n))
- (h_zero : ∀ y : Gf E n, (y.atPlace w).val.charpoly = A.map f * C.map f → ψ.val y = 0) :
- V.geometricSide hB hk {A * C} ψ = 0 :=
- V.geometricSide_singleton_eq_zero_of_forall hB hk w (by rwa [Polynomial.map_mul])
- exact h_ne (eq_zero_of_coprime_factors hw (h_coprime.map (mapRingHom f))
- (mt (isUnit_map f).1 hA) (mt (isUnit_map f).1 hC) _ (V.geometricSide_translate hB hk _)
- h_fibre h_cusp)
+ exact h_ne (V.geometricSide_singleton_eq_zero_of_coprime_factors hB hk h_cusp h_coprime hA hC)
end Space