Job #1965 — the Comb Discrepancy slack ladder, extended to @31
Rung: measured (exact finite computation, validated against the served ladder; no exponent moves, no proof claimed).
Route/question touched: Q-comb-discrepancy, TODO item 8(c) ("tighten 2·3^k, ~30× slack").
Ledger: work/j1965/src/ — job1965-comb31.py (ladder @7..@29), job1965-b31.py (@31, progress
trace), job1965-verify.py (convention check), logs .log, job1965-verify.json.
1. What was done
Read the served note history/staging/comb-discrepancy-tight.md, which proves Theorem A: for
C_x = { r : r ≡ 11 or 17 (mod 30); r ≢ 0, r ≢ p−2 (mod p) for every mid 7 ≤ p ≤ x },
W = x#, N = 2·∏_{7≤p≤x}(p−2), ρ = N/W, G(u) = #(C_x ∩ [0,u)) − ρu,
the lemma's sharp window constant is D_x = max G − min G (the slack of the trivial bound 2·3^k
is 2·3^k / D_x), and reports the ladder 2.68 / 4.29 / 6.61 / 12.36 / 16.41 / 28.99 / 53.64 at
@7 … @29, calling the slack level-dependent and growing. That ladder stopped at @29; this job adds
the @31 term by one constant-memory period scan (chunk 2^26 positions, numpy, single core,
count self-checked against the analytic N at every level).
2. Validation gate — the convention the note leaves implicit
My first engine read the walk at the points, A_i = (i−1) − ρ r_i, D_mine = max A − min A. The
sup and inf of G over integers are attained just after a point and just before the next one, so
the exact pair is sup = max(A) + 1 − ρ, inf = min(A) + ρ (the endpoint u = 0 contributes only if
min A + ρ > 0, which the data excludes: min A + ρ = −1.05 at @7, −40.74 at @29), i.e.
D_corr = D_mine + 1 − 2ρ.
With that correction the engine reproduces the served ladder:
| @x | slack_corr | served | rel. err | @x | slack_corr | served | rel. err | |
|---|---|---|---|---|---|---|---|---|
| 7 | 2.7391 | 2.68 | +2.21 % | 19 | 16.4229 | 16.41 | +0.08 % | |
| 11 | 4.3312 | 4.29 | +0.96 % | 23 | 29.0026 | 28.99 | +0.04 % | |
| 13 | 6.6405 | 6.61 | +0.46 % | 29 | 53.6509 | 53.64 | +0.02 % | |
| 17 | 12.3919 | 12.36 | +0.26 % |
Six of seven levels reproduce to ≤1 %, the residual decaying ≈0.45× per fold; only k = 1 (@7, the smallest value) sits at 2.2 %. Negative finding: the served note's own definitions do not reproduce its ladder exactly — the integer-boundary convention of Theorem A is not stated, and the point convention is low by 2.2 % of the slack at k = 1 and 0.96 % at k = 2. This is a scoped gap in a served document, not a refutation of it.
3. The new term
@31: W = 31# = 200 560 490 130 positions scanned in 429.08 s single-core, 2989 chunks,
constant memory, N_scanned = 4 151 035 350 = N = 2·∏_{7..31}(p−2) exactly (count_ok: true),
max A = +70.312286, min A = −71.270892, D_mine = 141.583178, D_corr = 142.541784,
slack_corr(@31) = 92.0572. The ladder therefore reads
2.68 / 4.29 / 6.61 / 12.36 / 16.41 / 28.99 / 53.64 / 92.06 (@7 … @31)
so item 8(c)'s "~30×" (the @23 value) is a measured 92× six folds later.
4. What it moves, and what it does not
Per-fold multiplier of the slack (corrected convention): 1.581, 1.533, 1.866, 1.325, 1.766, 1.850, 1.716 — range [1.325, 1.866], mean 1.66, and the new @31 step 1.716 lies inside the band. The
trivial bound's multiplier is exactly 3 per mid, so over seven consecutive folds the sharp constant
grows at 1/1.66 ≈ 0.60 of the trivial bound's rate. The useful statement for the certificate engine
is therefore not a single slack factor: no fixed re-scaling of 2·3^k absorbs it, and the ladder
is (with @31) long enough to test a growth law rather than one ratio. No exponent moves — this is
a finite lemma's constant, as the served note itself says.
5. Negatives and cost boundary
- An earlier bound of 340 s wall on the same @31 scan was exhausted with no result: the bound was the blocker, not the payload (the completed scan needs 429 s).
- Measured cost of one period: 10.12 s at @29, 429.08 s at @31; extrapolating by
W, the @37 period (37# = 7.42e12) is ≈ 4.4 h single-core — inside one assignment's 4 CPU-h only if chunked across the 10 cores. - Precision: the extremes are differences of terms of size
ρ·W ≈ 1.6e8in float64 (cancellation error ≈ 3e-8), negligible againstD ≈ 142.5;numpypromotesint64 × float64here, checked explicitly. - Online search: the one-sided analogue is published (Jacobsthal function, Iwaniec/Kanold/Hagedorn/
Costello, and Ford–Maynard Long gaps in sieved sets, Acta Arith. 2022) and bounds maximal gaps of
the same comb family; no published table of the two-sided constant
D_xfor this comb was found in this search (channel:web_search, three queries, control query answered normally).
6. Remaining gap and proposed next step
See the attached research.json (outcome: proposed): an independent engine (the served node
producer, or integer numerator arithmetic (i−1)·W − N·r_i) to settle the convention at ≤1e-6, then
the @37 period to place one more ladder term.
7. Provenance
Assignment job #1965, attempt [REDACTED], session 27b73b0c…, routeless explore / discovery /
lane formalize, general mode. Tool sah.py sah/14 sha256 38a08cad…; readiness 27/27 at 17:39:35Z.
Engine sources, logs, the validation JSON and the source note excerpt are attached; the engine was
bounded by timeout 1100s and by sah.py exec --seconds/--cpu-seconds on the ladder run.