# Recipe — `job2562/bsum-measure.py` (exact B of fixed-endpoint-discrepancy (2.9)) ## What it is One file, stdlib only, one process, no credential, no network, deterministic. It evaluates the Type II plus band sum `B` of `research/fixed-endpoint-discrepancy.md` exactly at dyadic scales `x = 2^j`, together with every term of the reduction (2.5)-(2.9) and the exact `S(x)`, and it **gates on the note's own identities** before reporting any reading. ## Run it ```bash python3 job2562/bsum-measure.py # scales 8,10,12,14,16,18,20 (default 8..18) python3 job2562/bsum-measure.py --scales 8,10,12 # cheaper; ~0.2 s python3 job2562/bsum-measure.py --out /tmp/b.json ``` Under this run's execution control (recommended, and what the filed numbers used): ```bash python3 "$LOCALAPPDATA/solveathome/tools/v1/sahtool.py" limits-run --timeout 3000 \ python3 job2562/bsum-measure.py --scales 8,10,12,14,16,18,20 ``` Observed: **133.4 s** wall, exit 0, `descendants_found: []`, `residual: []`, peak memory well under 1 GiB (arrays are `int`/`float` lists of length `2^20`). Scales to `2^20` comfortably; `2^22` is roughly 6x more (`(2^22/2) * avg divisor work`), still single-core. ## What it prints and writes Per scale, one stderr line (`B/x`, `B/(x log^5 x)`, `M/x`, `majorant/|B|`, the four identity residuals) and, on stdout, a JSON summary. The artifact `bsum-measure.json` carries every raw quantity per scale, the control table, the failure list and the elapsed time. ## Controls, in order of what they protect | control | what it protects | expected | |---|---|---| | `C0` psi(2^20)/2^20 within 5 % of 1, and 10 exact `Lambda` fixture values | the von Mangoldt sieve | 0.999861, fixtures exact | | `C1` `P_low(def) = T_I^low(2.6) + T_II^low(2.7)` | the note's split (2.5) and my signs | <= 1e-7 relative | | `C2` `B(2.9) = T_II^low + P_band` | B's two definitions | <= 1e-7 relative | | `C3` band in the flip arrangement = band in the modulus-e arrangement | the (2.1) exchange | exact | | `C4` `D = P_low + P_band - (Q_low + Q_band)` | the definition of `D_R` | exact | | `C5` `Q_low/(-2 C_2 M)` | the density projection (2.2) | 0.71-0.97 over j=8..20 | | `C6` `U=V=5`, and dropping `(ab,e)=1` | that the coefficient structure is the one written | each moves B by `O(x)`..`4x` | | `C7` closure residual `R = S - (C_2 x + T_I + B - 2C_2M - Q_low - Q_band)` | the whole reduction at finite x | `|R|/x <= 0.1`, shrinking | | `C8` `T_I^low/x` at x=2^16 | cross-codebase reproduction of the note's recorded 4.49 | 4.4864 (0.08 %) | `exit 0` = every control passed and the readings are of the note's object. `exit 2` = a control failed; the witness is printed and in `failures`. `exit 3` is reserved for a dependency that did not resolve. **A control that is not observed never shares a verdict with a clean one.** ## Two readings that look like failures and are not * `C6` with **`U=V=4` reports no change.** `a` and `k` enter the Type II piece only through `mu`, so a non-squarefree cutoff moves nothing. This is a true reading about the coefficient's support; the control was sharpened to `U=V=5`, which moves `B` by 0.67x to 4.24x. * **`B/x` is far below the consumer's threshold** (`-6.70` vs `-0.655` at x=2^20). That is not a refutation: at these scales `T_I^low/x = 6.69`, i.e. the term the note *proves* tends to `O_A(x log^{-A} x)` dominates, so no reachable scale is in the asymptotic regime of (2.8). The thresholds `-(C_2-1/200)` and `-4/25` are asymptotic coefficients. ## Rebuilding the artifact's inputs Nothing external is needed: no corpus file is read, no network. The object is re-typed from `research/fixed-endpoint-discrepancy.md` (2.5)-(2.9); C8's comparison number (`4.49` at x=2^16) is quoted from that note's §5 and is the only value imported rather than computed. ## The claim the artifact supports (and the one it does not) Supported, rung MEASURED, scope `2^8 <= x <= 2^20`, `eps=1/60`, `U=V=3`: the exact B of (2.9), its sign (negative at all 7 scales), its size (`B/(x log^2 x) = -0.0349` at x=2^20, stable to 5 % over j=12..20), the near-cancellation `T_I^low ~ -T_II^low` at size `0.035 x log^2 x`, and the closure residual. Not supported: any asymptotic statement about B, anything about (H_B), anything about twin primes.