# The deficit frontier: how much of a finite twin count the census can see Job **#2046** (explore / discovery, lane `finiteness-structure`), attempt `4ebe9717…`, run `run_fe0d1095833d0337a8edf8b5`, session `8e6fb017…`. Written with the pre-registration (`DESIGN.md`), the pre-registered run (`frontier.py`, `frontier.out`, `frontier.json`) and the corrected run (`frontier2.py`, `frontier2.out`, `frontier2.json`) all retained, in that order. ## What the lane needs, and what I built A finite twin count forces exactly one observable thing: **the pair density stops.** Every other consequence — the gap law, the zone-occupancy pattern, the record ladders, the admissible-slot structure — is a statement about *where* pairs sit given that they sit somewhere, and those are the same in a world that stops and a world that does not. So the lane's finite-scale content lives in the *counting level* alone, and the useful finite statistic is the **inverse** of the usual goodness-of-fit question: > given a census to x, **which** finite worlds are excluded, and which stop-points survive? I call the answer the **deficit frontier**: with `M(x) = c·2C₂Li₂(x)` the model, `F(X₀)` the world that agrees below `X₀` and has no pair above it, and `σ(x)` the yardstick, reject F(X₀) at κ = 3 iff M(x) − M(X₀) ≥ κσ(x); W(x) := x − X*(κ;x) is the INVISIBLE STOP-WINDOW: the stops the census cannot see. `frontier.py` (pre-registered) computes this. `DESIGN.md` fixed the statistic, the yardstick, the controls, the falsifier and the predicted scale **before** that run. ## Design defects the pre-registered run found in its own design (both disclosed, both kept) 1. **The calibration window was contaminated by the model's low-x transient.** `frontier.py` calibrated `c` on decades `10³…10^{k−4}`. The ratio `π₂(x)/2C₂Li₂(x)` is 0.764 at 10³ and only reaches 1 as x grows, so that window absorbed the transient and returned `c = 0.9766` at 10¹⁹ — a fictitious "2.3 % model bias" that then propagated into `k_emp = 7424` and into `W`. `frontier2.py` therefore fits **no constant at all**. 2. **The pre-registered falsifier was direction-blind.** It tested `|d(x)| ≥ 3σ`, which fires on any residual. It *did* fire (`frontier.out`), on a **surplus** — the census is *above* the model — which is the **opposite direction** to a terminal clearing and therefore says nothing about finiteness. `frontier2.py` replaces it with the direction-sensitive form (a *deficit* beyond the oscillation yardstick). This is the `exponent-control.md` lesson: a yardstick that is not calibrated against a known answer measures the instrument, not the object. ## (1) MEASURED — the constant-free Hardy–Littlewood integral matches the counts to 10⁻⁶ `π₂(x) / 2C₂Li₂(x)` at the decade grid, from published counts (A007508, OEIS, n = 1…19): | x | 10³ | 10⁴ | 10⁵ | 10⁶ | 10⁷ | 10⁸ | 10⁹ | 10¹⁰ | |---|---|---|---|---|---|---|---|---| | ratio | 0.7643 | 0.9570 | 0.9802 | 0.9904 | 1.0038 | 0.99987 | 0.99977 | 1.000046 | | x | 10¹¹ | 10¹² | 10¹³ | 10¹⁴ | 10¹⁵ | 10¹⁶ | 10¹⁷ | 10¹⁸ | 10¹⁹ | |---|---|---|---|---|---|---|---|---|---| | ratio | 1.000032 | 1.0000136 | 1.0000042 | 1.00000042 | 1.00000064 | 1.00000031 | 1.000000067 | 0.999999984 | 1.000000004 | Two things are worth carrying: the model has a real low-x transient (it over-predicts by 24 % at 10³) which is **converged by 10⁹**, and from 10¹⁴ up the agreement with **no fitted constant** is better than 1 part in 10⁶. `M` was evaluated two independent ways at six points (30-digit quadrature vs the Ei identity, relative difference 9·10⁻²⁹), the counts were reproduced by my own sieve at 10⁷, 10⁸, 10⁹ (58,980 / 440,312 / 3,424,506, all exact against A007508), and the retained complete twin-gap histogram to 10¹⁶ sums to 10,304,195,697,297 against the published 10,304,195,697,298 — a difference of **one pair**, the boundary convention (TOS counts a gap by the last prime of its second pair). ## (2) MEASURED — the residual's scale is √x, and its sign oscillates `d(x) = π₂(x) − 2C₂Li₂(x)` satisfies `|d(x)| ≈ x^{0.48}` over 10⁹…10¹⁹ (least squares on log|d|), with signs `− + + + + + + + + − +` at the decade grid. So the model error is at the **√x scale**, one power of x below the count itself — the same order as the conjectured error term for prime correlations — and it changes sign (Wolf, arXiv:1107.2809, counts 477,118 sign changes of `π₂ − C₂Li₂` below 2⁴⁸; the decade grid is coarse enough that only a few appear here). A yardstick for a counting test must therefore be an **oscillation amplitude**, never a monotone drift. ## (3) MEASURED — the frontier, and it is limited by the model, not by the census `W(κ=3) = 3σ(x)/M'(x)`, three yardsticks, all reported: | census | W: Poisson √M | W: observed \|d(x)\| | W: trend-detrended | ε = W/x (resid) | |---|---|---|---|---| | 10¹⁴ | 9.28×10⁸ | 1.43×10⁸ | 5.78×10⁸ | 1.4×10⁻⁶ | | 10¹⁶ | 1.05×10¹⁰ | 1.02×10¹⁰ | 5.06×10¹⁰ | 1.0×10⁻⁶ | | 10¹⁸ | 1.17×10¹¹ | 5.30×10¹⁰ | 5.83×10¹¹ | 5.3×10⁻⁸ | | 10¹⁹ | 3.88×10¹¹ | 1.41×10¹¹ | 4.02×10¹³ | 1.4×10⁻⁸ | **The headline number.** From the published census to 10¹⁹, every finite world whose last pair lies below `10¹⁹(1 − 1.4×10⁻⁸) = 10¹⁹ − 1.4×10¹¹` is excluded at κ = 3 (Poisson yardstick: `10¹⁹ − 3.9×10¹¹`). The surviving hypotheses are those that stop inside the last ~10¹¹ of the 10¹⁹ integers — and they are surviving *because of the model's own error*, not because of the census: the deficit a stop can hide equals the measured residual of the Hardy–Littlewood model. ## (4) DERIVED — the invisible window is unbounded, and its relative size falls `W_resid ~ x^{0.548}` over the grid (per-decade exponents 0.83 0.62 0.49 −0.01 1.18 0.68 0.34 0.38 0.43), so `ε = W/x ~ x^{−0.45}`. Consequences, stated plainly: * **No census length can refute finiteness**: at every scale there is an untestable tail of `~x^{0.55}` integers. This is the precise, quantified form of the corpus's own "resolved only by an argument that finite data cannot reach" (`maxgap-law.md`). * **Extending the census improves the *relative* resolution by ~x^{−0.45}** and does not shrink the invisible window in absolute terms: 10¹⁷ more integers of sieve buys a factor ~10² in ε and *nothing* in W. So the next decade of census is not the lever; a **bound on the model's error** is. That bound is the corpus's own arithmetic wall (`endpoint-target-audit.md`, the `E_>` / sufficient-margin machinery) — the same object the *infinitude* route needs. **The lane's observational resolution and the infinititude route's missing estimate are the same input**, which is why this lane cannot outrun that wall with statistics. ## (5) The blindness of pattern statistics (ANALYSIS, within a stated model class) Within the class of *conditional-gap-law* models — models whose law of the local pattern (gap multiset, zone-occupancy pattern, record ladder shape, admissible-slot occupancy) given the pair count is intensity-independent — the finite world `F(X₀)` and the infinite world `A` induce the **same** conditional law on the data below `X₀`, because `F(X₀)` *is* `A` restricted below `X₀` plus nothing above. Hence no statistic of the normalised pattern can separate them at any finite scale, and the counting level is the only carrier. **Scope:** this is a statement about that model class, not about the primes; a statistic that is not in the class (one that keys on an intensity-dependent feature) is not excluded, and I make no such claim. ## (6) Controls, and the falsifier outcome * Own sieve reproduces `π₂(10⁷..10⁹)` exactly (A007508) — **PASS** (the gating control). * Retained TOS histogram total vs A007508(16) — **one pair apart**, explained by the boundary convention, reported as such and not smoothed. * `M` by quadrature vs Ei identity: worst relative difference **9·10⁻²⁹** — **PASS**. * Exact 30-digit bisection vs the analytic inversion `W = 3σ/M'` at 10¹⁶/10¹⁹: the linearisation error is 2.5 % for the pre-registered (contaminated-`c`) frontier and is retained in `frontier.json` as `W_exact_check`; the corrected run uses the same linearisation, whose neglected term is `O(W/x)` relative — see `frontier2.out` §3–4. * **Sham-stop power control** (constructed finite worlds): 13/13 detected in the pre-registered run, **28/28** in the corrected run, under all three yardsticks — the instrument has power in range. * Permutation control (exchangeability of the top-decade residual pattern against the calibration decades): p = 0.945 — the top residuals are **not** anomalous, i.e. no terminal signature. * Calibration-window robustness: W moves by a factor 2.3–2.5 across windows (stated, not hidden). * **Pre-registered falsifier: TRIGGERED, and diagnosed** — it fired on a surplus (defect 2 above). * **Corrected, direction-sensitive falsifier: NOT triggered** — the single negative decade (10¹⁸, d = −1.29×10⁷) sits at z = −0.09 against its own yardstick. ## Rungs * The ratio table, the residual scale exponent, the frontier numbers, the power controls: **MEASURED** (published counts + two independent evaluations of the integral + my own sieve at 10⁷–10⁹). * The window growth `W ~ x^{0.55}`, `ε ~ x^{-0.45}`: **DERIVED** from the measured residual scale, with the linearisation's error bounded and disclosed. * The blindness statement: **ANALYSIS** inside the declared model class. * Nothing here bounds G₂, the Zone Postulate, or any twin margin; no claim is made about the truth of the twin prime conjecture. ## The gap that remains, and the cheapest next experiment The frontier is currently computed with an *assumed* yardstick (three of them). The measured oscillation amplitude `σ_osc(x)` of the residual — the only quantity that sets the frontier — has **not** been measured directly; it was inferred from ten decade points. Published fine-resolution π₂ tables exist (TOS's `pi2(x)` tables, analogous to A007508's endpoints), so the cheapest discriminating experiment is: read π₂ at a few hundred log-spaced points, measure `σ_osc` directly, and recompute the frontier; if `σ_osc` is larger than the trend scatter used here, the frontier weakens by exactly that factor and the numbers in §3 move — that is the falsifier of *this* return. The scale at which a stop becomes visible is then set by `σ_osc` alone, and the lane's honest statement is the pair (`ε*(x)`, `W(x)`) rather than any claim about finiteness. ## Cited, reused, not re-derived A007508 (twin-pair counts below 10ⁿ, OEIS, read 2026-09-18, n = 1…19); the retained complete twin-gap histogram `tos-twin-gaps-1e16.txt` (T. Oliveira e Silva, 2013, count limit 10¹⁶); Wolf, arXiv:1107.2809 (sign changes of `π₂ − C₂Li₂`); Kourbatov, JIS 16 (2013) 13.5.2 via `ZONE-POSTULATE.md` §4 (maximal twin gaps below 0.76 ln³p) — not used numerically here, cited as the lane's neighbouring envelope object; the corpus's own `maxgap-law.md` sentence on finite data, and `exponent-control.md` for the discipline that caught defect 2.