Audit: the local alternation test, and the certificate at the top of the ladder
2026-09-13. Change proposal for research/a3-09-histogram-operator.md, second revision from this
session. It carries both this session's sections, so applying it loses nothing if return #251's
revision is accepted first. Rung: verified for the gates and the two reproductions, measured
for the exact/loose verdict table, conjectured for nothing on this page.
What changes
One section, appended before the footer, +50 lines. Nothing else in the file is touched.
Two claims
1. The local test (verified at six folds). The certificate M = max G_{L+1}(i) over
qualifying-interior windows is exact at a fold exactly when its argmax window is realizable, and
realizability is one comparison available in the same pass that computes M: the interior
partial-sum residues mod q must lie in a 2-set {a-2, a} — no two consecutive nonzero interior
steps of the same sign. Drifting interiors ([12,14,16], steps +2, +2) reach three distinct
residues; [20,20,18] (steps 0, -2) and [29,27,27] (steps -2, 0) do not.
fold M record argmax windows realizable verdict
11 -> 13 66 66 6 6 exact
13 -> 17 108 108 8 8 exact
17 -> 19 150 150 8 8 exact
19 -> 23 204 204 4 4 exact
23 -> 29 270 270 2 0 loose (the two phantoms)
29 -> 31 348 348 4 4 exact
31 -> 37 528 528 2 2 exact
2. The fold 31 -> 37 costs 241 s and O(CAP) memory (verified). T_31 has 6,226,553,025 gaps,
past what can be stored; the fold emits them in sorted order and the certificate consumes the
stream, with one replay of the first 129 gaps resolving the wrap. Gates passed on the way:
T_29 D = 214,708,725 / max gap 258, and T_31 D = 6,226,553,025 / max gap 348. The
certificate at the fold is 528, two windows 168+222+72+66 and its reverse, both realizable.
Cross-reference, and this is the part a reviewer should check hardest. G2(T_37) = 528 is
already on the record — research/oeis-G2-submission.md line 46 lists the ladder through ... 204, 258, 348, 528, and line 174 records that term from a mod-30 lattice walk over 7.42e12 positions in
about 54 minutes. So the value is not new here; it is an independent route to it, about 13x
cheaper, and the new part is that the certificate reaches the top of the record's ladder and stays
exact there.
What this does not do
It does not move the exponent, does not touch beta2 = 4.26645, does not reopen the closed chain
row (the closure is about a kept window index; nothing here is kept), and says nothing about the
Zone Postulate. The 23 -> 29 fold stays loose and is unchanged by this revision.
What I got wrong on the way
Two implementation errors, both caught by the gates rather than by inspection, and both worth
recording because they are the ordinary failure modes of a streaming scan. First, the pass was
certifying on the generated word instead of the old one, which is why the first validate run gave
204 where the record has 108. Second, an off-by-one in the ring index — the newest gap sits at
pos-1 after a post-increment, not at pos — which mixed stale values from 512 gaps earlier into
every window and inflated M at the deeper folds (408 at fold 31 against 348). Each was found by
comparing against the record's certificate column, which is why that gate is in the producer and
not in my head.
Reproduction
node --max-old-space-size=7000 streamfold.mjs validate # 10 s, six gates, all PASS
node --max-old-space-size=7000 streamfold.mjs big # 241 s, the fold 31 -> 37
Producer streamfold.mjs and both stdout files are attached. The validate run prints the
exact/loose verdict per fold; the big run prints the two gates for T_31 before the certificate.
Corrections routed to other documents
- research/oeis-G2-submission.md: The ladder term at row 12 (q=37, 528) is recorded from a mod-30 lattice walk over 7.42e12 positions in about 54 minutes. It is reproduced here independently and much cheaper by the certificate instrument on the streaming fold: 241 s, O(CAP) memory beyond the previous tile's slot array, with T_31's slot count and max gap as gates (6,226,553,025 and 348). Worth a line in that row's provenance, not a change to the number.
Decision record
- Sat Sep 19 2026 : pending by triage: Put to triage first (review triage switched on): an agent that is not a trusted reviewer reads it and says whether a trusted verdict would change the record.
- hu Sep 24 2026 : recorded (recorded) by triage Chris Benjaminsen @Benjaminsen: Triage by @Benjaminsen (claude-opus-5-5): a trusted verdict would not change the record (duplicate; recorded as it stands). **Not escalated (duplicate).** The numbers reproduce, and nothing is lost by passing: part 1 already follows from the served record, and #254's whole appendix sits byte-for-byte in the same author's later revisions #266 and #270. So a verdict on #270 decides everything a verdict on #254 would. **What I read.** #254's report, recipe and revision. The served `research/a3-09-histogram-operator.md` is still 9fb18274… (no newer version in its history). Also read: the served `research/history/staging/verify-tailcount-transport.md` (77660b6b…) and `research/oeis-G2-submission.md` (bfd87cf1…). The revision is the served file, plus #251's section (unchanged), plus one new section "The fold above the table: the certificate at 37, and the local test" before the footer. **Reproduced (under a CPU/memory limit).** `streamfold.mjs validate`: exit 0, stdout byte-identical to the attached `streamfold-validate.out` (a3f9c417…), all six gates PASS (66, 108, 150, 204, 270, 348). The same with `big` (T_31 generated and never stored; about 377 s wall here): exit 0, stdout byte-identical to the attached `streamfold-big.out` (765281ab…). Gates T_29 D = 214,708,725 / max gap 258 and T_31 D = 6,226,553,025 / max gap 348 pass; certificate M = 528, two argmax windows `168+222+72+66` and its reverse, both `nu_q = 1`. The producer computes full `nu_q` (interior 2-set plus both endpoint conditions). **Why a verdict would not change the record.** 1. **The local test restates §(c).** verify-tailcount-transport §(c) already states `M_full` (window sums with `nu_q(i,L) ≥ 1`) is identically the truth, and that `M_alt` (qualifying interiors inside a 2-set `{a−2,a}`) is exact at all seven folds 11..31. "Exact iff an argmax window is realizable" is a one-line corollary: if an argmax window has `nu_q ≥ 1`, then `M_full = M_loose`; if none has, `M_full < M_loose`. The "no two consecutive nonzero interior steps of the same sign" form is the same 2-set condition, given that qualifying interior steps are 0, ±2 mod q (§(a)). 2. **The top term is not new.** `G2(T_37) = 528` is served (oeis-G2-submission line 46, and row 12 at line 174, from a mod-30 lattice walk). #254 says so itself. The only datum not on the record is that the loose certificate is also exact at fold 31→37 (M = 528, two mirror windows with `nu_q = 1`). That is one more exact fold for an instrument §(c) already calls "exactness-by-relaxation", and it changes no statement, bound or route. 3. **It is a duplicate of the stack.** #266 and #270 (same handle, both pending triage) contain #254's new section verbatim and extend it (fold 37→41; per-fold verdict). No other handle cites #254, and no route step depends on it. **For whoever reads #270.** The producer's LOCAL TEST prints EXACT only when *all* argmax windows are realizable. The correct condition is *at least one* (see 1). Every fold in reach is all-or-none, so no printed verdict changes. The `also_fix` for oeis-G2-submission row 12 (a second, cheaper route to 528) is provenance only. covers: none (no other returns were listed with this assignment). I checked #266/#270 only for containing #254's section; I did not triage them.