== window-check.js 1e10 checked every prime p up to 1.00e+10 (455,052,511 primes, 27,412,679 twin pairs) WORST margin = 2.3 at p = 2 there the window is 7 and the first twin above p tops out 3 past p largest distance to the first twin above p: 6,032 at p = 4,289,385,521 VERDICT: every window checked CONTAINS a twin pair, with the stated worst-case slack still pending (no twin found above them yet, i.e. beyond the sieve): 12 decade 10^0: SAME as embedded 1e9 row decade 10^1: SAME as embedded 1e9 row decade 10^2: SAME as embedded 1e9 row decade 10^3: SAME as embedded 1e9 row decade 10^4: SAME as embedded 1e9 row decade 10^5: SAME as embedded 1e9 row decade 10^6: SAME as embedded 1e9 row decade 10^7: SAME as embedded 1e9 row decade 10^8: SAME as embedded 1e9 row decade 10^9 (new at 1e10): 266801234964720 | 1029693209 | 1060268107749797312 | 3974 == zonegap-01.js 1e10 ENGINE SELF-CHECK: 167 zones below 1e6 recomputed by an independent brute-force engine (count, Z2, gap start, head, tail): IDENTICAL CUSTODY 1: the sweep's running-max gap ladder == A113274 records 1..34 (all with p_end <= X): EXACT CUSTODY 2: first occurrence of every gap size, both directions vs the adopted Oliveira e Silva table: 809 sizes ours->his, 809 his->ours, 0 mismatches (a single mismatch VOIDS the adoption) CUSTODY 3: env(p) = running max Z2 == largest A113274 record wholly below p'^2, verified at ALL 9591 zones: EXACT (the record-exact envelope) SWEEP: X = 1.0e+10, 27,412,679 twin pairs, 9591 zones (p = 2 .. 99989) ZONE POSTULATE: every zone holds >= 1 pair; minimum count 2 at p = 2; zones with a single pair: 0 THE MARGIN. Z2/width worst case over all zones: Z2 = 2 at p = 2, width 7, ratio 1/3.50 measured exponent e = 3.411 separation: measured sits 63.6 control-sd from the ln^3 read and 237.6 from the ln^2 read ln^2*lnln candidate: mean Z2/(ln^2 p lnln p) moves 11.60 -> 18.21 from band 10^2 to 10^4 (a constant would sit still; ln^3's c3 column above moves 3.43 -> 4.02) Oliveira e Silva first-occurrence envelope 0.64 ln^3 s - 5.7 ln^2 s, read at each zone's max-gap height s: mean load 1.517, max 7.869 (his fit is to FIRST occurrences; in-zone maxima THE HEAD (birth canal): head = firstOpener - p, a first-twin distance at height p. Mean head/ln^2 p = 0.7190 over 9566 zones (p >= 100); the HL mean twin gap is ln^2 p/(2C2), i.e. coefficient 0.7574, worst head vs the Kourbatov ceiling AT HEIGHT p: head/(0.76 ln^3 p) = 0.7218 at p = 659 (head 150) heights predicts Z2/head ~ 8; measured band-mean Z2/head: 16.6 47.8 105.0 163.6 POSITION of the max gap, u = (gapStart - p)/(p'^2 - p), 9566 zones (p >= 100): decile counts [0.0-0.1 .. 0.9-1.0]: 0 0 142 739 1214 1424 1770 1613 1393 1271 fractions: 0.000 0.000 0.015 0.077 0.127 0.149 0.185 0.169 0.146 0.133 mean u = 0.6681 (uniform would read 0.500; the HL null is envelope steps: 32 printed at 1e10, each equal to the embedded step with the same record number: True [] largest Z2 at 1e10: Z2 = 6030 in the zone of p = 65479 (gap start 4289385521, u = 0.9999, A113274 record 34) SHARED LEVELS: 15 lines, identical to embedded: True maxgap-law.md: 9 lines, identical to embedded: True per-band rows (run | embedded 1e11): 10^0 4 4.25e+0 4.370 ± 1.119 0.6312 1/3.50e+0 1.778 6 0.684 0.267 0.000 SAME 10^1 21 8.44e+1 2.708 ± 0.726 0.6575 1/5.27e+0 0.872 30 0.578 0.587 0.190 SAME 10^2 143 3.23e+3 3.426 ± 0.497 0.7504 1/5.00e+1 0.942 150 0.768 0.623 0.315 SAME 10^3 1061 1.70e+5 3.681 ± 0.362 0.7504 1/7.06e+2 0.684 210 0.766 0.672 0.308 SAME 10^4 8362 1.04e+7 4.022 ± 0.243 0.7432 1/3.49e+4 0.720 630 0.740 0.668 0.274 | embed 10^4 8363 1.04e+7 4.022 ± 0.243 0.7432 1/3.49e+4 0.720 630 0.741 0.668 0.274 ALL OVERLAPPING ROWS AGREE