# Recipe — reproduce the 19#→37# certificate independently Python 3 + numpy (≥ 2.0 for `np.bitwise_count`; the code falls back to a SWAR popcount without it), one process, no network, no randomness. Working directory = project base. Files: `kstar-1943.py` (the engine; imports `kstar-engine-check.py` for `slot_word` and asserts its pinned configuration), `extrapolate-kstar-1943.py`, `certificate-1937.json`, `k37-chunkA.json`, `k37-chunkB.json`, `curve-kmax10-fast.json`. Measured cost on this machine, one core: **1.58 ms/shape at |Q| = 4, kmax = 14** (this step), 0.504 ms/shape at |Q| = 6, kmax = 10, 0.34 ms/shape at kmax = 11; whole-step 567 s. Memory < 200 MB. Total to reproduce everything below: **~10 minutes.** ## 1. The anchor (3 s) ```sh python kstar-1943.py --P 19 --PP 37 --f1 ``` Expected: `D = 378675` and `closed_form_N1 = 71775574200`, with `Q = [23,29,31,37]`, `NCOPY = 765049`, `prod(q-2) = 575505`. ## 2. The curve and K\* (567 s, two chunks) ```sh python kstar-1943.py --P 19 --PP 37 --kmax 14 --lo 0 --hi 190000 --out k37-chunkA.json python kstar-1943.py --P 19 --PP 37 --kmax 14 --lo 190000 --hi 378675 --out k37-chunkB.json ``` N_k is a sum over shapes, so the two partial sums add exactly. Summed, `Nk_summed` must be (byte-comparable apart from `seconds` and `ms_per_shape`): ``` 71775574200, 14726572962, 2741100756, 507878268, 92290916, 15643066, 2562766, 419752, 72170, 13384, 2254, 324, 34, 0 ``` `N1_summed == N1_closed_form` (the anchor over the whole shape set), non-increasing throughout, and **K\* = max{k : N_k ≥ 1} = 13** — the served value. `certificate-1937.json` is the combined record. ## 3. The engine's licence and the fast path (36 s) ```sh python kstar-1943.py --check --only 0,2 # 25 of 43 committed cells, exact python kstar-1943.py --P 19 --PP 43 --kmax 10 --out curve-kmax10-fast.json # 191 s ``` The first must print `mismatches=[]` and `K*=10/10`, `K*=13/13` for the two frozen steps. The second must be cell-identical to the recorded slow-path curve `curve-kmax10.json` (it is: fast 190.9 s vs slow 445.6 s, same ten integers); that equality is the fast path's proof. The third frozen step (13#→31#, kmax = 18) is not run: it costs minutes even on the fast path and is not needed for this claim. ## 4. The reach instrument and the price (1 s) ```sh python extrapolate-kstar-1943.py ``` Expected: calibration biases +2.19 / +1.87 / 0.00 / +0.53 against true K\* 13 / 10 / 17 / 13; the 19#→43# first zero at k = 23.26 with the three corrections (22.3 raw, 21.1 four-point, 20.1 base-19-only); the price table in `extrapolate-kstar-1943.json`. ## 5. What would falsify the claims - `N1_summed` ≠ the closed form: the word, the class count or the copy count is wrong at base 19. - Any non-monotone N_k or a first zero not at k = 14: then the served K\* = 13 is contradicted, which is itself a finding about the record. - A mismatch in §3: the representation change is not a re-implementation and §2's numbers carry no licence (the anchor alone does not license the window layout). - Reproducing the eleven known steps is the *producer's* validation; this run re-proves only the frozen 25 cells, and states that scope. ## Sources - `research/history/staging/attack-kstar-01.md` (served copy hash `1be1ded0…`), §1's ladder row `19#→37# | K\* = 13 | cert 14`, §3's reach paragraph, §7's "rests on the I–E route alone". - `research/history/staging/attack-kstar-01-prereg.md` (hash `99c6918b…`): the identity, the committed curves used for the regression. - No third-party source was consulted; no source needs local access.