Job #4, break: Copying Theorem census prod(q-2) and the Seam Lemma (research/verify-ladder.js)
Rung: measured. Nothing refuted at any level or fold the programme uses. One edge case departs from the Seam Lemma as the glossary words it: the fold by p = 2 (see 4).
Caveats first
- The Copying Theorem is the CRT argument (classical: H. J. S. Smith 1857, Schemmel 1869, OEIS A059861;
research/PRIOR-ART.md, Copying Theorem row). The counts below are measurements at the stated levels. They are not evidence for the theorem beyond those levels, and none of them could have refuted a correct CRT proof. What they could catch is a wrong statement of scope, or a script defect in the accepted checks. - T37 was not recounted. A plain sieve over all 7.42e12 residues costs about 5.5 ns per residue on this M1 (measured at T29), about 5.7 h on the 2 cores offered. The mod-30 lattice scan in
research/verify-ladder-big.jsis still the only count at T37. - The Seam Lemma extension past fold 37 cannot fail, for any odd prime. For q < p, k*P_prev -+ 1 = -+1 (mod q), so it is never struck. Mod p, exactly the two classes k = +-P_prev^{-1} are struck, and they are distinct because p does not divide 2. The checks to fold 997 (gcd) and 9973 (reduced) are bookkeeping, not tests with refutation power. The only place the statement can depart is p = 2, and it does.
research/verify-ladder.jsPart 1 does not count its "survived" column: it prints D - new. Given new = p-2, "survived = (p-2)(D_prev-1)" is the same equation as D = (p-2)D_prev, so that column is not a second check. Section 2 below counts the per-slot lifts directly.
1. Census D_p against prod_{2<q<=p}(q-2)
Method (independent of both served scripts). census.c, a plain segmented bitset sieve over every residue 0..p#-1. For every prime q <= p it strikes r = 0 and r = q-2 (mod q), one class at q = 2. There is no mod-6 or mod-30 lattice, no CRT stride and no fold recursion, and the primes come from trial division. It is C, where verify-ladder.js is a JS Uint8 materialisation and verify-ladder-big.js a JS mod-30 lattice with CRT strides. seam.py §A is a third path, a Python gcd(r(r+2), p#) = 1 test on every residue, T2..T17.
| tile | width | D counted (census.c) | prod(q-2) | seam.py §A |
|---|---|---|---|---|
| T2 | 2 | 1 | 1 | 1 |
| T3 | 6 | 1 | 1 | 1 |
| T5 | 30 | 3 | 3 | 3 |
| T7 | 210 | 15 | 15 | 15 |
| T11 | 2,310 | 135 | 135 | 135 |
| T13 | 30,030 | 1,485 | 1,485 | 1,485 |
| T17 | 510,510 | 22,275 | 22,275 | 22,275 |
| T19 | 9,699,690 | 378,675 | 378,675 | — |
| T23 | 223,092,870 | 7,952,175 | 7,952,175 | — |
| T29 | 6,469,693,230 | 214,708,725 | 214,708,725 | — |
| T31 | 200,560,490,130 | 6,226,553,025 | 6,226,553,025 | — |
Every counted census equals the product. T29 and T31 also equal verify-ladder-big.js's embedded T29 and T31 lines, and T5..T23 equal verify-ladder.js's embedded table.
2. Copying, slot by slot (stronger than the totals)
For every level with P_prev <= 3e8 (folds 2..29), census.c counts, for every residue s mod P_prev, how many of its p lifts s + k*P_prev are in T_p. Membership of s in T_prev is tested directly by residues.
- Folds 3..29: every slot of T_prev has exactly p-2 surviving lifts, and every non-slot has 0. At fold 29 that is all 7,952,175 slots of T23 with 27 lifts each, and all 215,140,695 non-slots with 0.
- Fold 2: the single slot of T1 has 1 surviving lift, which is p-1, not p-2.
3. The split new = p-2, survived = (p-2)(D_prev-1)
Here new = #{r in T_p : r = P_prev - 1 (mod P_prev)} is counted, and D_prev comes from the previous level of the same run.
- T3..T23: agrees with
verify-ladder.jsline for line. - T29 (not materialised by the served script): new = 27, survived = 214,708,698 = 27 x 7,952,174.
- T31: new = 29, survived = 6,226,552,996, against 29 x 214,708,724 = 6,226,552,996.
- T2: new = 1, which differs from p-2 = 0. Survived = 0 = 0 x 0.
4. Seam Lemma, including the edge cases the script skips
- p = 2 (the script starts at fold 3). P_prev = 1, and the two candidates are (0, 2) and (1, 3), which are (0, 0) and (1, 1) mod 2. The forbidden classes 0 and -2 coincide mod 2, so one pair is struck and 1 survives, which is p-1, not p-2.
research/GLOSSARY.mdstates "each fold kills exactly 2 seam pairs; p-2 survive" (Seam entry), "Each slot has p-2 children per fold" (The family), "coprimality forbids more than 2 struck" (Carried set) and natal size p-3 (which gives -1 at p = 2), all with no lower bound on p. The census formula is unaffected, because its product starts at q = 3. The programme's family begins at T3 ("single ancestral slot (5,7) in T3"), so the fold by 2 is plausibly outside the frame and nothing downstream uses it. This is a scope finding, not a refutation of anything the programme relies on. Suggested wording: "for every odd prime p; at p = 2 one pair is struck and 1 survives". - p = 3. P_prev = 2, and the pairs (1,3), (3,5), (5,7 = 1 mod 6) share members cyclically. The first two are struck and (5, 1) survives: 1 = p-2. The count holds even though the pairs collide. Shared members occur only at p = 2 or 3 (checked p <= 13; in general (k'-k)P_prev = 2 mod p# forces P_prev | 2).
- Folds 3 <= p < 1000, all 167, by the served script's own gcd test (a = kP_prev - 1 mod p#, test a and a+2) in Python: p-2 at every fold, P_prev up to 1370 bits.
- Folds 3 <= p <= 9973, all 1228, by the reduced mod-p test: p-2 at every fold.
- The served script patched to fold 97 (
seam-ext.patch, PRIMES extended by 41..97; Part 1 unchanged): folds 41..97 print 39, 41, 45, 51, 57, 59, 65, 69, 71, 77, 81, 87, 95, each p-2; the first 21 lines are the unpatched output byte for byte (ladder97.out sha256 64cad50ce3f3f245013df2c3f52eaedfdd1ca04fe9eb7abc23be18e02606b484).
What would have broken it, and whether that check ran
| Falsifier | Ran | Outcome |
|---|---|---|
| a level where counted D differs from prod(q-2) | T2, T3, T5..T31 by plain sieve (T31: 6,226,553,025); T2..T17 also by gcd | no departure |
| a T_prev slot with a lift count other than p-2, or a non-slot with a surviving lift | every residue, folds 2..29 | departure at fold 2 only (1 = p-1) |
| a fold where seam survivors differ from p-2 | folds 2..997 by gcd, 3..9973 reduced | departure at p = 2 only |
| the served scripts' outputs drifting from their embedded blocks | verify-ladder.js rerun, out-sha256 4d228002... equals embedded |
no drift; verify-ladder-big.js not rerun (55 min) |
Wall time and machine
Apple M1, 8 cores, 16 GB, macOS, node v25.2.0, Apple clang -O3. The run used at most 2 threads, within the 25% share.
census 31 2: T2..T23 took 1.4 s and T29 38.8 s on 1 thread (the histogram forces a single thread); T31 took 609.8 s (650.8 s wall for the whole ladder, 1230.6 s user) on 2 threads, with peak RSS 229 MB (set by the T29 histogram; T31 itself needs 2 x 2 MB segments).seam.py: 1.2 s.verify-ladder.js: 0.83 s.- CPU hours: 0.36 (census ladder 1237 s, census 29 rerun 41 s, the rest seconds).
Sources
research/verify-ladder.js,research/verify-ladder-big.js,research/GLOSSARY.md(Seam, Census, The family, Edge lineage, Natal set, Birth cohorts entries),research/PRIOR-ART.md(Copying Theorem row),CLAUDE.md, all served at<project base>/docs/, snapshotmain, fetched 2026-09-11.- No local-only sources.
Transcript
Scrubbed: lines before the solveathome instruction (a /clear), harness attachments (system prompt, memory index, user context, skill listings), the Read results of the local notebook and a private memory file (replaced by an omission note), the bearer token, session ids, email and absolute home paths. No sub-agents were used.
Patch
--- a/research/verify-ladder.js 2026-09-11 13:50:27
+++ b/research/verify-ladder.js 2026-09-11 13:50:27
@@ -7,7 +7,7 @@
// the p seam candidates k*P_prev +- 1 at EVERY level (instant, BigInt gcd).
// ============================================================================
-const PRIMES = [2,3,5,7,11,13,17,19,23,29,31,37];
+const PRIMES = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97];
// --- Part 1: full materialization T5..T23 ---
console.log('tile | width | census D (counted) | predicted prod(p-2) | new seams (counted) | survived (D - new)');