3 Finite Fourier uniformity and size bounds
This chapter expands Sections 2 and 6 and Appendix A of the Ortega–Prendiville paper. The estimates below use explicit constants to make the dependencies of the asymptotic notation inspectable. The new results in this chapter are informal proof specifications; they are not marked as Lean-verified. The interval estimate attributed to Cilleruelo is proved here from a finite variance identity, so the sharper Fourier estimate has no remaining external interval-discrepancy prerequisite.
3.1 Finite sums, correlations, and the averaging kernel
Let \(N\) be a positive integer and write \(J_N=\{ n\in \mathbb Z:1\leq n\leq N\} \). All cardinalities in real inequalities are coerced to \(\mathbb R\). A finitely supported function \(f:\mathbb Z\to \mathbb C\) has transform
Each displayed sum over \(\mathbb Z\) below has finitely many nonzero terms. In particular, rearrangements never require an infinite-series convergence argument. For two such functions put
For a finite \(S\subset \mathbb Z\), put \(r_S(h)=\# \{ (x,y)\in S\times S:y-x=h\} \) and \(D_S=\{ y-x:x,y\in S\} \). Thus \(C_{1_S}(h)=r_S(h)\), with the integer on the right regarded as a real or complex number as appropriate.
Let \(S\) be a Sidon subset of an additive commutative group. If \(x,y,u,v\in S\), \(x\ne y\), and \(y-x=v-u\), then \(x=u\) and \(y=v\). Consequently, for a finite Sidon set,
The difference equality gives \(y+u=v+x\). The Sidon property gives \(\{ y,u\} =\{ v,x\} \). Since \(y\) belongs to the set on the right, either \(y=v\) or \(y=x\). The latter alternative contradicts \(x\ne y\), so \(y=v\). Cancellation in the original equality then gives \(x=u\). The pairs with difference zero are exactly \((x,x)\) with \(x\in S\); the map \(x\mapsto (x,x)\) is a bijection onto that fibre. A nonzero fibre has at most one member by the argument just given, and has at least one member precisely when its index lies in \(D_S\). Conversely, nonzero-difference uniqueness implies the Sidon property: from \(a+b=c+d\), either \(a=c\) and cancellation gives \(b=d\), or \(a-c=d-b\ne 0\) and difference uniqueness gives \(a=d\), \(c=b\). This also records the equivalence of the paper’s definition with the repository’s definition.
For an integer \(H\geq 1\), define
The first formula is the preferred definition for finite-sum proofs. If a real parameter \(T\geq 1\) is used, the paper’s \(\mu _T\) is exactly this kernel with \(H=\lfloor T\rfloor \).
For \(H\geq 1\), the kernel is nonnegative and even, is zero unless \(|h|{\lt}H\), and satisfies
For any function \(A\) on the difference interval,
For \(0\leq h{\lt}H\), the choices are \(u=1,\ldots ,H-h\) with \(v=u+h\), so there are \(H-h\) pairs. If \(h\geq H\) there are none. The involution \((u,v)\mapsto (v,u)\) treats negative \(h\) and proves evenness. For \(h=0\) the \(H\) pairs are \((u,u)\), giving \(1/H\). Partition \(J_H^2\) into the disjoint fibres of \((u,v)\mapsto v-u\); there are \(H^2\) pairs in total. Summing over those fibres proves both the mass-one identity and the weighted-sum identity. On the support, \(|h|{\lt}H\), so \(|h|\leq H\) and \(\sqrt{|h|}\leq \sqrt H\). Multiply these pointwise inequalities by the nonnegative weights and use their total mass one. These arguments also apply when \(H=1\): the kernel then has its sole nonzero value at zero.
Let \(N,H\geq 1\) be integers and let \(\operatorname {supp}(f)\subset J_N\). Then
The weighted correlation sum is real and nonnegative. No hypothesis \(H\leq N\) is needed. For every \(\alpha \in \mathbb R/\mathbb Z\) one also has
Set \(G(x)=H^{-1}\sum _{u=1}^H f(x+u)\). For every fixed \(u\), the translation \(x\mapsto x+u\) is a bijection of \(\mathbb Z\), so \(\sum _xG(x)=\sum _xf(x)\). If \(G(x)\ne 0\), at least one summand is nonzero. For its index \(u\) one has \(1\leq x+u\leq N\), and therefore \(1-H\leq x\leq N-1\). This integer interval has \(N+H-1\) elements. Complex Cauchy–Schwarz on that interval gives
Expand the square and interchange finite sums. In a term with indices \(u,v\), set \(y=x+u\) and \(h=v-u\). This gives
The left side is real and nonnegative; taking real parts gives the asserted real identity and the first inequality. Equivalently, \(C_f(-h)=\overline{C_f(h)}\) and the kernel’s evenness pair the nonzero indices, while \(C_f(0)=\sum _x|f(x)|^2\) is real.
For the Fourier inequality apply the first assertion to \(f_\alpha (x)=f(x)e(\alpha x)\). The character is well-defined on \(\mathbb R/\mathbb Z\), satisfies \(|e(\alpha h)|=1\), and gives \(C_{f_\alpha }(h)=e(-\alpha h)C_f(h)\). Hence \(\operatorname {Re} C_{f_\alpha }(h)\leq |C_f(h)|\) at every \(h\). Multiply by \(\mu _H(h)\geq 0\), sum, and use \(N+H{\gt}0\).
3.2 Appendix A: an explicit interval size bound
If \(x,b,c\geq 0\) and \(x^2\leq bx+c\), then \(x\leq b+\sqrt c\).
Suppose instead that \(x{\gt}b+\sqrt c\). Then \(x{\gt}\sqrt c\) and \(x-b{\gt}\sqrt c\). If \(c{\gt}0\), multiplying these strict inequalities gives \(x(x-b){\gt}c\). If \(c=0\), both factors are positive and yield the same conclusion. This contradicts \(x(x-b)\leq c\).
Let \(a\in \mathbb Z\), \(N\geq 1\), and let \(S\subset \{ a+1,\ldots ,a+N\} \) be Sidon. Then
For \(N=0\), the interval and \(S\) are empty and the same statement holds directly.
Translation by \(-a\) is injective, preserves cardinality and equality of sums, and sends the interval to \(J_N\). It is therefore enough to treat \(S\subset J_N\). Put \(m=|S|\) and fix any integer \(H\geq 1\). Apply van der Corput to \(1_S\). Separate \(h=0\), where \(r_S(0)=m\), from \(h\ne 0\), where \(0\leq r_S(h)\leq 1\):
Both coefficients on the last line are nonnegative. The preceding lemma gives
For the second inequality, the nonnegative number \(\sqrt N+H/\sqrt N\) has square \(N+2H+H^2/N\geq N+H\); monotonicity of the square on nonnegative reals justifies the square-root comparison.
Take \(H=\lceil N^{3/4}\rceil \). It is a positive integer and \(N^{3/4}\leq H\leq N^{3/4}+1\). Since \(N\geq 1\),
Their sum gives the stated error \(4N^{1/4}\). Finally \(N^{1/4}\leq \sqrt N\), proving the coarser bound \(5\sqrt N\). In fact \(H\leq N\): the integer \(N\) is an upper bound for \(N^{3/4}\), and hence also for its ceiling. The unrestricted-window form of van der Corput does not need this extra observation.
If \(S\) is Sidon and \(I\) is an interval consisting of \(L\) consecutive integers, then \(|S\cap I|\leq 5\sqrt L\).
If \(L=0\), then \(I\) and \(S\cap I\) are empty. If \(L\geq 1\), the subset \(S\cap I\) is Sidon and the preceding theorem applied to its containing interval gives the claim.
3.3 Section 2: the four correlation errors
If \(S\subset J_N\) is Sidon, \(m=|S|\), and \(H\geq 1\), then
The exact identity \(\sum _h\mu _H(h)r_S(h)=m/H+W\) follows by separating zero and using difference uniqueness at all nonzero indices. Van der Corput applied to \(1_S\) yields \(m^2\leq (N+H)(m/H+W)\); divide by the positive number \(N+H\).
For completeness, the convolution proof in the paper is the same finite counting identity in a different order. Let \(c(t)=\# \{ (s,u)\in S\times J_H:s+u=t\} \). Expanding both sides shows
Indeed, the left side counts quadruples with \(s_2-s_1=u_2-u_1\), equivalently \(s_1+u_2=s_2+u_1\); pairing \((s_1,u_2)\) and \((s_2,u_1)\) identifies these with the pairs counted on the right. Also \(\sum _t c(t)=mH\), and \(c\) is supported on \(\{ 2,\ldots ,N+H\} \), of size \(N+H-1\). Real Cauchy–Schwarz gives \(\sum _t c(t)^2\geq (mH)^2/(N+H)\). Dividing by \(H^2\) proves the same lower bound for \(\sum _h\mu _H(h)r_S(h)\), and subtracting its zero contribution gives the result.
Let \(S\subset J_N\) be Sidon, set
For \(1\leq H\leq N\) and \(i,j\in \{ 1,2\} \), put
The functions \(f_i\) are real-valued. In complex Fourier formulas they are understood through the canonical embedding into \(\mathbb C\).
One has
Only \(|h|{\lt}H\leq N\) contributes. When \(0\leq h{\lt}N\), the intersection \(J_N\cap (J_N-h)\) is \(\{ 1,\ldots ,N-h\} \); for negative \(h\) its cardinality is \(N-|h|\) by translation, or by the substitution \(x\mapsto x+h\). Therefore
The first bound follows from the kernel’s first-moment bound.
Define \(I_h=J_N\setminus (J_N-h)\). It is empty for \(h=0\). For \(0{\lt}h{\lt}N\) it is \(\{ N-h+1,\ldots ,N\} \); for \(-N{\lt}h{\lt}0\) it is \(\{ 1,\ldots ,-h\} \). Thus it is an interval of \(|h|\) integers, including the empty-interval convention at zero. Since \(S\subset J_N\),
Here the absolute value can be removed because the difference is nonnegative. Average with \(\mu _H\) and use its square-root-moment bound. Finally substitution \(y=x+h\) gives \(C_{21}(h)=C_{12}(-h)\). Change \(h\) to \(-h\) in the finite sum and use evenness of \(\mu _H\) to obtain \(E_{21}=E_{12}\).
The remaining error satisfies
For \(h\ne 0\), put \(r=r_S(h)\in \{ 0,1\} \). If \(r=1\) then \(|b-r|=A\); if \(r=0\) then \(|b-r|=b\leq 1+A\). Both cases are summarized by \(|b-r|\leq 1-r+A\). At zero, \(C_{11}(0)=m\), and \(m\leq N\) because \(S\subset J_N\). Consequently \(b=m^2/N\leq m\), and \(\mu _H(0)|b-C_{11}(0)|=(m-b)/H\leq m/H\). This contribution is essential: the estimate for nonzero \(h\) cannot be applied to the diagonal.
Summing the nonzero estimate, and using total mass one, gives
Finally
because \(1-b\leq |1-b|\) and \(N+H\geq N{\gt}0\). Substitute this into the preceding inequality.
For every integer \(1\leq H\leq N\) and every frequency \(\alpha \),
The size bound gives \(0\leq q\leq 5\), so \(A=|q^2-1|=|q-1|(q+1)\leq 6\delta \). It also gives \(m^2\leq 25N\). The previous two lemmas therefore give
Since \(0\leq H/N\leq 1\), one has \(H/N\leq \sqrt{H/N}\). Thus the right side is at most \(12\delta +10\sqrt N/H+100\sqrt{H/N}\).
Expanding the real correlation of \(f=f_1-f_2\) gives \(C_f=C_{11}-C_{12}-C_{21}+C_{22}\). Insert \(b-b-b+b=0\) and use the triangle inequality to bound \(|C_f(h)|\) by the sum of the four quantities \(|C_{ij}(h)-b|\). Average this inequality with the nonnegative kernel, apply the Fourier form of van der Corput, and use \(N+H\leq 2N\). Multiplication by \(2N\) gives the asserted constants.
If \(N\geq 1\) and \(0\leq \theta \leq 1\), then \(H=\lfloor N^\theta \rfloor \) satisfies
First \(1\leq N^\theta \leq N\) by monotonicity of real powers with base at least one. If \(1\leq x{\lt}2\), then \(\lfloor x\rfloor =1\) and hence \(\lfloor x\rfloor \geq x/2\). If \(x\geq 2\), then \(\lfloor x\rfloor {\gt}x-1\geq x/2\). Apply these observations to \(x=N^\theta \). The upper bound \(H\leq N\) follows because \(H\leq N^\theta \leq N\).
For every \(N\geq 1\) and every Sidon \(S\subset J_N\),
Take \(H=\lfloor N^{2/3}\rfloor \). The rounding lemma gives \(H\geq \frac12N^{2/3}\) and \(H\leq N^{2/3}\), so
The master bound consequently gives, at every frequency,
Every term on the last line is nonnegative. Taking square roots, using \(\sqrt{240}\leq 16\), proves the pointwise bound. Linearity of the finite Fourier sum identifies \(\widehat f\) with the displayed difference. This finite sum of continuous characters is a continuous function on the compact circle, so its absolute value attains a finite maximum. Taking that maximum preserves a bound independent of \(\alpha \). Alternatively the pointwise bound and the least-upper-bound property give the same supremum estimate. Empty \(S\) causes no divisions by \(|S|\) and is included; \(N=1\) is included by \(H=1\).
3.4 The Cilleruelo interval estimate, with a full finite proof
The original article invokes an interval-discrepancy theorem from J. Cilleruelo, Gaps in dense Sidon sets, Integers 0 (2000), A11. The following proof supplies that input. Its finite-window variance is the one used by Cilleruelo. For the lower bound we use contracted windows, which avoid an additional estimate for boundary intervals. Constants are not optimized. This proof concerns intervals of integer points; an interval contained in \(J_N\) is represented by its consecutive integer endpoints, so no real-endpoint rounding errors are hidden.
For integers \(N,H\geq 1\) and \(S\subset J_N\), write \(m=|S|\), \(T=N+H-1\), and
In the present section put \(\lambda =\max (0,1-m/\sqrt N)\) and \(R=1+\sqrt\lambda \, N^{1/8}\). The denominator \(T\) is positive because \(N,H\geq 1\).
For a Sidon \(S\subset J_N\) one has
and consequently
For a fixed \(s\in S\), the indices \(t\) counted by \(c_H(t)\) are exactly \(s,s+1,\ldots ,s+H-1\). All these \(H\) indices lie in \(J_T\), since \(1\leq s\leq N\). Interchanging the finite sums therefore gives \(\sum _{t=1}^T c_H(t)=Hm\). For an ordered pair \(s_1,s_2\in S\), the number of indices counted by both windows is \(\max (H-|s_2-s_1|,0)\): it is the size of the intersection of their two length-\(H\) intervals. The \(m\) equal pairs contribute \(Hm\) to \(\sum _t c_H(t)^2\). For every \(1\leq h{\lt}H\), there are \(r_S(h)\) pairs with difference \(h\) and, by swapping the pair, the same number with difference \(-h\); each contributes \(H-h\). This proves the second-moment formula. Expanding the square in \(V_H\), using \(\sum _t c_H(t)=Hm\), \(|J_T|=T\), and \(v=Hm/T\), subtracts exactly \(H^2m^2/T\) and proves the identity.
Every nonzero difference has at most one representation, so
The finite arithmetic sum used here is \(2\sum _{h=1}^{H-1}(H-h)=H(H-1)\); at \(H=1\) both sides are zero. Put \(q=m/\sqrt N\geq 0\). If \(q\geq 1\), then \(N-m^2\leq 0=2N\lambda \). If \(q\leq 1\), then \(1-q^2=(1-q)(1+q)\leq 2(1-q)=2\lambda \), which again gives \(N-m^2\leq 2N\lambda \). As \(T\geq N{\gt}0\) and \(H-1\geq 0\),
Finally \(m\leq 5\sqrt N\) by the size bound. Substitution proves the asserted upper bound; nonnegativity follows directly from the definition as a sum of squares.
For \(H=\lfloor N^{3/4}\rfloor \) one has
Use \(H\leq N^{3/4}\) term by term in the variance bound:
The inequality \(6+2a^2\leq 9(1+a)^2\) follows because their difference is \(3+18a+7a^2\geq 0\). Taking nonnegative square roots gives the first claim. Divide by \(H\geq \frac12N^{3/4}{\gt}0\) for the second claim. The last follows from \(H\leq N^{3/4}\) and \(m\leq 5\sqrt N\).
Keep the same backward count \(c_H(t)\), but put \(\widetilde T=N+H\), \(\widetilde v=Hm/\widetilde T\), and
The last count \(c_H(N+H)\) is zero because its entire window lies strictly above \(N\). The additional index changes the centering; the following checked result records this convention explicitly.
The padded counts satisfy
For \(H=\lfloor N^{3/4}\rfloor \) this gives
Interchange the finite point and shift sums for the first moment. Expand the square and group pairs by their difference for the second moment. The variance identity follows by expanding its defining square and substituting the first moment. The same bound \(N-m^2\leq 2N\lambda \) as above, now with denominator \(N+H\), gives \(1-m^2/(N+H)\leq 2\lambda +H/N\). Also the nonzero-difference bound gives \(\sum _h\mu _H(h)r_S(h)\leq 1+m/H\). Substitute these facts into the variance identity and use \(m\leq 5\sqrt N\). The optimization is the same polynomial inequality \(6+2a^2\leq 9(1+a)^2\) and floor estimate used above.
One may take the absolute constant \(C_{\mathrm C}=16\) such that, for every \(N\geq 1\), every Sidon \(S\subset J_N\), and every interval \(I\subset J_N\) of \(L\) integers,
An empty \(I\) has zero discrepancy, so suppose \(I\) is nonempty. It has the form \(I=\{ a+1,\ldots ,b\} \) with integer \(0\leq a{\lt}b\leq N\) and \(L=b-a\). Set \(k=|S\cap I|\) and take \(H=\lfloor N^{3/4}\rfloor \). In the variance notation write \(d(t)=c_H(t)-v\) and put \(B=N^{1/4}+\sqrt L\, N^{-1/8}\). Thus \(R\geq 1\) and \(B{\gt}0\).
For the upper bound use the expanded interval \(U=\{ a+1,\ldots ,b+H-1\} \subset J_T\), of size \(L+H-1\). Every \(s\in S\cap I\) contributes all its \(H\) indices \(s,\ldots ,s+H-1\) to \(\sum _{t\in U}c_H(t)\); other contributions are nonnegative. Hence
Subtract \(HLm/N\) and divide by \(H{\gt}0\). The deterministic term is
using \(0\leq L\leq N\) and \(T\geq N\). Finite Cauchy–Schwarz and \(U\subset J_T\) give
Here \(\sqrt{L+H-1}\leq \sqrt L+\sqrt H\) follows by squaring nonnegative quantities, and \(\sqrt H\leq N^{3/8}\). Combining these bounds gives \(k-Lm/N\leq 5N^{1/4}+6BR\leq 11BR\).
For the lower bound, if \(L{\lt}H-1\), use \(k\geq 0\) and \(Lm/N\leq Hm/N\leq 5N^{1/4}\leq 11BR\). In the remaining case \(L\geq H-1\), use the contracted interval \(W=\{ a+H,\ldots ,b\} \subset J_T\), with cardinality \(L-H+1\); it is allowed to be empty. For each \(t\in W\) the entire window \(\{ t-H+1,\ldots ,t\} \) lies inside \(I\). Each member of \(S\cap I\) is counted at most \(H\) times, and no member outside \(I\) is counted. Consequently
After subtraction and division, the magnitude of the possible negative deterministic term is
Cauchy–Schwarz gives \(H^{-1}|\sum _Wd(t)|\leq H^{-1}\sqrt L\sqrt{V_H} \leq 6\sqrt L\, N^{-1/8}R\). Thus \(Lm/N-k\leq 10N^{1/4}+6\sqrt L\, N^{-1/8}R\leq 10BR\). Together with the upper bound this proves absolute discrepancy at most \(11BR\leq 16BR\), and hence the displayed estimate. The implementation pads the window index interval by one zero at \(N+H\) and centers at \(Hm/(N+H)\). It uses correspondingly padded expanded and contracted intervals. These conventions give the same rate directly with constant \(16\).
3.5 Section 6: the sharper Fourier estimate
Use the preceding estimate with \(C_{\mathrm C}=16\) and put \(K=5+2C_{\mathrm C}=37\). If \(I\subset J_N\) has \(L\leq N^{3/4}\) integers, then
The main term is bounded by \(Lm/N\leq N^{3/4}(5\sqrt N)/N=5N^{1/4}\). The inequality \(L\leq N^{3/4}\) gives \(\sqrt L\, N^{-1/8}\leq N^{1/4}\). Also \(0\leq \max (0,1-q)\leq |1-q|=\delta \), so the square-root factor in the input is at most \(\sqrt\delta \). It follows that
Both coefficients on the last two types of terms are at most \(K\). This proves the claim, including \(L=0\).
Let \(D=290+60C_{\mathrm C}=1250\), where \(C_{\mathrm C}=16\) is available from the proved interval estimate. Then
Take \(H=\lfloor N^{3/4}\rfloor \) and \(K=5+2C_{\mathrm C}\). Every boundary interval \(I_h\) for a nonzero kernel weight has length \(|h|{\lt}H\leq N^{3/4}\). Repeat the exact mixed-correlation identity from Lemma 24, now using the short boundary bound:
The self-correlation and interval-overlap bounds are unchanged, so before inserting this window size van der Corput gives
Here \(H\leq N^{3/4}\) and \(H\geq \frac12N^{3/4}\), so the second and third terms sum to at most \(140N^{3/4}\). Finally
which follows by expanding the square \((\sqrt{N\delta }-\sqrt{N^{3/4}})^2\geq 0\). Consequently
because \(D=140+30K=290+60C_{\mathrm C}\) is at least \(24+10K\). Taking nonnegative square roots, using \(\sqrt{1250}\leq 36\), and then taking the supremum proceeds exactly as in Theorem 28.
Dependency discipline.
The baseline Fourier theorem depends only on finite combinatorics, Cauchy–Schwarz, real powers, and elementary circle characters. The sharper theorem additionally depends on the finite window-variance argument. The proof of that interval estimate uses only the elementary size bound, not either Fourier uniformity theorem, so the dependency graph is acyclic.