# recipe — route 52, seventh rung (job #4159) Exact steps to reproduce every number in `report.md`, and to rerun the independent checker. Instruments are used **unmodified**; both are served with return #1816 and are shipped here with their recorded sha256. ## 1. Instruments (hashes as served with #1816, re-verified this run) | file | sha256 | |---|---| | `tcensus.c` | `2d00db9fe6a65731c6e45b855fa41bdd808016dc5e3b46afb7b3812a0c17c565` | | `rhoie.c` | `15be90e8670610799dbfb6ce503dbc9450c56921188468043c278c026c18cfc4` | | `prereg2802.md` | `35f34a62293a28a11cabd80af16c2a701855eb7416051f18348af2e7cd227ca4` | `tcensus.c` needs `pthread.h`, so MSVC cannot build it. Compile with gcc (this run: WSL Ubuntu, gcc 15.2.0, 16 cores; a Linux or MinGW toolchain works the same): ``` gcc -O2 -o tcensus tcensus.c -lpthread gcc -O2 -o rhoie rhoie.c ``` ## 2. Calibrate at the sixth rung BEFORE believing anything at the seventh ``` ./rhoie 31 540 > rho31-repro.json # ~10 min; compare classes g = 6..360 to the record ./tcensus 31 4 360 > tc31-repro.json # ~3 min; compare to tc31.json ``` Required: `tc31-repro.json` equals the served `tc31.json` in `D`, `G2`, `G2_first_r` and all 55 census and 60 cop classes; `rho31-repro.json` equals the served `rho31.json` in `cop_product`, `rho_ie`, `N_closed` for all 60 recorded classes. Both matched here with zero mismatches. ## 3. The seventh rung ``` ./tcensus 37 8 540 > tc37.json 2> tc37.err # 12 min 4 s on 8 threads, ~1.6 CPU-h ./rhoie 37 540 1500000000 > rho37.json 2> rho37.err ``` `tc37.json` is the census: `D`, `G2`, `G2_first_r`, 75 nonzero classes, and `cop_measured` for g ≤ 540. `rho37.json` is the pruned alternating sum with a 1.5e9 term budget per class; the run was stopped by the operator after 39 min at **g = 432** (nonzero terms 5.4e8) — no class hit the budget. `rho37.err` carries the term count per class and is the cost curve cited in the report. Because the run was stopped mid-write, `rho37.json` as served is the completed-class prefix (72 classes); the `prereg2802.md` style of always writing one class per line to stdout is what makes the prefix recoverable. ## 4. Independent check (no compile, no network, ~1 s) ``` cd python3 check-t37.py ``` Expected: `RESULT: ALL CHECKS PASS`, exit 0, 12 PASS lines (totals, product structure for 88 classes, closure for 72 classes, the fold, `sum_g C_g = 0`, and the two-fold K series), plus the INFO line naming the 16 classes above g = 432 that the closure does not cover. The checker recomputes `cop_x(g)` with its own Python CRT product, so it does not trust `rhoie.c`'s product column. ## 5. Definitions used (so a checker needs no interpretation) - openers of the twin tile: `r mod x#` with `gcd(r(r+2), x#) = 1`; `r ≡ 11, 17, 29 (mod 30)`; - `N_g(T_x)` = cyclic count of consecutive openers at distance `g`; `D = sum_g N_g`; `G2` = largest gap present; - `cop_x(g) = prod_{q<=x} (q − #{distinct (−o) mod q : o ∈ {0,2,g,g+2}})`; measured independently in `tcensus.c` by shifted ANDs of class bitmaps; - `rho_ie(g)` = the pruned alternating sum over `S ⊆ M_g = {6,12,…,g−6}` (returns #855, #1816); - closure: `N_g = cop_x(g) − rho_ie(g)`; - fold: `C_g = N_g(T_q) − (q−2)·N_g(T_p)`, and `D(theta) = sum_{g>=theta} C_g`, so `D(12) = −C_6`. ## 6. Cost actually observed | step | wall | CPU | |---|---|---| | `tcensus 31 4 360` (calibration) | ~3 min | ~0.2 h | | `rhoie 31 540` (calibration) | ~10 min | ~0.17 h | | `tcensus 37 8 540` | **12 min 4 s** | ~1.6 h | | `rhoie 37 540` (−O2, to g = 432) | 39 min | ~0.66 h | | `rhoie 37 540` (−O3, to g = 414, redundant) | 15 min | ~0.26 h | | `check-t37.py` | ~1 s | negligible | RAM: `tcensus` allocates ~1.6 MB per thread (3 class bitmaps of 65,544 words) plus a 1 MB wheel pattern — a few MB total, far below the 2 GB the step allowed. Disk: all outputs here are under 20 KB.