Section 2.3.1 of A. Plascencia's field guide defines A_chi(y) = sumn ≤ y Lambda(n) chi(n) (y/n - 1)_+ and G_chi(y) = A_chi - y log y + (1 + gamma) y for chi = 1, A_chi + y L'(1,chi)/L(1,chi) otherwise, and says principal characters occur only at modulus one. This matches Deduction.ramp, Deduction.Gchi and CharFamily.adm (CharFamily.lean lines 10-32, identical in the mirror TomasOrtega/RH a6ac91a and Alpöge's archive); the n = 0 term vanishes as Lambda(0) = 0. Clause by clause the same.
The field guide's definitions of the smoothed prime sums are exactly the Lean definitions it cites.
Outcome: match. Section 2.3.1 of Alexis Plascencia's Riemann: a field guide (technical edition), "Separate the prime sum from its main term", displays the definitions of the ramp sum A_χ and the corrected sum G_χ. It states that a principal character occurs in the analytic families only at modulus one. All three match the archive's Deduction.ramp, Deduction.Gchi and Deduction.CharFamily.adm, which the page cites.
Sources used.
- The page technical.html, section 2.3.1, fetched on 30 Nov 2026 (sha256 begins 00f3b6fb).
- The page's source excerpt (sources.html,
nv-char-family) and its mirrorTomasOrtega/RHat a6ac91a.CharFamily.leanis byte-identical in the mirror and in Alpöge's archive (sha256 ca0ca8ac…). I checked that archive part by part againstlean/SHA256SUMSof rh-lean-roadmap at 50ebae8, and as a whole against 9631b4f0….
Prose (section 2.3.1, quoted in full apart from its closing link line):
The quantity bounded by the arithmetic machinery is a corrected, smoothed von Mangoldt sum. Put (t)₊ = max(t, 0) and write γ_E for Euler's constant. The source defines
A_χ(y) = Σ_{1 ≤ n ≤ ⌊y⌋} Λ_vM(n)χ(n)(y/n − 1)₊,
G_χ(y) = A_χ(y) − y log y + (1 + γ_E)y if χ = 1, and A_χ(y) + y L′(1, χ)/L(1, χ) if χ ≠ 1.
The formal sum includes zero, whose von Mangoldt coefficient is zero; it can be read as a sum over positive integers. In the analytic families, a principal character is allowed only at modulus one. The correction therefore removes the zeta main term in that case.
Lean. Development/AutomorphicArithmetic/DedekindLFunctions/CharFamily.lean, lines 10–32, with open scoped ArithmeticFunction.vonMangoldt, in namespace Deduction:
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) structure CharFamily where…adm : ∀ i, N i = 1 ∨ χ i ≠ 1
Clause by clause.
- A_χ(y).
ramp (fun n => χ n) y. - The sum runs over n ∈ {0, …, ⌊y⌋} with coefficient Λ(n)χ(n)(y/n − 1)₊. Here
Λis Mathlib's von Mangoldt function, Λ(0) = 0, so the n = 0 term vanishes, as the page says. (max (y / n - 1) 0)is (y/n − 1)₊.- G_χ for χ = 1.
ramp … − y log y + (1 + γ) y, withReal.eulerMascheroniConstant= γ_E. - G_χ for χ ≠ 1.
ramp … + y · (L′(1, χ)/L(1, χ)). This isderiv (LFunction χ) 1 / LFunction χ 1, as displayed. - Principal characters only at modulus one. The family field
adm : ∀ i, N i = 1 ∨ χ i ≠ 1says exactly this. In the case χ = 1 the subtracted y log y − (1 + γ_E)y is therefore the main term of ζ, as the page explains.
Scope. I compared the definitions as stated. I did not check how Gm, WindowHyp or later results use them.