# Recipe: `entering89.py` (job #1289, route 21 rescue) Prerequisite: Python 3 (stdlib only; CPython 3.14.6 here). Nothing is fetched; no served producer is run; the withheld p43/N20/a10007 dual witness is neither read nor regenerated nor fitted. ``` python entering89.py --out entering89.json > entering89.out ``` * runtime 0.4 s single-threaded, peak RSS well under 100 MB, no threads, no randomness * exit 0 iff all 9 internal gates pass; each gate is asserted in the JSON (`checks`, `passed`, `exit_ok`) and printed as `PASS`/`FAIL` lines * stdout is byte-identical across runs (LF-terminated; `entering89.out`, 1657 bytes, sha256 `51e19d27f6ec03eb66864cd7ad3d30acea4b5ca483d5cd6b1235f12a373c4fdb` - the uploaded artifact, re-checked after this job by regenerating stdout with `newline="\n"`: shell redirection on Windows writes CRLF and silently changes the hash, so take the hash of the LF copy); the JSON (`entering89.json`, sha256 `ed27e23c8e3f68803ef43f8a58f4f41a6a592e36c63e07e1b5e133221532493f`) is written by the script itself, so it carries no wall-clock or host field and is reproducible * producer sha256 `56b040e0ed8c56d6d249b1d1b2c06d0548a0e4607e4819a393126d789b3079d8` What it computes, in integers only (no floating point anywhere): 1. `band(p)`: old primes `<= p`, `Q_p = {q : p < q <= 2p}`, `R = {t : 2p < t <= 2r}` with `r` the next prime. At `p = 43`: `Q_43 = {47,53,59,61,67,71,73,79,83}`, `r = 47`, `R = {89}`. 2. `allowed(start, old)` / `kill(D,q,b)` / `cap(D,w,q)` / `sumw`: the definitions route21 states, written directly from them (`s` and `s+2` coprime to the old primes; `q | s+b or q | s+b+2`; `max_b` of the killed weight). 3. The gates, in order: - `G2a` every admissible twin start on a 913-window is `5 mod 6` (old primes include 2, 3); - `G2b` co-killed pair distances equal `{d : 6 | d, d = 0/+-2 (mod t)}` **in both directions** against the class-pair definition, over the whole residue lattice, for `t = 89` and `t = 47`; it also reports the exhaustively maximal class-pair occupancy (4 at `t = 89`, 7 at `t = 47`); - `G1a` return #497's complete-window counterexample: `D = {23,29,35,41}`, `W = 4`, `C_5 = 2`, `delta = 2`, phase 0 deletes `{23,35}`, `C'_7 = 2`, margin 0 on both sides; - `G2c` the entering owner at 43 -> 47 is 89 alone and `Q_43` is those nine primes; - `G1b` the margin identity equals a direct recomputation of both certificates at every one of the 47 phases, for four prescribed instances and for the `lambda`-sweep families; - `G2e` a support whose diameter is below the smallest co-kill distance (180 at `t = 89`) never has two slots in one phase of the entering owner; - `R1` every family whose old band certifies (`delta > 0`) keeps a positive one-step margin at all 47 phases; - `G2d` the entering cost never exceeds the support's largest 89-class-pair occupancy. Prescribed inputs (mine, stated, not fitted): window starts 1003 / 50021 / 100003 / 1000003, `p = 43`, `N = 20` slots taken as the first 20 admissible starts, `L = 913`; weights are unit, or `lambda` on the single heaviest 89-class-pair and 1 elsewhere. Verification by a reviewer, cheapest first: (a) rerun the command and compare the two hashes; (b) read `G2b`'s two observed objects - the distance sets are pure CRT and can be checked by hand (`6 | d` and `d mod 89 in {0,2,87}` below 913 gives 180, 354, 534, 714, 888); (c) change a window start or `N` and confirm the gates still hold and that `G1b` stays exact - any phase where the two sides differ is a defect in this producer, not in the identity.