| | @@ -0,0 +1,282 @@ |
| 1 | +# Smaller containers for near-extremal Sidon sets |
| 2 | + |
| 3 | +Write [M] for {1,…,M}. A Sidon set has distinct sums for distinct |
| 4 | +unordered pairs, with repeated summands allowed. In particular, each |
| 5 | +nonzero ordered difference determines at most one ordered pair. Indeed, |
| 6 | +a − b = c − d gives a + d = c + b, and the alternative to a = c and |
| 7 | +b = d would give a = b. |
| 8 | + |
| 9 | +**Theorem.** Let 0 < τ ≤ 1/1001 and let M be an integer with |
| 10 | +√M ≥ 10⁵/τ². There is a family of at most |
| 11 | +exp(O_τ(M^(1/3)(log M)^(4/3))) subsets of [M], each of size at most |
| 12 | +(1 + 3600τ)√M, that contains every Sidon subset of [M] of size at least |
| 13 | +(1 − τ)√M. Here containment means that a single member of the family |
| 14 | +contains the whole Sidon set. |
| 15 | + |
| 16 | +This proves STAB(1/1001, 3600) in the task's notation. The proof uses |
| 17 | +Phal and Gemini's sliding-window, missing-difference and fingerprint |
| 18 | +strategy. It uses the short-window variance directly against the two |
| 19 | +boundary profiles in a single inner product, and against a tent weight |
| 20 | +for the local lower bound. The mixed second moment counts its diagonal |
| 21 | +with the same weights as its first moment, which removes the need for a |
| 22 | +separate local upper bound. The boundary term 1/6 remains. The disjoint |
| 23 | +boundary profiles allow the long window to be almost M/2. |
| 24 | +[Phal–Gemini, paper §§3–4, especially the lemmas on sub-interval uniformity, weighted missing differences, and degree-one containers](https://github.com/shubhamphal/erdos-530/tree/42a01f6). |
| 25 | + |
| 26 | +The theorem and the percolation corollary below are paper proofs. |
| 27 | +The constants can be checked offline from the repository root with |
| 28 | +`python3 experiments/erdos530/upper-stability/check_constants.py`. |
| 29 | +The source used for comparison was the operator's offline copy of the |
| 30 | +Phal–Gemini paper. A broader literature check was unavailable. |
| 31 | + |
| 32 | +## Short-window variance |
| 33 | + |
| 34 | +Fix a Sidon set S of size k = ceil((1 − τ)√M). This gives |
| 35 | +(1 − τ)√M ≤ k ≤ √M because τ√M ≥ 1. Set |
| 36 | + |
| 37 | + L = floor(τM/100), h = floor(500τM), q = h/M. |
| 38 | + |
| 39 | +The hypotheses give τM ≥ 10⁴, L ≥ τM/200, h ≥ 1000, |
| 40 | +499τ ≤ q ≤ 500τ, and 2h + L < M, since (1000 + 1/100)τ < 1. |
| 41 | +In particular L/h ≤ 1/(100·499). |
| 42 | + |
| 43 | +For an integer w ≥ 1 write s_w(t) = |S ∩ [t,t+w−1]|, with t |
| 44 | +ranging from 2−w to M. Each element is in w windows, and two elements |
| 45 | +of positive difference d < w occur together in w−d windows. |
| 46 | +With D the positive differences of S, this gives |
| 47 | + |
| 48 | + Σ_t s_w(t) = wk, |
| 49 | + Σ_t s_w(t)² = wk + 2 Σ_{1≤d<w, d∈D} (w−d) ≤ wk + w². |
| 50 | + |
| 51 | +For w = L, put u_t = s_L(t), ρ = k/(M+L−1), and |
| 52 | +V = Σ_t (u_t−Lρ)². The two moment formulas imply |
| 53 | + |
| 54 | + V/L² ≤ 1 − k²/(M+L−1) + k/L |
| 55 | + ≤ (2 + 1/100)τ + 200/(τ√M) |
| 56 | + ≤ (2 + 1/100 + 1/500)τ < (71/50)² τ. |
| 57 | + |
| 58 | +For the second inequality use k² ≥ (1−2τ)M and L ≤ τM/100. |
| 59 | +Also, (1−2τ)/√M ≤ ρ ≤ k/M, since |
| 60 | +(1−τ)/(1+τ) ≥ 1−2τ. For any weight vector v on the short-window |
| 61 | +starts we have |
| 62 | + |
| 63 | + |(Σ_t v_t u_t)/L − ρ Σ_t v_t| ≤ (71/50)√(τ Σ_t v_t²). (1) |
| 64 | + |
| 65 | +## Long-window missing differences |
| 66 | + |
| 67 | +Put s_t = s_h(t), g_t = |[t,t+h−1] ∩ [M]|/h, and |
| 68 | +P = Σ_t (1−g_t)s_t. The overlap g is 1 on M−h+1 starts, with |
| 69 | +two ramps taking values j/h for 1 ≤ j < h. Thus |
| 70 | + |
| 71 | + Σ_t g_t² = M − h/3 + 1/(3h). |
| 72 | + |
| 73 | +Let φ(a)=M+1−a. The contribution of each a ∈ S to P is |
| 74 | +W(a)+W(φ(a)), where |
| 75 | + |
| 76 | + W(j) = (h−j)(h−j+1)/(2h) for 1 ≤ j < h, |
| 77 | + W(j) = 0 for j ≥ h. |
| 78 | + |
| 79 | +For j ≤ 0, extend W by W(1). To see the contribution formula, a |
| 80 | +left ramp whose overlap is [1,u] contributes 1−u/h if u ≥ a, and |
| 81 | +summing from u=a to h−1 gives W(a). The right ramp is the reflection. |
| 82 | + |
| 83 | +For 2−L ≤ t ≤ M define |
| 84 | +v_t = W(t) + W(M+2−L−t). If a belongs to the short window |
| 85 | +[t,t+L−1], then a ≥ t and φ(a) ≥ M+2−L−t. Monotonicity |
| 86 | +of W therefore gives W(a)+W(φ(a)) ≤ v_t. Each a belongs |
| 87 | +to L short windows, so P ≤ Σ_t v_t u_t/L. |
| 88 | + |
| 89 | +The two summands of v have disjoint positive supports. The first |
| 90 | +vanishes for t ≥ h and the second vanishes for t ≤ M+2−L−h. |
| 91 | +The inequality 2h+L < M gives the disjointness. For the first support, |
| 92 | +the sum over positive t is (h²−1)/6, by summing |
| 93 | +Σ_{j=1}^{h−1} Σ_{u=j}^{h−1}(1−u/h). The squared sum over positive t |
| 94 | +is at most h³/20, because |
| 95 | + |
| 96 | + Σ_{n=1}^{h−1} n²(n+1)²/(4h²) ≤ (∫₁^h z⁴ dz)/(4h²) ≤ h³/20. |
| 97 | + |
| 98 | +On each [n,n+1], expansion gives ∫ z⁴ dz ≥ n²(n+1)². |
| 99 | +The additional L−1 terms at nonpositive t each have size at most h/2. |
| 100 | +Reflecting gives the same bounds for the other support. Consequently |
| 101 | +Σ v_t ≤ h²/3 + Lh and Σ v_t² ≤ h³/10 + Lh²/2. Apply (1) and |
| 102 | +ρ ≤ k/M to get |
| 103 | + |
| 104 | + P/(hk) ≤ q/3 + L/M + (71/50)√(τh)/k · √(1/10 + L/(2h)). (2) |
| 105 | + |
| 106 | +Now let m = Σ_{1≤d<h, d∉D} (1−d/h). Nonnegativity of |
| 107 | +Σ_t (s_t − (hk/M)g_t)² and Σ_t s_t = hk give |
| 108 | + |
| 109 | + Σ_t s_t² ≥ (hk)²/M · (1 + q/3 − 1/(3hM) − 2P/(hk)). |
| 110 | + |
| 111 | +By the exact second moment with w = h, |
| 112 | +2hm = hk + h(h−1) − Σ_t s_t². Substituting (2) and using |
| 113 | +0 ≤ 1−k²/M ≤ 2τ, we obtain |
| 114 | + |
| 115 | + m/(h²/M) ≤ τ/q + 1/6 + L/h |
| 116 | + + (71/50)·√(τ/q)·√(1/10 + L/(2h))/(1−τ) |
| 117 | + + 1/(6h²) + kM/(2h²) |
| 118 | + < 189/1000. (3) |
| 119 | + |
| 120 | +Indeed the right side of the first inequality is at most |
| 121 | + |
| 122 | + 1/499 + 1/6 + 1/(100·499) |
| 123 | + + (71/50)·(1001/1000)·√((1/10 + 1/(200·499))/499) |
| 124 | + + 1/(6·1000²) + 1/(200000·499²), |
| 125 | + |
| 126 | +where the last term uses √M ≥ 10⁵/τ² and q ≥ 499τ. The |
| 127 | +rational check for the last strict inequality squares the radical |
| 128 | +after moving the other terms to the right. |
| 129 | + |
| 130 | +## Few points with few Sidon violations |
| 131 | + |
| 132 | +For x ∈ [1,ceil(M/2)] define |
| 133 | + |
| 134 | + F_x = Σ_{1≤d<h, x+d∈S} (1−d/h). |
| 135 | + |
| 136 | +The following short-window weights have support in the interval of |
| 137 | +short-window starts. Give start t=x+j−L+1 weight 1−j/h for |
| 138 | +L ≤ j < h and weight zero to all other starts. Its whole window |
| 139 | +lies in [x+1,x+j] ⊆ [M] because h < M/2. For any a in this |
| 140 | +window the weight is at most 1−(a−x)/h. Summation over starts and |
| 141 | +division by L therefore gives at most F_x. The weight sum is at |
| 142 | +least h/2−L, and the squared weight sum is at most h/3, by |
| 143 | +Σ_{j=1}^{h−1}(1−j/h)² = (h−1)(2h−1)/(6h). |
| 144 | +Applying (1) gives |
| 145 | + |
| 146 | + F_x/(h/√M) ≥ (1−2τ)(1/2−L/h) − (71/50)√(τ/(3q)) |
| 147 | + > 4621/10000. (4) |
| 148 | + |
| 149 | +For the last inequality, use τ ≤ 1/1001, q ≥ 499τ, and |
| 150 | +L/h ≤ 1/(100·499), then square the radical as in (3). |
| 151 | + |
| 152 | +Let R(x) count the ordered triples (a,b,c) ∈ S³ with a+b−c=x. |
| 153 | +Call x exceptional if x ∈ [M]∖S and R(x) < h/(10000√M). |
| 154 | +Let B consist of the exceptional points in the left half and put |
| 155 | +b = |B|. For 1 ≤ d < h set |
| 156 | +f(d)=|{(x,a) ∈ B × S : a−x=d}| and w_d=1−d/h. |
| 157 | +If d ∈ D, write d=u−v for its unique ordered pair in S². |
| 158 | +The pair (x,a) gives a triple (a,v,u) with a+v−u=x. For fixed |
| 159 | +x, different d give different triples because a=x+d. With (4) |
| 160 | +this gives |
| 161 | + |
| 162 | + T := Σ_{1≤d<h, d∉D} w_d f(d) ≥ (462/1000)·h b/√M. |
| 163 | + |
| 164 | +In the expansion of f(d)², equal x's force equal a's. The weighted |
| 165 | +contribution of these terms on the missing differences is exactly |
| 166 | +T. Each ordered pair of distinct x's contributes at most one |
| 167 | +solution across all d because a₁−a₂=x₁−x₂ uniquely fixes |
| 168 | +(a₁,a₂). The weights are at most one, so weighted Cauchy–Schwarz |
| 169 | +on the missing differences gives |
| 170 | + |
| 171 | + T² ≤ m Σ_{d∉D, 1≤d<h} w_d f(d)² ≤ m(T + b(b−1)). |
| 172 | + |
| 173 | +If b>0 then T>0, and the function t ↦ t²/(t+b²) increases |
| 174 | +for t>0. Use a=462/1000 and β=189/1000 in the last inequality |
| 175 | +and (3) to obtain |
| 176 | + |
| 177 | + (a h b/√M)² ≤ β(h²/M)·(a h b/√M + b²), |
| 178 | + b ≤ (βa/(a²−β))·h/√M. |
| 179 | + |
| 180 | +The bound holds for b=0 as well. Reflection preserves Sidon sets and |
| 181 | +R(x), and maps the right half outside the left half into the left half. |
| 182 | +Thus the entire exceptional set has size at most |
| 183 | +2βa h/((a²−β)√M) < 3600τ√M, since h ≤ 500τM and |
| 184 | +1000βa/(a²−β) < 3600. |
| 185 | + |
| 186 | +## Fingerprints |
| 187 | + |
| 188 | +For x outside S and the exceptional set, each triple counted by R(x) |
| 189 | +gives a subset {a,b,c} of S of size two or three that creates a |
| 190 | +Sidon violation when joined with x. In fact c differs from both a |
| 191 | +and b because x is outside S. At most 27 triples give one subset. |
| 192 | +Each vertex of S belongs to at most two of the subsets for this x. |
| 193 | +In the role c it fixes the unordered pair from the sum a+b=x+c. |
| 194 | +In either positive role, after swapping a and b if necessary, it |
| 195 | +fixes the other two elements by their nonzero ordered difference |
| 196 | +x−a. A maximal pairwise disjoint collection of the subsets meets |
| 197 | +every subset. Since each of its members has at most three vertices, |
| 198 | +each in at most two subsets, the collection has size at least |
| 199 | +R(x)/162 ≥ h/(1620000√M). |
| 200 | + |
| 201 | +Set L_* = h/(1620000√M). Include each element of S independently |
| 202 | +in a fingerprint U with probability p=min(1,(2 log M/L_*)^(1/3)). |
| 203 | +If p<1, the disjoint collection for any x gives probability at most |
| 204 | +(1−p³)^{L_*} ≤ M^(-2) that none of its members lies in U. The |
| 205 | +union bound for all x gives failure probability at most 1/M. |
| 206 | +By Markov's inequality the probability of |U|>2pk is at most 1/2, |
| 207 | +so some U of size at most 2pk excludes every such x. |
| 208 | +If p=1, U=S excludes them all and has size at most 2pk. |
| 209 | + |
| 210 | +The one-step extension container C(U) is the set of x ∈ [M] such |
| 211 | +that U∪{x} is Sidon. Thus S ⊆ C(U) ⊆ S∪{exceptional points} |
| 212 | +and |C(U)| ≤ (1+3600τ)√M. Take the family of these containers |
| 213 | +over all U ⊆ [M] with |U| ≤ floor(2p√M), retaining only those |
| 214 | +obeying the size bound. Since h ≥ 499τM, the fingerprint size |
| 215 | +is O_τ(M^(1/3)(log M)^(1/3)), and the sum of the binomial |
| 216 | +coefficients counting fingerprints is at most |
| 217 | +exp(O_τ(M^(1/3)(log M)^(4/3))). Finally, a larger Sidon set S' |
| 218 | +contains a k-element seed S. The U found for S also lies in S', |
| 219 | +so every x ∈ S' belongs to C(U). This proves the covering claim |
| 220 | +for the full range of sizes. |
| 221 | + |
| 222 | +## A stronger asymptotic upper bound for #530 |
| 223 | + |
| 224 | +**Corollary.** For all sufficiently large N there is an N-element |
| 225 | +subset of [2N] whose Sidon subsets all have size strictly below |
| 226 | +(1−2^(-8027))√N. In particular the same coefficient bounds the |
| 227 | +limsup of the guaranteed Sidon size divided by √N. |
| 228 | + |
| 229 | +Use δ=2^(-8020), τ=33δ/64 and keep each point of [M] |
| 230 | +independently with probability 1−δ. Apply the theorem with this |
| 231 | +fixed τ, and set B₀=3600·33/64. Each container has size |
| 232 | +n ≤ (1+B₀δ)√M. The aim is to bound the probability it retains a |
| 233 | +Sidon subset of size at least (1−τ)√M by exp(−Ω_δ(√M)). |
| 234 | + |
| 235 | +If n < (1−τ)√M, the event is impossible. For all remaining |
| 236 | +containers, the number |D| of deleted points in the container is |
| 237 | +at least (63/64)δn except with probability exp(−Ω_δ(√M)), |
| 238 | +by the binomial lower-tail bound. For instance the paper's |
| 239 | +finite-probability lemma gives exp(−(δ/64)² n/4). |
| 240 | +If n ≤ (1+δ/4)√M and |D| ≥ (63/64)δn, the number of survivors |
| 241 | +is at most (1−47δ/64)√M < (1−τ)√M. |
| 242 | + |
| 243 | +Suppose now n > (1+δ/4)√M. Form the hypergraph on the container |
| 244 | +whose edges are the supports of equal-sum violations. Its rank |
| 245 | +is at most four and its independent sets are the Sidon subsets. |
| 246 | +Every transversal has size at least |
| 247 | +t = n − floor(√M+2M^(1/4)), by Phal–Gemini's window bound. |
| 248 | +For sufficiently large M, we have 2M^(1/4) ≤ (δ/256)√M, so |
| 249 | +t ≥ (1/4−1/256)δ√M > 0. Also t ≤ B₀δ√M. |
| 250 | + |
| 251 | +If |D| ≥ (63/64)δn and a Sidon subset of the proposed size survives, |
| 252 | +the remaining hypergraph has a transversal of size at most |
| 253 | + |
| 254 | + s = floor(n − (63/64)δn − (1−τ)√M). |
| 255 | + |
| 256 | +For s<0 the event is impossible. Otherwise, |
| 257 | + |
| 258 | + t − s ≥ (63/64)δn − (τ+δ/256)√M |
| 259 | + ≥ (119/256)δ√M ≥ t/4000, |
| 260 | + |
| 261 | +using 4000·119/256 > B₀. The transcript bound with rank four and |
| 262 | +ε=1/4000 gives probability at most |
| 263 | +[4(4000eδ)^(1/4000)]^t for this drop. Since 4000e < 2^14, the |
| 264 | +base is at most 2^(-6/4000). This proves the required exponential |
| 265 | +decay, including the small-probability event for |D|. |
| 266 | +[Phal–Gemini, finite-probability, window and hitting-set transcript lemmas in §§2–3](https://github.com/shubhamphal/erdos-530/tree/42a01f6). |
| 267 | + |
| 268 | +The union bound over exp(o(√M)) containers shows that the |
| 269 | +probability of retaining any Sidon set of size at least |
| 270 | +(1−τ)√M tends to zero. Take M=floor(N/(1−δ−δ²)), which is |
| 271 | +at most 2N. The expected size of the retained set exceeds N by |
| 272 | +Ω_δ(N), and its variance is at most M, so Chebyshev's inequality |
| 273 | +shows that it has size at least N with probability tending to one. |
| 274 | +Trim to N points. With c = 1−δ/128, we have |
| 275 | +c²(1−δ−δ²) ≥ 1−65δ/64−δ² > (1−33δ/64)², because δ<1/128. |
| 276 | +Since N ≥ (1−δ−δ²)M, this implies |
| 277 | +c√N > (1−τ)√M. The trimmed set has no Sidon subset of size |
| 278 | +at least that smaller threshold, proving the corollary. |
| 279 | + |
| 280 | +The deletion step uses the rank-four transcript bound. The coefficient |
| 281 | +and deficit range proved here still leave a gap to the task's target |
| 282 | +regime of percent-level deficits. |