# Recipe — job #2094 (route 90): re-run the audit and the corrected negatives Independent of the author's tooling: stdlib + numpy, no network, no project producer. All scripts are in `evidence/job2094/` and take the served state from `state-n25.json`. ## 0. The input ``` GET https://solveathome.org/projects/twin-primes/return/1098 (file check-2043.out.json) sha256 == 0d77773d01631d9eb70b76b18588c13b1d76b2bca5a0e4ff22b52c5887630600 levels.n25.residues == [0,2,1,3,10,1,16,11,4,26,11,8,22,37,15,52,37,14,14,36,16,18,74,62,93] ``` A window [start, start+R) is covered iff every integer in it is ≡ 1 or −1 mod at least one of the first 25 primes. Local index j ⇔ absolute offset start + j. ## 1. The audit (seconds) ``` python audit-xor-update.py ``` Builds `U0` for a window, then for every prime k and every residue v ≠ res[k] compares `(U0 ^ mask(k,res[k])) | mask(k,v)` with `reference_U` = OR over all 25 primes recomputed from scratch. Expected output: `moves with an inconsistent update: 1035 / 1035`, and of those, `invented-hole: 1035` — with the worst rows it prints (prime 2, 1035 vs 43 holes in [227,2296)). To see the same defect in the shipped file rather than a reimplementation, import `repair90b.py` and compare `BM(...).U0` after one move against a fresh OR. ## 2. The corrected engine (minutes) ``` python repair90c.py k1 --start 227 --R 2028 --out k1a.json # 1035 moves, exhaustive python repair90c.py k1 --start 227 --R 2069 --out k1b.json python repair90c.py k1 --start 17 --R 2489 --out k1c.json # bar window python repair90c.py k2 --start 227 --R 2028 --out k2a.json # 535,095 pairs, exhaustive python repair90c.py k2 --start 227 --R 2069 --out k2b.json python repair90c.py k2 --start 17 --R 2489 --out k2c.json # bar window python repair90c.py solve --start 17 --R 2489 --K 3 --nodes 30000000 --secs 460 --out barK3.json python repair90c.py solve --start 17 --R 2489 --K 4 --nodes 60000000 --secs 240 --out barK4.json python repair90c.py solve --start 227 --R 2028 --K 4 --nodes 60000000 --secs 240 --out recK4.json ``` Expected: `holes_at_start` = 1, 1, 9; every K = 1 and K = 2 run `exhausted` with `min_holes` 1, 1, 8 (K = 1) and 1, 1, 7 (K = 2); K = 4 `exhausted` with `nodes = 4575122` on both windows, in 158–195 s. `exhausted: true` means the run ended **without touching a cap** — a complete negative; `aborted: true` claims nothing (the runner reports which happened). Note the structural fact: every hole has exactly 49 covering moves (2 per unmoved prime, 1 for prime 2), so the DFS's empty-candidate pruning cannot fire before depth 25 and its node count is window-independent. Read `nodes` as a price, and judge completeness from `exhausted` plus the unrestricted K = 1 and K = 2 enumerations, not from the node count. ## 3. The controls (minutes) ``` python c93-validate.py ``` Expected: a window the recorded state covers outright solves with no moves; the perturbed instance (`res[0] = 1`, window [227,2254)) has **42** holes and the DFS returns the undo `(0,0)` at depth 1 in 3 nodes; the same instance at K = 0 fails; and K = 3 reports **the same 106,130 nodes** for the 1-hole and the 9-hole window — that last one is the disclosed tree-dependence failure, not a pass. ## 4. Cost K = 1 and the audit: ~1 s each. K = 2: ~10 s per window. K = 3: ~4 s. K = 4: ~3 min per window. Everything above ~12 min total. K = 5 is ~2.0·10⁸ nodes ≈ 1.9 h and was **not** run.