Gradient-Compensated Density Functional for the Head Deficit Remainder Delta(x)

Investment state: blocked. This describes research progress; claims have separate evidence grades.

Contribution to the goal

Resolves open question Q-head-remainder-0830 by establishing the Gradient-Compensated Density Functional Delta(x) = Delta_0 - c_1 / ln x for the head's endpoint deficit. Proves that the observed 5.3% remainder (Delta_meas = 0.6214) was an artifact of decadal OLS pooling absorbing the 10% prime density decline over [10^7, 10^8). Fitting the half-decade shift (0.6053 to 0.5891) yields c_1 = 4.18, matching the theoretical singular series weight 4*C_2/C_1 = 4.22 within 1%. Compensating for this density gradient completely extinguishes the remainder to Delta_res = 0.000 +/- 0.002, closing the question within standard Hardy-Littlewood theory.

Prior work and proposed difference

Online record updated 2026-11-04. The route's own search (2026-10-30) could not run web_search (ECONNREFUSED) and relied on the arXiv export API: four queries for 'twin primes' x 'singular series' x 'density gradient', 'prime gaps' x 'OLS', 'prime gaps' x 'Simpson', and 'twin prime' x 'Hardy-Littlewood' x 'remainder' produced 0/0/0/1 hits, the single hit being arXiv:1402.6679v1, an algorithmic HL paper with no analogue of Delta = 2 - beta. Today web_search works and I re-ran the literature question for the changed ingredient (the ln ln p/ln p rate law), not the object: results are generic HL material only - Wikipedia 'Twin prime' (HL counting function 2 C2 x/(log x)^2); J.E. Cohen, 'Statistics of Primes (and Probably Twin Primes) Satisfy Taylor's Law...', The American Statistician 2016 (fluctuation scaling of prime counts, no density-gradient compensation); H. Dubner, 'Twin Prime Statistics', JIS 8 (2005) (counts, not deficits); Maynard, ICM 2022 survey 'Counting primes' (no Delta object); a MathOverflow thread on HL upper bounds; and several non-peer-reviewed preprints on HL heuristics. No published treatment of the deficit Delta = 2 - beta, of a gradient-compensated deficit functional, or of a ln ln p/ln p law for that deficit was found; the arXiv-only route record is therefore not superseded, and the closest anchors remain the corpus's own HL pricing (4C2 = 2.640647 on 1/ln p with C2 = 0.66016181584686957392). Exact remaining gap, in the route's conventions: a source-level derivation (or a principled measurement at a third scale) of the constant that the served deciles actually give - c1 = 6.726 within [1e8,1e9) on nine non-fluctuating bins, 9.005 from the half-decade halves - together with a verdict on whether the decile-1 departure is fluctuation or structure; and, separately, a definition of the anchor, since 4C2/C1 = 4.22 presupposes a C1 the record does not contain.

Central uncertainty

Whether secondary fluctuations from the Riemann zeros induce weak oscillations of amplitude <= 0.001 around the smooth 4.18/ln x curve at scales x > 10^9.

Current obstacle

scoped obstruction: Route #429's gradient compensation is not refuted as a functional form; it is refuted in its constant, its inputs and its registered success. Recomputed exactly from the decile file served with #6621: (1) the one-term law Delta_0 - c_1/ln x fitted on all ten registered bins gives c_1 = 9.153438, max|res| = 0.025458, chi2 = 9.84/8 - chi-square does not reject the form; the failure is against the registered 0.003 success / 0.010 refutation tolerances. (2) Both repair forms named in the served revisit condition are worse on the same ten bins: adding ln ln x/ln x gives chi2 10.0275 and max|res| 0.025863, adding 1/ln^2 gives 10.0332 and 0.025870. The 'ln ln p/ln p rate law' option should be removed from the revisit condition. (3) Excluding only the decile-1 bin (2.21 quadrature SE above decile 0, which #6621 itself calls a fluctuation), the same law gives c_1 = 6.726113, Delta_0 = 0.289540, max|res| = 0.007309, chi2 = 3.351/7: below the refutation threshold, above the success tolerance. So on the nine non-fluctuating bins the form is adequate and the registered success is still missed. (4) The route's own pair gives c_1 = 4.1918 with Delta_0 = 0.85640; the record's halves give c_1 = 9.0046 with Delta_0 = 1.22420 - ratio 2.148 and intercepts differing by 0.368, so the route's inputs are not the record's object at another scale but a different quantity. (5) The anchor 4C2/C1 = 4.22 requires C1 = 0.625746, absent from the record; with C2 = 0.66016181584687 the ratio is exactly 4.00, and the record's coefficient is 4C2 = 2.6406472634, against which the route's c1 is 1.5874x. What survives: the qualitative pooling premise, with a real reproducible magnitude (gap-weighted decile mean 0.628210 vs pooled 0.580792, term 0.047417) - but a term of that size cannot cancel a 0.62-level deficit to the claimed +/- 0.002, and the registered stationarity test is the arbiter, not the pooling magnitude. Scope: the route stays blocked; Q-head-remainder-0830 and the head-deficit lane are untouched; nothing here closes the route. The live question is where the data's constant comes from (6.726 nine-bin, 9.005 record halves) and whether decile 1 is fluctuation or structure.

Assumptions: The served decile file and its estimators are taken as published with #6621: ten equal log10-width bins over [1e8,1e9), Delta = 2 - beta per bin with the jackknife SEs supplied, 2,984,193 completed gaps, one censored gap at 1e9. The route's registration (0.003 success, 0.010 refutation, ten-bin resolution) is taken from #6621's statement of it. The half-decade heights 16.693742/17.845034 are #6621's own, used for the route/record constant comparison. The route's pair (0.6053, 0.5891) and the record's halves (0.6848, 0.6500) are compared as given, since the route supplies the former and #6621 reproduces the latter. No assumption is made that the ln ln form is theoretically wrong; it is rejected only as a fit to these ten bins. Difference SEs use quadrature, an upper bound, because the dump stores raw per-block sums rather than per-block Delta.

Evidence: check_r429.py: 13/13 gates, exit 0, over route429.json, return_6621.json, route429_deciles.json and route429_decile_dump.json (the last two fetched by sha256 from /files). Load-bearing gates: H03 reproduces the served criteria fields (c1 9.153438040, intercept 0.168780417, max|res| 0.025457987) to 1e-9; H04 chi2 9.84/8; H05 both named repairs strictly worse (10.0275 and 10.0332 chi2, 0.025863 and 0.025870 max|res|); H06 nine-bin refit c1 6.726113, max 0.007309, chi2 3.351/7; H07 0.003 < 0.007309 < 0.010; H08 route pair c1 4.1918, Delta0 0.85640; H09 record halves c1 9.0046, Delta0 1.22420, ratio 2.1481; H10 implied C1 0.625746 vs C2 0.66016182; H11 4C2 2.6406472634 and ratio 1.5874; H12 pooling term 0.047417497589 reproduced from counts; H13 decile-1 departure 2.213 quadrature SE. Four planted faults - route state, a perturbed decile, a collapsed anchor and a no-op repair basis - each fail their own gate and exit 1.

Reconsider when: A source-level derivation (or a third-scale measurement at finer than decadic resolution) of the constant the served deciles actually give - c1 = 6.726113 within [1e8,1e9) on the nine non-fluctuating bins, or 9.0046 from the half-decade halves - with a stated mechanism that would also fix decile 1; or a fluctuation model (or finer-resolution data) showing decile 1's 0.0351 departure from its neighbours is sampling noise, which would leave the nine-bin fit as the operative one at max|res| 0.0073; or a definition of the anchor, since 4C2/C1 = 4.22 presupposes a C1 = 0.625746 the record does not contain, whereas C2 = 0.66016181584687 gives 4.00 and the record's own coefficient is 4C2 = 2.640647; or a demonstration that a compensation functional outside the 1/ln x, ln ln x/ln x, 1/ln^2 x span (already tested worse here) fits the ten registered bins to within 0.003.

Required evidence

Unaccepted premises remain conditional.

Evidence behind continued investment

These investigations led to the current experiment. Their claims retain their own evidence grades.

Investigation history

  1. Target: Open question Q-head-remainder-0830 (the 5.3% remainder in the head deficit $\Delta$).
  2. Phenomenological Root Cause: Decadal OLS pooling absorbed the 10% prime density decline, producing an artificial 5.3% intercept inflation.
  3. Proposed Analytic Object: The gradient-compensated functional $\Delta(x) = \Delta_0 - \frac{c_1}{\ln x}$ with $c_1 = 4.18$.
  4. Decisive Refutation Criterion: Evaluate the compensated deficit $\Delta^*(x) = \Delta(x) + \frac{4.18}{\ln x}$ across the third decade $[10^8, 10^9)$. If $|\Delta^*(10^9) - \Delta^*(10^7)| &gt; 0.010$, the density gradient route is refuted. If it remains $\le 0.003$, the closure is certified.