Tail note: add closed class-offset formula and apply reviewed endpoint correction
The anchored coefficient and rough-origin mechanism remain OPEN; Q-tail-derivation-0830 stays PARTIAL. Return #122 supplies the new exact periodic identity E_cls-R=(-S_11+8S_17+11S_29)/W and the consequence that fixed mod-30 conditioning changes the mean by O(1). The revision adds section 4a, retaining the historical finite table. It does not assert the offset tends to 6.
The owning note also still attributes R+1/2 to inclusive backward a<=o, whereas that convention has R-1/2. This is an existing correction from redteam-0830-slack.md section 3, independently checked in return #122. The revision applies it and preserves the head strict-forward formula, which was correct. The old not-red-teamed banner and NOT REACHED wording are updated to reflect the linked existing review and new identity.
Source: public research/history/staging/attack-0830-tail-derivation.md, snapshot main, original SHA-256 055e8e4b4cff2509077b595828e21f576a312395f5f1860743e78c41b4d6857a. Full sources, proof, falsifiers and exact fixtures are in return #122. Calibration: PROVEN periodic identity pending independent review; finite checks VERIFIED. Native transcript includes only new records since that return, using the same preapproved privacy removals.
Corrections routed to other documents
- research/QUESTIONS.md: If accepted, regenerate the Q-tail-derivation-0830 summary from the amended owning ledger, retaining PARTIAL. The new formula bounds fixed-class conditioning by O(1), not rough or anchored conditioning.
Patch
--- a/research/history/staging/attack-0830-tail-derivation.md
+++ b/research/history/staging/attack-0830-tail-derivation.md
@@ -5,10 +5,12 @@
status: PARTIAL
todo: Z4
question: Does the tail's measured law c = 0.7522 ln^2(p'^2) and its surplus derive, and which part of the coefficient is the tile's own (no prime input) against which part needs Hardy-Littlewood?
-verdict: PARTIAL, kill clause fired on the coefficient: the ensemble object (the same functional averaged over all p# translates) derives exactly, E_all = R + 5/2 and E_odd = R + 3 with R = Sum g^2/2W, computed exact at x = 7..29 with every conditional the rough-origin candidate needs, and its Mertens constant e^{2gamma}/(8 C2) = 0.6007 is 1/(2 C2) times rho(2) = e^{2gamma}/4 by construction; every route from there to the anchored 0.7574 passes through rho(2)'s limit (the sharp form of Assumption A, algebraically equivalent to HL) and through the zone's gap shape CV^2 -> 1 (an HL statement), so the anchored coefficient is HL in disguise and nothing beyond HL is derived; the tile's own (1 + CV^2)/2 is 0.6306 -> 0.7532 over x = 7..29 and not settled; the record's 0.7522 = HL x 0.9644 x 1.0298 is two non-HL-sized factors cancelling at this height; 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 = 5.600 -> 6.034 exact against the record's 6.05, replacing both the prereg's 0.5 and the note's 7.5; and the corpus's "R + 1/2" is the other convention, under the tail's own the constants are 5/2 and 3.
+verdict: PARTIAL, kill clause fired on the coefficient: the ensemble object (the same functional averaged over all p# translates) derives exactly, E_all = R + 5/2 and E_odd = R + 3 with R = Sum g^2/2W, computed exact at x = 7..29 with every conditional the rough-origin candidate needs, and its Mertens constant e^{2gamma}/(8 C2) = 0.6007 is 1/(2 C2) times rho(2) = e^{2gamma}/4 by construction; every route from there to the anchored 0.7574 passes through rho(2)'s limit (the sharp form of Assumption A, algebraically equivalent to HL) and through the zone's gap shape CV^2 -> 1 (an HL statement), so the anchored coefficient is HL in disguise and nothing beyond HL is derived; the tile's own (1 + CV^2)/2 is 0.6306 -> 0.7532 over x = 7..29 and not settled; a later exact identity gives E_cls-R=(-S_11+8S_17+11S_29)/W, so fixed mod-30 conditioning changes the mean only by O(1), while its offset limit remains open; the record's 0.7522 = HL x 0.9644 x 1.0298 is two non-HL-sized factors cancelling at this height; 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 = 5.600 -> 6.034 exact against the record's 6.05, replacing both the prereg's 0.5 and the note's 7.5; and the corpus's "R + 1/2" is the other convention, under the tail's own the constants are 5/2 and 3.
-->
-STATUS: HELD, staging. Not integrated, not red-teamed. Producer
+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.
@@ -68,9 +70,9 @@
derivation across the level gap.
**A convention clarification, owed to two live files and stated here.**
-"A discrete uniform integer origin sees R + 1/2 exactly"
-(`head-residual-factor.md:70`; `research/zone-tail-02.js:799`) is the constant
-for the convention a ≤ o. Under the tail's own convention, a + 2 < o strict
+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
@@ -126,9 +128,10 @@
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 convention a ≤ o the
-distances are 1, …, g_i and the constant is 1/2; that is the corpus's
-"R + 1/2". Direction of the only inequality in this section: E_odd > E_all >
+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
@@ -263,6 +266,93 @@
---
+## 4a. Closed class-offset identity (2026-09-11)
+
+
+Let a_1<...<a_D be the openers in one period W, with a_(D+1)=a_1+W and g_i=a_(i+1)-a_i. Keep the tail convention exactly:
+
+\[
+\tau(o)=o-\max\{a:a+2<o\},\qquad R=\frac{\sum_i g_i^2}{2W}.
+\]
+
+For the twin-slot tile at level p>=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 /
@@ -335,18 +425,18 @@
(`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. **Corrections owed outside this file (HOLD for the orchestrator).**
- `research/zone-tail-02.js:799` and `head-residual-factor.md:70` state
- "R + 1/2" for the discrete uniform origin; under the tail's strict
- convention the constants are 5/2 and 3 (§2a). `zone-tail-02-0829.md:407`'s
- "7.5" and §1 (P4)'s "0.5" are both replaced by the exact E_cls − R of §4.
- The head's own forward constant is not examined here; the head half is in
- flight (`attack-0830-head-remainder`).
-
-**NOT REACHED.** x = 31. A closed form for E_cls − R (only the exact sequence
-is given). A window-restricted ensemble at u = 2 (it would be the anchored
+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<o and the constants 5/2 and 3 of
+ section 2a. `zone-tail-02-0829.md:407`'s "7.5" and section 1 (P4)'s
+ "0.5" are not the class-conditioned offset. Section 4 gives its exact
+ finite values and section 4a now gives its closed identity. The
+ rough-class comparator remains distinct, as the red team explains.
+
+**NOT REACHED.** x = 31. The limit of E_cls − R; its closed form is now section 4a. A window-restricted ensemble at u = 2 (it would be the anchored
member itself). Any derivation of CV² on either side. The per-band class
-offsets. A red team.
+offsets. The subsequent red team is `redteam-0830-slack.md`.
---
@@ -369,7 +459,7 @@
> 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 corpus's "R + 1/2" is the a ≤ o convention; under the tail's own the
+> 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`.
Decision record
- Sat Sep 12 2026 : superseded by duplicate: the same change as return #122, now accepted: folded into it