DISCREPANCY, TWO CLASSES — DATE ============================================================================== ===== PART A: CUSTODY GATE — Holt Table 2 reproduced ===== x | phi(x#) | mu(x) ours/his | max|DPhi| ours/his | risingZ ours/his | share ours/his | verdict 5 | 8 = 8 | 3.750/3.750 OK | 0.9333/0.9333 OK | 8/ 8 OK | 100.00%/100.00% OK | PASS (sym) TIME 7 | 48 = 48 | 4.375/4.375 OK | 1.5143/1.5143 OK | 32/ 32 OK | 66.67%/66.67% OK | PASS (sym) TIME 11 | 480 = 480 | 4.813/4.813 OK | 2.5195/2.5195 OK | 262/ 262 OK | 54.58%/54.58% OK | PASS (sym) TIME 13 | 5760 = 5760 | 5.214/5.214 OK | 3.5475/3.5475 OK | 2216/ 2216 OK | 38.47%/38.47% OK | PASS (sym) TIME 17 | 92160 = 92160 | 5.539/5.539 OK | 5.4388/5.4388 OK | 25948/ 25948 OK | 28.16%/28.16% OK | PASS (sym) TIME 19 | 1658880 = 1658880 | 5.847/5.847 OK | 8.6592/8.6592 OK | 344338/ 344337 XX | 20.76%/20.76% OK | PASS (sym) TIME 23 | 36495360 # 36595360 | 6.113/6.113 OK | 14.4180/14.4180 OK | 5438506/ 5438505 XX | 14.90%/14.90% OK | PASS (sym) TIME 29 | 1021870080 = 1021870080 | 6.331/6.331 OK | 20.9128/20.9128 OK | 109773262/109773262 OK | 10.74%/10.74% OK | PASS (sym) TIME CUSTODY GATE (mu, max|DeltaPhi|, rising-zero share): PASSED at every x from 5 to 29 [TIME] phi(23#): ours 36495360, Holt prints 36595360 — a one-digit typo in his table (his own phi(29#) = 1021870080 = 36495360*28 confirms ours). --- rising-zero rows that differ from Holt, settled exactly --- x | ours(strict 0 W-2-r, which is why max = -min to the printed digits.) 31 | 200560490130 | 6226553025 | 32.2105 | 95.1366 | -96.0745 | 191.2111 | 139777454 | 2.24% <- x = 31, scratch copy, exact integers x = 31 detail: max = 19080641687415/200560490130, min = -19268749071495/200560490130; rising zeroes closed 139777454, strict 139777454; float engine: max 95.136593, min -96.074501, rising zeroes 139777454, sd 17.5672, drift 5.94e-7; TIME ===== PART C: sd_y(DeltaPhi) and the Parseval identity Var_y = P/2 ===== natal-cap-29 tile (its base is {11,17} mod 30, i.e. 2/3 of the twin slots: the slot 29 whose partner 31 falls outside [1,30) is dropped). x | 2*Var_y(ours) | P(x) natal-cap exact | rel err 7 | 0.486697 | 0.4867 | -0.0006% 11 | 0.927458 | 0.9275 | -0.0045% 13 | 3.609585 | 3.6096 | -0.0004% 17 | 7.331398 | 7.3314 | -0.0000% 19 | 28.627095 | 28.6271 | -0.0000% 23 | 58.462375 | 58.4624 | -0.0000% 29 | 152.809336 | 152.8093 | 0.0000% ===== PART D: the three-way comparison ===== D1. The measured ladders. sup is the SHIFT-INVARIANT half-range (max-min)/2; for the one-class set that equals Holt's max exactly. x | 1class sup | step | 1class sd | step || 2class sup | step | 2class sd | step | sup2/sup1 5 | 0.9333 | - | 0.4146 | - || 0.7000 | - | 0.3304 | - | 0.750 7 | 1.5143 | 1.622 | 0.5481 | 1.322 || 1.5000 | 2.143 | 0.7495 | 2.269 | 0.991 11 | 2.5195 | 1.664 | 0.7420 | 1.354 || 2.9805 | 1.987 | 1.0856 | 1.448 | 1.183 13 | 3.5475 | 1.408 | 1.0099 | 1.361 || 3.9176 | 1.314 | 1.2773 | 1.177 | 1.104 17 | 5.4388 | 1.533 | 1.3867 | 1.373 || 7.8426 | 2.002 | 2.3900 | 1.871 | 1.442 19 | 8.6592 | 1.592 | 1.9095 | 1.377 || 17.0778 | 2.178 | 4.3898 | 1.837 | 1.972 23 | 14.4180 | 1.665 | 2.6415 | 1.383 || 27.3682 | 1.603 | 5.9512 | 1.356 | 1.898 29 | 20.9128 | 1.450 | 3.6710 | 1.390 || 49.1520 | 1.796 | 11.5354 | 1.938 | 2.350 geometric mean per fold over 7 folds (x = 5 -> 29): one class: sup x1.5592 sd x1.3656 | sqrt(R1)->1.4142, ceiling 2 two class: sup x1.8356 sd x1.6612 | sqrt(R2)->1.7321, ceiling 3 sup/sd overhead per fold: one class x1.1418, two class x1.1050 D2. sd steps against the spectral prediction sqrt(R(p)) (per fold). fold p | sqrt(R1(p)) | measured 1class | sqrt(R2(p)) | measured 2class 7 | 1.31708 | 1.32214 | 1.47542 | 2.26858 11 | 1.35146 | 1.35372 | 1.57144 | 1.44830 13 | 1.36091 | 1.36112 | 1.59666 | 1.17663 17 | 1.37325 | 1.37308 | 1.62897 | 1.87115 19 | 1.37750 | 1.37701 | 1.63995 | 1.83671 23 | 1.38381 | 1.38337 | 1.65612 | 1.35569 29 | 1.39004 | 1.38973 | 1.67194 | 1.93833 product over the ladder: sqrt(R1) 1.3647/fold predicted vs 1.3656 measured (0.1%) sqrt(R2) 1.6046/fold predicted vs 1.6612 measured (3.5%) D3. The Level Ledger bound 2*3^(pi(x)-1) against the object it bounds. x | 2*3^(pi-1) proven | 2class sup measured | bound/measured | 3^(pi/2) = sqrt(bound) 5 | 1.800e+1 | 0.7000 | 2.57e+1 | 5.196e+0 7 | 5.400e+1 | 1.5000 | 3.60e+1 | 9.000e+0 11 | 1.620e+2 | 2.9805 | 5.44e+1 | 1.559e+1 13 | 4.860e+2 | 3.9176 | 1.24e+2 | 2.700e+1 17 | 1.458e+3 | 7.8426 | 1.86e+2 | 4.677e+1 19 | 4.374e+3 | 17.0778 | 2.56e+2 | 8.100e+1 23 | 1.312e+4 | 27.3682 | 4.79e+2 | 1.403e+2 29 | 3.937e+4 | 49.1520 | 8.01e+2 | 2.430e+2 The bound is not the law: its ratio to the truth grows without bound, by a factor of about sqrt(3) = 1.732 per fold. Same base, twice the exponent. D4. Why sup grows faster than sd: the Gaussian extreme-value factor. Test sup = c * sd * sqrt(2 ln W), the same shape as natal-cap-25's E_x(l) = 0.97 * sigma * sqrt(2 ln(W/l)). x | ln W | sqrt(2 lnW) | c one class | c two class 5 | 3.401 | 2.6081 | 0.8632 | 0.8123 7 | 5.347 | 3.2702 | 0.8448 | 0.6120 11 | 7.745 | 3.9357 | 0.8628 | 0.6976 13 | 10.310 | 4.5409 | 0.7736 | 0.6754 17 | 13.143 | 5.1270 | 0.7650 | 0.6400 19 | 16.088 | 5.6723 | 0.7995 | 0.6858 23 | 19.223 | 6.2005 | 0.8803 | 0.7417 29 | 22.590 | 6.7217 | 0.8475 | 0.6339 ===== PART E: synthetic controls ===== E1. Bernoulli control at W = 510510 (x = 17), same densities: set | N | sup | sd | sqrt(W) = 714.5 1class random | 92160 | 134.9646 | 67.3393 | 1class TRUE | 92160 | 5.4388 | 1.3867 | 2class random | 22275 | 84.9013 | 38.3373 | 2class TRUE | 22275 | 7.8426 | 2.3900 | The sieved sets are 2 orders of magnitude below the random set at the same density. The pipeline is not manufacturing the hyperuniformity. E2. Random-class controls: same primes, same NUMBER of removed classes, random classes. Per-fold geometric means from x = 5 up. k | top | draws | object | true set | control med | control spread | true set's percentile | sqrt(R_k), same folds 1 | 19 | 4 | sd | 1.3573 | 1.3573 | 1.357 .. 1.357 | 50% | 1.3559 (limit 1.4142) 1 | 19 | 4 | sup | 1.5613 | 1.5613 | 1.561 .. 1.561 | 0% | (no prediction) 2 | 23 | 24 | sd | 1.6190 | 1.6053 | 1.508 .. 1.711 | 71% | 1.5936 (limit 1.7321) 2 | 23 | 24 | sup | 1.8423 | 1.8148 | 1.731 .. 1.930 | 79% | (no prediction) k = 1 CONTROL IS DEGENERATE BY THEOREM, and that is the point: the set {r : r != a_q mod q for all q} is a CRT TRANSLATE of the coprime set, so every one-class draw has identical sd and range. One class has no arithmetic freedom at all — hence the near-exact sqrt(R1) law in D2. k = 2 has real freedom. The twin pattern lands inside the control spread, not outside it: the growth law is about the COUNT of removed classes, not about twins. REFUTED, if anyone wanted it: no twin-specific discrepancy law. The twin arithmetic only sets the per-level twist luck. ===== PART F: the exact recursions, verified at random y ===== one class, Delta_17(y) = Delta_13(y) - Delta_13(y/17): worst |err| over 200 random y = 0.00e+0 U, V sizes 1485, 1485 vs D_13 = 1485 (same density, different pattern) two class, Delta2_17(y) = Delta2_13(y) - Delta_U(y/17) - Delta_V((y+2)/17) - 2*delta_13/17: worst |err| over 200 random y = 9.59e-14 ===== PART G: x = 31 predictions ON RECORD (a-priori, unmeasured) ===== 31# = 2.0056e+11, ln(31#) = 26.024, sqrt(2 ln W) = 7.2145 one class: sqrt(R1(31)) = 1.39159 -> sd(31) = 5.1085 c = 0.8296 (range 0.765..0.880) PREDICT max|DeltaPhi(.,31)| = 30.57 (band 28.2 .. 32.4) two class: sqrt(R2(31)) = 1.67585 -> sd_2(31) = 19.3316 (+-25% twist luck) c = 0.6873 (range 0.612..0.812) PREDICT sup DeltaPhi_2(.,31) = 95.86 (band 64.0 .. 141.6) Both are one fold past the last measurement. The one-class number is the sharper test: R1 carries no twist luck, so only c is in question. ===== COST ===== x = 29 one class: 1.02e9 survivors streamed from the materialised x = 23 tile (MEM Uint32 + MEM Uint8 of residues), 1.06e9 inner iterations. x = 29 two class: 2.15e8 survivors from the MEM x = 23 twin tile. x = 31 two class NOT RUN: D_31 = 6.23e9 slots, 31# = 2.005e11. The x = 29 tile cannot be held as positions (MEM Float64); it would have to be held as gaps (Uint16, max two-class gap G2(29#) = 258, MEM) and reconstructed by prefix sum, then 6.65e9 inner iterations. Estimated 4 to 8 minutes and MEM. Affordable under nohup, not inline. x = 31 one class: phi(31#) = 3.07e10 survivors. Out of reach here. DONE [TIME]