Cumulative Prime Sums and Riemann Zeros: A fine grid, its ripple, and a family of prime races
Version 2 / Nov 06, 2026 / CC BY 4.0
Abstract
Summing the primes one after another and taking logarithms gives an increasing sequence of real numbers, with , which becomes exponentially dense. The ordinates of the zeros of the Riemann zeta function fall on this grid with tiny errors: at the first zero, at the fifth, at the twentieth.
Part I explains why. The cell of the grid containing a height has width (Step Theorem), and every real has a node above it within that width, by an argument going back to Bertrand's postulate (Covering Theorem). The precision observed at the zeros is therefore the resolution of the grid, and the same precision holds at every height (Genericity Principle). We compute the first-crossing primes with certification up to and test, in a protocol fixed before the computation, whether the zeros sit closer to the nodes than a generic height. Neither the mean distance to the nearest node ( against , ) nor the distribution of the position within the cell (Kolmogorov–Smirnov, ) departs detectably from the generic case, and an integer grid used as control behaves in the same way. We also correct the half-exponent law by a factor .
Part II shows where the zeros are actually visible. They are not in the position of the nodes but in the ripple: the deviation of the grid from its mean curve . This ripple is a sum of pure oscillations, one per zero; its spectrum shows a peak at each of the first 13 ordinates, with the amplitude predicted by the explicit formula. Under RH the ripple has size on the grid, much larger than the cell , and RH is equivalent to this decay rate. The ripple is not centred: on the sum of the primes stays below for about 97% of logarithmic time, and it first exceeds it at . We place this in a one-parameter family of prime races, against , and prove that under RH the normalized error has mean , coming from the squares of the primes. Under RH and LI the limiting logarithmic density of the set where the race is ahead is given by a Rubinstein–Sarnak formula; it moves from (counting the primes, ) to (summing them, ) and tends to as , at the rate with . At the bias becomes the of the weighted counting functions of Aoki and Koyama. All theorems are formalized in Lean 4, with the classical results they use as explicit hypotheses.
Provenance statement
Tools used
- Lean FRO
- Lean 4 (proof assistant)Version v4.36.0-rc2
- Mathlib community
- Mathlib (proof assistant library)
- FLINT
- Arb / python-flint (certified computation)
- mpmath
- mpmath (numerical computation)
- K. Walisch
- primesum (prime summation)
- AI tools
- AI assistant (language model)
References
No bibliography entries.
Version history
- v1 · 29 pagesSubmitted by Antonio MennilloInitial depositSupersededNov 05, 2026
- v2 · 29 pagesSubmitted by Antonio MennilloSubmitted as a new versionCurrentNov 06, 2026