| | @@ -0,0 +1,301 @@ |
| 1 | +# Erdős #530 upper bound: re-optimised constants for Phal–Gemini's proof |
| 2 | + |
| 3 | +All of the mathematics here is **Shubham Phal and Gemini (Google DeepMind)**'s: |
| 4 | +*An Upper Bound Below √N for Guaranteed Sidon Subsets of N-Element Sets* |
| 5 | +(github.com/shubhamphal/erdos-530, `paper/erdos_530.tex`, Formal Conjectures |
| 6 | +PR #8984; offline copy at `~/ws/reference/phal-erdos-530/paper/erdos_530.tex`). |
| 7 | +Their architecture, lemmas and proofs are kept. This note only redoes the |
| 8 | +constant bookkeeping. Each changed step is proved below, as a diff against |
| 9 | +the paper's proof. Lemma numbers are the paper's (Lemma 2.1 = `lem:finprob`, |
| 10 | +3.1 = `lem:transcript`, 3.2 = `lem:window`, Prop 3.3 = `prop:single-container`, |
| 11 | +4.1 = `lem:uniform`, 4.2 = `lem:missing-diff`, 4.3 = `lem:badset`, |
| 12 | +4.4 = `lem:containers`, Theorem 1.1 = `thm:main`). |
| 13 | + |
| 14 | +**Status.** Proved on paper (here); the constants are checked by |
| 15 | +`constants.py` in rigorous interval arithmetic (mpmath `iv`, 60 digits), and the |
| 16 | +polynomial inequalities in δ are checked exactly with `fractions.Fraction`. |
| 17 | +Nothing here is Lean-checked. The paper's Lean proof covers the paper's |
| 18 | +constants only; a Lean port of this version is a separate task. |
| 19 | + |
| 20 | +## Result |
| 21 | + |
| 22 | +> **Theorem A.** For every integer N ≥ N₀' = 2^203192 there is an N-element set |
| 23 | +> A_N ⊆ {1,…,2N} each of whose Sidon subsets has fewer than (1 − 2^−14501)√N |
| 24 | +> elements. Hence ℓ(N) < (1 − 2^−14501)√N for N ≥ 2^203192. |
| 25 | + |
| 26 | +Paper: ℓ(N) < (1 − 2^−1050004)√N for N ≥ 2^29400300. The task expected about |
| 27 | +2^−60000. The gain over that estimate comes from three extra changes, |
| 28 | +explained in §6: exact integrals in place of the bound √r ≤ √h, smaller |
| 29 | +slacks (θ − 1/2, β, ε_ET), and base 1−δ in the transcript step. |
| 30 | + |
| 31 | +Reproduce: `python3 constants.py` (about 1 s). Add `--scan` for the λ scan. |
| 32 | +`constants.log` holds the output of `python3 constants.py --scan`. |
| 33 | + |
| 34 | +## 1. Parameters, old vs new |
| 35 | + |
| 36 | +| symbol | role | paper | here | |
| 37 | +|---|---|---|---| |
| 38 | +| δ | deletion probability | 2^−1050000 | 2^−14493 | |
| 39 | +| γ | c = 1 − γδ | 1/16 | 1/256 | |
| 40 | +| θ = τ/δ | k₀ = ⌈(1−τ)√M⌉ | 5/8 | 1/2 + 2γ = 65/128 | |
| 41 | +| λ = η/τ | window scale ratio | 3600 | 1010 | |
| 42 | +| ρ = h₀/(τM) | uniformity window | 1 (h₀ = ⌊τM⌋) | 1/1000 (h₀ = ⌊ρτM⌋) | |
| 43 | +| ε₀/η | low-representation cutoff | 1/200 | 10^−4 | |
| 44 | +| c_u | uniformity constant | 7/4 | √(2+ρ)(1+ν) ≈ 1.41457 | |
| 45 | +| W | weighted missing differences / (η²M) | 1/5 | 0.191443 | |
| 46 | +| L | lower bound in Lemma 4.3 / (bη√M) | 23/50 | 0.470223 | |
| 47 | +| diag | diagonal term / (bη√M) | 21/20 (unweighted) | 0.529675 (weighted) | |
| 48 | +| L² − W | Cauchy–Schwarz margin | 29/2500 | 0.029667 | |
| 49 | +| b_L/(η√M) | left-half bad set | 525/29 ≈ 18.10 | 3.41804 | |
| 50 | +| K | container slack, \|C\| ≤ (1+Kδ)√M | 84,000 | 1753081/500 ≈ 3506.2 | |
| 51 | +| β | \|D\| > (1−β)δn | 1/16 | 1/256 | |
| 52 | +| ε_ET | 2M^{1/4} ≤ ε_ET·δ√M | 1/32 | 1/256 | |
| 53 | +| gap | τ_C − s ≥ gap·δ√M | 9/32 | 1 − β − θ − ε_ET = 31/64 | |
| 54 | +| ε | relative hitting-number drop | 1/(4K) | gap/K ≈ 1.3815·10^−4 | |
| 55 | +| transcript base | P(Drop) ≤ base^{τ_C} | 1/2 | e^{−δ} | |
| 56 | +| ν | slack for lower-order terms | (several ad hoc) | 10^−6 | |
| 57 | +| N₀ | threshold | 2^29400300 | 2^203192 | |
| 58 | + |
| 59 | +**Standing conditions on M** (each is monotone in M; `constants.py` computes the |
| 60 | +log₂ threshold for each one, and all are far below 2^203192): |
| 61 | + |
| 62 | +* (T1) ρτM ≥ 1/ν, so h₀ ≥ ρτM(1−ν); |
| 63 | +* (T2) √M ≥ 1/(νρτ²); |
| 64 | +* (T3) √M ≥ 1/(νη²), i.e. √M ≤ νη²M; |
| 65 | +* (T4) 1/M ≤ νη; |
| 66 | +* (T5) τ ≤ ν, so (1−τ)/(1+τ) ≥ 1−2τ and 1/(1−τ) ≤ 1+2τ ≤ 1+2ν (automatic); |
| 67 | +* (T6) 2M^{1/4} ≤ ε_ET·δ√M; |
| 68 | +* (Bad1) δ³N ≥ 64 (and δ²N ≥ 4); |
| 69 | +* (main) M^{1/6} ≥ c₁(ln M)^{4/3} with c₁ = 8·(324/ε₀)^{1/3}·2^18/δ². |
| 70 | + |
| 71 | +From (T1), (T4) and η < 1/4: h = ⌊ηM⌋ ≥ ηM(1−ν) and h ≥ 2, so h₀/h ≤ (ρ/λ)(1+2ν). |
| 72 | + |
| 73 | +## 2. Unchanged lemmas |
| 74 | + |
| 75 | +* **Lemma 2.1** (finite product probability, Markov, Chebyshev, tails |
| 76 | + P(|A| ≥ (p+γ)|Ω|), P(|A| ≤ (p−γ)|Ω|) ≤ e^{−γ²|Ω|/4}): unchanged. |
| 77 | +* **Lemma 3.1** (transcript bound): its first form (eq. drop-sum), |
| 78 | + P(Drop_s) ≤ r^τ Σ_{b=τ−s}^{τ} C(τ,b) δ^b, is unchanged and is the form we use. |
| 79 | + We replace its compact form (drop-compact) by Lemma 3.1′ below. |
| 80 | +* **Lemma 3.2** (sliding-window identities, k < √M + 2M^{1/4} for M ≥ 16): |
| 81 | + unchanged. |
| 82 | + |
| 83 | +**Lemma 3.1′ (exact Chernoff form of the binomial sum).** Let τ ≥ 1, 0 < ε < 1/2, |
| 84 | +0 < δ ≤ ε/(1−ε), and let H(ε) = −ε ln ε − (1−ε) ln(1−ε). Then |
| 85 | +Σ_{b ≥ ετ} C(τ,b) δ^b ≤ exp(τ(H(ε) + ε ln δ)). |
| 86 | + |
| 87 | +*Proof.* Put μ := ε/((1−ε)δ) ≥ 1. For b ≥ ετ, δ^b ≤ μ^{b−ετ}δ^b = μ^{−ετ}(μδ)^b. |
| 88 | +Summing over all 0 ≤ b ≤ τ and using the binomial theorem gives at most |
| 89 | +μ^{−ετ}(1+μδ)^τ. Here 1 + μδ = 1/(1−ε), and |
| 90 | +−ε ln μ − ln(1−ε) = ε ln δ − ε ln ε + ε ln(1−ε) − ln(1−ε) = ε ln δ + H(ε). ∎ |
| 91 | + |
| 92 | +This is the paper's compact argument with the optimal μ. The paper takes μ = ε/δ, |
| 93 | +which gives (eδ/ε)^{ετ} and loses the factor e^{ε} per unit of τ. The exponent |
| 94 | +H(ε) + ε ln δ is the exact exponential rate of the binomial tail, so no further |
| 95 | +gain is possible inside Lemma 3.1. |
| 96 | + |
| 97 | +## 3. Proposition 3.3 (single container), new constants |
| 98 | + |
| 99 | +**Proposition 3.3′.** Let M ≥ N₀', k₀ = ⌈(1−θδ)√M⌉, and let C ⊆ [1,M] have |
| 100 | +|C| = n ≤ (1+Kδ)√M. Then P_{[1,M],1−δ}(A ∩ C contains a Sidon set of size ≥ k₀) |
| 101 | +≤ 2 exp(−δ²√M/2^18). |
| 102 | + |
| 103 | +*Proof.* We follow the paper's proof, with these changes. Write n = (1+uδ)√M. |
| 104 | + |
| 105 | +*Case 1, u ≤ 1/4.* If n < k₀ the probability is 0. Otherwise n ≥ k₀ ≥ √M/2. The |
| 106 | +exact check `theta < 5/8` in `constants.py` gives |
| 107 | +(1 − 7δ/8)(1 + δ/4) < 1 − θδ. Hence the event forces |A₁| ≥ k₀ ≥ (1−θδ)√M > |
| 108 | +((1−δ) + δ/8)n, and Lemma 2.1(vii) with γ = δ/8 gives probability |
| 109 | +≤ exp(−δ²n/256) ≤ exp(−δ²√M/512). (The paper used 1/16 here.) |
| 110 | + |
| 111 | +*Case 2, 1/4 < u ≤ K.* B₁ := {|D| ≤ (1−β)δn}. The lower tail with p = δ and |
| 112 | +γ = βδ gives P(B₁) ≤ exp(−β²δ²n/4) ≤ exp(−δ²√M/2^18), since β = 2^−8 and n > √M. |
| 113 | + |
| 114 | +For B₂: let m_M = ⌊√M + 2M^{1/4}⌋ and τ_C = n − m_M. By (T6), |
| 115 | +τ_C ≥ (u − ε_ET)δ√M ≥ (1/4 − 1/256)δ√M ≥ δ√M/5 ≥ 1. As in the paper, |
| 116 | +τ_C < uδ√M ≤ Kδ√M, and every hitting set has size ≥ τ_C (Lemma 3.2(iii)). On B₂ |
| 117 | +choose a Sidon S ⊆ C∖D with |S| ≥ k₀ and put T = (C∖D)∖S. Then |
| 118 | +|T| = n − |D| − |S| < (1 − (1−β)δ)(1+uδ)√M − (1−θδ)√M ≤ (u − (1−β−θ))δ√M. |
| 119 | +If u ≤ 1−β−θ this is impossible, so P(B₂) = 0. Otherwise put |
| 120 | +s = ⌊(u − (1−β−θ))δ√M⌋. Then Drop_s(D) holds, and |
| 121 | +τ_C − s ≥ (1 − β − θ − ε_ET)δ√M = gap·δ√M ≥ (gap/K)τ_C = ετ_C. |
| 122 | +By Lemma 3.1 (drop-sum) with r = 4 and Lemma 3.1′, |
| 123 | +P(B₂) ≤ 4^{τ_C}·Σ_{b ≥ ετ_C} C(τ_C,b)δ^b ≤ exp(τ_C(ln 4 + H(ε) + ε ln δ)). |
| 124 | +`constants.py` checks ln 4 + H(ε) + ε ln δ + δ ≤ 0 for δ = 2^−14493 and ε = gap/K, |
| 125 | +and also δ ≤ ε/(1−ε) and ε < 1/2. Hence P(B₂) ≤ e^{−δτ_C} ≤ exp(−δ²√M/5). |
| 126 | + |
| 127 | +So in Case 2 the probability is ≤ P(B₁) + P(B₂) ≤ 2exp(−δ²√M/2^18), and in Case 1 |
| 128 | +it is ≤ exp(−δ²√M/512). ∎ |
| 129 | + |
| 130 | +*Why base e^{−δ} suffices.* The paper requires base ≤ 1/2. That gives |
| 131 | +e^{−Ω(δ²√M)} only after using τ_C ≥ Ω(δ√M). The other tails are already |
| 132 | +e^{−Θ(δ²√M)}, so base e^{−δ} costs nothing in the order of the exponent. It |
| 133 | +saves about 1/ε bits of log₂(1/δ) (log₂ 8 → log₂ 4 per unit ε). |
| 134 | + |
| 135 | +## 4. Section 4 (containers), new constants |
| 136 | + |
| 137 | +Throughout, S ⊆ [1,M] is Sidon with |S| = k₀, h₀ = ⌊ρτM⌋, h = ⌊ηM⌋, η = λτ. |
| 138 | + |
| 139 | +**Lemma 4.1′ (uniformity).** With c_u := √(2+ρ)(1+ν), for [x₀, x₀+r−1] ⊆ [1,M]: |
| 140 | +(r−h₀+1)k₀/(M+h₀−1) − c_u√(τr) ≤ |S ∩ [x₀,x₀+r−1]| ≤ (r+h₀−1)k₀/(M+h₀−1) + c_u√(τ(r+h₀−1)). |
| 141 | + |
| 142 | +*Proof.* This is the paper's proof with one estimate changed. As there, |
| 143 | +V₀ ≤ h₀²(1 − k₀²/(M+h₀−1)) + h₀k₀. Now h₀ ≤ ρτM and k₀ ≥ (1−τ)√M, so |
| 144 | +1 − k₀²/(M+h₀−1) ≤ 1 − (1−τ)²/(1+ρτ) = ((2+ρ)τ − τ²)/(1+ρτ) ≤ (2+ρ)τ. |
| 145 | +The paper has 3τ here, because ρ = 1. |
| 146 | +Also h₀k₀ ≤ 2ν(2+ρ)τh₀²: this follows from k₀ < √M ≤ 4νρτ²M(1−ν) ≤ 4ντh₀, |
| 147 | +by (T1) and (T2). So V₀ ≤ (2+ρ)τh₀²(1+2ν) ≤ (c_u h₀)²τ. The two Cauchy–Schwarz |
| 148 | +steps are then verbatim. ∎ |
| 149 | + |
| 150 | +*Which obstacle this addresses.* The variance factor drops from 3τ to (2+ρ)τ. |
| 151 | +Taking the uniformity window much shorter than the deficit scale (σ = ρτ ≪ τ) |
| 152 | +leaves only the 2τ coming from k₀² ≥ (1−2τ)M. The cost is the condition |
| 153 | +√M ≫ 1/(ρτ²), which only enlarges N₀ by a factor polynomial in 1/δ. |
| 154 | + |
| 155 | +**Lemma 4.2′ (weighted missing differences).** Σ_{1≤d≤h−1, d∉D} (1 − d/h) ≤ Wη²M with |
| 156 | +W = 1/6 + ξ + 1/λ + 2ν and |
| 157 | +ξ = ρ/λ + (1+2ν)·((8/15)c_u/√λ + c_u√ρ/λ). |
| 158 | + |
| 159 | +*Proof.* We follow the paper's proof and change the three terms of |
| 160 | +Σ(1−g_t)s_t = Σ_{u=1}^{h−1} ((h−u)/h)(|S∩[1,u]| + |S∩[M−u+1,M]|). Lemma 4.1′ |
| 161 | +bounds the bracket by 2(u+h₀)k₀/M + 2c_u√(τ(u+h₀−1)). |
| 162 | +1. (2k₀/(hM))·Σ(h−u)u = (2k₀/(hM))·h(h²−1)/6 ≤ h²k₀/(3M) ≤ (1/3)ηhk₀. (Same as the paper.) |
| 163 | +2. (2h₀k₀/(hM))·Σ(h−u) ≤ hh₀k₀/M ≤ ρτhk₀ = (ρ/λ)ηhk₀. (The paper has 1/3600.) |
| 164 | +3. (2c_u√τ/h)·Σ_{u=1}^{h−1}(h−u)√(u+h₀−1). We use √(u+h₀−1) ≤ √u + √h₀. |
| 165 | + The function g(s) = (h−s)√s is concave on [0,h], since |
| 166 | + g'' = −(h/4)s^{−3/2} − (3/4)s^{−1/2} < 0, and g(0) = g(h) = 0. So the |
| 167 | + trapezoid rule gives Σ_{u=1}^{h−1} g(u) ≤ ∫₀^h g = (4/15)h^{5/2}. Also |
| 168 | + Σ(h−u) ≤ h²/2. Hence term 3 ≤ (8/15)c_u h√(τh) + c_u h√(τh₀). Now |
| 169 | + √(τh) ≤ √(τηM) = η√M/√λ and √(τh₀) ≤ τ√(ρM) = √ρ·η√M/λ, and by (T5) |
| 170 | + √M ≤ (1+2ν)k₀. So term 3 ≤ (1+2ν)((8/15)c_u/√λ + c_u√ρ/λ)·ηhk₀. |
| 171 | + The paper instead bounds √(τ(u+h₀)) by its value at u = h, which |
| 172 | + replaces 8/15 by 1. |
| 173 | + |
| 174 | +So Σ_t g_t s_t ≥ hk₀(1 − (1/3 + ξ)η) > 0. As in the paper, |
| 175 | +Σg_t² = M − h/3 + 1/(3h) ≤ M(1−η/3)(1+2/M). We have the identity |
| 176 | +(1−aη)² − (1−η/3)(1−(2a−1/3)η) = (a−1/3)²η² ≥ 0 with a = 1/3 + ξ, and |
| 177 | +k₀² ≥ (1−2τ)M. So |
| 178 | +Σs_t² ≥ (Σg_ts_t)²/Σg_t² ≥ h²(1 − (1/3+2ξ)η − 2τ − 2/M). |
| 179 | +By Lemma 3.2(ii), |
| 180 | +Σ_{d∉D}(1−d/h) ≤ (h² + hk₀ − Σs_t²)/(2h) ≤ h((1/6+ξ)η + τ + 1/M) + k₀/2. |
| 181 | +Next use h ≤ ηM and τ = η/λ. By (T4), ηM·(1/M) = η ≤ νη²M, and by (T3), |
| 182 | +k₀/2 < √M/2 ≤ νη²M/2. Together these give the claim. ∎ |
| 183 | + |
| 184 | +*Which obstacle this addresses.* The boundary term (1/6)η²M stays: it is the |
| 185 | +exact ramp constant. The excess over 1/6 shrinks from 1/30 (the paper's |
| 186 | +1/5 − 1/6) to ξ + 1/λ ≈ 0.0248. Most of that is (8/15)c_u/√λ, the uniformity |
| 187 | +error integrated against the ramp. |
| 188 | + |
| 189 | +**Lemma 4.3′ (bad set).** Let B(S) = {x ∈ [1,M]∖S : R_S(x) < ε₀√M} with |
| 190 | +ε₀ = 10^−4·η. Then the left half satisfies b_L ≤ (W·diag/(L² − W))·η√M, where |
| 191 | +L = 1/2 − ρ/λ − (2/3)c_u/√λ − ε₀/η − 2ν and |
| 192 | +diag = 1/2 + ρ/λ + (2/3)(c_u/√λ)(1 + (ρ/λ)(1+2ν))^{3/2}. |
| 193 | +Numerically, b_L ≤ 3.41804·η√M and |B(S)| ≤ 2b_L ≤ 6.8361·η√M. |
| 194 | + |
| 195 | +*Proof.* The definitions of w(d) = 1 − d/h, f(d) and the reflection step are the |
| 196 | +paper's. Changes: |
| 197 | + |
| 198 | +*Lower bound.* Σ_d w(d)f(d) = Σ_{x∈B_L}(1/h)Σ_{r=1}^{h−1}|S∩[x+1,x+r]|. Apply the |
| 199 | +lower bound of Lemma 4.1′ to each r. First, |
| 200 | +(1/h)Σ_r(r−h₀+1) ≥ (h−1)/2 − h₀ ≥ ηM(1/2 − ρ/λ) − 1 ≥ ηM(1/2 − ρ/λ − ν) |
| 201 | +(using h > ηM − 1, h₀ ≤ (ρ/λ)ηM and (T4)). Second, |
| 202 | +k₀/(M+h₀−1) ≥ (1−τ)/((1+τ)√M) ≥ (1−2τ)/√M. Third, |
| 203 | +(c_u√τ/h)Σ_{r=1}^{h−1}√r ≤ (c_u√τ/h)∫₁^h√s ds ≤ (2/3)c_u√(τh) ≤ (2/3)(c_u/√λ)η√M. |
| 204 | +The paper instead bounds √r by √h, which gives c_u in place of (2/3)c_u. |
| 205 | +Using (T5) for (1/2)·2τ ≤ ν, we get |
| 206 | +Σ_d w f ≥ (1/2 − ρ/λ − 2ν − (2/3)c_u/√λ)·b_Lη√M. The part with d ∈ D is |
| 207 | +< b_Lε₀√M = (ε₀/η)·b_Lη√M, exactly as in the paper. So |
| 208 | +Σ_{d∉D} w f ≥ L·b_Lη√M. |
| 209 | + |
| 210 | +*Weighted second moment.* Write wf = √w·(√w f). Cauchy–Schwarz gives |
| 211 | +(Σ_{d∉D}wf)² ≤ (Σ_{d∉D}w)(Σ_d w f²) ≤ Wη²M·Σ_d w(d)f(d)². The paper drops the weight |
| 212 | +here (w < 1). We keep it. |
| 213 | +- Diagonal x₁ = x₂ (so a₁ = a₂): Σ_{x∈B_L}Σ_{a∈S, 1≤a−x≤h−1} w(a−x) = |
| 214 | + Σ_x(1/h)Σ_{r=1}^{h−1}|S∩[x+1,x+r]|. By the upper bound of Lemma 4.1′, with |
| 215 | + k₀/(M+h₀−1) ≤ 1/√M, (1/h)Σ_r(r+h₀−1) ≤ h/2 + h₀ ≤ ηM(1/2 + ρ/λ), and |
| 216 | + Σ_{r=1}^{h−1}√(r+h₀−1) ≤ ∫_{h₀}^{h+h₀}√s ds ≤ (2/3)(h+h₀)^{3/2}, this is at most |
| 217 | + b_Lη√M·diag (using h₀/h ≤ (ρ/λ)(1+2ν)). The paper has 21/20: no weight, and |
| 218 | + √r bounded by √h. |
| 219 | +- Off-diagonal: w ≤ 1, and each ordered pair x₁ ≠ x₂ gives at most one (a₁,a₂), |
| 220 | + so ≤ b_L². (Same as the paper.) |
| 221 | + |
| 222 | +Hence (L b_Lη√M)² ≤ Wη²M(diag·b_Lη√M + b_L²), so (L²−W)b_L ≤ W·diag·η√M. ∎ |
| 223 | + |
| 224 | +*Constant-size check.* With ρ = 1, ε₀/η = 1/200, λ = 3600, c_u = 7/4, and the |
| 225 | +paper's cruder W, L and diag, the formula gives 0.21/0.0116 = 525/29, the |
| 226 | +paper's value. |
| 227 | + |
| 228 | +**Lemma 4.4′ (containers).** This is the paper's proof with ε₀ = 10^−4·η in place |
| 229 | +of η/200. Define q_M³ = 324 ln M/(ε₀√M) and t_M = ⌊2q_M√M⌋. Every Sidon S with |
| 230 | +|S| = k₀ lies in some C₁(T) ⊆ S ∪ B(S) with |T| ≤ t_M, so |
| 231 | +|C₁(T)| ≤ k₀ + 2b_L < √M(1 + 2λθ(b_L/(η√M))δ) ≤ (1+Kδ)√M. `constants.py` |
| 232 | +checks 2λθ·3.41804… ≤ K = 1753081/500. The family has size |
| 233 | +≤ exp(2t_M ln M) ≤ exp(4(324/ε₀)^{1/3}M^{1/3}(ln M)^{4/3}). (q_M < 1 and t_M ≥ 2 |
| 234 | +follow from (main).) The paper's simplification ln M ≤ 16M^{1/16} is not |
| 235 | +used; we keep (ln M)^{4/3}. |
| 236 | + |
| 237 | +## 5. Theorem A (proof of Theorem 1.1 with the new constants) |
| 238 | + |
| 239 | +Take c = 1 − γδ, θ = 1/2 + 2γ and M = ⌊N/(1−δ−δ²)⌋, as in the paper. |
| 240 | + |
| 241 | +*Step 1 (k₀ ≤ k).* The paper's P(δ) becomes |
| 242 | +P(δ) = (1−γδ)²(1−δ−δ²) − (1−θδ)². It is positive at δ = 2^−14493. This is |
| 243 | +checked exactly; to first order P ≈ δ(2θ − 1 − 2γ) = 2γδ. |
| 244 | + |
| 245 | +*Step 2.* P(Bad₁) < 1/4 by Chebyshev, exactly as in the paper, using (Bad1). |
| 246 | +For Bad₂, by Lemma 4.4′ and Proposition 3.3′, |
| 247 | +P(Bad₂) ≤ 2exp(4(324/ε₀)^{1/3}M^{1/3}(ln M)^{4/3} − δ²√M/2^18). |
| 248 | +Condition (main) says δ²√M/2^18 ≥ 8(324/ε₀)^{1/3}M^{1/3}(ln M)^{4/3}. So the |
| 249 | +exponent is ≤ −δ²√M/2^19, and P(Bad₂) ≤ 2e^{−δ²√M/2^19} < 1/2. |
| 250 | +Condition (main) is monotone because M^{1/6}/(ln M)^{4/3} increases for ln M > 8. |
| 251 | +`constants.py` solves it: log₂ M ≥ 203192. Then P(Bad₁) + P(Bad₂) < 1. The |
| 252 | +rest (choosing A of size exactly N, Corollaries 1.2–1.3) is verbatim. |
| 253 | + |
| 254 | +So ℓ(N) < (1 − γδ)√N = (1 − 2^−14501)√N for all N ≥ 2^203192. ∎ |
| 255 | + |
| 256 | +## 6. Comparison with the task's estimates, and the optimisation |
| 257 | + |
| 258 | +The task predicted K ≈ 18,300 (12,100 with c_u = √2), δ ≈ 2^−91000 (2^−60000), |
| 259 | +θ ≈ 0.55 and gap ≈ 0.40. We get K ≈ 3506 and δ = 2^−14493. Each change below is |
| 260 | +proved above: |
| 261 | + |
| 262 | +1. **c_u = √2(1+o(1))** (Lemma 4.1′), as the task proposed. |
| 263 | +2. **Exact integrals.** The uniformity error is integrated against the window |
| 264 | + profiles instead of being bounded by its maximum: |
| 265 | + - 2/3 in L and in diag (from ∫√r); |
| 266 | + - 8/15 in W (from the concave (h−u)√u). |
| 267 | + |
| 268 | + The task's formulas used the cruder factor 1 in each place. |
| 269 | +3. **Weighted diagonal** (task's suggestion): diag ≈ 1/2 + (2/3)c_u/√λ instead of 21/20. |
| 270 | +4. **ε₀/η = 10^−4** (task: → 0). This only enlarges N₀ through ε₀^{−1/3}. |
| 271 | +5. **Slacks.** θ − 1/2 = 2γ = 1/128, β = ε_ET = 1/256. So gap = 31/64 and |
| 272 | + θ/gap ≈ 1.048 (task: 0.55/0.40 ≈ 1.375). This trade costs only a factor |
| 273 | + 2^−8 in the final margin γδ and polynomial factors in N₀. |
| 274 | +6. **Transcript base e^{−δ}** together with Lemma 3.1′. Then |
| 275 | + log₂(1/δ) ≈ (2 + H(ε)/ln 2)/ε, which is the task's formula with β = ε. |
| 276 | + |
| 277 | +The optimum of 2λ·b_L/(η√M) over λ is at λ ≈ 1010 (scan in `constants.log`: |
| 278 | +2λb_L ≈ 6904). This is lower than the task's 4250, because the 2/3 and 8/15 |
| 279 | +factors shrink the 1/√λ terms relative to the 1/λ terms. The final margin is |
| 280 | +log₂(1/δ') ≈ 2K/gap + 8 ≈ 4·λ·b_L·θ/gap. |
| 281 | + |
| 282 | +## 7. Where this stops (honest limits) |
| 283 | + |
| 284 | +* **Not Lean-checked.** The paper's Lean proof fixes its own constants. Porting |
| 285 | + needs the interval-arithmetic checks (√, ln, H(ε)) redone in Lean, for example |
| 286 | + by rational bounds. |
| 287 | +* **N₀' is explicit but crude.** It is the solution of (main) with the stated |
| 288 | + constants. We made no attempt to optimise N₀' further, for example by a better |
| 289 | + fingerprint size or by replacing (ln M)^{4/3}. |
| 290 | +* **Remaining structural losses** that this note does not remove: |
| 291 | + - the factor 2 from the reflection step (B = left half + right half); |
| 292 | + - the off-diagonal bound b_L² with weight 1; |
| 293 | + - the rank factor r = 4 (log₂ 4 = 2 bits per unit ε) in the transcript; |
| 294 | + - the boundary constant 1/6, which is forced by the ramp profile g_t. |
| 295 | + |
| 296 | + Removing the 1/6 needs new ideas (task t-d375bf8cb8). The general transcript |
| 297 | + lemma cannot be replaced by a polynomial bound (t-9c666b0067); see |
| 298 | + t-fbb133d55e for the Sidon-specific route. |
| 299 | +* The slacks γ = β = ε_ET = 1/256 and ν = 10^−6 are convenient choices, not |
| 300 | + optimised. Even in the limit (θ/gap → 1) they could save at most about |
| 301 | + 4.6% of log₂(1/δ), that is, about 700 bits. |