{ "original/out-L-ext.txt": "============================================================================\n job32 \u2014 L(T_x, p) EXTENDED SWEEP\n written 2026-09-11T18:50:52Z (UTC)\n============================================================================\n\nDEFINITION (the script's, not the brief's phrasing). L(T_x, p) is the longest\nrun of CONSECUTIVE slots of the tile T_x (slots mod x#, i.e. residues r with\ngcd(r(r+2), x#) = 1) whose residues mod p occupy at most TWO values differing\nby 2, where the wraparound difference p-2 counts as a difference of 2. That is\nthe FREE TRANSLATE: the 2-set is {a, a+2} for any a. The brief's phrase\n\"residues all in {0, -2}\" is the ANCHORED special case, a = -2. The corrected\nrunFor() in research/Lgrowth.js implements the free translate (okPair(a,b) is\na===b or |a-b| in {2, p-2}), and the free translate is what every number below\nreports. The scan is LINEAR over the sorted slot list of T_x, with no\nwraparound at the ends of the tile, exactly as runFor() scans it.\n\nMETHODS. Every entry below was computed twice, independently:\n\n A a C port of the corrected runFor() of research/Lgrowth.js \u2014 the same\n greedy 2-set state machine, the same okPair, the same linear scan, the\n same restart-from-the-immediately-preceding-residue on a break.\n src/methods.c, method_runfor().\n\n B the KILL GRAPH of research/a3-08-adjacent-pairs.js section [4] \u2014 nodes\n (i, sigma) for every old index i and sigma in {0, -2}, an edge\n (i,sigma) -> (i+1,sigma') whenever sigma' - sigma = g_i (mod p). Degrees\n are at most 1 both ways, so the graph is a disjoint union of paths and\n cycles whose components are exactly the maximal adjacent-kill runs; L is\n the largest component and the method returns the whole run SPECTRUM.\n O(D) per prime, reading gap classes only, never a residue set.\n src/methods.c, method_kill_linear() / method_kill_cyclic().\n B-lin uses the linear cut (the D-1 interior gaps, comparable to runFor);\n B-cyc is the cyclic form of section [4], entered just after an inert gap.\n\n Note that method A is GREEDY (after a break it keeps only the last two\n positions) while method B is EXACT, so A <= B is possible a priori. The two\n are compared entry by entry below and no disagreement is averaged away.\n\nREPRODUCED UNMODIFIED OUTPUT. `node research/Lgrowth.js` was run unmodified,\n7.3 s, stdout saved as out-L-unmodified.txt (see that file for the full\n93-line table, including the qualifying-gap fraction half that is not\nreproduced here).\n sha256(out-L-unmodified.txt) = 64fadf64801991cf525e5e2958bffd8b0e1a74e17290eddf462264278ca168d2\nThat stdout reproduces the OUTPUT block embedded in research/Lgrowth.js\nbyte for byte, all 93 lines, 0 differing.\n\nIts L half, verbatim:\n\n L(T_x, p) for a sweep of folding primes p. D = census of T_x, lnD in brackets.\n\n p | T7 (lnD=2.7) | T11 (lnD=4.9) | T13 (lnD=7.3) | T17 (lnD=10.0) | T19 (lnD=12.8) | T23 (lnD=15.9) \n 7 | 3 | - | - | - | - | - \n 11 | 1 | 2 | - | - | - | - \n 13 | 1 | 2 | 2 | - | - | - \n 17 | 1 | 2 | 2 | 2 | - | - \n 19 | 1 | 2 | 2 | 2 | 2 | - \n 23 | 1 | 1 | 2 | 2 | 3 | 4 \n 29 | 1 | 1 | 2 | 2 | 2 | 2 \n 31 | 1 | 1 | 2 | 2 | 3 | 3 \n 37 | 1 | 1 | 1 | 2 | 2 | 2 \n 41 | 1 | 1 | 1 | 2 | 2 | 2 \n 43 | 1 | 1 | 1 | 2 | 2 | 2 \n 47 | 1 | 1 | 1 | 2 | 2 | 2 \n 53 | 1 | 1 | 1 | 2 | 2 | 2 \n 59 | 1 | 1 | 1 | 1 | 2 | 2 \n 61 | 1 | 1 | 1 | 1 | 2 | 2 \n 67 | 1 | 1 | 1 | 1 | 2 | 2 \n 71 | 1 | 1 | 1 | 1 | 1 | 1 \n 73 | 1 | 1 | 1 | 1 | 1 | 1 \n 79 | 1 | 1 | 1 | 1 | 1 | 2 \n 83 | 1 | 1 | 1 | 1 | 1 | 2 \n 89 | 1 | 1 | 1 | 1 | 1 | 2 \n 97 | 1 | 1 | 1 | 1 | 1 | 2 \n 101 | 1 | 1 | 1 | 1 | 1 | 2 \n 103 | 1 | 1 | 1 | 1 | 1 | 2 \n 107 | 1 | 1 | 1 | 1 | 1 | 1 \n 109 | 1 | 1 | 1 | 1 | 1 | 1 \n 113 | 1 | 1 | 1 | 1 | 1 | 1 \n 127 | 1 | 1 | 1 | 1 | 1 | 1 \n 131 | 1 | 1 | 1 | 1 | 1 | 1 \n 137 | 1 | 1 | 1 | 1 | 1 | 1 \n 139 | 1 | 1 | 1 | 1 | 1 | 1 \n 149 | 1 | 1 | 1 | 1 | 1 | 1 \n 151 | 1 | 1 | 1 | 1 | 1 | 1 \n 157 | 1 | 1 | 1 | 1 | 1 | 1 \n 163 | 1 | 1 | 1 | 1 | 1 | 1 \n 167 | 1 | 1 | 1 | 1 | 1 | 1 \n 173 | 1 | 1 | 1 | 1 | 1 | 1 \n 179 | 1 | 1 | 1 | 1 | 1 | 1 \n 181 | 1 | 1 | 1 | 1 | 1 | 1 \n 191 | 1 | 1 | 1 | 1 | 1 | 1 \n 193 | 1 | 1 | 1 | 1 | 1 | 1 \n 197 | 1 | 1 | 1 | 1 | 1 | 1 \n 199 | 1 | 1 | 1 | 1 | 1 | 1 \n\n qualifying-gap fraction f (gaps = 0,+-2 mod p), same sweep:\n\n============================================================================\n EXTENDED TABLE\n============================================================================\n[V] TILES\n\n tile D W G2 s0 sum(gaps)==W\n T5 3 30 12 11 yes\n T7 15 210 30 11 yes\n T11 135 2310 42 17 yes\n T13 1485 30030 66 17 yes\n T17 22275 510510 108 29 yes\n T19 378675 9699690 150 29 yes\n T23 7952175 223092870 204 29 yes\n T29 214708725 6469693230 258 41 yes\n\n[X] DISAGREEMENTS (method A = runFor port, B-lin / B-cyc = kill graph)\n\n 1307 entries computed (every tile-prime pair with p >= x, 7 <= p <= 1009).\n A vs B-lin: 0 disagreement(s). B-lin vs B-cyc: 0 disagreement(s).\n kill-graph node conservation (nodes == 2D): holds on every computed entry\n\n[T] L(T_x, p) \u2014 longest run of consecutive slots of T_x whose residues mod p\n occupy at most two values differing by 2 (mod p): the free-translate 2-set\n {a, a+2} of the corrected runFor() in research/Lgrowth.js, NOT the anchored\n {0, -2}. Values are the common value of method A (C port of runFor, linear)\n and method B (kill graph of a3-08 section [4]); '-' where x > p, as in the\n served script. Cells where the methods differ are printed A/B.\n\n p T5 T7 T11 T13 T17 T19 T23 T29 \n 7 2 3 - - - - - -\n 11 1 1 2 - - - - -\n 13 1 1 2 2 - - - -\n 17 1 1 2 2 2 - - -\n 19 1 1 2 2 2 2 - -\n 23 1 1 1 2 2 3 4 -\n 29 1 1 1 2 2 2 2 3\n 31 1 1 1 2 2 3 3 4\n 37 1 1 1 1 2 2 2 3\n 41 1 1 1 1 2 2 2 2\n 43 1 1 1 1 2 2 2 2\n 47 1 1 1 1 2 2 2 2\n 53 1 1 1 1 2 2 2 2\n 59 1 1 1 1 1 2 2 2\n 61 1 1 1 1 1 2 2 2\n 67 1 1 1 1 1 2 2 2\n 71 1 1 1 1 1 1 1 2\n 73 1 1 1 1 1 1 1 2\n 79 1 1 1 1 1 1 2 2\n 83 1 1 1 1 1 1 2 2\n 89 1 1 1 1 1 1 2 2\n 97 1 1 1 1 1 1 2 2\n 101 1 1 1 1 1 1 2 2\n 103 1 1 1 1 1 1 2 2\n 107 1 1 1 1 1 1 1 2\n 109 1 1 1 1 1 1 1 2\n 113 1 1 1 1 1 1 1 2\n 127 1 1 1 1 1 1 1 1\n 131 1 1 1 1 1 1 1 1\n 137 1 1 1 1 1 1 1 1\n 139 1 1 1 1 1 1 1 1\n 149 1 1 1 1 1 1 1 1\n 151 1 1 1 1 1 1 1 1\n 157 1 1 1 1 1 1 1 1\n 163 1 1 1 1 1 1 1 1\n 167 1 1 1 1 1 1 1 1\n 173 1 1 1 1 1 1 1 1\n 179 1 1 1 1 1 1 1 1\n 181 1 1 1 1 1 1 1 1\n 191 1 1 1 1 1 1 1 1\n 193 1 1 1 1 1 1 1 1\n 197 1 1 1 1 1 1 1 1\n 199 1 1 1 1 1 1 1 1\n 211 1 1 1 1 1 1 1 1\n 223 1 1 1 1 1 1 1 1\n 227 1 1 1 1 1 1 1 1\n 229 1 1 1 1 1 1 1 1\n 233 1 1 1 1 1 1 1 1\n 239 1 1 1 1 1 1 1 1\n 241 1 1 1 1 1 1 1 1\n 251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 1 1 1 1\n 919 1 1 1 1 1 1 1 1\n 929 1 1 1 1 1 1 1 1\n 937 1 1 1 1 1 1 1 1\n 941 1 1 1 1 1 1 1 1\n 947 1 1 1 1 1 1 1 1\n 953 1 1 1 1 1 1 1 1\n 967 1 1 1 1 1 1 1 1\n 971 1 1 1 1 1 1 1 1\n 977 1 1 1 1 1 1 1 1\n 983 1 1 1 1 1 1 1 1\n 991 1 1 1 1 1 1 1 1\n 997 1 1 1 1 1 1 1 1\n 1009 1 1 1 1 1 1 1 1\n\n[D] THE DIAGONAL L(T_{p-}, p): the tile one primorial step below the fold\n\n L(T5 , 7) A=2 B-lin=2 B-cyc=2 brief says 2 matches\n spectrum (cyclic): 1:2 2:2\n L(T7 , 11) A=1 B-lin=1 B-cyc=1 brief says 1 matches\n spectrum (cyclic): 1:30\n L(T11, 13) A=2 B-lin=2 B-cyc=2 brief says 2 matches\n spectrum (cyclic): 1:258 2:6\n L(T13, 17) A=2 B-lin=2 B-cyc=2 brief says 2 matches\n spectrum (cyclic): 1:2826 2:72\n L(T17, 19) A=2 B-lin=2 B-cyc=2 brief says 2 matches\n spectrum (cyclic): 1:42374 2:1088\n L(T19, 23) A=3 B-lin=3 B-cyc=3 brief says 3 matches\n spectrum (cyclic): 1:733672 2:11746 3:62\n L(T23, 29) A=2 B-lin=2 B-cyc=2 brief says 2 matches\n spectrum (cyclic): 1:15416706 2:243822\n L(T29, 31) A=4 B-lin=4 B-cyc=4 brief says 4 matches\n spectrum (cyclic): 1:413380422 2:7999018 3:12992 4:4\n diagonal as measured: 2, 1, 2, 2, 2, 3, 2, 4 (brief: 2, 1, 2, 2, 2, 3, 2, 4) same\n\n[S] PER-COLUMN SUMMARY over primes 7..1009\n\n tile max L at p from p onwards every entry is 1\n T5 2 7 p >= 11\n T7 3 7 p >= 11\n T11 2 11 p >= 23\n T13 2 13 p >= 37\n T17 2 17 p >= 59\n T19 3 23 p >= 71\n T23 4 23 p >= 107\n T29 4 31 p >= 127\n\n every column reads 1 from p >= 127 onwards (through p = 1009).\n\n[E] T29 COLUMN, every entry with L >= 2, with the cyclic run spectrum\n\n p=29 L=3 edges=7874432 spectrum 1:413669820 2:7871964 3:1234\n p=31 L=4 edges=8025014 spectrum 1:413380422 2:7999018 3:12992 4:4\n p=37 L=3 edges=3286274 spectrum 1:422845276 2:3285526 3:374\n p=41 L=2 edges=1041576 spectrum 1:427334298 2:1041576\n p=43 L=2 edges=1028462 spectrum 1:427360526 2:1028462\n p=47 L=2 edges=950368 spectrum 1:427516714 2:950368\n p=53 L=2 edges=1194458 spectrum 1:427028534 2:1194458\n p=59 L=2 edges=387518 spectrum 1:428642414 2:387518\n p=61 L=2 edges=387506 spectrum 1:428642438 2:387506\n p=67 L=2 edges=150588 spectrum 1:429116274 2:150588\n p=71 L=2 edges=1180 spectrum 1:429415090 2:1180\n p=73 L=2 edges=1180 spectrum 1:429415090 2:1180\n p=79 L=2 edges=29724 spectrum 1:429358002 2:29724\n p=83 L=2 edges=24418 spectrum 1:429368614 2:24418\n p=89 L=2 edges=10862 spectrum 1:429395726 2:10862\n p=97 L=2 edges=2764 spectrum 1:429411922 2:2764\n p=101 L=2 edges=548 spectrum 1:429416354 2:548\n p=103 L=2 edges=548 spectrum 1:429416354 2:548\n p=107 L=2 edges=38 spectrum 1:429417374 2:38\n p=109 L=2 edges=38 spectrum 1:429417374 2:38\n p=113 L=2 edges=22 spectrum 1:429417406 2:22\n\n[R] RUN: wall 19.0 s, threads 9, peak RSS 255 MB\n\n============================================================================\n CROSS-CHECKS\n============================================================================\n\n[C1] vs unmodified `node research/Lgrowth.js` (T7..T23, p 7..199)\n node Lgrowth.js: 243 shared entries, 0 mismatch(es)\n\n[C2] vs published a3-08 section [8] kill-graph table (T11..T23, p 7..127)\n a3-08 [8]: 120 shared entries, 0 mismatch(es)\n\n a3-08 section [4] fold ladder L = 2, 1, 2, 2, 2, 3, 2 at folds\n 7, 11, 13, 17, 19, 23, 29 (its own kill-graph run): reproduced in section\n [D] above, and extended by L(T29, 31) = 4.\n\n============================================================================\n PROVENANCE\n============================================================================\n\n build: clang -O3 -march=native -Wall -Wextra -pthread -o lsweep \\\n src/tiles.c src/methods.c src/main.c\n run: ./lsweep 9\n host: Darwin 25.5.0 arm64, 18 cores, 64 GB\n node: v26.0.0 (for the unmodified research/Lgrowth.js run)\n wall: 19.0 s (sweep; 19.51 s real incl. process start) + 7.3 s (node)\n threads: 9, work-stealing over the 166 primes 7 <= p <= 1009\n peak RSS: 255 MB (267,173,888 bytes, /usr/bin/time -l)\n memory: the T29 gap word is 214,708,725 bytes (one uint8 per gap, gap/6;\n every gap is a multiple of 6 and G2(T29) = 258). Slot VALUES of\n T29 are not stored: W(T29) = 6,469,693,230 exceeds 2^32, so the\n uint32 plan in the brief does not hold and the gap word is used\n instead. Residues are carried by r_{i+1} = (r_i + g_i) mod p,\n which is identically S[i+1] mod p.\n\n sha256 of the sources:\n f0a758fa536c14e76b1726d650b5bc7761f9543e2fa70ec8c1a23fcb9dee80ea src/tiles.h\n 00e0ae800ff929acd48402eca047c9aedf7aabaddfeb24c72f223eaa06c3b719 src/tiles.c\n 2d9e1cb498f757ee0ec86ea193cc0e0fe3d294c0464d5efbfa46254044df287f src/methods.h\n 37c22f06a96d7fb51c15b3a0c9ceaffa44cdb21e87f4d597082e1c604a6dc592 src/methods.c\n a9d0815639706f0e2a7d87c0936d275d37018180bc1046bd2b9d8880f7507498 src/main.c\n 54b90a8ee7d947915e9fec0c0c24b5a7025d4cfb48a8dd27fe889937272bfdca src/compare.py\n\n sha256 of the unmodified node stdout:\n 64fadf64801991cf525e5e2958bffd8b0e1a74e17290eddf462264278ca168d2 out-L-unmodified.txt\n" }