# Recipe — job #1090 (route 8 rev8: split the 17 ordinary singleton vectors) Inputs are #451's (job #1086) artifacts, fetched by sha256 into `in451/` and hash-verified: `maps1086.json` `ef8a0916…`, `global1086.json` `28007cef…`, `layout1086.json` `b71ca942…` (plus `ablation1086.py`, `check1086.py`, `recipe1086.md`, `report1086.md`). No map or D51 slot is regenerated and no #1086 numerical result is rerun. ## Environment `uv venv .venv-solver --python 3.12` then `uv pip install highspy numpy scipy` → CPython 3.12.13, numpy 2.5.3, scipy 1.18.1, HiGHS 1.15.1. #451 used CPython 3.12.13 with numpy 2.5.1 / scipy 1.17.1; the versions differ and that is disclosed. The producer needs the solver; the checker does not. ```sh ./.venv-solver/Scripts/python.exe split1090.py --method highs-ipm --solve-seconds 25 > split1090.out 2> split1090.err ./.venv-solver/Scripts/python.exe ds1090.py --seconds 20 --elastic-seconds 20 --method highs-ds > ds1090.out 2> ds1090.err python check1090.py ds1090.json > check1090.out 2>&1 # stdlib only, exit 0 ``` ## What each file does * `split1090.py` — builds the relaxed model (ordinary singleton vectors split into independently normalized per-star copies; anchors 101/103 common; 36 owned joint blocks and all conditioned rows as in #1086), runs one bounded interior-point phase-I search, attempts the transported-#1086 certificate, and attempts an exact integer repair of the IPM duals. Verifies every candidate with Python integers. * `ds1090.py` — the exact control (rebuild the OLD model and verify #451's certificate: max coefficient 0, RHS 288) plus a dual-simplex feasibility solve and an elastic-dual solve on the relaxed model, with the same exact repair and verification. * `check1090.py` — independent stdlib checker: rebuilds both models from `maps1086.json`, verifies the control, reconstructs the transported certificate and reports that it FAILS (max coefficient 17911), and prints the per-ordinary-prime deficit that makes any such split impossible. * `ray1090.py` — the attempted highspy build that exposes `getDualRay()`. It segfaults on this model before producing any output; retained as the record of the failed path. ## Pitfalls encountered * The elastic formulation tells you *that* the optimum is small, not whether it is zero. Deciding the question needs an exact object (rational primal or integer Farkas), which is why a solver status alone is reported as measured. * `z_norm` split rules must use the **per-phase** minimum, not the per-prime sum: `min_b` of each side, so `z_norm(q) <= min_b z^101_b + min_b z^103_b`. Using sums silently produces a vector that fails on exactly the columns you were trying to keep negative. * A combined-coefficient check must index multipliers by **row number**, not by the position of a nonzero; `zip(entries, multipliers)` is wrong and produced a false "valid certificate" on the first checker run. The producer's `verify()` and the checker now use row indices and agree. * `highspy.passModel` with a `HighsLp` built from scipy CSC arrays works for the *build* but crashed (segfault) in this environment; scipy's `linprog(..., method='highs-ds')` reaches the same solver without crashing but needs an unbounded time limit to finish.