2 Sidon sets and elementary foundations
For an additive commutative monoid \(M\), a set \(S\subseteq M\) is Sidon if \(a+b=c+d\) with \(a,b,c,d\in S\) implies \(\{ a,b\} =\{ c,d\} \).
The empty set is Sidon.
Any four membership hypotheses include an element of the empty set, a contradiction. The defining implication follows.
Every singleton is Sidon.
Membership forces each element to equal the singleton’s element. Substitution makes the required unordered-pair equality reflexive.
If \(S\) is Sidon and \(T\subseteq S\), then \(T\) is Sidon.
Use the inclusion on the four membership hypotheses, then apply the defining implication for \(S\) to the same sum equality.
In an additive commutative group, \(S\) is Sidon if and only if \(a,b,c,d\in S\), \(a\ne b\), \(a-b=c-d\) imply \(a=c\) and \(b=d\).
Rewrite the difference equality as \(a+d=c+b\). The Sidon condition gives \(\{ a,d\} =\{ c,b\} \), so \(a=c\) or \(a=b\). Exclude the second case and cancel in the difference equality to obtain \(b=d\). Conversely, suppose \(a+b=c+d\). If \(a=c\), cancellation gives \(b=d\). Otherwise rewrite as \(a-c=d-b\) and use difference uniqueness on \((a,c)\) and \((d,b)\) to obtain \(a=d\) and \(c=b\). Both cases give the required unordered-pair equality. Finally \(a-b\ne 0\) is equivalent to \(a\ne b\), identifying this with the paper’s unique-nonzero-difference definition. No torsion assumption is used.
For Sidon \(S\) in a finite additive commutative group \(M\), \(|S|(|S|-1)\leq |M|\). In fact \(|S|(|S|-1)\leq |M|-1\). The first declaration gives the weaker bound; the refinement is checked as IsSidonSet.card_sq_sub_card_le_card_sub_one.
\(S^2\) has \(m^2\) pairs and its diagonal has \(m\) pairs, so its off-diagonal has \(m^2-m=m(m-1)\) pairs, also when \(m=0\). The difference map on that off-diagonal is injective by Lemma 8, and takes values in \(M\setminus \{ 0\} \). The latter has \(|M|-1\) elements, since \(M\) contains zero. Finite injectivity proves the refined bound and hence the weaker one.
For \(n\geq 1\) and Sidon \(S\subseteq \mathbb Z/n\mathbb Z\), \(|S|(|S|-1)\leq n\).
For \(n\ne 0\), \(\mathbb Z/n\mathbb Z\) has \(n\) elements. Substitute this cardinality into the finite group bound.
For integers \(u\ne 0\) and \(v\), the set \(uS+v\) is Sidon whenever \(S\subseteq \mathbb Z\) is Sidon. Finite such images have cardinality \(|S|\).
Choose four preimages for a sum equality in the image. Expanding and canceling \(2v\) and then the nonzero factor \(u\) gives a sum equality in \(S\). Apply the Sidon condition and take the image of the resulting unordered-pair equality. If \(ua+v=ub+v\), cancel \(v\) and \(u\) to get \(a=b\). Thus the map is injective and preserves finite cardinality.
A Sidon subset of an integer interval of length \(L\geq 1\) has at most \(2\sqrt L\) elements. At \(L=0\) it is empty.
The \(m(m-1)\) distinct nonzero ordered differences lie among \(\{ -(L-1),\ldots ,-1,1,\ldots ,L-1\} \), giving \(m(m-1)\leq 2(L-1)\). If \(m{\gt}2\sqrt L\), then \(\sqrt L\geq 1\) gives \(m(m-1){\gt}2\sqrt L(2\sqrt L-1)\geq 2L{\gt}2(L-1)\), a contradiction. An interval of length zero is empty. This bound alone suffices for the Fourier theorem’s boundary terms.
Let \(L=\lfloor (N-1)/2\rfloor \) and \(S_0\subseteq [L]\) be Sidon. Then \(S=2S_0+1\subseteq [N]\) is Sidon, \(|S|=|S_0|\), and it has no solution to \(x_1+x_2+x_3+x_4=x_5\). If \(|S_0|=\sqrt L(1+o(1))\), then \(|S|=\sqrt{N/2}(1+o(1))\) as \(N\to \infty \).
Use the affine lemma. For \(1\leq x\leq L\), \(1\leq 2x+1\leq 2L+1\leq N\). Every image element is odd, but a sum of four odd integers is even. Reduction modulo two rules out the equation. The floor bound gives \(L/N\to 1/2\); continuity of square root gives \(\sqrt{L/N}\to 1/\sqrt2\). Multiply by \(|S_0|/\sqrt L\to 1\). The existence of asymptotically optimal \(S_0\) is the same external construction input as in Corollary 2.