# Recipe — job #1111, route 8 rescue (basis capture, reduced system, instrument dry run) Environment used: CPython 3.12.13, numpy 2.5.3, scipy 1.18.1, HiGHS 1.15.1 via highspy, one thread (`threads=1`), Windows. The served script paths below are the uploaded files; `` stands for the project URL. Scripts import `split1090.py` (return #453's builder and integer verifier) and its inputs `in451/maps1086.json`, `in451/global1086.json`, `in451/layout1086.json` (return #451), all unchanged. ## 0. Inputs and hashes - `maps1086.json` sha256 `ef8a0916df05899f858e69bb67fa0f292b41416614ef87ad2ee9a869dbd424a1` - `global1086.json` sha256 `28007cef45a1a1fc5642b207ca4c19c3325808add1a05684626e851091a40836` - `layout1086.json` sha256 `b71ca9427970a1187f2178e5a58669a856bbca95c45a1d7cb1da719f27a731ab` - `split1090.py` sha256 as served with return #453 (builder `build()`, verifier `verify()`). ## 1. Capture the basis (~150 s, one thread) ``` python auxbasis.py --time-limit 480 > aux_run1.out 2> aux_run1.err ``` Expected on stdout (`aux_run1.out`): the artifact JSON. Values to compare: - `model`: columns 107572, equalities 3939, conditioned_rows 5091, rows 107573, variables 9030, nnz 362181, normalisation_rows 36 - `solver.status` `HighsModelStatus.kOptimal`; `solver.objective` `1.0000000000000089` - `basis.valid` true; `basic_columns` 8537; `basic_y` 4634; `basic_z` 3903 - `reduced_exact_system.order` 8537; `identity_holds` true - `measured_control_only.max_combined_coefficient_float` `3.055333763768431e-13` Outputs (byte-identical on rerun; the objective was identical on three runs): - `aux_basis.txt` sha256 `4677afa795dcebcc0cd15243cf832ee3aeda79a74797f4ab01df7513bb81ac2` - `aux_basis.highs.txt` sha256 `75f8404e675ee1fb4c9af31fa357e90682c708ca240e792c6e1eb8fb688064ea` - `aux_solution.txt` sha256 `58f54a43089020d40456967e1c744805cb1fe5a5dfbb13d5b28eb4c831736791` Note on hashing: the artifact embeds CPU seconds, so hash-compare `aux_basis.txt`, `aux_basis.highs.txt`, `aux_solution.txt` and `dry.out` byte for byte; compare `aux_run1.out`, `red.out` and `cond.out` by field. The basis files are the object of record. Line endings: `aux_basis.txt`, `aux_solution.txt`, `reduced_system.txt` and every stdout artifact here are stored with LF and the scripts force `sys.stdout.reconfigure(newline='\n')`, so the hashes above are portable. The one exception is `aux_basis.highs.txt`, written by HiGHS `writeBasis` on Windows and hashed in its CRLF form; normalize it before a cross-platform comparison, or prefer `aux_basis.txt`, which carries the same statuses explicitly. ## 2. Reduced exact system (~2 s) ``` python reduced.py > red.out 2> red.err ``` Expected: `order` 8537, `nnz` 38190, `coefficient_magnitudes` `[1]`, `components.count` 1, `max_row_degree` 69, `max_col_degree` 63. Output `reduced_system.txt` sha256 `15936070d3e7b4521ae06676920ad03147c5e14bbd8af27155565c95adc4ac21` (428669 bytes). ## 3. Cost estimate (~2 s) ``` python cond.py > cond.out 2> cond.err ``` Expected: `log10_abs_determinant_estimate` `357.189`, `min_pivot` `0.025180885514498794`, `max_pivot` `9.45721521741837`, `float_solution.min_abs_nonzero` `2.256031377035762e-28`, `max_abs` `76.73811540476561`, `max_residual_of_float_solution` `1.0381733918687305e-12`. This is a floating-point pivot estimate of `det`, not an exact determinant; a different LAPACK/LU ordering can move it in the last digits and can reorder the pivots. ## 4. Instrument dry run (~1 s, byte-identical on rerun) ``` python dryrun.py > dry.out 2> dry.err ``` Expected (`dry.out`): - `auxiliary_lp.status` `HighsModelStatus.kOptimal`, `objective` 1.0, `basis_valid` true - `reconstruction.denominators_lcm` 98, `nonzero_y` 2, `nonzero_z` 1, `order` 7 - `reconstruction.exact_witness_verification`: `max_combined_coefficient` 0, `zero_columns` 10, `normalization_multiplier_sum` 98, `ok` true; `integral_witness` y `[0,0,1,1]`, z `[0,0,98,0,0]`, denominator 98 - `uniform_scaling_control`: T=1/10/100/200/1000 give max combined coefficient 1/10/2/4/20, `verifies` false in all five - `without_basis_control`: `all_rows_active` `active rows 11 != basic columns 7`; `float_support_as_basis` `active rows 7 != basic columns 3` - `corruption_control.ok` false; `sign_flip_control.ok` false ## 5. Cheapest check of the central claim The central claim is that the basis is a valid original-model basis for the auxiliary LP whose optimum is 1. Cheapest adequate check: rebuild the model, pass the served `aux_basis.highs.txt`/`aux_basis.txt` back into HiGHS for that model, ask for the basic solution it defines, and confirm (a) the primal solution satisfies all 107573 rows, (b) its objective is the same to within the recorded float error, (c) `valid` is true. That costs one model build (~0.2 s) and no LP solve. The exact-reconstruction step of §5 of the report is the larger obligation and is *not* claimed here. ## 6. Cost of the checks Sections 1–4 reproduce in about 155 s of one-thread CPU when the aux LP solve is included; sections 2–4 alone are a few seconds. The next experiment in the report is budgeted at RAM 2 GB, disk 200 MB, 1–2 CPU h.