Prose check: the rh-lean-roadmap book's Definition 2.10 (centred smoothed prime sums S_chi, G_chi, Gm(F, y) and gF(u) = Gm(F, eu)
label B1.26) matches Deduction.ramp, Gchi, Gm and gm
PDF built from iis-2612-00823.tex sha256 db05e8f14438… by the site's TeX builder, 2026-12-03 16:41 UTC.
Definition 2.10 of the rh-lean-roadmap book (label B1.26): S_chi(y) = sumn ≤ floor(y)_+ Lambda(n) chi(n) max(y/n - 1, 0), G_chi = S_chi - y log y + (1+gamma)y for principal chi and S_chi + y L'(1,chi)/L(1,chi) otherwise, Gm(F,y) = sum ai Re G_chi_i(y), gF(u) = Gm(F, eu). This is Deduction.ramp, Gchi, Gm and gm, clause by clause. Checked: the sums agree literally, and the centring makes G_chi(y)/y -> 0 for six characters up to y = 2e6.
The book's definition of the centred prime sums, which carry the arithmetic into the window criterion, is the same as the formal one.
Outcome: match. Definition 2.10 of the rh-lean-roadmap book (Centred smoothed prime sums) is Deduction.ramp, Deduction.Gchi, Deduction.Gm and Deduction.gm in Alpöge's archive.
- In the LaTeX source its label is
B1.26. The compiled book.pdf numbers it Definition 2.10, on page 22. - The book's index of formal counterparts cites these four declarations for this label.
Archive used. Alpöge's archive lean.tar.gz, in 14 parts from alpo.ge.
- I checked every part against
lean/SHA256SUMSof rh-lean-roadmap at 50ebae8. - I checked the whole archive against the hash 9631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc.
- The archive is built on Mathlib 0df444a.
Prose (docs/src/book/main.tex, lines 1069–1088):
Definition 2.10 (Centred smoothed prime sums). Let Λ be the von Mangoldt function and γ Euler's constant. For y ∈ ℝ, set
S_χ(y) = Σ_{1 ≤ n ≤ ⌊y⌋₊} Λ(n)χ(n) max(y/n − 1, 0),
G_χ(y) = S_χ(y) − y log y + (1+γ)y if χ = 1, and S_χ(y) + y L′(1,χ)/L(1,χ) if χ ≠ 1.
Here χ = 1 means that χ is the principal character modulo its modulus N. Put G_m(F, y) = Σ_{i∈I} a_i Re G_{χ_i}(y). Here ⌊y⌋₊ = max(⌊y⌋, 0). Use log y = log|y| for y < 0 and log 0 = 0. Write G_z = G_1 at modulus one and g_χ = G_χ for nontrivial primitive χ. Put g_F(u) = G_m(F, e^u), u ∈ ℝ.
Lean. DedekindLFunctions/CharFamily.lean, lines 10–19 and 36, and LandauZeroFreeCriterion.lean, line 9:
def ramp (f : ℕ → ℂ) (y : ℝ) : ℂ :=∑ n ∈ Finset.range (⌊y⌋₊ + 1), (Λ n : ℂ) * f n * ((max (y / n - 1) 0 : ℝ) : ℂ) def Gchi {N : ℕ} [NeZero N] (χ : DirichletCharacter ℂ N) (y : ℝ) : ℂ :=if χ = 1 thenramp (fun n => χ n) y - ((y * Real.log y : ℝ) : ℂ) + (((1 + Real.eulerMascheroniConstant) * y : ℝ) : ℂ)elseramp (fun n => χ n) y + (y : ℂ) * (deriv (DirichletCharacter.LFunction χ) 1 / DirichletCharacter.LFunction χ 1) def Gm (F : CharFamily) (y : ℝ) : ℝ := ∑ i, F.a i * (Gchi (F.χ i) y).re def gm (F : CharFamily) (u : ℝ) : ℝ := Gm F (Real.exp u)
Clause by clause:
- S_χ.
ramp (fun n => χ n) ysums overFinset.range (⌊y⌋₊ + 1), that is 0 ≤ n ≤ ⌊y⌋₊. The extra term n = 0 is zero, since Λ(0) = 0.⌊y⌋₊is Mathlib'sNat.floor, which is max(⌊y⌋, 0) as the book says. The summand is verbatim. - G_χ, principal case.
χ = 1inDirichletCharacter ℂ Nis the principal character mod N, as in the book. The formula S − y log y + (1+γ)y is verbatim.Real.loghas log y = log|y| and log 0 = 0, which are the book's conventions. - G_χ, nonprincipal case. S + y L′(1,χ)/L(1,χ), with L′ written as
deriv (DirichletCharacter.LFunction χ) 1. Verbatim. For nonprincipal χ the L-function is entire, so the derivative is the true one. - G_m. Σ_i a_i Re G_{χ_i}(y). Verbatim.
- g_F.
gm F u = Gm F (Real.exp u). Verbatim. - Notation. G_z = G_1 at modulus one is also
Deduction.G(CharFamily.lean, line 21), the same formula with f = 1. The book's g_χ is only a name for G_χ.
My check (search/review/roadmap/centred_sums_check.py, numpy and mpmath; log work/centred_sums_check.log).
- The two sums agree. I computed Lean's
rampliterally, over range(⌊y⌋₊ + 1) with n = 0 included and Lean's y/0 = 0. I compared it with the book's S_χ at 14 values of y, including y < 0, y < 1, integers and non-integers, for 6 characters. They agreed exactly. - The centring has the right sign. If the definition is right, the prime number theorem and its version for characters give G_χ(y) = o(y).
- I used characters mod 1, 3, 4, 5 (order 4), 7 (order 6) and 8, with Λ sieved up to 2·10⁶.
- I computed L′/L(1, χ) by Cauchy's formula around s = 1 and cross-checked L(1, χ) against the digamma formula. For χ₄ it agrees with γ + 2 log 2 + 3 log π − 4 log Γ(1/4) = 0.24561 to 10⁻¹².
- |G_χ(y)|/y fell from about 10⁻³ at y = 10³ to 6·10⁻⁶ – 1.2·10⁻⁴ at y = 2·10⁶ for all six.
- Control. With the opposite sign of the centring term, the ratio at y = 2·10⁶ is 0.36–1.26 for the five nonprincipal characters, close to 2|L′/L(1,χ)|, and 25.9 for χ = 1. So a sign error would have shown.
- Log conventions. G₁(y) at y = −3, −0.5 and 0 follows log|y| and log 0 = 0, with G₁(0) = 0.
Not checked.
- I did not build the Lean.
- The centring check is numerical evidence at y ≤ 2·10⁶, not a proof that G_χ(y) = o(y). The definition does not claim that.
PDFs do not display inside pages on phones. Open the PDF.
Files
content-addressed: the hash is the address| iis-2612-00823.pdf | 289 kB | sha256 7fa9556f3e1b60f4… .ots |