# The tail's derivation: the ensemble half derives exactly, and the anchored coefficient is Hardy-Littlewood in disguise STATUS: HELD, staging. The historical adversarial review is [redteam-0830-slack.md](redteam-0830-slack.md); this revision adds the closed class-offset identity in section 4a and applies its endpoint correction. Producer `research/history/staging/attack-0830-tail-derivation.js`, embedded (`node research/qc/embed.js research/history/staging/attack-0830-tail-derivation.js`), verdict line `0 assertion failures`, levels x = 7, 11, 13, 17, 19, 23, 29. This note edits nothing; the proposed TODO text is in §8, HOLD. Label: **(i) throughout.** Every statement is either an identity about an exact periodic object, an exact number at one level, or a distributional statement about a measured field. No bound on any tail at any p is claimed. The tail is a slack field of R0 (`zonegap-02-reduction.md` §2, (R0), `:62`), it sits off the exponent's critical path, and nothing here touches Z2 or moves the wall. `attack-wrongdirection-audit.md:548` records Z4 as not audited; this note does not audit it either. Inequality directions are stated where an inequality appears (§2a, §3); none is load-bearing for a bound because no bound is made. --- ## 0. What is still open, and what failed **The anchored coefficient does not derive, and the kill clause fires.** Every route from the tile to the measured 0.7574-sized coefficient passes through two inputs: ρ(2) = e^{2γ}/4, the origin's survival density against the ensemble at u = 2, whose exact value is HL-conditional (`origin-excess.md:36`, `:433`) and whose limit is the sharp form of Assumption A, "algebraically equivalent to HL on the 11/17 comb" (`GLOSSARY.md:328-329`); and CV² → 1 for the zone's own twin gaps, "a Hardy-Littlewood statement for twin gaps" (`head-residual-factor.md:166`). So the anchored coefficient is Hardy-Littlewood in disguise. Status PARTIAL with that as the coordinate; nothing beyond HL is derived on the tail, exactly as nothing beyond HL was derived on the head. **What derives, exactly and with no prime input, is the ensemble half.** The tail functional averaged over all p# translates has a one-line expectation, R + 5/2 over all integer origins and R + 3 over odd origins, R = Σg²/2W over the tile's twin-slot gaps; it is asserted by direct summation at every level with W ≤ 2²⁸ and its Mertens constant is e^{2γ}/(8 C₂) = 0.6007 [PROVEN]. What does NOT settle inside the ensemble is the tile's own gap-shape factor (1 + CV²)/2, which reads 0.6306 → 0.7532 over x = 7..29, rising at every step and nowhere near a plateau [MEASURED exact per level, limit OPEN]. **The rough-origin candidate is not identified.** Its exact ensemble counterpart, E_rc/E_cls (an origin coprime to p# and in the classes p'² occupies, against every integer in those classes), reads 1.0050 → 1.0523 over x = 7..29, rising; the record's anchored surplus is 1.0157 [1.0013, 1.0308] at sieve level 1e5 to 3.2e5. Same sign, wrong size, and a trend the record's three bands (1.0452, 1.0053, 1.0157, `zone-tail-02-0829.md:432`) do not show. The two sit four orders of magnitude apart in p and cannot be compared at one level. HEURISTIC stays HEURISTIC. **One number derives that the record had measured and mis-explained.** The class-null offset, classNull − R, is an exact ensemble quantity: E_cls − R = 5.600, 5.709, 5.833, 5.913, 5.973, 6.008, 6.034 over x = 7..29, rising slowly. The record measured 440.36 − 434.31 = 6.05 at the top band (`research/zone-tail-02.js:796`) and explained it once as 0.5 (the prereg, §1 (P4)) and once as 7.5 (§3, `zone-tail-02-0829.md:407`); `redteam-0829-measure-b.md:153` (C17) flagged both. The ensemble's exact offset is the ground P4 lacked. Calibration: exact at x ≤ 29; its agreement with an anchored measurement at heights 1e10 to 1e11 is CONSISTENT WITH, one number at one band, not a derivation across the level gap. **A convention clarification, owed to two live files and stated here.** The strict forward convention in `head-residual-factor.md:70` has constant R + 1/2. For backward distance, a < o gives R + 1/2, while a ≤ o gives R - 1/2, as reviewed in `redteam-0830-slack.md` section 3. Under the tail's own convention, a + 2 < o strict (`zone-tail-01.md` §1, `:83-86`), the constants are 5/2 for all integer origins and 3 for odd origins [PROVEN, §2a; asserted numerically]. Re-read against the odd-origin constant the record's t/R_shell = 1.0298 becomes t/(R_shell + 3) = 1.0228; the class-null figure 1.0157 was computed in the strict convention and is unaffected. **No error in the brief was found.** Every figure the brief carries (0.7522, [0.7410, 0.7630], 0.7574, 1.0619, 1.0298, [1.0156, 1.0443], 1.0157, [1.0013, 1.0308], the detrended r = −0.0009, 27,292 zones, the 0.03 per-step registration) reproduces from `research/zone-tail-02.js`'s bound block or `zone-tail-02-0829.md`, and the producer parses the top-band rows from the bound block rather than typing them (SEC 1). --- ## 1. The object, pinned against the record **The tail as the record defines it.** A pair is named by its opener a; it is in zone p iff p < a and a + 2 < p'², both strict; a_last(p) is the largest such opener; tail(p) = p'² − a_last(p) (`zone-tail-01.md:80-86`; `research/zone-tail-02.js:41-44`). The top-band figures, parsed by the producer from `research/zone-tail-02.js:766` and `:796-798` and printed in SEC 1: 17,700 zones, mean tail 447.26, c_local 0.7522 [0.7410, 0.7630], R_shell 434.31, t/R_shell 1.0298 [1.0156, 1.0443], classNull 440.36, t/classNull 1.0157 [1.0013, 1.0308]. The zone tails at p = 7, 11, 13, 17, 23 (14, 20, 8, 14, 14) are parsed from `research/zonegap-02-reduction.js:409-413` and the max tail 80 at p = 29 from `research/zone-tail-02.js` SEC D; all six reproduce from the tile with no prime table (SEC 3, IDENTICAL). **The ensemble object.** T_x is the twin-slot tile, period W = x#, D = ∏_{5≤q≤x}(q − 2) openers, gaps summing to W. For an integer origin o mod W, τ(o) = o − max{ a opener : a + 2 < o }. By the Zone Restriction Lemma (`zonegap-02-reduction.md:27`, PROVEN) the in-zone twin slots of T_p are the in-zone twin primes, so tail(p) = τ(p'²) read on T_p at phase zero, exactly. The record's tail is one member of the ensemble {τ(o) : o mod W}; the ensemble mean over all o is the object whose expectation derives. --- ## 2. The ensemble derivation ### 2a. The identities [PROVEN, one line each; asserted by direct summation at x ≤ 23] Let the openers be a₁ < … < a_D with gaps g_i = a_{i+1} − a_i (the last gap wraps). Origin o has last opener a_i iff a_i + 2 < o ≤ a_{i+1} + 2, so the origins served by gap i are the g_i integers a_i + 3, …, a_i + 2 + g_i, at distances 3, …, g_i + 2. Hence E_all[τ] = Σ_i g_i(g_i + 5)/2 / W = Σg²/2W + 5/2 = R + 5/2, E_odd[τ] = Σ_i g_i(g_i + 6)/4 / (W/2) = R + 3, using Σg_i = W and, for odd origins, that every a_i and every g_i is even-offset consistent (a_i odd, g_i ≡ 0 mod 6 for x ≥ 5). Under the strict backward convention a < o the distances are 1, …, g_i and the constant is 1/2. Under a ≤ o they are 0, …, g_i-1 and the constant is -1/2. The head's strict forward convention also has constant +1/2; its formula is not a tail-convention error. Direction of the only inequality in this section: E_odd > E_all > R, trivially, because the constants are positive; nothing rests on it. The producer asserts both closed forms against the per-gap sums at every level and against a direct sum over every one of the W origins at x ≤ 23 (`direct all-origin sum = closed form`, `direct origin count = W`), 0 failures. D = ∏(q − 2), holes = φ(W), rough origins = φ(W), square units = ∏(q − 1)/2 are asserted per level; D, mbar and G₂ are asserted against `research/gap-spectrum-01.js:601-637`. ### 2b. The numbers, exact (producer SEC 2) | x | mbar | E[g²] | CV² | R | E_all = R + 5/2 | E_odd = R + 3 | (1 + CV²)/2 | |---|---|---|---|---|---|---|---| | 7 | 14.0000 | 247.200 | 0.2612 | 8.8286 | 11.3286 | 11.8286 | 0.6306 | | 11 | 17.1111 | 381.067 | 0.3015 | 11.1351 | 13.6351 | 14.1351 | 0.6508 | | 13 | 20.2222 | 553.721 | 0.3540 | 13.6909 | 16.1909 | 16.6909 | 0.6770 | | 17 | 22.9185 | 738.019 | 0.4051 | 16.1009 | 18.6009 | 19.1009 | 0.7025 | | 19 | 25.6148 | 950.646 | 0.4489 | 18.5566 | 21.0566 | 21.5566 | 0.7244 | | 23 | 28.0543 | 1165.953 | 0.4814 | 20.7803 | 23.2803 | 23.7803 | 0.7407 | | 29 | 30.1324 | 1367.674 | 0.5063 | 22.6944 | 25.1944 | 25.6944 | 0.7532 | Reading: R/mbar = (1 + CV²)/2 rises 0.6306 → 0.7532 across seven levels with no sign of settling; the tile's gaps are far from exponential at every computable level, which is `gap-spectrum-01.md`'s "uniformly steeper than exponential" read at the second moment. Nothing here says where CV² goes. ### 2c. The asymptotic form, and what in it is proven mbar = W/D = 2 ∏_{2=5, every opener is congruent to 11,17 or 29 modulo 30, and 30 divides W. Define the total preceding gap length for each right-end residue: \[ S_r=\sum_{i:\ a_{i+1}\equiv r\pmod {30}}g_i, \qquad r\in\{11,17,29\}. \] Then S_11+S_17+S_29=W, and \[ \boxed{E_{cls}[\tau]-R=\frac{-S_{11}+8S_{17}+11S_{29}}W.} \tag{1} \] **Calibration: PROVEN by the finite identity below, pending independent review.** This needs no Hardy–Littlewood input, prime-density asymptotic, independence model, or limiting CV-squared. In particular, \[ -1\le E_{cls}-R\le11,\qquad E_{cls}-R=6+\frac{-7S_{11}+2S_{17}+5S_{29}}W. \tag{2} \] The second expression states exactly the unresolved condition for this offset to tend to 6. Equal limiting shares S_r/W=1/3 are sufficient, but not necessary: only the displayed linear combination needs to vanish. Equal *counts* of openers in the three classes do not imply equal total preceding gap lengths. ## General periodic identity and proof For any positive q dividing W and nonempty residue set C modulo q, put w(o)=q/|C| when o mod q lies in C, and zero otherwise. Its average is one. Choose the unique q-periodic, mean-zero primitive F satisfying \[ F(o)-F(o-1)=w(o)-1. \] Then the exact general identity is \[ E_C[\tau]-E_{all}[\tau] =\frac1W\sum_i g_i F(a_{i+1}+2),\qquad E_{all}[\tau]=R+5/2. \tag{3} \] To prove it, the origins associated with gap i are A+1,...,B, where A=a_i+2 and B=a_(i+1)+2. Their tail values are o-a_i. Discrete summation by parts gives \[ \sum_{o=A+1}^{B}(o-a_i)(F(o)-F(o-1)) =(g_i+2)F(B)-3F(A)-\sum_{o=A+1}^{B-1}F(o). \] Sum over the cyclic gaps. The endpoint terms combine to sum g_i F(B) minus one copy of each endpoint F. Together with the interior sum that is minus the sum of F over a whole period, which is zero. Division by W gives (3), since averaging tau*w over all W origins equals averaging tau over the selected origins. The all-origin formula comes directly from summing the distances 3,...,g_i+2. For q=30 and C={1,19}, one uncentered primitive on r=1,...,30 is \[ F_0(r)=15\#\{c\in\{1,19\}:c\le r\}-r. \] Its average is 11/2. At a right-end opener b congruent to 11,17,29, the values F(b+2)=F_0(b+2)-11/2 are respectively -7/2,11/2,17/2. Adding the all-origin constant 5/2 proves (1). This also fixes which end of each gap must label S_r: it is the right-hand opener, not the left. ## What this resolves asymptotically Equation (1) gives E_cls=R+O(1) uniformly over all such periodic opener sets. Since E_all=R+5/2, \[ E_{cls}/E_{all}=1+O(1/R) \quad(R\to\infty). \tag{4} \] For the actual tiles, Cauchy gives R>=W/(2D). The existing classical Mertens evaluation W/D asymptotic to exp(2gamma) log^2 p/(2 C_2) therefore supplies R>>log^2 p and a relative error O(1/log^2 p) in (4). The identity does not need that imported asymptotic; it only strengthens the rate in the consequence. Accordingly the fixed mod-30 conditioning contributes no leading-order coefficient. The unresolved CV-squared factor and all-primes rough/square conditioning are different issues. In the general identity (3), |F|=O(q), so growing q does not give a useful uniform O(1) error. Taking q=W to encode rough origins cannot inherit the fixed-q conclusion. No anchored phase-zero statement follows from a whole-period average. Neither (1) nor the current data prove E_cls-R tends to 6. As an exact control, take W=300 and three openers, one in each of the classes: {11,17,29} gives offset -17/50, while {11,17,299} gives 523/50. These are arbitrary periodic sets satisfying the residue restrictions and equal class counts, not actual prime-sieved tiles. They show why those facts alone cannot force the constant 6. Additional structure of the full sieve remains available and is not refuted. Implementation: `class-offset-check.py` and `class-offset-output.json` are supplied with this contribution. Exact finite checks cover p<=13; no larger census is part of the new proof. --- ## 5. The split, with numbers **(a) Derives with no assumption beyond the tile's definition [PROVEN / exact].** The identification tail(p) = τ(p'²) (Zone Restriction Lemma); the ensemble expectations E_all = R + 5/2, E_odd = R + 3; the Mertens constant e^{2γ}/(8 C₂) = 0.6007 of the ensemble mean gap; every conditional in §4 as an exact number at x ≤ 29; the class-null offset E_cls − R ≈ 6.03 at x = 29; the convention constants 5/2 and 3 replacing 1/2. **(b) Needs Hardy-Littlewood-strength input on the two openers [OPEN, HL].** The anchoring density ρ(2) → e^{2γ}/4 (the zone holding e^{2γ}/4 of the tile's twin density at u = 2 is the sharp form of Assumption A); CV²_zone → 1 for the twin primes' gaps; the anchored conditioning factor; and the finite-height density correction. The size of the anchoring the coefficient needs is c_local/ENS = 1.2523 against 1/ρ(2) = 1.2609 at CV² = 1 (SEC 4); the two differ by less than the record's bootstrap width, and the difference is the product of the three factors above. **(c) Unsettled on the tile's own side, no HL involved [OPEN].** CV²_tile's limit, 0.5063 at x = 29 and rising; without it the ensemble coefficient has a proven constant and an unproven shape factor. --- ## 6. The step that does not derive, and what would falsify **The single step.** ρ_p(p'²) → e^{2γ}/4: that the phase-zero window of width p'² holds e^{2γ}/4 of the tile's twin-slot density. Everything on the ensemble side of it derives; everything on the anchored side of it is priced in HL. That step is the anchored bias β's limit (`GLOSSARY.md:310-323`), and the corpus already records that its sharp form is HL and that bounding it by any constant is refuted as a target (`REFUTED.md`, the "bounding the anchored δ" row). No derivation closes here. **Falsifiers, and whether each has run.** - The identities of §2a: any level where the direct sum over all W origins disagrees with the closed form. RUN, x ≤ 23, 0 failures. - The ensemble shape factor: CV²_tile at x = 31 (the producer accepts `--to 31`; `gap-spectrum-01.js:568` scanned that level in 1280 s and this file does more per hole) falling below 0.5063 would break the monotone reading of §2b. NOT RUN. - The anchoring identification: a measured ρ(2) away from 0.79305 at higher x (`origin-excess.md` has eighteen levels to x = 1487), or c_local at 1e12 (`zonegap-03-prereg.md`'s sealed apparatus) outside [0.7410, 0.7630], would break "consistent with HL". NOT RUN here. - The class-offset derivation: the record's per-band classNull − R_shell (SEC E rows at 10^3 and 10^4, `research/zone-tail-02.js:794-795`) against the ensemble's ~6.0; only the top band is parsed here. NOT CHECKED. - The rough-origin candidate: a derivation predicting the record's band ordering 1.0452, 1.0053, 1.0157 from the ensemble's rising 1.0050 → 1.0523 would identify it; none exists. --- ## 7. Defects, brief errors, NOT REACHED 1. **One engine, one run, x ≤ 29.** The tile scan is a single implementation; custody is D, mbar, G₂ against `gap-spectrum-01.js` and the phase-zero zones against `zonegap-02-reduction.js` and `zone-tail-02.js` SEC D, which pins the openers and the gap multiset but not the conditional accumulators. Those are checked only by the identities (E_all, E_odd, the four counts). 2. **The level gap is not bridged.** The ensemble is exact at p ≤ 29; the record is anchored at p ~ 1e5 to 3.2e5. Every ensemble-versus-record comparison in §3 and §4 crosses four orders of magnitude in p and mixes a whole-period average with a u = 2 window. 3. **The class-offset agreement could be coincidence.** 6.034 against 6.05 is one number; the ensemble sequence is still rising and the record's own R_shell is an estimate with the straddling-gap bias the record discloses (`zone-tail-02-0829.md` §7 defect 8). 4. **Brief errors: none found.** Each figure in the brief was verified at its record before use (§0, last paragraph). 5. **Convention corrections, scoped by the subsequent review.** `head-residual-factor.md:70` concerns the head's strict forward convention; its R+1/2 is correct and needs no tail-based correction. Tail comparisons must retain a+2 THE TAIL'S DERIVATION RAN 2026-08-30 (`attack-0830-tail-derivation.md`, > HELD; `Q-tail-derivation-0830` PARTIAL). The ensemble half derives exactly: > the tail functional averaged over all p# translates has expectation R + 5/2 > (R + 3 over odd origins), R = Σg²/2W over the tile's gaps, asserted by > direct summation, with Mertens constant e^{2γ}/(8 C₂) = 0.6007 = HL × ρ(2); > the tile's own shape factor (1 + CV²)/2 reads 0.6306 → 0.7532 over x = 7..29 > and does not settle. The anchored coefficient does not derive: every route to > 0.7574 passes through ρ(2) → e^{2γ}/4 (the sharp form of Assumption A, HL) > and CV²_zone → 1 (HL), so it is HL in disguise; the record's 0.7522 = HL × > 0.9644 × 1.0298 is two non-HL-sized factors cancelling. The rough-origin > candidate has an exact ensemble counterpart E_rc/E_cls = 1.0050 → 1.0523, > right sign, wrong size and trend against the anchored 1.0157; not identified. > One number derives that the record measured: the class-null offset > E_cls − R = 6.034 at x = 29 against the measured 6.05, replacing P4's 0.5 and > 7.5. The head's "R + 1/2" is its strict forward convention; under the tail's own the > constants are 5/2 and 3. Ledger line: add `Q-tail-derivation-0830`.