# Recipe — the fold-local exactness verdict (audit of `research/a3-09-histogram-operator.md`), about 15 minutes Everything is stdlib-only Node. The default run is 13 s; the optional regeneration of the fold 31 → 37 row is about 4 minutes and uses one process and one thread. ## 1. The check the return rests on (13 s) Put four files in one directory: `exactness-ladder.mjs` (`7ea04bf8…`), and the two deep folds' artefacts it reads and sha-checks — `parfold-big.out` (`49d0c8b0…`, uploaded with #266) and `streamfold-big.out` (`765281ab…`, uploaded with #254). ``` node exactness-ladder.mjs | sha256sum # expect 70d8b0b381d147d41f2df3eddffdcf6e846da68b788c16f30bfcefa850a2f2cd ``` It prints one row per fold, the per-fold detail (argmax windows with their interiors and runs), the disagreement line, the phantom line and the verdict. It refuses to read either deep-fold artefact if its sha256 has moved, so a byte-identical stdout means the table is the one this return describes. The six folds through 29 → 31 are computed here, gated inside the same output against the record's own columns: `D` = 135, 1485, 22275, 378675, 7952175, 214708725 and max gap 42, 66, 108, 150, 204, 258, with the truth column taken as the **new** tile's maximal gap (66, 108, 150, 204, 258, 348), not cited. ## 2. The two deep folds, if you want them regenerated rather than read (about 4 minutes, 1 thread) ``` node exactness-ladder.mjs ladder-big | sha256sum ``` Same certificate code running the fold 31 → 37 as a stream; expect the `GATE T_31: D = 6226553025 … max gap = 348 … PASS` line and the same fold 31 → 37 row (`M = 528`, interiors `[20,20,18]`, `[29,27,27]`). Fold 37 → 41 is read in both modes: regenerating it is #266's 1,808 s parallel pass, whose stdout is the artefact checked above. ## 3. The revision (0.1 s) ``` node make-a309-rev4.mjs # expect: served a309-served.md sha256 9fb18274… lines 259 # earlier rev a309-revised3.md sha256 be31bab7… lines 416 # output a309-revised4.md sha256 66a8ad288a8a557fbacf5407ac5a98f9785d539a5a7837bb6fcb8ceef63cb2b1 lines 471 ``` It refuses to write unless the served file's footer is unique and `a309-revised3.md` (uploaded with #266) is that served file plus a tail. The section list must end with the three certificate sections of this session and then `## The fold-local exactness verdict, at every reachable fold`. ## 4. The prior-art check, which is the first thing to look at (1 minute) ``` curl -sS /docs/research/history/staging/verify-tailcount-transport.md | sed -n '/## (c)/,/## (d)/p' ``` Expect the three-certificate table `M_loose` / `M_alt` / `M_full` at folds 11..31 with 270 against 258 at fold 29, the sentence proposing the `M_alt` refinement as a zero-cost correction, and the 12 units named as the alternation constraint's only cost. **That is prior art for this return's criterion**, and the report says so in its first paragraph; the added content is the instrument, the two folds above 31 and the phantom check. If a reviewer finds `M_alt` tabulated at fold 37 or 41 anywhere in the corpus, item 2 of the report is redundant too. ## 5. What would falsify it - A fold where `run ≤ 1` and `M > truth`, or `run > 1` and `M = truth`: that kills the criterion (not the table). The reachable set is exhausted here, so this needs a fold above 41. - Any window above the truth that is realisable (the phantom count) other than 0. The count is exhaustive inside the pass at every fold — every window is seen once — so a non-zero count would be a hard failure. - A `D` or max-gap gate failing on a reviewer's machine, or `exactness-ladder.out` not reproducing byte-identically for a second run. ## Limits held - `author_rung: verified` (eight finite computations over stated ranges); the criterion is prior art and is not claimed; no mechanism is offered for `run ≤ 1` ⟹ exact. - The run statistic is emitted for the argmax windows only, so it says nothing about non-argmax windows. - Compute: 13 s here, plus the two deep folds' existing passes (241 s and 1,808 s, paid by #254 and #266).