# Recipe - job #990, the fractional cover frontier Python 3.14, numpy only (no SAT solver, no LP solver package; the LP is solved by exponentiated-gradient ascent on the duals and every certificate is re-checked in exact rational arithmetic). All scripts sit in `job990/` with `tightcert.py` beside them. ## 1. Toolkit self-check (the rules against an independent oracle) ``` cd job990 && python tightcert.py selftest ``` Cost 2m14s. Instances whose independent search exceeds the node cap are skipped and counted, so the run is bounded and deterministic. Expected: ``` instances 819 agree 177 disagree 0 undecided 642 skipped(oracle cap) 0 rules used: {"counting": 48, "none": 36, "tight_dead_slot": 12, "tiling": 107, "weighted": 10, "weighted_exhausted": 606} certificate re-checks failed 0, unsound claims 0 SELFTEST PASS ``` Every rule is exercised and none disagrees with the independent phase search; the 107 `tiling` rows are the coverable branch of the tight rule, each an explicit model the oracle confirms. (`--max-a`, `--oracle-cap`, `--iters` widen the sweep at a proportionate cost; pushing them too far is how the first version of this check ran past ten minutes, so the defaults are the cheap ones.) Single instance, either direction: ``` python tightcert.py solve --p 97 --a 9409 --L 4432 # frozen route-4 prefix python tightcert.py solve --input ex-N30.json --json # -> verified covering model python tightcert.py verify --cert cert-frozen-tight.json --p 97 --a 9409 --L 4432 ``` ## 2. Result 1 and 2 - the ladder (fractional vs capacity frontier) ``` cd job990 && python ladder.py 31 43 61 97 127 > ladder.out 2> ladder.err ``` Cost: 604.6 s wall for the five primes above (p = 31: 1.8 s, 43: 3.1 s, 61: 18.1 s, 97: 144.7 s, 127: 604.6 s - it grows with `|Q|` and with the length of the down-run, each prefix costing one `certify` at `iters=700 dual_iters=3000`). Peak RAM under 1 GB. stdout is the artifact and carries no wall-clock; progress is on stderr. Expected (verified here): ``` p |Q| N_F L_F N_w L_w ratio uniform 31 7 20 715 16 553 0.7734 0.2963 43 9 22 943 20 913 0.9682 0.2818 61 12 41 1933 29 1405 0.7268 0.2719 97 19 66 4243 56 3715 0.8756 0.2722 127 23 89 6685 65 4585 0.6859 0.2519 ``` Comparison rule: recompute `L_F` independently by growing the prefix and testing `tightcert.budget` (F1 > 0); recompute `L_w` by re-running `certify` on the printed down-run in `ladder.json` and re-checking with `tightcert.verify`. `p = 127`'s down-run hit the 24-step cap, so its ratio is an upper bound; every other row's down-run terminated on an undecided prefix. ## 3. Result 3 - integer vs fractional frontier where the exact search still decides ``` cd job990 && python fractgap.py 13 19 31 > fractgap.out ``` Cost 1m42s. Expected: for `p = 31`, `n_int = 15`/`L_int = 523` and `n_w = 16`/`L_w = 553` (ordering truth < fractional < capacity, capacity at `N_F = 20`/`L_F = 715`); for `p = 13, 19` the counting rule already fires early enough that no weighted certificate is needed, printed as `no weighted certificate in range`. `note` marks the rows where the independent search exceeded its node cap. ## 4. The `p = 31`, `N = 15` tightness probe ``` cd job990 && python -c " import tightcert as tc _, qs, slots = tc.prime_band(31, 10007, 131072); D = slots[:15] print(tc.oracle(D, qs, cap=400000)) for d in (4000, 20000, 80000, 200000): c = tc.certify(D, qs, iters=1200, dual_iters=d, force_weights=True) print(d, c['rule'], c.get('weighted'))" ``` Expected: `(False, 793)` (non-coverable) and the bracket converging to `[0.99979, 1.00527]` - no certificate and no exhaustion witness at any tested budget. ## 5. Corrected deep-`a` tight-prefix census Expected over `a` in {10007, 20011, 30011, 40009, 50021, 60013, 70001, 80021, 90007, 100003, 110017, 120011, 130003, 140009, 150011, 160001} at `p = 97`: `N_F` in 53..72, `L_F` in 2585..4243, tight-prefix rules `{tight_dead_slot: 24, tight_no_tiling: 1}`, and no covering tiling. This replaces the earlier "61 intervals" figure, which was one support replicated (see report). ## Byte stability `ladder.out` and `fractgap.out` contain no wall-clock and no timing column; the certificate search uses fixed budgets and fixed step sizes and no RNG, and `tightcert.py` pins the BLAS thread count to 1 before importing numpy, so a rerun reproduces the bytes. (The earlier wexp artifact from the previous assignment needed exactly this fix and is byte-stable after it.)