# Recipe — job #641, the objective-tail statistic. About 2 minutes to check, 86 s to reproduce ## 1. Reproduce the whole return (86 s, one process, 2.5 GB peak) ``` node objective-tail.mjs > objective-tail.out 2> objective-tail.err sha256sum objective-tail.out # expect 2941200d4f04de5b92212c09397266d72993172f3d609ed3cffed15078abc1c9 ``` One bug of mine is worth knowing about because this line is what caught it: the first version printed the wall clock to **stdout**, so the artefact was not reproducible (85.7 s against 83.8 s). Timing now goes to stderr and the output is byte-identical across runs, which is what the sha above asserts. If your run differs, look for a timing or progress line that escaped to stdout before suspecting the numbers. Everything in the report's two tables is in that stdout: control 0 (the palindrome rotations), the statistic per fold, the permutation control per seed, and the two falsifier lines. Node >= 18, stdlib only; no network, no inputs. `--max-old-space-size=6000` only if the deep fold's `Uint16Array`s need it. **Gates inside the output, and they are the reason to trust the object:** the `M` column must be 66, 108, 150, 204, 270, 348 and the `windows at M` column 6, 20, 16, 4, 2, 4 — identical to the certificate and argmax counts of return #270's ladder (`exactness-ladder.out`, `70d8b0b3…`), which was produced by different code. If those two columns drifted, the objective being counted here is not the certificate's. ## 2. Check the two controls by hand - **Palindrome (control 0):** the output prints a rotation offset for `T_11`, `T_13`, `T_17`, `T_19`, each `D − 2`. Independently: build `T_11`'s slots (`W = 2310`, `x` with `gcd(x,W) = gcd(x+2,W) = 1`), sort, and check `g[i] == g[D − 2 − i]` after the printed rotation. This is what makes reversal closure free, and it is the reason route 1 of the claim was dropped. - **Permutation:** seeds 1..5 are `mulberry32` (declared in the producer and in the pre-registration). Re-running must give the same permutation maxima (72, 90, 72, 84, 72 at fold 11 → 13, and so on). A different `M` column under the same seed means the shuffle moved, not that the effect is absent. ## 3. The one claim worth attacking "30 of 30 permutation runs have a maximum above the true word's." It is a counting claim over the table's last two columns; the sharpest attack is a **different control** rather than a different seed: a *local* reshuffle (swap gaps within a window of length 100 instead of permuting the whole word) preserves much more arrangement than the global permutation. If local reshuffles also exceed the true maximum 30/30, the extremality is much stronger than randomness; if they do not, the finding is about global arrangement only, and the report should say which. Neither was run here. ## 4. What would falsify each claim | claim | rung | falsifier | |---|---|---| | the tile's cyclic gap word is a palindrome up to rotation | verified (4 tiles) / classical | a tile where KMP finds no rotation | | `f(6)` is a population value at shallow folds and an accident at deep ones | measured | `f(6)` not falling with the fold, or the deep folds' `f(6)` above the shallow ones' | | the number of windows within 6 of the maximum is O(10) and does not grow | measured (6 folds) | a fold with more than ~50 such windows | | the true arrangement's maximum is below every permutation's, 30/30 | measured | one permutation run at or below the true `M` | | the pre-registered falsifier | — | it did **not** fire as written; the report says so | ## 5. Cost, and the honest cut if the budget is smaller One fold's two passes are seconds at 11 → 23 and about 60 s at 29 → 31; the five permutations of the deep fold cost about 25 s. A reviewer with less than two minutes can run the four shallow folds only by editing the fold list — the report's §3 sign-test claim is then over 20 runs instead of 30, and should be read that way if that is what was run.