| | @@ -0,0 +1,324 @@ |
| 1 | +# Verification of the weak-Sidon constant gap |
| 2 | + |
| 3 | +**The paper proof checks.** For every sufficiently large $N$ it gives an |
| 4 | +$N$-element set of positive integers whose largest weak Sidon subset has |
| 5 | +size strictly below $(1-\varepsilon)\sqrt N$, with |
| 6 | +$\varepsilon=2^{-(2^{16416}+3)}$. Every weak Sidon cover of the same set |
| 7 | +has more than $\sqrt N/(1-\varepsilon)$ members. The threshold in $N$ is |
| 8 | +existential. The verification below is on paper, with an exact arithmetic |
| 9 | +check of the constants. |
| 10 | + |
| 11 | +Line numbers refer to the proof introduced in commit `22181ce`. |
| 12 | +The comparison is with Shubham Milind Phal and Gemini, *An Upper Bound |
| 13 | +Below $\sqrt N$ for Guaranteed Sidon Subsets of $N$-Element Sets*. Lemma |
| 14 | +numbers refer to the offline copy of `paper/erdos_530.tex`, SHA-256 |
| 15 | +`ff6e73d70a14425b87947cd707c0c821590f04dcd820f6e643d4c9a2e3e3a930`. |
| 16 | +[Accepted proof](NOTES.md) · [Phal–Gemini paper](https://github.com/shubhamphal/erdos-530/blob/HEAD/paper/erdos_530.tex) |
| 17 | + |
| 18 | +## The convention and the questions (lines 3–33, checked) |
| 19 | + |
| 20 | +Alon and Erdős count unordered representations with distinct summands on |
| 21 | +p. 201. They ask there whether the guaranteed size $H_N$ is asymptotic |
| 22 | +to $\sqrt N$. Their proof on p. 202 uses four-element edges for |
| 23 | +collisions, and the covering question on p. 203 uses the same $B_2$ |
| 24 | +convention. In the integers, cancelling a shared summand shows that two |
| 25 | +different pairs of distinct elements with equal sums use four different |
| 26 | +elements. Thus a three-term progression is permitted. [Alon and Erdős, 1985, pp. 201–203](https://www.renyi.hu/~p_erdos/1985-07.pdf) |
| 27 | + |
| 28 | +Phal–Gemini's equation (1.1) also tests doubled summands, so their |
| 29 | +Theorem 1.1 and Corollary 1.3 use the strong convention, with saving |
| 30 | +$2^{-1050004}$ for $N\ge2^{29400300}$. |
| 31 | + |
| 32 | +## Repeated differences (lines 37–46, checked) |
| 33 | + |
| 34 | +For $d>0$ consider the edges $\{a,a+d\}$ in $S$. Disjoint edges with |
| 35 | +starts $a,b$ would give the forbidden equality $a+(b+d)=b+(a+d)$. |
| 36 | +In each residue class modulo $d$ the edges form a subgraph of a path. |
| 37 | +A pairwise intersecting family therefore has at most two edges. |
| 38 | +Two such edges form one progression of step $d$. Its midpoint determines |
| 39 | +its endpoint pair uniquely, since two different endpoint pairs would |
| 40 | +have the same sum. Assigning each repeated positive $d$ to its midpoint |
| 41 | +is consequently injective. This replaces unique nonzero differences in |
| 42 | +Phal–Gemini §2.1 by $r(d)\le2$ for $d\ne0$ and at most $2k$ signed |
| 43 | +differences of multiplicity two, counting both signs. For example, |
| 44 | +$\{1,2,3\}$ attains $r(1)=2$. |
| 45 | + |
| 46 | +## Window identities and the global size bound (lines 48–61, checked) |
| 47 | + |
| 48 | +Use all $L_h=M+h-1$ integer starts from $2-h$ to $M$. Each point |
| 49 | +contributes to $h$ windows and each ordered pair of difference $d$ to |
| 50 | +$a_h(d)=(h-|d|)_+$ windows, including pairs near either endpoint. |
| 51 | +Let $U_h$ be the total $a_h$-weight of missing nonzero signed differences |
| 52 | +and $E_h$ the total weight of signed differences occurring twice. Expanding |
| 53 | +the square and using $\sum_{d\ne0}a_h(d)=h(h-1)$ gives |
| 54 | + |
| 55 | +$$ |
| 56 | +\sum_t F_h(t)=hk,\qquad |
| 57 | +\sum_t F_h(t)^2=hk+h(h-1)-U_h+E_h\le h^2+3hk. |
| 58 | +$$ |
| 59 | + |
| 60 | +The extra term in Phal–Gemini Lemma 3.2(ii)'s identity is $E_h\le2hk$. |
| 61 | +Also $\binom{k}{2}=\sum_{d>0}r(d)\le2(M-1)$, so $k\le3\sqrt M$ for |
| 62 | +$M\ge1$. With $h=\lceil M^{3/4}\rceil$, Cauchy–Schwarz gives |
| 63 | + |
| 64 | +$$ |
| 65 | +k^2\le L_h(1+3k/h) |
| 66 | +\le (M+M^{3/4})(1+9M^{-1/4}) |
| 67 | +\le (\sqrt M+5M^{1/4})^2. |
| 68 | +$$ |
| 69 | + |
| 70 | +This supplies an absolute error constant in the weak version of Lemma |
| 71 | +3.2(iii), including for the largest weak Sidon subset of an arbitrary |
| 72 | +container inside $[M]$. |
| 73 | + |
| 74 | +## Subinterval estimates (lines 65–88, checked) |
| 75 | + |
| 76 | +Here $J=16384$, $\lambda_j=2^{12+j}$ for $0\le j<J$, |
| 77 | +$\Lambda=2^{16395}$, $K=32768\Lambda=2^{16410}$, and |
| 78 | +$0<\delta<1/(16\Lambda)$. Fix $\delta$ before letting $M$ increase. |
| 79 | +Put $k=\lceil(1-3\delta/4)\sqrt M\rceil$, $h=\lfloor\delta M\rfloor$ |
| 80 | +and $w=w_j=\lfloor\lambda_j\delta M\rfloor$. Uniformly in $j$, for large |
| 81 | +$M$ we have $h\ge1$, $h/w\le\delta M/w\le1/2048$ by $\lambda_0=4096$, |
| 82 | +and $w<M/16$. Rounding preserves disjoint bands because |
| 83 | +$w_{j+1}=\lfloor2\lambda_j\delta M\rfloor\ge2w_j$. |
| 84 | + |
| 85 | +The variance about $hk/L_h$ is at most $h^2(1-k^2/L_h)+3hk$. |
| 86 | +The first coefficient is at most |
| 87 | +$1-(1-3\delta/2)/(1+\delta)\le5\delta/2$. Also $k\le\sqrt M$ |
| 88 | +eventually and $h\ge\delta M/2$ eventually, so $3k/h\le\delta$ for |
| 89 | +large $M$. This gives the stated $4\delta h^2$ variance bound. |
| 90 | + |
| 91 | +For an interval $I$ of length $w$ in $[M]$, the $v_-=w-h+1$ windows |
| 92 | +wholly in $I$ contribute at most $h|S\cap I|$. The $v_+=w+h-1$ |
| 93 | +windows meeting $I$ contribute at least that much. All these starts |
| 94 | +are among the $L_h$ admissible ones. For either sum, Cauchy–Schwarz |
| 95 | +bounds its error about $v_\pm hk/L_h$ by $2h\sqrt{\delta v_\pm}$. |
| 96 | +Write $q=1/2048$. After division by $h$ and normalization by $w/\sqrt M$, |
| 97 | +the error is at most $2\sqrt{q(1+q)}<1/16$. The mean factor |
| 98 | +$k\sqrt M/L_h$ is at least $(1-3/64)/(1+1/16)=61/68>4/5$ and is |
| 99 | +eventually at most $1\le11/10$. Hence the normalized density lies between |
| 100 | + |
| 101 | +$$ |
| 102 | +(4/5)(1-q)-1/16=1887/2560>1/2 |
| 103 | +\quad\text{and}\quad |
| 104 | +(11/10)(1+q)+1/16=23819/20480<2. |
| 105 | +$$ |
| 106 | + |
| 107 | +This is the inner- and outer-window argument of Lemma 4.1 with the |
| 108 | +repeated-difference contribution included in the variance. |
| 109 | + |
| 110 | +## Missing differences (lines 90–102, checked) |
| 111 | + |
| 112 | +Take $H=4w$. The exact second moment above and its Cauchy–Schwarz lower |
| 113 | +bound $(Hk)^2/L_H$ yield |
| 114 | + |
| 115 | +$$ |
| 116 | +U_H\le H^2(1-k^2/L_H)+3Hk |
| 117 | + \le H^2(2\delta+H/M)+3Hk. |
| 118 | +$$ |
| 119 | + |
| 120 | +Indeed $k^2\ge(1-3\delta/2)M$ and $L_H\le M+H$. |
| 121 | +Each missing positive $d\in[w,2w-1]$ contributes $H-d\ge2w$. |
| 122 | +Dividing by $2w$ gives $16w\delta+32w^2/M+6k\le48w^2/M+6k$. |
| 123 | +Uniformly in the bands, $w\ge\delta M$ eventually, so $6k=o(w^2/M)$. |
| 124 | +This proves the advertised $128w^2/M$. Reversing ordered pairs gives |
| 125 | +the same bound for negative $d$. Lemma 4.2 in the strong proof controls |
| 126 | +a one-sided weighted sum at a single scale using a boundary weight. |
| 127 | +Here the coarser estimate is made separately at each of the disjoint |
| 128 | +scales. The later sum over those scales supplies the required margin. |
| 129 | + |
| 130 | +## Extensions and the band count (lines 104–146, checked) |
| 131 | + |
| 132 | +**Progressions at an outside point.** For $x\ne y$, the map |
| 133 | +$s\mapsto(2s-x,2s-y)$ injects $P_x\cap P_y$ into the representations |
| 134 | +of $y-x$, giving $|P_x\cap P_y|\le2$. For $b$ exceptional points with |
| 135 | +$|P_x|\ge T=w_0/(8\sqrt M)$, let $m_s$ count how many of their $P_x$ |
| 136 | +contain $s$. Then |
| 137 | + |
| 138 | +$$ |
| 139 | +(bT)^2\le k\sum_s m_s^2\le k\bigl(bk+2b(b-1)\bigr). |
| 140 | +$$ |
| 141 | + |
| 142 | +For $b>0$ this gives $b(T^2-2k)\le k^2$. Since $T/\sqrt M\to512\delta>0$, |
| 143 | +the denominator is eventually positive and the number of exceptions |
| 144 | +is $O_\delta(1)$ uniformly in $S$. This removes the new possibility |
| 145 | +of many representations arising solely from allowed progressions. |
| 146 | + |
| 147 | +**Represented and missing distances.** Take a remaining outside $x$ in |
| 148 | +the left half, allowing $x\le\lceil M/2\rceil$. The interval |
| 149 | +$[x+w,x+2w-1]$ lies in $[M]$. If $s$ is in this interval and |
| 150 | +$x-s=u-v$ with $u,v\in S$, then $x+v=s+u$. Here $u\ne v$ and $s=v$ |
| 151 | +would force $u=x\notin S$. The case $u=s$ gives $v=2s-x$, counted |
| 152 | +in $P_x$. Every other representation uses four distinct elements. |
| 153 | +For a point with fewer than $T/3$ conflict triples, at most $T$ |
| 154 | +choices of $s$ come from those triples and fewer than $T$ from $P_x$. |
| 155 | +The lower window bound leaves at least |
| 156 | +$w/(2\sqrt M)-2T\ge w/(4\sqrt M)$ choices of $s$ with $r(x-s)=0$. |
| 157 | +This counts choices of $s$, so multiple representations of one |
| 158 | +distance cause no overcount in the subtraction. |
| 159 | + |
| 160 | +**Off-diagonal collisions.** Let $B$ be the set of these low-conflict |
| 161 | +points on the left and $b=|B|>0$. For a missing $d=x-s$ in band $j$ |
| 162 | +write $n_d$ for its cross-pair count and $X_j=\sum n_d$. The window |
| 163 | +bounds give $wb/(4\sqrt M)\le X_j\le2wb/\sqrt M$. In particular the |
| 164 | +index set of missing distances is nonempty. Cauchy–Schwarz gives |
| 165 | + |
| 166 | +$$ |
| 167 | +D_j=\sum_d n_d(n_d-1) |
| 168 | + \ge \frac{X_j^2}{128w^2/M}-X_j |
| 169 | + \ge \frac{b^2}{2048}-\frac{2wb}{\sqrt M}. |
| 170 | +$$ |
| 171 | + |
| 172 | +An ordered collision $(x,s),(y,t)$ has $x\ne y$ and $s-t=x-y$. |
| 173 | +For a fixed ordered $(x,y)$ there are at most **two** choices of |
| 174 | +$(s,t)$ in all bands together. Each choice fixes $d=x-s$, and hence |
| 175 | +its band. Thus $\sum_j D_j\le2b(b-1)$. If |
| 176 | +$b\ge8192\Lambda\delta\sqrt M$, the loss $2wb/\sqrt M$ is at most |
| 177 | +$b^2/4096$. The sum over $J$ bands would be at least |
| 178 | +$(16384/4096)b^2=4b^2$, a contradiction. |
| 179 | + |
| 180 | +Reflect both $S$ and $x$ by $\phi(z)=M+1-z$ to bound the right half. |
| 181 | +Pair-sum equalities are preserved and |
| 182 | +$2\phi(s)-\phi(x)=\phi(2s-x)$, so both exception conditions are |
| 183 | +preserved as well. The two halves contribute less than |
| 184 | +$16384\Lambda\delta\sqrt M$ outside the $O_\delta(1)$ exceptions. |
| 185 | +The latter fit in the remaining $16384\Lambda\delta\sqrt M$ for all |
| 186 | +sufficiently large $M$. This proves the $K\delta\sqrt M$ extension |
| 187 | +bound. In Lemma 4.3 the analogous off-diagonal count is $b(b-1)$ by |
| 188 | +uniqueness of nonzero differences. Holding its other estimates fixed, |
| 189 | +the factor of two changes that lemma's single-scale margin from |
| 190 | +$(23/50)^2-1/5=29/2500$ to $(23/50)^2-2/5=-471/2500$. |
| 191 | + |
| 192 | +## Fingerprints and container count (lines 150–172, checked) |
| 193 | + |
| 194 | +Fix $x\notin S$ and $y\in S$. In a conflict where $x,y$ are on the |
| 195 | +same side, weak Sidonicity determines the other unordered pair of |
| 196 | +distinct elements from $x+y$. On opposite sides, the two remaining |
| 197 | +elements give an ordered difference $x-y\ne0$, with at most two |
| 198 | +possibilities. Thus $y$ has degree at most three in the family of |
| 199 | +conflict triples. This degree occurs already for $S=\{1,2,3,5\}$ and |
| 200 | +$x=4$. The vertex $2$ occurs in the three conflicts $1+4=2+3$, |
| 201 | +$2+4=1+5$ and $3+4=2+5$. Choosing a triple removes at most $3\cdot3=9$ |
| 202 | +triples intersecting it. From $T/3$ triples this gives at least |
| 203 | +$T/27$ pairwise disjoint ones. In Lemma 4.4 the corresponding degree |
| 204 | +is two and a fingerprint edge can have size two. Here each edge is a |
| 205 | +triple and only four-point equalities exclude $x$. Both $2x=a+b$ and |
| 206 | +$x+v=2s$ are allowed. |
| 207 | + |
| 208 | +For $p=M^{-1/12}$, disjoint triples are detected independently by a |
| 209 | +Bernoulli $p$-sample $R\subseteq S$. The probability of missing one |
| 210 | +specified high-conflict point is at most $(1-p^3)^{T/27}$. |
| 211 | +Multiplying by $M$ still gives $o(1)$ since |
| 212 | +$p^3T/27\sim(512\delta/27)M^{1/4}$. Markov bounds |
| 213 | +$\Pr(|R|>2pk)\le1/2$, so both requirements hold for some $R$. |
| 214 | +Every $s\in S$ passes the four-distinct-elements test defining $C(R)$. |
| 215 | +Every outside point retained by this choice belongs to the exception |
| 216 | +set, so $k\le|C(R)|\le k+K\delta\sqrt M$. |
| 217 | + |
| 218 | +With $t=\lfloor2pk\rfloor=O(M^{5/12})$, the deterministic list of all |
| 219 | +size-qualified containers has at most $(t+1)M^t$ members. Its logarithm |
| 220 | +is $O(M^{5/12}\log M)=o(\sqrt M)$. It covers every weak Sidon $k$-set |
| 221 | +before the random host is sampled. |
| 222 | + |
| 223 | +## Hitting-set deletion (lines 176–192, checked) |
| 224 | + |
| 225 | +At depth $i<\tau$, the $i$ distinct labels on the path cannot hit all |
| 226 | +edges. Branching on the first uncovered edge therefore gives at most |
| 227 | +four choices of a fresh vertex, using an edge order fixed before any |
| 228 | +deletions. If $T'$ is a minimum cover of the edges surviving deletion, |
| 229 | +$D\cup T'$ hits every original edge. There is a path of length $\tau$ |
| 230 | +using just these vertices, at least $\tau-|T'|=\tau-\tau_D$ of them |
| 231 | +in $D$. When $\tau<a$ the drop event is empty, including $\tau=0$. |
| 232 | +Otherwise on the event of a drop of at least $a$, some fixed path |
| 233 | +contains a deleted subset of size $\lceil a\rceil$. There are at most |
| 234 | +$4^\tau$ paths, at most $2^\tau$ subsets per path, and probability |
| 235 | +$\delta^{\lceil a\rceil}\le\delta^a$ per such subset. This proves |
| 236 | +$8^\tau\delta^a$. It also follows from the first, binomial-sum bound |
| 237 | +of Lemma 3.1 with rank four and $s=\tau-\lceil a\rceil$. |
| 238 | + |
| 239 | +## Host and single-container probabilities (lines 194–224, checked) |
| 240 | + |
| 241 | +Set $\delta=2^{-64K}$. Since $64K=2^{16416}>16410$, we have |
| 242 | +$\delta<1/(16\Lambda)$ and $K\delta<1$. With |
| 243 | +$M=\lceil N/(1-\delta-\delta^2)\rceil$, the expected retained size |
| 244 | +$(1-\delta)M$ is at least $N+\delta^2 M$. Hoeffding for the $M$ |
| 245 | +independent trials bounds the insufficient-size probability by |
| 246 | +$\exp(-2\delta^4M)$. Theorem 1.1 uses a floor for $M$ and a |
| 247 | +Chebyshev estimate for this event. |
| 248 | + |
| 249 | +For each fixed retained container, let $\alpha$ be its maximum weak |
| 250 | +Sidon subset size. The $\alpha<k$ case on line 201 has zero survival |
| 251 | +probability. In the other case $\alpha\ge k$. Put a hyperedge on each |
| 252 | +four-element collision. Weak Sidon subsets are exactly the independent |
| 253 | +sets, so $\tau=|C|-\alpha\le K\delta\sqrt M$, and after deletion the |
| 254 | +maximum is exactly $\alpha-|D|+\tau-\tau_D$. Proposition 3.3 uses |
| 255 | +edges of sizes three and four for the strong convention. Using only |
| 256 | +four-element collisions here makes this identity apply to the weak |
| 257 | +maximum, including when $C$ contains a three-term progression. |
| 258 | + |
| 259 | +For $a=\delta\sqrt M/16$ and $\tau\ge a$, the base-two logarithm of |
| 260 | +the drop bound is at most |
| 261 | +$3K\delta\sqrt M-64K(\delta\sqrt M/16)=-K\delta\sqrt M$. |
| 262 | +Also $\mathbb E|D|\ge\delta k$ exceeds $(7/8)\delta\sqrt M$ by |
| 263 | +at least $(1-3/64-7/8)\delta\sqrt M=(5/64)\delta\sqrt M>a$. |
| 264 | +Eventually $|C|\le2\sqrt M$, uniformly in $C$. Hoeffding bounds this |
| 265 | +lower-tail probability by $\exp(-2a^2/|C|)\le\exp(-\delta^2\sqrt M/256)$. |
| 266 | +Outside the two events the maximum is at most |
| 267 | + |
| 268 | +$$ |
| 269 | +\sqrt M+5M^{1/4}-(7/8-1/16)\delta\sqrt M |
| 270 | +<(1-3\delta/4)\sqrt M\le k |
| 271 | +$$ |
| 272 | + |
| 273 | +as soon as $5M^{1/4}<\delta\sqrt M/16$. Put |
| 274 | +$c=\min\{K\delta\log 2,\delta^2/256\}>0$. The probability of either |
| 275 | +an undersized host or a surviving weak Sidon $k$-set is at most |
| 276 | + |
| 277 | +$$ |
| 278 | +e^{-2\delta^4M}+2\exp\bigl(O(M^{5/12}\log M)-c\sqrt M\bigr)=o(1). |
| 279 | +$$ |
| 280 | + |
| 281 | +This union bound uses the deterministic container list, so overlaps |
| 282 | +among its members cause no dependence problem. Trimming a successful |
| 283 | +host to $N$ elements preserves the absence of a weak Sidon $k$-set. |
| 284 | + |
| 285 | +## Converting the gap and counting a cover (lines 226–238, checked) |
| 286 | + |
| 287 | +For $0<\delta\le1/16$ the exact square difference is |
| 288 | + |
| 289 | +$$ |
| 290 | +(1-\delta-\delta^2)-(1-9\delta/16)^2 |
| 291 | +=\delta(1/8-337\delta/256)\ge (175/4096)\delta>0. |
| 292 | +$$ |
| 293 | + |
| 294 | +Both sides of the square-root comparison are positive. Multiplying |
| 295 | +the resulting bound by $1-\delta/8$ gives a strict surplus because |
| 296 | + |
| 297 | +$$ |
| 298 | +(1-\delta/8)(1-9\delta/16)-(1-3\delta/4) |
| 299 | +=\delta/16+9\delta^2/128. |
| 300 | +$$ |
| 301 | + |
| 302 | +The ceiling in $M$ gives $N/M\to1-\delta-\delta^2$. The strict |
| 303 | +limiting surplus, multiplied by $\sqrt M$, eventually exceeds the |
| 304 | +rounding error of at most one in $k$. Thus $k\le(1-\delta/8)\sqrt N$. |
| 305 | +Every weak Sidon set of size at least $(1-\delta/8)\sqrt N$ would |
| 306 | +contain a weak Sidon $k$-subset. |
| 307 | +For a cover $S_1,\ldots,S_m$ of the constructed $A$, each intersection |
| 308 | +$A\cap S_i$ is weak Sidon. Since $N>0$, there is at least one member and |
| 309 | + |
| 310 | +$$ |
| 311 | +N\le\sum_{i=1}^m|A\cap S_i|<m(1-\delta/8)\sqrt N . |
| 312 | +$$ |
| 313 | + |
| 314 | +This proves the strict covering inequality, including covers with |
| 315 | +overlapping pieces or pieces extending outside $A$. It uses the |
| 316 | +heredity and counting step of Proposition 5.2 and Corollary 1.3. |
| 317 | +Listing $A$ in increasing order gives a sequence in the 1985 question. |
| 318 | +The fixed ratio $1/(1-\delta/8)>1$ contradicts the proposed |
| 319 | +$(1+o(1))\sqrt N$ cover size. |
| 320 | + |
| 321 | +The arithmetic can be reproduced offline from the repository root with |
| 322 | +`python3 experiments/erdos530/upper-weak/verify_constants.py`. The |
| 323 | +calculation uses integers and fractions. It compares dyadic powers by |
| 324 | +their exponents and stores $64K$ as a 16,417-bit integer. [Independent arithmetic check](verify_constants.py) |