| | @@ -0,0 +1,106 @@ |
| 1 | +# Results: the Delsarte-type LP for Sidon sets in [1, N] |
| 2 | + |
| 3 | +Here c(N) = (k* − √N)/N^{1/4}, where k* is the real root described in README.md and k_LP = ⌊k*⌋. Every row was checked numerically: |min_P/k| < 10⁻⁶ on a 128N-point grid of the circle plus golden-section polishing of the 20 smallest grid minima. `k_est_low` (called `k_certified_low` in the older logs) agrees with k* to about 5·10⁻⁵. It is a **numerical estimate, not a certified lower bound**: polishing selected grid minima gives no rigorous bound on P between grid points. |
| 4 | + |
| 5 | +| N | k_LP | k* | c(N) = (k*−√N)/N^{1/4} | (k_LP−√N)/N^{1/4} | secs | log | |
| 6 | +|------|------|----------|------------------------|-------------------|-------|-----| |
| 7 | +| 50 | 9 | 9.65435 | 0.97147 | 0.72539 | 1.1 | run_highs_50_250.log | |
| 8 | +| 100 | 13 | 13.10768 | 0.98274 | 0.94868 | 0.7 | run_sweep_1000.log | |
| 9 | +| 150 | 15 | 15.69679 | 0.98563 | 0.78653 | 15.3 | run_highs_50_250.log | |
| 10 | +| 200 | 17 | 17.85414 | 0.98708 | 0.75995 | 2.1 | run_sweep_1000.log | |
| 11 | +| 250 | 19 | 19.73828 | 0.98756 | 0.80189 | 153.1 | run_highs_50_250.log | |
| 12 | +| 300 | 21 | 21.43010 | 0.98746 | 0.88411 | 6.2 | run_sweep_1000.log | |
| 13 | +| 500 | 27 | 27.02373 | 0.98611 | 0.98110 | 29.0 | run_sweep_1000.log | |
| 14 | +| 700 | 31 | 31.52386 | 0.98496 | 0.88312 | 217.5 | run_sweep_1000.log | |
| 15 | +| 1000 | 37 | 37.15215 | 0.98328 | 0.95622 | 364.1 | run_sweep_1000.log | |
| 16 | +| 1400 | 43 | 43.42049 | 0.98153 | 0.91279 | 672.1 | run_1400.log | |
| 17 | +| 2000 | 51 | 51.27201 | 0.97955 | 0.93888 | 311.9 | run_2000.log (OpenBLAS) | |
| 18 | +| 2800 | 60 | 60.02646 | 0.97761 | 0.97398 | 1061.2 | run_2800.log (OpenBLAS) | |
| 19 | + |
| 20 | +Sanity checks: |
| 21 | +- k_LP(50) = 9 = h(50), and k_LP(100) = 13 ≥ h(100) = 12 (Golomb rulers). |
| 22 | +- The pure 4N-grid LP gives a slightly larger value, as a relaxation should: 21.592 against 21.430 at N = 300, and 27.225 against 27.024 at N = 500 (run_t2_300_500.log). |
| 23 | + |
| 24 | +The sweep `python3 delsarte_lp.py` (N = 100, 200, 300, 500, 1000) takes about 6.7 minutes on this machine, which uses reference (single-thread) BLAS. That is the sum of the per-N times logged in run_sweep_1000.log; the full logged sweep, which adds N = 700, took 10.3 minutes. |
| 25 | + |
| 26 | +## Fit of the constant (N = 100..1000, the six rows of run_sweep_1000.log) |
| 27 | + |
| 28 | +| model | c_∞ | formal s.e. | rms residual | |
| 29 | +|-------|-----|-------------|--------------| |
| 30 | +| c + b N^{−1/4} | 0.9858 | 0.0046 | 2.2e-3, a poor fit: it cannot follow the turn-over | |
| 31 | +| c + b N^{−1/4} + e N^{−1/2} | 0.9319 | 0.0019 | 1.5e-4 | |
| 32 | +| the same, leaving one N out | 0.9295 – 0.9365 | | | |
| 33 | +| c + b N^{−1/4} on N ≥ 300 only | 0.972 | | | |
| 34 | + |
| 35 | +Predictions for N = 1400: 0.9854 from the 2-term model and 0.9812 from the 3-term model. |
| 36 | + |
| 37 | +**Out-of-sample check:** the computed value is c(1400) = **0.98153**. The 3-term model predicted it to within 3·10⁻⁴. The 2-term model is off by 4·10⁻³. |
| 38 | + |
| 39 | +Refit with all seven points, N = 100..1400: |
| 40 | + |
| 41 | +| model | c_∞ | formal s.e. | rms residual | |
| 42 | +|-------|-----|-------------|--------------| |
| 43 | +| c + b N^{−1/4} | 0.9822 | 0.0042 | 2.4e-3, a poor fit | |
| 44 | +| c + b N^{−1/4} + e N^{−1/2} | 0.9337 | 0.0016 | 1.7e-4 | |
| 45 | +| the same, leaving one N out | 0.932 – 0.938 | | | |
| 46 | +| the same, on N ≥ 200 | 0.938 | | | |
| 47 | +| the same, on N ≥ 300 | 0.942 | | | |
| 48 | +| 4 terms, up to N^{−3/4} | 0.951 | 0.005 | 9.4e-5 | |
| 49 | + |
| 50 | +The 3-term c_∞ moves *up* as the smallest N are dropped (0.934, then 0.938, then 0.942). The 4-term fit gives 0.951. Model error therefore dominates, and the honest estimate from this data is **c_∞ ≈ 0.94 ± 0.01**. |
| 51 | + |
| 52 | +## Update with N = 2000 (after OpenBLAS was installed) |
| 53 | + |
| 54 | +**Out-of-sample check:** from N ≤ 1400 the models predicted c(2000) = 0.98389 (2 terms), 0.97919 (3 terms) and 0.97964 (4 terms). The computed value is **0.97955**: the 3- and 4-term models are within 4·10⁻⁴, the 2-term model is off by 4·10⁻³. |
| 55 | + |
| 56 | +**Finer-grid check at N = 2000:** min_P/k is −8.751·10⁻⁷ on the 128N grid and −8.751·10⁻⁷ on a 4× finer 512N grid (both with polishing), so the finer grid finds no deeper minimum (run_2000.log, flag `--finecheck`). |
| 57 | + |
| 58 | +Refit with all eight points, N = 100..2000 (fit inputs are the c(N) column above): |
| 59 | + |
| 60 | +| model | N range | c_∞ | formal s.e. | rms residual | |
| 61 | +|-------|---------|-----|-------------|--------------| |
| 62 | +| c + b N^{−1/4} | ≥ 100 | 0.979 | 0.004 | 2.6e-3, a poor fit | |
| 63 | +| c + b N^{−1/4} + e N^{−1/2} | ≥ 100 | 0.9351 | 0.0013 | 1.9e-4 | |
| 64 | +| the same, leaving one N out | ≥ 100 | 0.9337 – 0.9387 | | | |
| 65 | +| the same | ≥ 200 | 0.9387 | 0.0014 | 1.1e-4 | |
| 66 | +| the same | ≥ 300 | 0.9413 | 0.0011 | 6.0e-5 | |
| 67 | +| the same | ≥ 500 | 0.9386 | 0.0014 | 3.9e-5 | |
| 68 | +| 4 terms, up to N^{−3/4} | ≥ 100 | 0.9489 | 0.0031 | 8.4e-5 | |
| 69 | +| 4 terms | ≥ 300 | 0.931 | 0.009 | 5.6e-5 | |
| 70 | +| 4 terms | ≥ 500 | 0.960 | 0.008 | 2.1e-5 | |
| 71 | + |
| 72 | +The spread across models is still about ±0.01 around 0.94, so the extrapolated estimate stays **c_∞ ≈ 0.94 ± 0.01**. This is an extrapolation from N ≤ 2000, not a bound. |
| 73 | + |
| 74 | +### N = 2800 |
| 75 | + |
| 76 | +**Out-of-sample check:** from N ≤ 2000 the models predicted c(2800) = 0.98223 (2 terms), 0.97726 (3 terms) and 0.97771 (4 terms). The computed value is **0.97761**: the 3- and 4-term models are within 4·10⁻⁴ and 1·10⁻⁴. |
| 77 | + |
| 78 | +**Finer-grid check at N = 2800:** min_P/k is −6.35·10⁻⁷ on the 128N grid and −9.62·10⁻⁷ on the 512N grid. So the finer grid *does* find a slightly deeper minimum here. It is still inside the 10⁻⁶ tolerance, and it moves k_est_low by about 10⁻⁵, which changes no digit of c(N) shown. This again shows that grid checks are not certificates. |
| 79 | + |
| 80 | +Refit with all nine points, N = 100..2800: |
| 81 | + |
| 82 | +| model | N range | c_∞ | formal s.e. | rms residual | |
| 83 | +|-------|---------|-----|-------------|--------------| |
| 84 | +| c + b N^{−1/4} | ≥ 100 | 0.976 | 0.004 | 2.9e-3, a poor fit | |
| 85 | +| c + b N^{−1/4} + e N^{−1/2} | ≥ 100 | 0.9362 | 0.0011 | 2.0e-4 | |
| 86 | +| the same, leaving one N out | ≥ 100 | 0.9351 – 0.9393 | | | |
| 87 | +| the same | ≥ 200 / 300 / 500 | 0.9393 / 0.9411 / 0.9395 | ≈ 0.001 | 1.0e-4 / 5.3e-5 / 3.7e-5 | |
| 88 | +| 4 terms | ≥ 100 / 200 / 300 / 500 | 0.9475 / 0.9468 / 0.9357 / 0.9503 | 0.002 – 0.005 | 7.9e-5 … 2.3e-5 | |
| 89 | + |
| 90 | +Extrapolations still span about 0.935–0.950, so the estimate stays **c_∞ ≈ 0.94 ± 0.01**. It contains 2√2/3 ≈ 0.94281. The 3-term fits on N ≥ 300 cluster at 0.939–0.941, a little below 2√2/3, but model error of ±0.01 swamps that difference. |
| 91 | + |
| 92 | +**Theory (founder's note in the task thread).** The pair-level SDP of Akwei–Williams maps into this LP (R(d) = Σ_x Γ(x, x+d)), so the LP value is at least the SDP value, which they show (unrefereed) is √N + (2√2/3)N^{1/4} + O(1). If that holds, the LP's limit constant is at least 2√2/3 ≈ 0.94281, and this LP cannot beat 2√2/3. The data is consistent with that: every extrapolation interval above contains 0.9428. |
| 93 | + |
| 94 | +## What it suggests (written at N ≤ 1400; the qualifications below apply) |
| 95 | + |
| 96 | +1. For every N computed, up to N = 1000 and N = 1400, the LP value is well above 2√2/3 ≈ 0.94281: c(N) ≈ 0.983–0.988. At these sizes the LP is *not* better than 2√2/3. It also gives c(N) < 1, which beats the classical √N + N^{1/4} + 1 bound by a little. |
| 97 | +2. c(N) is not monotone. It rises up to N ≈ 300 and then falls slowly: 0.9875 at 300, 0.9861 at 500, 0.9850 at 700, 0.9833 at 1000, 0.9796 at 2000. The downturn alone does not prove the limit lies below the sampled values (c(N) could turn again); the fitted models *extrapolate* to a limit below them, and how far below depends on the model: |
| 98 | + - The 3-term model in powers of N^{−1/4} was fitted on N ≤ 1000. It predicted c(1400) correctly, which the 2-term model did not. |
| 99 | + - Its extrapolations range over 0.932–0.951 depending on which points and terms are used, so c_∞ ≈ 0.94 ± 0.01. |
| 100 | + - That interval contains both the 0.937–0.939 estimate and 2√2/3 ≈ 0.9428. |
| 101 | +3. So the data neither confirms nor refutes the claim that the LP beats 2√2/3 asymptotically. It does show: |
| 102 | + - at every computable N, the LP is far from either value: c(1400) = 0.9815; |
| 103 | + - in the sampled range c(N) decreases roughly like N^{−1/4}, and the fits extrapolate to a limit near 0.94, so both analyses are about right on the scale of the limit, and they differ by less than this data can resolve. |
| 104 | + - Telling 0.938 from 0.943 by extrapolation would need N ≳ 10⁴, which needs a structured solver. |
| 105 | + - Even if the LP limit is below 2√2/3, at any N up to 1400 the LP is about 0.98, so it is not a practical way to beat 2√2/3 at accessible sizes. |
| 106 | +4. N = 2000 was out of reach with the reference BLAS (5 s per Cholesky). After the switch to OpenBLAS it took 5 minutes; see the update above. Telling 0.938 from 0.943 by extrapolation would still need N ≳ 10⁴ and a structured solver (CG with FFT matvecs on the Toeplitz-plus-Hankel normal matrix, or a PDLP-type first-order method). Given the SDP argument above, that would only pin the constant. |