Weil distribution and zero sum of (Connes, section 3, )
DefinitionConnesRZ_weil_defsWorking objects for the case with trivial Grössencharakter of section 3 of Connes' paper. The module of the idele class group of is , which is written additively via , ; so every "function on the idele class group" below is a function of a real variable .
Test functions. IsTest g says that is and compactly supported.
Transform. mellinHat is Connes' of eq. (12), written in the coordinate and shifted by so that is the variable of the zeta function:
On the critical line it is the Fourier transform: .
Involution and convolution. starInv is , i.e. ; conv is .
Zeros. IsCriticalZero s says and ; zeroMult s is the order of vanishing of at as a natural number.
The two sides of the explicit formula. The Weil distribution is
with the von Mangoldt function and (weilDistribution, assembled from mellinHat, primeSum and archTerm); the first two terms are the contributions of the poles of the completed zeta function, the sum is the contribution of the finite places, and the integral is the contribution of the real place. The spectral side is
the sum over the zeros of in the open critical strip, each counted with multiplicity (zeroSum).
import Mathlib
open Complex MeasureTheory
noncomputable section
namespace ConnesRZ
/-- Test functions on the idele class group component `ℝ*₊`, written additively via
`u = e^t`: smooth, compactly supported, complex valued functions on `ℝ`. -/
def IsTest (g : ℝ → ℂ) : Prop := ContDiff ℝ (⊤ : ℕ∞) g ∧ HasCompactSupport g
/-- Connes (12): `ĥ(z) = ∫_{C_k} h(u) |u|^z d*u`, written in the coordinate `u = e^t`
and shifted by `1/2` so that `z` is the variable of the zeta function:
`ĝ(z) = ∫_ℝ g(t) e^{(z - 1/2) t} dt`. -/
def mellinHat (g : ℝ → ℂ) (z : ℂ) : ℂ := ∫ t : ℝ, g t * Complex.exp ((z - 1 / 2) * t)
/-- The involution `h*(u) = conj (h (u⁻¹))`, written additively. -/
def starInv (g : ℝ → ℂ) : ℝ → ℂ := fun t => starRingEnd ℂ (g (-t))
/-- Convolution on the group `ℝ*₊ ≃ ℝ`. -/
def conv (g₁ g₂ : ℝ → ℂ) : ℝ → ℂ := fun t => ∫ s : ℝ, g₁ s * g₂ (t - s)
/-- A zero of the Riemann zeta function in the critical strip. -/
def IsCriticalZero (s : ℂ) : Prop := riemannZeta s = 0 ∧ 0 < s.re ∧ s.re < 1
/-- The multiplicity of `s` as a zero of the Riemann zeta function. -/
def zeroMult (s : ℂ) : ℕ := analyticOrderNatAt riemannZeta s
/-- The finite (non archimedean) part of the Weil distribution: the sum over prime powers
`Σ_{n ≥ 2} Λ(n) n^{-1/2} (g (log n) + g (-log n))`. -/
def primeSum (g : ℝ → ℂ) : ℂ :=
∑' n : ℕ, ((ArithmeticFunction.vonMangoldt n / Real.sqrt n : ℝ) : ℂ) *
(g (Real.log n) + g (-Real.log n))
/-- The archimedean local term of the Weil distribution:
`(1/2π) ∫_ℝ ĝ(1/2 + i r) (Re ψ(1/4 + i r/2) - log π) dr`, where `ψ = Γ'/Γ`. -/
def archTerm (g : ℝ → ℂ) : ℂ :=
((1 : ℂ) / (2 * Real.pi)) * ∫ r : ℝ, mellinHat g (1 / 2 + I * r) *
((((logDeriv Complex.Gamma (1 / 4 + I * r / 2)).re - Real.log Real.pi : ℝ) : ℂ))
/-- The Weil distribution evaluated at a test function `g`: the arithmetic side of the
explicit formula, namely the two pole terms, minus the prime powers term, plus the
archimedean term. -/
def weilDistribution (g : ℝ → ℂ) : ℂ :=
mellinHat g 0 + mellinHat g 1 - primeSum g + archTerm g
/-- The spectral side: the sum of `ĝ(ρ)` over the zeros `ρ` of zeta in the critical strip,
each counted with its multiplicity. -/
def zeroSum (g : ℝ → ℂ) : ℂ :=
∑' ρ : {s : ℂ // IsCriticalZero s}, (zeroMult ρ.1 : ℂ) * mellinHat g ρ.1
end ConnesRZ
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; see provenance note
Provenance note — this read-back is NOT blind. It was written by the same agent that drafted the Lean statements of this proposal, on the explicit instruction of the proposal owner, because no independent auditor was available in this session. It is therefore self-testimony, not independent testimony: an author restating their own code cannot be relied on to expose a gap between what the code says and what it was meant to say. Reviewers should treat it as a reading aid only, and, if independent verification matters for this proposal, commission a blind read-back before approval.
The file declares ten objects in the namespace ConnesRZ, all phrased over the real line and the complex numbers, with no adeles, no operators and no -functions other than the Riemann zeta function of Mathlib.
IsTest g is a predicate on functions . It asserts the conjunction of two things: is continuously differentiable to order over the field (the smoothness exponent used is , i.e. ; it is not the analytic exponent ), and has compact support, meaning the topological closure of is compact. The zero function satisfies this predicate.
mellinHat g z, for and , is the Bochner integral with respect to Lebesgue measure on
It is a total function of : if the integrand is not Bochner integrable the value is by the convention of Mathlib's integral, and this junk value is not excluded by any hypothesis inside the definition.
starInv g is the function , the complex conjugate of evaluated at .
conv g₁ g₂ is the function , again a Bochner integral, taking the value at any where the integrand fails to be integrable.
IsCriticalZero s is the predicate on asserting the conjunction , , and , where is Mathlib's riemannZeta. The endpoints and are excluded, and so are the trivial zeros at the negative even integers.
zeroMult s is the natural number analyticOrderNatAt riemannZeta s: the order of vanishing of at , i.e. the unique with near for some analytic with . By the conventions of that Mathlib definition the value is the junk value both when is not analytic at (which happens only at ) and when vanishes identically near ; nothing in the definition rules these cases out.
primeSum g is the unconditional sum (tsum) over all natural numbers , including and , of
where is Mathlib's von Mangoldt function, if is a power , , of a prime , and otherwise; the real quotient is coerced into . The terms and contribute because (for the factor is by Mathlib's convention). If the family is not summable the whole expression is the junk value .
archTerm g is
where is mellinHat g as above, denotes the logarithmic derivative logDeriv Complex.Gamma, i.e. , the real part of that complex number is taken and then coerced back into together with , and the prefactor is with the real number coerced into . Again a Bochner integral, with value if the integrand is not integrable.
weilDistribution g is the complex number
that is: the value of the transform at plus its value at , minus the prime-power sum, plus the archimedean integral. Note the signs: the prime sum enters with a minus, the archimedean term with a plus.
zeroSum g is the unconditional sum over the subtype , i.e. over the set of zeros of in the open critical strip without multiplicity as an index set, of
the multiplicity being coerced from into . Multiplicity therefore enters as a weight, not by repeating indices. If the family is not summable the value is the junk value ; nothing in this definition asserts summability. No relation whatsoever between zeroSum and weilDistribution is asserted in this file — the two are defined independently.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.