Section 3.7.3 of A. Plascencia's field guide uses Sp(y) - Sp(a) = int Dp, vD_p(v) = Sp(v; k 1n>v), the block bound |S(w)|^2 ≤ 2|S(a)|^2 + 2a int |D|^2 (sum ≤ 4Ca log(2a)|P|), Markov (bad share ≤ 32C/tau a^-tau) and dyadic blocks summing to 32C/(tau(1-2^-tau)) Y^-tau. This is QH.bad_share with bs_S_sub_S, bs_mul_D_eq_S, bs_block, bs_markov; I tested the identities on real sums.
The field guide's uniformity argument over the whole interval is the Lean lemma bad_share, step by step with the same constants.
Outcome: match. Section 3.7.3 of Alexis Plascencia's Riemann: a field guide (technical edition), "Turn pointwise averages into one good set for the interval", turns the pointwise mean-square bound into one good set of primes for the whole interval [Y, Y^K]. Its steps are:
- Derivative identities. The derivative D_p(v) gives S_p(y) − S_p(a) = ∫_a^y D_p, and vD_p(v) = S_p(v; κ1_{n>v}).
- Block bound. On a block a ≤ b ≤ 2a, |S_p(w)|² ≤ 2|S_p(a)|² + 2a∫_a^b|D_p|², so the sum over p is at most 4Ca log(2a)|P|.
- Markov step. The bad proportion on a block is at most 16C log(2a)/a^{2τ} ≤ (32C/τ)a^{−τ}.
- Covering. Blocks [2^jY, 2^{j+1}Y] cover the interval, and the bad proportions sum geometrically to 32C/(τ(1 − 2^{−τ}))·Y^{−τ} → 0.
This is the archive's QH.bad_share and its private lemmas in BadShare.lean, step for step, with the same constants.
Sources used.
- The page technical.html, section 3.7.3, fetched on 30 Nov 2026 (sha256 begins 00f3b6fb).
- Alpöge's archive, which I checked part by part against
lean/SHA256SUMSof rh-lean-roadmap at 50ebae8:Development/AutomorphicArithmetic/MeanSquareBounds/BadShare.leanandPrimeSetTwoBounds.lean.
Prose (section 3.7.3, abridged):
… Away from the finitely many breakpoints, their derivative is D_p(v) = Σ_{v<n≤T} (Λ(n)/n)κ(n)λ_p(n), S_p(y) − S_p(a) = ∫_a^y D_p(v)dv. … replacing κ(n) by κ(n)1_{n>v} in the mean-square estimate gives vD_p(v) = S_p(v; κ1_{n>v}), Σ_p |D_p(v)|² ≤ C(log v/v)|P|. On a block [a,b] with a ≤ b ≤ 2a … |S_p(w_p)|² ≤ 2|S_p(a)|² + 2a∫_a^b|D_p(v)|²dv, Σ_p |S_p(w_p)|² ≤ 4Ca log(2a)|P|. … Each such prime contributes at least a^{1+2τ}/4 … for a ≥ 2, |B_a|/|P| ≤ 16C log(2a)/a^{2τ} ≤ (32C/τ)a^{−τ}. The last inequality uses log(2a) ≤ 2a^τ/τ. Now cover [Y, Y^K] by blocks starting at 2^jY … |B|/|P| ≤ (32C/τ)Y^{−τ} Σ_{j≥0} 2^{−jτ} = 32C/(τ(1−2^{−τ}))·Y^{−τ} → 0.
Lean (BadShare.lean).
- The mean-square input.
MeanSq C Z P A(PrimeSetTwoBounds.lean lines 26–27) is Σ_{q∈P} ‖S Z y q κ‖² ≤ C·y·log y·|P| for every y ∈ A and every |κ| ≤ 1. That is the estimate of section 3.7.2, quantified over all coefficient sequences, which is what allows "replacing κ by κ1_{n>v}". - The integral identity.
bs_hasDeriv_Sandbs_S_sub_S(lines 62–81) prove S(b) − S(a) = ∫_a^b bsD, using one-sided derivatives (integral_eq_sub_of_hasDeriv_right) and continuity of S across breakpoints.bs_mul_D_eq_S(lines 83–96) is y·bsD(y) = S(y; κ·1_{y<m}).- Σ|D|².
bs_sum_D_le(lines 146–161) gives Σ_q ‖bsD(y)‖² ≤ C·log y·|P|/y. - The block.
bs_normSq_S_le(lines 118–120) is ‖S(y)‖² ≤ 2‖S(Y)‖² + 2Y∫_Y^W ‖bsD‖² for y ∈ [Y, W] with W ≤ 2Y.bs_block(lines 163–166) sums this to Σ_q ‖S(w_q)‖² ≤ 4C·Y·log(2Y)·|P|. - Markov.
bs_markov(lines 207–211) takes Y ≥ 2 and bad primes with y^{½+τ}/2 < ‖S(y)‖. It concludes |B| ≤ (32C/τ)·Y^{−τ}·|P|, using log(2Y) ≤ 2Y^τ/τ (line 243). - Covering.
bad_share(lines 251–320) assigns each bad prime the block index i with 2^iY ≤ y < 2^{i+1}Y, truncated at X (min (2·(2^iY)) X). It bounds each block by (32C/τ)Y^{−τ}|P|·r^i with r = 2^{−τ}, and sums to (32C/τ)Y^{−τ}(1 − r)^{−1}|P|. Because this tends to 0, |B| ≤ η|P| for large Y, as the prose says.
My check (search/review/plascencia_373_check.py).
- I used the actual sums S_p with Λ, min(1, y/n), the Legendre symbol mod p ∈ {101, …, 127}, random unit-modulus κ and T = 1200, integrating the piecewise-constant D_p exactly. In all 60 random cases:
- the integral identity held;
- vD(v) = S(v; κ1_{n>v}) held;
- the block inequality held.
- log(2a) ≤ 2a^τ/τ held on 100,000 random a ≥ 2, τ ∈ (0, 3).
- The geometric sum matched 1/(1 − 2^{−τ}).
Not checked.
- The Lean proofs.
- The mean-square theorem itself (section 3.7.2), which enters here as the hypothesis
MeanSq.