| | @@ -0,0 +1,115 @@ |
| 1 | +# Erdős #30 track B2: does a fixed number K of symmetric kernels reach 2√2/3? |
| 2 | + |
| 3 | +Task t-fb07a082bd. Akwei's question (i): does a fixed number K ≥ 2 of symmetric kernels reach |
| 4 | +√(ab) = 2√2/3 (ab = 8/9)? |
| 5 | + |
| 6 | +## Setup (as in the task) |
| 7 | + |
| 8 | +R = K kernels p^(r) of length m (p ≥ 0, Σp = 1, symmetric p_i = p_{m−1−i}), weights λ_r ≥ 0 with |
| 9 | +Σλ = 1, boundary vectors w^(r)_j for j < Lm (w_j = 1 for j ≥ Lm). Covering: |
| 10 | +Σ_r λ_r Σ_i p^(r)_i w^(r)_{q+i} ≥ 1 for 0 ≤ q ≤ Lm. |
| 11 | +a = m Σ_r λ_r Σ_i (p^(r)_i)², b = 1 + 2((1/m) Σ_r λ_r Σ_{j<Lm} (w^(r)_j)² − L). |
| 12 | + |
| 13 | +## Code (python3 + numpy + scipy, offline) |
| 14 | + |
| 15 | +- `hz.py` — for fixed kernels, the best w is a convex QP. `solve_qp` solves it by Lawson–Hanson |
| 16 | + least-distance programming (own NNLS: scipy 1.11's `nnls` returned wrong answers, with |
| 17 | + residual ≈ 0 and Σu ≈ 9·10¹⁵, on some inputs here). `solve_qp_fast` solves the dual |
| 18 | + min_{y≥0} ¼yᵀHy − cᵀy (H = Σλ_r M_r M_rᵀ; the last covering row q = Lm involves only the |
| 19 | + w = 1 tail and is trivially an equality 1 ≥ 1, so it is dropped and H is positive definite) |
| 20 | + by a primal–dual active-set iteration warm-started from the previous call. It falls back to |
| 21 | + `solve_qp` if it doesn't settle. The two agree to 10⁻¹³ in the tests I ran. `exact_check` |
| 22 | + rationalises a certificate (denominator 10⁹), raises w if any covering sum falls below 1, |
| 23 | + and computes ab in exact `Fraction` arithmetic. |
| 24 | +- `opt2.py K m L seeds` — outer optimisation. Each kernel is a softmax of m/2 free logits, |
| 25 | + mirrored (fully free symmetric kernels, floored at 10⁻⁷/m so H stays nonsingular), and λ is a |
| 26 | + softmax. The exact gradient of ab comes from the envelope theorem, using the QP multipliers μ: |
| 27 | + ∂val/∂p^(r)_i = −λ_r Σ_q μ_q W^(r)_{q+i}, ∂val/∂λ_r = ‖w^(r)‖² − μ·(M_r w^(r) + t_r). It |
| 28 | + matches central differences to 2·10⁻⁹. L-BFGS-B from `seeds` random centred-bump starts. |
| 29 | +- `warm.py K m0 m L` — warm start from the best m0 certificate, resampled to m. |
| 30 | +- `sweep.sh`, `sweep{A,B,C,D}.jsonl` — the runs (one JSON line per (K, m, L): ab, λ, kernels). |
| 31 | +- `extrapolate.py` — the table and the fits below. `shapes.py` — kernel shape diagnostics (`shapes.log`). `verify.py` — exact re-check of the best |
| 32 | + certificate per (K, m, L) (output in `verify.log`). |
| 33 | + |
| 34 | +Sanity checks: `python3 hz.py` reproduces the track C certificate's exact value |
| 35 | +ab = 3159263/3375000, √(ab) = 0.96751, and shows its optimal w gives 0.96005. |
| 36 | +`opt2.py 1 16 4` gives √(ab) = 0.9484705 (reported value 0.94847), and `opt2.py 2 32 4` gives |
| 37 | +0.9432422838 (reported value 0.94324229). Both reported values are reproduced. |
| 38 | + |
| 39 | +## Results |
| 40 | + |
| 41 | +Best √(ab) found (L = 4 unless noted; float value from the optimiser, and the exact-rational |
| 42 | +certificate value from `verify.log`; m²·g with g = ab − 8/9, from `extrapolate.log`): |
| 43 | + |
| 44 | +| K | m | L | √(ab) (float) | √(ab) exact cert | m²·(ab − 8/9) | |
| 45 | +|---|---|---|---|---|---| |
| 46 | +| 1 | 8 | 4 | 0.9563400963 | 0.9563401028 | 1.6446 | |
| 47 | +| 1 | 16 | 2 | 0.9485234071 | 0.9485234096 | 2.7668 | |
| 48 | +| 1 | 16 | 4 | 0.9484705196 | 0.9484705300 | 2.7411 | |
| 49 | +| 1 | 16 | 6 | 0.9489733296 | 0.9489733481 | 2.9853 | |
| 50 | +| 1 | 24 | 4 | 0.9467754679 | 0.9467754785 | 4.3171 | |
| 51 | +| 2 | 8 | 4 | 0.9486835214 | 0.9486835274 | 0.7111 | |
| 52 | +| 2 | 16 | 2 | 0.9445861228 | 0.9445861248 | 0.8586 | |
| 53 | +| 2 | 16 | 4 | 0.9444445379 | 0.9444445442 | 0.7902 | |
| 54 | +| 2 | 16 | 6 | 0.9444444445 | 0.9444444481 | 0.7901 | |
| 55 | +| 2 | 24 | 4 | 0.9435642682 | 0.9435642723 | 0.8206 | |
| 56 | +| 2 | 48 | 4 | 0.9430054947 | 0.9430055162 | 0.8536 | |
| 57 | +| 2 | 64 | 4 | 0.9429206874 | 0.9429207027 | 0.8623 | |
| 58 | +| 3 | 8 | 4 | 0.9486834955 | 0.9486834998 | 0.7111 | |
| 59 | +| 3 | 16 | 4 | 0.9444445213 | 0.9444445299 | 0.7902 | |
| 60 | +| 3 | 24 | 4 | 0.9435642447 | 0.9435642479 | 0.8206 | |
| 61 | +| 4 | 8 | 4 | 0.9486834958 | 0.9486835020 | 0.7111 | |
| 62 | +| 4 | 16 | 4 | 0.9444445214 | 0.9444445235 | 0.7902 | |
| 63 | +| 4 | 24 | 4 | 0.9435642445 | 0.9435642500 | 0.8206 | |
| 64 | + |
| 65 | +2√2/3 = 0.9428090416, 8/9 = 0.8888888889. Extrapolation of K = 2 (L = 4, m ∈ {16, 24, 48, 64}): |
| 66 | +c + d/m² + e/m³ → c = 0.888890 (max residual 2·10⁻⁷); c + d/m + e/m² → c = 0.888829 (below |
| 67 | +the proven bound 8/9, so the 1/m term should be absent). Larger L barely matters at m = 16 for |
| 68 | +K = 2: L = 2, 4, 6 give 0.944586, 0.9444445, 0.9444444 (the last is 17/18 to 10⁻¹⁰; I did not |
| 69 | +pursue whether that is exact). |
| 70 | +K = 3 and K = 4 runs at m = 32 and K = 1 at m = 32, 48, 64 did not finish within the sweep's |
| 71 | +time limit. |
| 72 | + |
| 73 | +## What this shows and what it doesn't |
| 74 | + |
| 75 | +**Answer, from the evidence: K = 2 does not appear to stall. Two symmetric kernels get within |
| 76 | +about 0.85/m² of 8/9, and the fit c + d/m² + e/m³ extrapolates to 8/9 within 10⁻⁶ (a fit with a 1/m term lands below 8/9, which is impossible). At the m tested, |
| 77 | +K = 3 and K = 4 give exactly the same value as K = 2 (to 10⁻⁷), so extra kernels add nothing. |
| 78 | +One kernel is clearly worse.** This is numerical evidence, not a proof that K = 2 reaches 8/9. |
| 79 | + |
| 80 | +1. *Upper bounds are rigorous; limits are not.* Each row of `verify.log` is an exact rational |
| 81 | + certificate (covering checked in `Fraction` arithmetic, all ≥ 1), so each √(ab) there is a |
| 82 | + true Hou–Zhao constant for that certificate. For example, two kernels at m = 48, L = 4 give |
| 83 | + √(ab) ≤ 0.94300552 (2√2/3 = 0.94280904). Everything about m → ∞ is extrapolation from the |
| 84 | + values at m ≤ 64 (m = 96, warm-started, did not finish within the turn). |
| 85 | +2. *Lower bounds for fixed m are not certified.* L-BFGS from a few random starts finds local |
| 86 | + optima. Signs of this: K = 1 with L = 6 came out worse than L = 4, although a larger L |
| 87 | + can only help (extend w by 1s), and K = 2 at m = 24 found a different branch |
| 88 | + (λ ≈ 0.51/0.49) from the one at m = 16, 48, 64 (λ ≈ 0.86–0.89/0.11–0.14), and a cold m = 64 run (1 seed, sweepC) gave 0.94306, worse than m = 48, while the m = 64 run warm-started from m = 48 (`warm.py`, sweepD) gave 0.94292. So "K = 3, 4 equal K = 2" |
| 89 | + means the optimiser found nothing better, not that nothing better exists. The true fixed-m |
| 90 | + optima can only be *lower*, which strengthens the conclusion that K = 2 does not stall. |
| 91 | +3. *Why I read it as reaching 8/9 rather than stalling.* By Akwei's theorem ab ≥ 8/9 for every |
| 92 | + certificate, so the gap g(m) = ab − 8/9 ≥ 0. For K = 2, m²·g(m) = 0.711, 0.790, 0.821, |
| 93 | + (0.838 at m = 32 in the reported value), 0.854, 0.862 for m = 8, 16, 24, 32, 48, 64. It is slowly |
| 94 | + increasing and bounded-looking, i.e. g ≈ 0.85–0.9/m². A stall at 8/9 + δ would make m²·g |
| 95 | + grow like δm². With m = 64 that rules out δ ≳ 10⁻⁵ unless the growth starts later. The fit |
| 96 | + c + d/m + e/m² puts the limit *below* 8/9 (0.888829), which is impossible, and the fit |
| 97 | + c + d/m² + e/m³ gives 0.888890 (residual 2·10⁻⁷). |
| 98 | +4. *The kernels seem to converge to fixed profiles* (`shapes.log`, m = 16, 48, 64 on the same |
| 99 | + branch): a broad concave kernel (weight ≈ 0.86–0.89, edge value ≈ 0.37–0.66, a_r ≈ 1.05–1.07) |
| 100 | + and a sharply peaked kernel (weight ≈ 0.11–0.14, a_r ≈ 2.8–3.1, half its mass in the |
| 101 | + central 1/8–1/6, centre value growing like a cusp). Its L² norm stays bounded, so this looks |
| 102 | + like a genuine two-kernel continuum family, not a degenerating one. If so, the m → ∞ limit |
| 103 | + is a fixed K = 2 certificate with ab = 8/9. Note that Akwei's optimal two-sided kernel is |
| 104 | + linear (ρ = 2x on a half), and the broad-plus-cusp mixture λ₁A + λ₂B may be imitating that |
| 105 | + profile's mixture of uniform kernels. |
| 106 | +5. *One kernel*: m·g(m) = 0.206, 0.171, 0.180 at m = 8, 16, 24, consistent with Akwei's |
| 107 | + statement that one kernel does not reach 8/9. Our K = 1 numbers are least reliable (point 2), |
| 108 | + so I don't estimate its limit. |
| 109 | +6. *Not done*: the dual-multiplier lower bound for K = 2 above 8/9 was not attempted because no |
| 110 | + gap appeared. Natural next steps: (a) extend K = 2 to m = 96, 128 by warm-starting from |
| 111 | + the m = 48 kernels interpolated (m = 96 needed more than 12 minutes and did not finish this turn); (b) |
| 112 | + guess the continuum limit of the cusp kernel and the broad kernel, and compute their ab in the |
| 113 | + continuum QP directly, which would turn point 3 into a candidate exact two-kernel |
| 114 | + certificate family; (c) a proof would need that family plus a convergence argument. |
| 115 | + |