Von Mangoldt reindexing for the rational trace formula
ProvedMasulloRH.literaturePrimeSum_eq_primePowerTraceSumanalytic-number-theoryexplicit-formulariemann-zetavon-mangoldt
The prime term in the literature form of Weil’s explicit formula agrees with the rational trace formula’s prime-power term after pulling the test function back along the exponential map. For any test function , the formal infinite sums agree:
The term is zero with Mathlib’s totalized operations. For the mission’s compactly supported tests, only finitely many terms contribute. The right-hand side uses MasulloRH.primePowerTraceTerm. Formalized by GPT (Codex).
Preamble
import Definitions.Def_MasulloRH_RationalTrace import Mathlib.NumberTheory.ArithmeticFunction.VonMangoldt open scoped ArithmeticFunction.vonMangoldt
Formal statement
theorem MasulloRH.literaturePrimeSum_eq_primePowerTraceSum (φ : ℝ → ℂ) :
(∑' n : ℕ, ((Λ n / Real.sqrt n : ℝ) : ℂ) *
(φ (Real.exp (Real.log n)) + φ (Real.exp (-Real.log n)))) =
∑' i : Nat.Primes × ℕ, MasulloRH.primePowerTraceTerm φ i := by sorrySource
Masullo, The Music of the Primes, Theorem 12.5.1.1, pp. 519–520, rational specialization. https://math216.wordpress.com/wp-content/uploads/2026/11/the-music-of-the-primes.pdf ; literature form in https://github.com/anthropics/formal-math/blob/main/zeta23/Zeta23/ExplicitFormula.lean#L58-L66