A
D
V
E
R
T
I
S
E
M
E
N
T
ADVERTISEMENT
Ultraflat real Littlewood polynomials
expertly designed by an internal OpenAI model  ·  released 2026-10-05  ·  original PDF
Theorems: 1 Lemmas: 7 Proofs: 8
Formulas: 611 Words: 6,216 Play time: ~1 hour

>>> How to Play <<<
For every $\varepsilon\in(0,1)$ and every sufficiently large integer N, there is a polynomial of length N with coefficients in $\{-1,1\}$ whose modulus lies between $(1-\varepsilon)\sqrt N$ and $(1+\varepsilon)\sqrt N$ everywhere on the unit circle. Thus real Littlewood polynomials can be ultraflat through every sufficiently large integer length. The signs may be chosen separately at each length.

>>> Level Map <<<
  1. Introduction
  2. The flatness problem
  3. Construction and relation to the earlier version
  4. Oscillatory integral estimates
  5. Rounding with a small defect
  6. A real auxiliary function with balanced coefficients
  7. Waves of nearly constant modulus
  8. Packed intervals and inverse curvature
  9. Coherent stationary contributions
  10. Joining the waves through the gaps
  11. Fourier cost of the gaps
  12. Cancellation at the joins and the exterior tail
  13. Projection and rounding to real signs

Introduction

A real Littlewood polynomial of length \(N\) is a polynomial \[P(z)=\sum_{k=0}^{N-1}\varepsilon_k z^k, \qquad \varepsilon_k\in\{-1,1\}.\] Its squared mean modulus on the unit circle is \(N\), by Parseval’s identity. Thus \(\sqrt N\) is the natural scale, and its maximum modulus is at least \(\sqrt N\). A family is ultraflat if \(|P(z)|/\sqrt N\) tends uniformly to \(1\) on the unit circle as the length tends to infinity. We prove that real Littlewood polynomials can be ultraflat, through every sufficiently large integer length.

Theorem 1. For every \(\varepsilon\in(0,1)\) there is an integer \(N_0\) such that, for every integer \(N\ge N_0\), there are signs \(\varepsilon_0,\ldots,\varepsilon_{N-1}\) for which \[(1-\varepsilon)\sqrt N \le\left|\sum_{k=0}^{N-1}\varepsilon_k z^k\right| \le(1+\varepsilon)\sqrt N \qquad\text{for every }|z|=1.\]

The signs may depend on \(N\). The theorem concerns both extrema of the same polynomial on the entire circle, including the real points \(z=1\) and \(z=-1\).

The flatness problem

Erdős asked whether real-sign polynomials could stay between two fixed positive multiples of their square-root scale on the entire circle (Erdős 1957, Problem 26); the problem also appears in Littlewood’s work (Littlewood 1966). The Rudin–Shapiro construction gives real-sign polynomials with maximum at most \(\sqrt{2N}\) at dyadic lengths (Rudin 1959). Balister, Bollobás, Morris, Sahasrabudhe and Tiba proved the two-sided constant-factor statement at every degree at least two (Balister et al. 2020, Theorem 1.1). Their theorem controls the scale of both extrema, while ultraflatness requires both normalized extrema to converge to one.

For complex coefficients of modulus one, Kahane constructed ultraflat polynomials (Kahane 1980). Bombieri and Bourgain improved the quantitative bounds and gave effective constructions (Bombieri and Bourgain 2009, Theorems 4 and 7). The restriction to real signs is substantial. The predecessor (OpenAI 2026a, Theorem 1.1) obtains an asymptotically minimal maximum through all lengths. Its version-2 refinement (OpenAI 2026b, Theorem 1.1) gives the simultaneous bounds \[\frac1{16}\sqrt N\le |P(z)|\le(1+\eta)\sqrt N \qquad(|z|=1)\] for every fixed \(\eta>0\) and all sufficiently large \(N\). Theorem 1 strengthens that lower bound to its asymptotically optimal value. The present paper develops the additional constructions needed for this strengthening and uses the retained version-2 paper as the source of two shared lemmas.

Recent obstructions distinguish the relevant quantifiers. Erdélyi proved that the full sequence of partial sums of one fixed unimodular power series cannot be ultraflat (Erdélyi 2026b, Theorem 2.1). This does not restrict the independent choice of signs at each length in Theorem 1. His separate lower bound (Erdélyi 2026a, Theorem 2.1), \(\max_{|z|=1}|P(z)|^2\ge N+(N-1)^{1/3}/38\), is compatible with the asymptotic conclusion here.1

Construction and relation to the earlier version

The proof first constructs a continuous function \(B_N\) on the circle whose modulus is close to one. Its Fourier coefficients of indices \(0,\ldots,N-1\) are real and at most \((1+o(1))/\sqrt N\) in absolute value, and the sum of the absolute values of all remaining coefficients tends to zero. Parseval’s identity then forces the retained coefficients to be almost of sign size in aggregate. A discrepancy estimate rounds them to signs with a small uniform error. This last passage converts the continuous construction into a Littlewood polynomial.

To build \(B_N\), we adapt the auxiliary-torus and phase-correction arguments of (OpenAI 2026b, secs. 2, 4, and 5). The auxiliary object is a real trigonometric polynomial \(F(y)=\sum_{a\in\mathcal A}c_a\mathrm e(a\cdot y)\) on a higher-dimensional torus, where \(\mathrm e(t)=\exp(2\pi i t)\). Its norm is at most \(1+\delta\), and its Fourier coefficients are compared with positive weights \(w_a=|a\cdot v|\) whose sum is close to one. Here \(\delta>0\) is a small error parameter and \(v\) is a fixed real vector. The first additional requirement is the two-sided comparison \[1\le |c_a|/\sqrt{w_a}\le1+C\delta.\] We obtain it by spreading each original coefficient over a box of frequencies and rounding the spreading factors to equal coefficient magnitudes. Section 3 proves the required complex version of the defect-sensitive rounding estimate, and Section 4 carries out the auxiliary construction.

The frequencies of \(F\) then supply oscillatory waves on disjoint short arcs, each with constant modulus \(|c_a|/\sqrt{w_a}\). Their phases are chosen so that, at a fixed Fourier index, the leading stationary-phase terms sum to a single value of \(F\) multiplied by a factor in \([0,1]\). The norm bound for \(F\) therefore controls these contributions without accumulating the magnitudes of its coefficients.

The second change concerns the endpoints of the waves. We increase the magnitude of their phase curvature near the endpoints while keeping their amplitudes constant. Stationary phase therefore gives small endpoint Fourier contributions while the function’s modulus stays close to one. The waves are joined across the remaining gaps by matching their values and their leading phase derivatives. These matching conditions cancel the first boundary terms in integration by parts and give a summable exterior Fourier tail. Section 2 supplies the analytic estimates, Section 5 constructs and joins the waves, and Section 6 projects and rounds to signs.

The signed interval packing and real matrix discrepancy lemmas are inherited from (OpenAI 2026b, Lemmas 3.1 and 6.2). Their combinatorial inputs are the Pippenger–Spencer hypergraph-coloring theorem (Pippenger and Spencer 1989), in the quantified form of (Alon and Yuster 2005, Lemma 2.1), and the partial-coloring method of Spencer (Spencer 1985) and Lovett–Meka (Lovett and Meka 2015). Discrepancy and the repair of exceptional arcs also occur in (Balister et al. 2020, sec. 2.1 and 4), where a sine polynomial corrects a Rudin–Shapiro cosine polynomial. Here the correction joins oscillatory waves while preserving their almost constant modulus. All dimensions, packing data, intervals, and leading phases are fixed before the final length tends to infinity; the construction consequently applies to all sufficiently large integer lengths.

Oscillatory integral estimates

Throughout, \(\mathbb T=\mathbb R/\mathbb Z\), \(\mathrm e(t)=\exp(2\pi i t)\), and Haar measure on each torus has mass one. We use the Fourier convention \(\widehat f(k)=\int_\mathbb Tf(t)\mathrm e(-kt)\,dt\), and the same convention on \(\mathbb R\). Constants denoted by \(C\) are absolute and may change from line to line. Subscripts indicate dependence on fixed data. The length \(N\) will tend to infinity only after all auxiliary data have been fixed.

We record three elementary forms of stationary phase. The first supplies uniform control of every coefficient of a truncated quadratic wave. The second identifies the leading coefficients of the main construction; the third handles its small end pieces and gaps.

Lemma 1 (Uniform quadratic formula). Let \(g\in C_c^\infty(\mathbb R)\) and \(\beta\in\mathbb R\setminus\{0\}\). As \(T\to\infty\), uniformly for all \(u\in\mathbb R\), \[ \int_\mathbb Rg(y)\mathrm e(T\beta y^2/2-uy)\,dy =\frac{\mathrm e(\mathop{\mathrm{sgn}}(\beta)/8-u^2/(2T\beta))}{\sqrt{T|\beta|}} \left[g\left(\frac{u}{T\beta}\right)+O_{g,\beta}(T^{-1})\right]. \tag{1}\]

Proof. Put \(y_0=u/(T\beta)\) and complete the square. Fourier inversion reduces the bracket in (1) to the exact expression \[\int_\mathbb R\widehat g(\xi)\mathrm e(\xi y_0) \mathrm e\bigl(-\xi^2/(2T\beta)\bigr)\,d\xi.\] For completeness, this identity follows by inserting \(\exp(-\pi r(y-y_0)^2)\), \(r>0\), before applying Fourier inversion. The inner Gaussian integral has factor \((r-iT\beta)^{-1/2}\exp(-\pi\xi^2/(r-iT\beta))\); its modulus is at most \((T|\beta|)^{-1/2}\). Dominated convergence against \(|\widehat g(\xi)|\) justifies \(r\downarrow0\) and yields the factor \(\mathrm e(\mathop{\mathrm{sgn}}(\beta)/8)/\sqrt{T|\beta|}\). Finally, replacing \(\mathrm e(-\xi^2/(2T\beta))\) by \(1\) costs at most \[\frac{\pi}{T|\beta|}\int_\mathbb R\xi^2|\widehat g(\xi)|\,d\xi,\] independently of \(y_0\). ◻

Lemma 2 (Uniform stationary phase). Let \(I\) be a compact interval, let \(\phi\) be smooth on a neighborhood of \(I\) with \(\phi''\) nowhere zero there, and let \(f\in C_c^\infty(\operatorname{int}I)\). Uniformly for \(x\in[0,1]\), \[ \sqrt N\int_I f(t)\mathrm e\bigl(N(\phi(t)-xt)\bigr)\,dt =\frac{f(t_x)}{\sqrt{|\phi''(t_x)|}} \mathrm e\bigl(N(\phi(t_x)-xt_x)+\mathop{\mathrm{sgn}}(\phi'')/8\bigr)+o(1), \tag{2}\] where \(t_x\) is the unique point with \(\phi'(t_x)=x\) if it exists in \(I\), and the right-hand main term is zero otherwise.

Proof. Write \(d=\mathop{\mathrm{sgn}}(\phi'')\). If \(t_x\in I\), the change of variable \[y=(t-t_x) \left(\frac{2d[\phi(t)-\phi(t_x)-\phi'(t_x)(t-t_x)]} {(t-t_x)^2}\right)^{1/2}\] extends smoothly across \(t=t_x\) and changes the phase to \(\phi(t_x)-xt_x+dy^2/2\). Taylor’s integral formula and the lower bound on \(|\phi''|\) show that this is a smooth increasing coordinate with derivative bounded above and below, uniformly for \(t_x\in I\). All its required derivatives and those of its inverse are uniformly bounded. The transformed amplitudes, extended by zero, have support in a fixed compact set and uniformly bounded smooth norms, because \(\mathop{\mathrm{supp}}f\) is separated from the endpoints of \(I\). At \(y=0\) their value is \(f(t_x)/\sqrt{|\phi''(t_x)|}\). Lemma 1, whose error is controlled by a fixed finite collection of smooth norms, proves the assertion uniformly in this case. If \(x\notin\phi'(I)\), the distance between \(x\) and \(\phi'(\mathop{\mathrm{supp}}f)\) is bounded below uniformly; integration by parts then gives an \(O(N^{-1})\) integral. These two cases include the endpoints of \(\phi'(I)\). ◻

Lemma 3 (Bounds with endpoint amplitudes). Let \(I\) be a compact interval, \(f\in C^1(I)\), and \(\phi\) be real and smooth. If \(\phi''=\Lambda\ne0\) on \(I\), then for all real \(k\), \[ \left|\int_I f(t)\mathrm e(N\phi(t)-kt)\,dt\right| \le\frac{C}{\sqrt{N|\Lambda|}} \left(\lVert f\rVert_\infty+\int_I|f'(t)|\,dt\right). \tag{3}\] If \(N\phi'-k\) is monotone and has absolute value at least \(N\rho>0\), the same bound holds with \(C/(N\rho)\) in place of \(C/\sqrt{N|\Lambda|}\).

Proof. The primitive of \(\mathrm e(\pm y^2/2)\) has bounded differences on arbitrary real intervals: inside \([-1,1]\) this is immediate, and on either remaining half-line integration by parts gives a uniform bound. Completing the square and rescaling therefore bounds every subinterval integral of \(\mathrm e(N\phi-kt)\) by \(C/\sqrt{N|\Lambda|}\) in the quadratic case. In the monotone case, one integration by parts bounds every such integral by \(C/(N\rho)\); monotonicity bounds the total variation of \((N\phi'-k)^{-1}\) by \(2/(N\rho)\). Integration against the amplitude \(f\), using either primitive, gives the stated estimates. ◻

Rounding with a small defect

We need to round almost unimodular coefficients while controlling the error on the whole circle. The estimate below extends the real rounding argument of (OpenAI 2026b, sec. 6) to prescribed complex phases. We quote its real matrix discrepancy lemma below; the proof there uses the partial-coloring method of Spencer (Spencer 1985) and the real-vector theorem of Lovett and Meka (Lovett and Meka 2015, Theorem 4 of arXiv:1203.5747v2).

Lemma 4 (Real matrix discrepancy). There is an absolute constant \(C\) such that, for integers \(1\le s\le R\) and every \(A\in[-1,1]^{R\times s}\), there is a vector \(\xi\in\{-1,1\}^s\) satisfying \[\lVert A\xi\rVert_\infty\le C\sqrt{s\log(2R/s)}.\]

Proof. This is (OpenAI 2026b, Lemma 6.2), whose statement applies to arbitrary real matrices in the displayed rectangular range. ◻

Lemma 5 (Rounding with prescribed phases). Let \(n\ge1\) be an integer and \(Z_0,\ldots,Z_{n-1}\in\mathbb C\) satisfy \(|Z_j|\le1\). Write \(Z_j=d_j|Z_j|\), where \(|d_j|=1\), choosing \(d_j=1\) when \(Z_j=0\), and put \[\mu=\frac12\sum_{j=0}^{n-1}(1-|Z_j|).\] There are \(\eta_j\in\{d_j,-d_j\}\) such that \[ \sup_{t\in\mathbb T}\left|\sum_{j=0}^{n-1}(\eta_j-Z_j)\mathrm e(jt)\right| \le C\left(1+\sqrt{\mu\log(80n/\mu)}\right), \tag{4}\] with an absolute constant \(C\). The square-root term is zero for \(\mu=0\), when the error can be zero. For real inputs the outputs are real signs. The same estimate holds on any interval of \(n\) consecutive integer frequencies.

Proof. If \(\mu=0\), take \(\eta_j=Z_j\). Suppose \(\mu>0\), and set \(p_j=(1-|Z_j|)/2\). Then \(0\le p_j\le1/2\) and \(\sum_jp_j=\mu\). On the grid \(t_\ell=\ell/(20n)\), \(0\le\ell<20n\), form the real matrix with \(R=40n\) rows \[A_{2\ell,j}=\Re\bigl(d_j\mathrm e(jt_\ell)\bigr),\qquad A_{2\ell+1,j}=\Im\bigl(d_j\mathrm e(jt_\ell)\bigr).\] Every entry belongs to \([-1,1]\). We round \(p\) to a vector in \(\{0,1\}^n\), preserving an upper bound on its total mass.

Choose an integer \(J\ge1\) with \(n2^{-J}\le1\), and first set \(p_j^{(J)}=2^{-J}\lfloor2^Jp_j\rfloor\). This costs at most \(1\) in \(\lVert A(p^{(J)}-p)\rVert_\infty\) and does not increase the mass. At stage \(h=J,\ldots,1\), let \(S_h\) contain those coordinates for which \(2^hp_j^{(h)}\) is odd, and let \(s_h=|S_h|\). If \(s_h=0\), leave the vector unchanged. Otherwise apply Lemma 4 to the columns indexed by \(S_h\). Reverse all its signs if necessary so that their sum is nonpositive, and put \[p_j^{(h-1)}= \begin{cases} p_j^{(h)}+2^{-h}\xi_j,&j\in S_h,\\ p_j^{(h)},&j\notin S_h. \end{cases}\] An odd multiple of \(2^{-h}\) in \([0,1]\) lies between \(2^{-h}\) and \(1-2^{-h}\). Either change therefore stays in \([0,1]\) and lies on the next coarser grid. The total mass remains at most \(\mu\), while the simultaneous sign reversal leaves the absolute discrepancy unchanged. In particular, each active coordinate has mass at least \(2^{-h}\), so \[s_h\le\min(n,2^h\mu),\qquad \lVert A(p^{(h-1)}-p^{(h)})\rVert_\infty \le C2^{-h}\sqrt{s_h\log(80n/s_h)}.\] The last inequality is used only at nonempty stages. Monotonicity of \(s\log(80n/s)\) on \((0,n]\) gives \[s_h\log(80n/s_h)\le2^h\mu\log(80n/\mu).\] For \(2^h\mu>n\), use the bound \(n\log80\) on the left and \(\mu\le n/2\) on the right. Summing the geometric series of step errors yields, with \(p'=p^{(0)}\in\{0,1\}^n\), \[ \lVert A(p'-p)\rVert_\infty \le1+C\sqrt{\mu\log(80n/\mu)}. \tag{5}\]

Set \(\eta_j=d_j(1-2p'_j)\) and \(Q(z)=\sum_{j=0}^{n-1}(\eta_j-Z_j)z^j\). The real and imaginary parts of \(Q(\mathrm e(t_\ell))\) are each bounded by twice the left side of (5). Thus the claimed error bound holds on the grid. To pass to the circle, let \(S=\max_{|z|=1}|Q(z)|\). The maximum principle, applied also to the reversed polynomial, gives \[|Q(z)|\le S\max(1,|z|^{n-1}),\qquad \max_{|z|\le1+1/n}|Q(z)|\le\exp(1)S.\] Cauchy’s estimate in disks of radius \(1/n\) centered on the unit circle therefore gives \[\left|\frac{d}{dt}Q(\mathrm e(t))\right|\le2\pi\exp(1)nS.\] Every point of \(\mathbb T\) is within \(1/(40n)\) of the grid. Hence \(S\le\max_\ell|Q(\mathrm e(t_\ell))|+(\pi\exp(1)/20)S\). Since \(\pi\exp(1)/20<1\), this proves (4). Multiplication by a unimodular monomial handles shifted consecutive frequencies. If the inputs are real, all \(d_j\) are signs and hence so are the outputs. ◻

A real auxiliary function with balanced coefficients

The wave construction will use a bounded real trigonometric polynomial whose coefficient magnitudes are close to the square roots of its frequency weights. These weights must have the form \(|a\cdot v|\), where \(a\) is a Fourier frequency and \(v\) is one common vector. We adapt the auxiliary-torus construction of (OpenAI 2026b, sec. 2). The additional step is to round the coefficients of each spreading factor to a common magnitude.

Proposition 6. For every \(0<\delta<1/100\), there are an integer \(m\ge2\), a real trigonometric polynomial \(F\) on \(\mathbb T^m\), and \(v\in\mathbb R^m\) with the following properties. Its Fourier support \(\mathcal A\subset\mathbb Z^m\setminus\{0\}\) consists of at least two pairs \(\{a,-a\}\), with distinct pairs nonparallel. If \[c_a=\widehat F(a),\qquad \lambda_a=a\cdot v,\qquad w_a=|\lambda_a|,\] then, for an absolute constant \(C\), \[ \begin{gathered} \lVert F\rVert_\infty\le1+\delta,\qquad w_a>0,\\ 1-C\delta\le\sum_{a\in\mathcal A}w_a<1,\qquad 1\le\frac{|c_a|}{\sqrt{w_a}}\le1+C\delta \quad(a\in\mathcal A). \end{gathered} \tag{6}\] The coefficient ratios in (6) are also at most \(2\).

We first construct the one-dimensional factors that will spread each original frequency into a box. The requirement that every coefficient have the same magnitude makes the later comparison with \(w_a\) exact.

Lemma 7 (Spreading with equal coefficient magnitudes). Let \(\mathcal B\subset\mathbb R\setminus\{0\}\) be finite and invariant under negation. For every \(\alpha>0\), there is a real \(g\in C_c^\infty((-1/2,1/2))\), with \(0\le g\le1\), such that for every sufficiently large real \(T\) and each \(\beta\in\mathcal B\) there is a trigonometric polynomial \[f_\beta(y)=\sum_{|u|\le\lfloor T|\beta|/2\rfloor}a_{\beta,u}\mathrm e(uy), \qquad |a_{\beta,u}|=L_\beta^{-1/2},\qquad L_\beta=2\lfloor T|\beta|/2\rfloor+1,\] satisfying \[ \lVert f_\beta-g(\,\cdot\,)\mathrm e(T\beta(\,\cdot\,)^2/2)\rVert_\infty\le\alpha. \tag{7}\] Here the target is extended periodically from \([-1/2,1/2]\), and the choices may satisfy \(f_{-\beta}=\overline{f_\beta}\).

Proof. Choose \(0<q<1/4\), to be fixed in terms of \(\alpha\), and then choose such a \(g\) with \(\int g^2\ge1-q\). For a fixed \(\beta\in\mathcal B\), write \[I_\beta(u)=\int_{-1/2}^{1/2}g(y)\mathrm e(T\beta y^2/2-uy)\,dy \qquad(u\in\mathbb Z).\] Lemma 1 and \(L_\beta/(T|\beta|)\to1\) give, uniformly in \(u\), \[ \sqrt{L_\beta}|I_\beta(u)|\le1+q \tag{8}\] for all sufficiently large \(T\). The coefficients outside the stated interval have a small sum of absolute values. Indeed, \(\mathop{\mathrm{supp}}g\) is separated from both endpoints, so on a neighborhood of this support, \[|T\beta y-u|\ge c_{g,\beta}(T+|u|) \quad\text{if }|u|>T|\beta|/2.\] Twice integrating by parts, with no boundary terms, gives \(|I_\beta(u)|\le C_{g,\beta}(T+|u|)^{-2}\) there. The derivative of \(T\beta y-u\) is \(T\beta\), so all terms from these integrations have this bound. Consequently \[ \sum_{|u|>\lfloor T|\beta|/2\rfloor}|I_\beta(u)|=O_{g,\beta}(T^{-1}). \tag{9}\]

For the retained indices define \(Z_u=\sqrt{L_\beta}I_\beta(u)/(1+q)\). By (8), \(|Z_u|\le1\). Parseval’s identity and (9) show that, for large \(T\), \[\frac1{L_\beta}\sum_u|Z_u|^2\ge\frac{1-2q}{(1+q)^2}.\] Since \(1-|Z_u|\le1-|Z_u|^2\), the defect \(\mu=\frac12\sum_u(1-|Z_u|)\) satisfies \[\frac{\mu}{L_\beta}\le\frac{4q+q^2}{2(1+q)^2}\le2q<1/2.\] Apply Lemma 5 on this consecutive interval of frequencies, and divide its conclusion by \(\sqrt{L_\beta}\). It gives unit complex numbers \(\eta_u\). Their polynomial \(f_\beta(y)=\sum_u L_\beta^{-1/2}\eta_u\mathrm e(uy)\) satisfies \[\lVert f_\beta-\frac 1{1+q}\sum_u I_\beta(u)\mathrm e(u\,\cdot)\rVert_\infty \le C\left(L_\beta^{-1/2}+\sqrt{q\log(80/q)}\right).\] Indeed, for \(x=\mu/L_\beta>0\), monotonicity gives \(x\log(80/x)\le2q\log(40/q)\le2q\log(80/q)\); the zero-defect case follows directly from the rounding lemma. By (9), the polynomial before rounding differs from the target by at most \(q+o(1)\) in supremum norm. First choose \(q\) small enough, then fix \(g\), and finally take \(T\) large. The resulting error is at most \(\alpha\). All estimates hold simultaneously for the finite set \(\mathcal B\). Construct the polynomials for positive \(\beta\) and set \(f_{-\beta}=\overline{f_\beta}\): the targets are conjugates and the frequency intervals are symmetric, so all conclusions are preserved. ◻

Proof of Proposition 6. We first construct a real polynomial with norm at most one and squared \(L^2\) norm close to one. Starting with \(p_0=0\), define successively \[p_j(y_1,\ldots,y_j) =p_{j-1}(y_1,\ldots,y_{j-1}) +\tfrac12(1-p_{j-1}(y_1,\ldots,y_{j-1})^2)\cos(2\pi y_j).\] These polynomials have mean zero and satisfy \(|p_j|\le1\), because \((1-r^2)/2\le1-|r|\) for \(|r|\le1\). Writing \(M_j=\int p_j^2\), integration in the new coordinate gives \[M_j-M_{j-1}=\tfrac18\int(1-p_{j-1}^2)^2 \ge\tfrac18(1-M_{j-1})^2.\] Thus \(M_j\uparrow1\): a limit smaller than one would force increments bounded away from zero. Fix \(d\ge2\) with \(M_d\ge1-\delta\), and write \[p_d(y)=\sum_{s\in\mathcal S}b_s\mathrm e(s\cdot y), \qquad b_s\ne0.\] Zero is not in \(\mathcal S\), since \(p_d\) has mean zero. At each step, old frequencies acquire a zero final coordinate and persist, while new frequencies have final coordinate \(1\) or \(-1\). Hence every \(s\in\mathcal S\) has last nonzero coordinate \(1\) or \(-1\). Parallel members of \(\mathcal S\) are therefore equal up to sign. The first-coordinate pair persists, and the second step introduces another pair, since \(\int(1-p_1^2)>0\). Choose representatives \(s_1,\ldots,s_D\) of these sign pairs.

We next choose the sizes of the frequency boxes. Choose \(\gamma\in\mathbb R^d\) outside the finitely many hyperplanes \(s^\perp\), and put \(\rho_s=|s\cdot\gamma|>0\). The box over \(s\) should contain a number of frequencies approximately proportional to \(|b_s|^2/\rho_s\): equal spreading then makes each squared coefficient approximately proportional to \(\rho_s\), matching the weight supplied by a vector \(v\) proportional to \((\gamma,0)\). We will choose vectors \(W_1,\ldots,W_D\in\mathbb R^d\) with nonzero projections \(s\cdot W_j\) and use these projections as spreading parameters. The box over \(s\) will then have size asymptotic to \(T^D\prod_j|s\cdot W_j|\). We therefore require these products to be approximately \(\tau|b_s|^2/\rho_s\), using one small positive parameter \(\tau\) for all \(s\).

For each \(j\), choose \(W_j^0\in s_j^\perp\) not orthogonal to any other representative. This is possible because \(d\ge2\) and the representatives are pairwise nonparallel, so only finitely many proper subspaces of \(s_j^\perp\) are excluded. Choose \(W_j^1\in\mathbb R^d\) such that \[s_j\cdot W_j^1 =\frac{|b_{s_j}|^2} {\rho_{s_j}\prod_{\ell\ne j}|s_j\cdot W_\ell^0|}.\] Set \(W_j=W_j^0+\tau W_j^1\). As \(\tau\downarrow0\), \[\frac1\tau\prod_{j=1}^D|s\cdot W_j| \longrightarrow\frac{|b_s|^2}{\rho_s} \qquad(s\in\mathcal S).\] Indeed, exactly the factor belonging to the representative of \(\{s,-s\}\) vanishes at \(\tau=0\), and its first-order coefficient was just prescribed. Fix \(\tau>0\) small enough that all factors are nonzero and, with \(\beta_{s,j}=s\cdot W_j\) and \(\Delta_s=\prod_j|\beta_{s,j}|\), \[ (1-\delta)\frac{\tau|b_s|^2}{\rho_s} \le\Delta_s\le (1+\delta)\frac{\tau|b_s|^2}{\rho_s} \qquad(s\in\mathcal S). \tag{10}\]

All these data are now fixed. Apply Lemma 7 to the finite list of nonzero \(\beta_{s,j}\), choosing \(\alpha>0\) small enough that \[ \left(\sum_{s\in\mathcal S}|b_s|\right) D\alpha(1+\alpha)^{D-1}\le\delta. \tag{11}\] With the resulting common cutoff \(g\) and sufficiently large \(T\), define \[F(y,z)=\sum_{s\in\mathcal S}b_s\mathrm e(s\cdot y) \prod_{j=1}^D f_{\beta_{s,j}}(z_j), \qquad (y,z)\in\mathbb T^d\times\mathbb T^D.\] The conjugation condition on the factors and \(b_{-s}=\overline{b_s}\) show that \(F\) is real. If each factor is replaced by its target, the resulting function is \[\left(\prod_{j=1}^Dg(z_j)\right) p_d\left(y+\frac T2\sum_{j=1}^D W_jz_j^2\right),\] where \(z_j\) is represented in \([-1/2,1/2]\). The cutoffs vanish near the endpoints, so this expression is well defined on the torus and has norm at most one. A telescoping product estimate bounds its distance from \(F\) by the left side of (11). Therefore \(\lVert F\rVert_\infty\le1+\delta\).

Over each old frequency \(s\), the Fourier support of \(F\) is the full box \[a=(s,u_1,\ldots,u_D),\qquad |u_j|\le\lfloor T|\beta_{s,j}|/2\rfloor.\] This box has \(n_s=\prod_jL_{\beta_{s,j}}\) members, each with coefficient magnitude \(|b_s|/\sqrt{n_s}\). Distinct old frequencies give disjoint boxes, so every indicated coefficient is nonzero. If two resulting frequencies are parallel, their \(s\) coordinates force the proportionality factor to be \(1\) or \(-1\); thus they are equal or opposite. There remain at least two sign pairs, and no zero frequency.

Since \(L_\beta/(T|\beta|)\to1\), increase \(T\) so that \[ (1-\delta)T^D\Delta_s\le n_s\le(1+\delta)T^D\Delta_s \qquad(s\in\mathcal S), \tag{12}\] and choose the approximants at this value of \(T\). This is permitted because the spreading lemma holds for every sufficiently large \(T\). Fix \(T\), put \(m=d+D\), and take \[v=\left(\frac{\gamma}{\tau T^D(1+\delta)^3},0\right)\in\mathbb R^{d+D}.\] For every frequency \(a\) over \(s\), its weight is \(w_a=\rho_s/(\tau T^D(1+\delta)^3)>0\). Combining (10) and (12) gives \[\begin{align*} \frac{(1-\delta)^2}{(1+\delta)^3}|b_s|^2 &\le\sum_{a\text{ over }s}w_a\le\frac{|b_s|^2}{1+\delta}, \tag{13}\\ 1+\delta&\le\frac{|c_a|^2}{w_a} \le\frac{(1+\delta)^3}{(1-\delta)^2}. \tag{14}\end{align*}\] Finally, \(1-\delta\le\sum_s|b_s|^2=M_d\le1\), so the total weight lies between \((1-\delta)^3/(1+\delta)^3\) and \(1/(1+\delta)\). The ratio bounds in (14) imply \(1\le|c_a|/\sqrt{w_a}\le1+C\delta\), and the upper bound is less than \(2\) for \(0<\delta<1/100\). These are all the assertions of (6). The choices were made in the order \(\delta\), \(p_d\), \(\gamma\), \((W_j^0,W_j^1)\), \(\tau\), \(\alpha\), \(g\), \(T\); in particular the entire auxiliary construction is fixed before the polynomial length is chosen. ◻

Waves of nearly constant modulus

The balanced coefficients of Proposition 6 allow us to build a function on the circle whose modulus stays close to one. Its oscillations spread its Fourier mass over the indices \(0,\ldots,N-1\). The essential endpoint choice is to increase phase curvature, rather than to decrease modulus: the resulting endpoint contributions are small while the function remains bounded away from zero.

Proposition 8. There are absolute constants \(C>0\) and \(\delta_0>0\) with the following property. For every \(0<\delta<\delta_0\), there are \(N_0(\delta)\) and \(K_\delta<\infty\) such that, for every integer \(N\ge N_0(\delta)\), there is a continuous function \(B_N:\mathbb T\to\mathbb C\) satisfying \[\begin{align*} B_N(-t)&=\overline{B_N(t)}, & 1\le |B_N(t)|&\le 1+C\delta \quad(t\in\mathbb T), \tag{15}\\ \sqrt N\,|\widehat B_N(k)|&\le 1+C\sqrt\delta &&(0\le k<N),\tag{16}\\ \sum_{k<0\text{ or }k\ge N}|\widehat B_N(k)| &\le K_\delta N^{-1}. \tag{17}\end{align*}\] Its Fourier coefficients are real, and its Fourier series converges absolutely and represents \(B_N\).

We use the following packing result from the preceding version. Its proof combines a finite-field construction with almost-perfect matchings in nearly regular hypergraphs; only its stated conclusion is needed here.

Lemma 9 (Signed interval packing, (OpenAI 2026b, Lemma 3.1)). Let \(a_1,\ldots,a_r\in\mathbb Z^m\setminus\{0\}\) be pairwise nonparallel, with \(r\ge2\), and let \(w_1,\ldots,w_r>0\) satisfy \(2\sum_iw_i<1\). There are an integer \(H\ge1\) and points \(\theta_1,\ldots,\theta_H\in\mathbb T^m\) such that the closed arcs centered at \(\pm a_i\cdot\theta_h\), of length \(w_i/H\), are pairwise disjoint as \(i\), \(h\), and the sign vary.

Proof of Proposition 8. Fix \(\delta\) and choose the data of Proposition 6. Thus \[F(y)=\sum_{a\in\mathcal A}c_a\mathrm e(a\cdot y),\qquad \lambda_a=a\cdot v,\qquad w_a=|\lambda_a|,\] where \(F\) is real, \(\mathcal A=-\mathcal A\), and \[ \|F\|_\infty\le1+\delta,\qquad 1-C\delta\le\sum_{a\in\mathcal A}w_a<1,\qquad 1\le m_a:=\frac{|c_a|}{\sqrt{w_a}}\le1+C\delta\le2. \tag{18}\] There are at least two sign-pairs in \(\mathcal A\), and representatives of these pairs are nonparallel. All choices below, apart from bounded phase adjustments used to join endpoint values, will be fixed before \(N\) tends to infinity. Constants depending on these choices are allowed in errors that vanish with \(N\); the constants multiplying \(\delta\) and \(\sqrt\delta\) in the final bounds will be absolute. We first obtain a bound \(1+O(\delta)\) for the scaled Fourier contribution of the main intervals, then fill their small complement at cost \(O(\sqrt\delta)\). A separate integration-by-parts argument will control the sum of the exterior coefficients.

Packed intervals and inverse curvature

Apply Lemma 9 to one representative from each sign-pair, using \(w_{-a}=w_a\). It gives disjoint closed arcs centered at \(-a\cdot\theta_h\), of length \(w_a/H\), for all \(a\in\mathcal A\) and \(1\le h\le H\). Each arc is disjoint from its reflection and consequently avoids the two fixed points \(0\) and \(1/2\) of reflection on \(\mathbb T\). We may therefore regard the arcs as intervals in \((-1/2,1/2)\), with center representatives \(t^*_{a,h}\) satisfying \[ t^*_{a,h}\equiv-a\cdot\theta_h\pmod1,\qquad t^*_{-a,h}=-t^*_{a,h}. \tag{19}\]

The variable \(x\) will denote the normalized Fourier index \(k/N\). For each \(h\), choose a closed interval \[J_h\subset((h-1)/H,h/H)\] symmetric about \(x_h^*=(h-1/2)/H\). On \(J_h\) choose a smooth function \(\chi_h\), symmetric about \(x_h^*\), such that \[ \sigma\le\chi_h\le1,\qquad \chi_h=\sigma\text{ near both endpoints},\qquad \int_{J_h}\chi_h(x)^2\,dx\ge\frac{1-\delta}{H}. \tag{20}\] Here \(\sigma\in(0,1)\) can be arbitrarily small. Indeed, first choose \(|J_h|>(1-\delta/2)/H\), and then take \(\chi_h=1\) except on endpoint neighborhoods of total length less than \(\delta/(2H)\), with smooth transitions to \(\sigma\).

We will specify the point \(t\) at which a wave’s phase derivative equals \(x\). Requiring \(|dt/dx|=w_a\chi_h(x)^2\) makes the stationary-phase factor equal to \(\sqrt{w_a}\chi_h(x)\), so a wave of modulus \(m_a\) has leading scaled coefficient magnitude \(|c_a|\chi_h(x)\). Thus \(\chi_h\) can suppress endpoint Fourier contributions without decreasing the wave modulus.

Choose smooth real \(Q_h\) with \[Q_h''=\chi_h^2,\qquad Q_h'(x_h^*)=0,\] and with a smooth extension to a neighborhood of \(J_h\). Define \[ T_{a,h}(x)=t^*_{a,h}-\lambda_aQ_h'(x),\qquad x\in J_h. \tag{21}\] This is a diffeomorphism, possibly reversing orientation, onto a closed interval \(I_{a,h}\). Symmetry and \(\chi_h\le1\) give \(|Q_h'|\le |J_h|/2<1/(2H)\), so \(I_{a,h}\) lies strictly inside its assigned packed arc. Write \(X_{a,h}:I_{a,h}\to J_h\) for the inverse map and set \[\begin{align*} \psi_{a,h}(t) &= (t-t^*_{a,h})X_{a,h}(t) +\lambda_a Q_h(X_{a,h}(t)),\tag{22}\\ \psi_{a,h}'(t)&=X_{a,h}(t),& \psi_{a,h}''(t)&=-\frac1{\lambda_a\chi_h(X_{a,h}(t))^2}. \tag{23}\end{align*}\] The derivative identities follow by differentiating (22) and using (21). On each \(I_{a,h}\) define \[ B_N(t)=\frac{c_a}{\sqrt{w_a}} \mathrm e\bigl(\mathop{\mathrm{sgn}}(\lambda_a)/8+N\psi_{a,h}(t)\bigr). \tag{24}\] The modulus is the constant \(m_a\). Moreover, \(T_{-a,h}(x)=-T_{a,h}(x)\) and \(\psi_{-a,h}(-t)=-\psi_{a,h}(t)\); together with \(c_{-a}=\overline{c_a}\) these give conjugate symmetry on the main intervals. Their total length is \[ \sum_{a,h}|I_{a,h}| =\sum_{a,h}w_a\int_{J_h}\chi_h^2 \ge(1-\delta)\sum_aw_a\ge1-C\delta. \tag{25}\]

Coherent stationary contributions

The phase choice will make the leading stationary contributions sum to a scalar multiple of a single value of \(F\). We first isolate them with a cutoff and estimate the remaining endpoint pieces using their large curvature.

Choose \(G_h\in C_c^\infty(\operatorname{int}J_h)\) with \(0\le G_h\le1\), such that, on \(J_h\), \(1-G_h\) is supported in the two endpoint intervals where \(\chi_h=\sigma\), and is monotone on each such interval. Split each integral over \(I_{a,h}\) using the cutoff \(G_h(X_{a,h}(t))\). On either endpoint part the phase has constant second derivative of modulus \(1/(w_a\sigma^2)\). The cutoff has bounded total variation. Lemma 3 therefore bounds this part, after multiplication by \(\sqrt N\), by \[C m_a\sqrt{w_a}\,\sigma=C|c_a|\sigma.\] Choose \(\sigma\) so small, before fixing the functions in (20), that the sum of these bounds over all endpoints is at most \(\delta\).

For the part with cutoff, apply Lemma 2 with \(x=k/N\). After multiplication by \(\sqrt N\), the leading term is zero if \(x\notin J_h\); if \(x\in J_h\), its stationary point is \(t=T_{a,h}(x)\) and its value is \[ c_aG_h(x)\chi_h(x) \mathrm e\bigl(-kt^*_{a,h}+N\lambda_aQ_h(x)\bigr). \tag{26}\] Indeed, \[\psi_{a,h}(T_{a,h}(x))-xT_{a,h}(x) =-xt^*_{a,h}+\lambda_aQ_h(x),\] and the phase correction \(\mathop{\mathrm{sgn}}(\psi_{a,h}'')/8\) cancels the constant \(\mathop{\mathrm{sgn}}(\lambda_a)/8\) in (24). The error is \(o(1)\) uniformly for \(0\le k<N\).

At most one \(J_h\) contains \(x\). For that \(h\), summing (26) over \(a\) gives \[G_h(x)\chi_h(x)F\bigl(k\theta_h+NvQ_h(x)\bigr).\] Here (19) may be used inside the exponential because \(k\) is an integer. Since \(0\le G_h\chi_h\le1\), the norm bound for \(F\) and the endpoint estimates imply \[ \sqrt N\left|\sum_{a,h}\int_{I_{a,h}}B_N(t)\mathrm e(-kt)\,dt\right| \le1+2\delta+o(1),\qquad 0\le k<N. \tag{27}\] All errors are uniform in these integer indices. The finite number of intervals is fixed, so summing their stationary-phase errors preserves \(o(1)\).

Joining the waves through the gaps

It remains to define \(B_N\) on a set of length \(O(\delta)\) without losing its lower modulus bound. We will join the waves continuously and also match the derivatives of their leading phases. The first condition preserves the desired function; together, the two conditions will cancel the boundary terms in the exterior Fourier estimate.

Work first on \([0,1/2]\). Let \([u_j,v_j]\) be the closures of the gaps between its main intervals, including the gaps adjacent to \(0\) and \(1/2\). Put \(l_j=v_j-u_j\) and \(L=\sum_jl_j\). Strict containment in the packed arcs and (25) give \[0<L\le C\delta,\] and each \(l_j\) is positive. At an endpoint \(z\) adjoining a main interval, prescribe the derivative \(x_z=\psi_{a,h}'(z)\in(0,1)\); at the remaining endpoints prescribe \(x_0=x_{1/2}=1/8\).

For each gap choose a closed interval \([P_j,R_j]\subset(1/4,3/4)\), of length \(l_j/(4L)\), such that these intervals are pairwise disjoint and none of their endpoints equals any prescribed \(x_z\). To see that these choices are possible, note that their total length is \(1/4\). They can therefore be arranged with positive spaces between them inside an interval of length less than \(1/2\); a sufficiently small common translation then avoids the finitely many forbidden endpoint values. We call \([P_j,R_j]\) the derivative interval assigned to gap \(j\).

Divide gap \(j\) into three pieces. On these pieces take \(\phi_j'\) to be linear, successively interpolating \[ x_{u_j}\longrightarrow P_j\longrightarrow R_j\longrightarrow x_{v_j}. \tag{28}\] Thus \(\phi_j\) is continuously differentiable and piecewise quadratic; its additive constant is immaterial. Make both outer pieces shorter than \(l_j/4\). Their nonzero slopes \(\Lambda=\phi_j''\) can be made arbitrarily large in absolute value because \(P_j\ne x_{u_j}\) and \(R_j\ne x_{v_j}\). Choose their lengths so that \[ \sum_{\substack{\text{outer pieces}\\\text{in }[0,1/2]}} |\Lambda|^{-1/2}\le\sqrt\delta. \tag{29}\] The middle piece has length at most \(l_j\), so its positive slope satisfies \[ \Lambda\ge\frac{R_j-P_j}{l_j}=\frac1{4L}. \tag{30}\] Every value of every leading phase derivative lies in a fixed compact subset of \((0,1)\).

Figure 1 illustrates the two distinct uses of these pieces: large outer slopes suppress the cost of joining the prescribed endpoint derivatives, while separated middle derivative intervals ensure that only one middle pair can contribute substantially at a given normalized Fourier index.

A schematic leading phase derivative on one gap. The short outer pieces join the prescribed endpoint values to \(P_j\) and \(R_j\). Their slopes may have either sign; the middle slope is positive. The drawing shows one possible ordering of the endpoint values, and is not to scale.

Let \(m_j\) interpolate linearly between the endpoint moduli \(m_a\), with modulus \(1\) prescribed at \(0\) and \(1/2\). Define on gap \(j\) \[ B_N(t)=m_j(t)\mathrm e\bigl(N\phi_j(t)+\gamma_{j,N}(t)\bigr), \tag{31}\] where \(\gamma_{j,N}\) is affine. Choose its two endpoint values in \([0,1)\) to give the exact phase factors required by the adjoining main waves, and phase factor \(1\) at \(0\) and \(1/2\). There is no constraint on these choices: each endpoint requires just one congruence modulo \(1\). In particular, \[\int_{u_j}^{v_j}|\gamma_{j,N}'(t)|\,dt\le1, \qquad |\gamma_{j,N}'|\le l_j^{-1}.\] The second bound depends on the fixed gap but is independent of \(N\). Extend to the negative half-circle by \(B_N(-t)=\overline{B_N(t)}\). Because \(B_N(0)=B_N(1/2)=1\), this gives a continuous function on \(\mathbb T\) satisfying (15). On reflected gaps use the leading phase \(-\phi_j(-t)\). Its derivative is \(\phi_j'(-t)\), so the leading phase derivatives match across every join, including \(0\) and the identified endpoints \(\pm1/2\). Matching the full derivatives of \(B_N\) is unnecessary.

Fourier cost of the gaps

We now bound the Fourier contributions of the gaps. In (31) regard \(f_N=m_j\mathrm e(\gamma_{j,N})\) as the amplitude. On each piece, \[ \sup|f_N|+\int|f_N'|\le C \tag{32}\] with an absolute constant, since \(m_j\) is monotone between values in \([1,2]\) and the total variation of \(\gamma_{j,N}\) is at most \(1\). Lemma 3 and (29) show that all outer pieces and their reflections contribute at most \(C\sqrt\delta\) to the scaled Fourier coefficient \(\sqrt N\,\widehat B_N(k)\).

Choose a fixed \(\rho>0\) so that the closed \(\rho\)-neighborhoods of the finitely many derivative intervals \([P_j,R_j]\) are pairwise disjoint. At most one of these intervals is within \(\rho\) of \(x=k/N\). If such an interval exists, the quadratic estimate and (30) bound the total contribution of its middle piece and its reflection by \(C\sqrt L\). Every other middle piece has monotone \(\phi_j'-x\) of modulus at least \(\rho\). The first-derivative estimate in Lemma 3, together with (32), bounds its scaled contribution by \(C/(\rho\sqrt N)\). The same bound holds for its reflection. Their number and \(\rho\) are fixed, so the sum of these terms is \(o(1)\), uniformly in \(k\). Combining these bounds with (27) proves \[\sqrt N\,|\widehat B_N(k)| \le1+2\delta+C\sqrt\delta+C\sqrt L+o(1) \le1+C\sqrt\delta+o(1),\qquad 0\le k<N.\] Increasing \(N_0(\delta)\) absorbs the last error into \(\sqrt\delta\) and proves (16). In particular, neither the number of gaps nor their separation contributes to the surviving constant.

Cancellation at the joins and the exterior tail

For projection to the allowed frequencies, an estimate on individual exterior coefficients is insufficient; we need their sum to tend to zero. This is where matching the leading phase derivatives is used. Partition \([-1/2,1/2]\) into all main intervals and the three pieces of each gap and reflected gap. On each piece write \[B_N(t)=f_N(t)\mathrm e(N\phi(t)).\] The functions \(f_N,f_N',f_N''\) are bounded independently of \(N\) on each piece. The phase \(\phi\) is fixed, its first three derivatives are bounded, and all values of \(\phi'\) lie in a fixed compact subinterval of \((0,1)\). These bounds may depend on all the fixed construction data. For \(k<0\) or \(k\ge N\), put \(D=N+|k|\) and \(V=N\phi'-k\). Then \[ |V|\ge cD,\qquad |V'|+|V''|\le C_*N \tag{33}\] on every piece, for fixed \(c>0\) and \(C_*<\infty\).

The first integration by parts gives boundary terms \[\frac{f_N(t)\mathrm e(N\phi(t)-kt)}{2\pi iV(t)} =\frac{B_N(t)\mathrm e(-kt)}{2\pi i(N\phi'(t)-k)}.\] They cancel at every internal join, because \(B_N\) is continuous and the leading phase derivatives agree. They also cancel at \(-1/2\) and \(1/2\): there \(B_N=1\), \(\phi'=1/8\), and \(\mathrm e(-k/2)=\mathrm e(k/2)\) for integer \(k\). After this cancellation, a second integration by parts involves \[A:=\frac{(f_N/V)'}{V} =\frac{f_N'}{V^2}-\frac{f_NV'}{V^3}\] and its derivative \[A'=\frac{f_N''}{V^2} -\frac{3f_N'V'}{V^3} -\frac{f_NV''}{V^3} +\frac{3f_N(V')^2}{V^4}.\] Since \(N\le D\), (33) implies \(|A|+|A'|\le C_{\mathrm{data}}D^{-2}\). Both the second boundary terms and the remaining integrals therefore have this bound on each piece. There are only finitely many pieces, whence \[|\widehat B_N(k)|\le C_{\mathrm{data}}(N+|k|)^{-2} \qquad(k<0\text{ or }k\ge N).\] Summing over these integers proves (17), since \(\sum_{k\in\mathbb Z}(N+|k|)^{-2}=O(N^{-1})\). The finitely many interior coefficients and this summable exterior bound show that the full Fourier series converges absolutely. Its sum equals \(B_N\) by continuity and uniqueness of Fourier coefficients. Finally, conjugate symmetry gives \(\widehat B_N(k)\in\mathbb R\) for every integer \(k\). ◻

Projection and rounding to real signs

We now complete the proof of Theorem 1. The functions in Proposition 8 already have almost constant modulus. Their Fourier coefficients are real and lie in an almost unit cube after multiplication by \(\sqrt N\). Their large \(L^2\) norm forces most of these coefficients to be close to signs, exactly the condition needed by Lemma 5.

Fix a sufficiently small \(\delta>0\), and let \(B_N\) be supplied by Proposition 8. Choose an absolute constant \(C_1\) so that \[S_\delta=1+C_1\sqrt\delta, \qquad Y_k=\frac{\sqrt N}{S_\delta}\widehat B_N(k) \quad(0\le k<N)\] satisfy \(Y_k\in[-1,1]\) for every sufficiently large \(N\). The symmetry \(B_N(-t)=\overline{B_N(t)}\) makes every Fourier coefficient real. Set \[U_Y(t)=\frac1{\sqrt N}\sum_{k=0}^{N-1}Y_k\mathrm e(kt).\] The absolute Fourier representation and exterior-tail estimate in Proposition 8 give \[ U_Y=B_N/S_\delta+O_\delta(N^{-1}) \quad\text{uniformly on }\mathbb T. \tag{34}\] Parseval’s identity and \(|B_N|\ge1\) consequently imply \[\frac1N\sum_{k=0}^{N-1}Y_k^2\ge S_\delta^{-2}-o(1).\] Here and below \(N\to\infty\) with all the data chosen from \(\delta\) fixed. Since \(|Y_k|\ge Y_k^2\), the defect satisfies \[\frac\mu N:=\frac1{2N}\sum_{k=0}^{N-1}(1-|Y_k|) \le\tfrac12(1-S_\delta^{-2})+o(1).\] Put \(q_\delta=\tfrac12(1-S_\delta^{-2})+\delta\). Then \(q_\delta\to0\) as \(\delta\downarrow0\), and for all sufficiently large \(N\) we have \(\mu/N\le q_\delta<1/2\).

Lemma 5, applied to these real inputs, produces \(\varepsilon_k\in\{-1,1\}\) such that \[U_\varepsilon(t)=\frac1{\sqrt N}\sum_{k=0}^{N-1}\varepsilon_k\mathrm e(kt) \quad\text{satisfies}\quad \lVert U_\varepsilon-U_Y\rVert_\infty \le C\left(N^{-1/2}+ \sqrt{q_\delta\log(80/q_\delta)}\right).\] We used the monotonicity of \(q\log(80/q)\) on \((0,1/2]\); the zero-defect case causes no change. If \(E_\delta=C\sqrt{q_\delta\log(80/q_\delta)}\), the two-sided modulus bound in Proposition 8 and (34) give, uniformly in \(t\), \[S_\delta^{-1}-E_\delta-o(1) \le |U_\varepsilon(t)| \le \frac{1+C\delta}{S_\delta}+E_\delta+o(1).\] For fixed \(\delta\), the \(o(1)\) terms vanish as \(N\to\infty\); the resulting bounds both tend to \(1\) as \(\delta\downarrow0\). Given the \(\varepsilon\) of Theorem 1, choose \(\delta\) so that the limiting bounds lie strictly between \(1-\varepsilon\) and \(1+\varepsilon\), and then take \(N\) large enough to absorb the displayed errors. This proves the theorem.

The construction imposes no divisibility condition on \(N\). All torus dimensions, packing parameters, intervals, and leading phases were fixed before \(N\) was chosen. The phase identities use only that the Fourier index \(k\) is an integer. The conclusion therefore holds for every sufficiently large integer length.

Alon, Noga, and Raphael Yuster. 2005. “On a Hypergraph Matching Problem.” Graphs and Combinatorics 21 (4): 377–84. https://doi.org/10.1007/s00373-005-0628-x.
Balister, Paul, Béla Bollobás, Robert Morris, Julian Sahasrabudhe, and Marius Tiba. 2020. “Flat Littlewood Polynomials Exist.” Annals of Mathematics 192 (3): 977–1004. https://doi.org/10.4007/annals.2020.192.3.6.
Bombieri, Enrico, and Jean Bourgain. 2009. “On Kahane’s Ultraflat Polynomials.” Journal of the European Mathematical Society 11 (3): 627–703. https://doi.org/10.4171/JEMS/163.
el Abdalaoui, el Houcein. 2025a. A Generalization of Littlewood’s \(L^\alpha\) Flat Theorem, \(\alpha>0\). arXiv:2509.04212v1. https://arxiv.org/abs/2509.04212v1.
el Abdalaoui, el Houcein. 2025b. On \(L^\alpha\)-Flatness of Erdős–Littlewood’s Polynomials. arXiv:2504.21499v1. https://arxiv.org/abs/2504.21499v1.
Erdélyi, Tamás. 2026a. On an Erdős Problem about the Maximum Modulus of Littlewood Polynomials on the Unit Circle. arXiv:2608.00744v1. https://arxiv.org/abs/2608.00744v1.
Erdélyi, Tamás. 2026b. “The Sequence of Partial Sums of a Unimodular Power Series Is Not Ultraflat.” Journal of Approximation Theory 313: 106219. https://doi.org/10.1016/j.jat.2025.106219.
Erdős, Paul. 1957. “Some Unsolved Problems.” Michigan Mathematical Journal 4: 291–300. https://doi.org/10.1307/mmj/1028997963.
Kahane, Jean-Pierre. 1980. “Sur Les Polynômes à Coefficients Unimodulaires.” Bulletin of the London Mathematical Society 12 (5): 321–42. https://doi.org/10.1112/blms/12.5.321.
Littlewood, J. E. 1966. “On Polynomials \(\sum^n\pm z^m\), \(\sum^n e^{\alpha_m i}z^m\), \(z=e^{\theta i}\).” Journal of the London Mathematical Society 41 (1): 367–76. https://doi.org/10.1112/jlms/s1-41.1.367.
Lovett, Shachar, and Raghu Meka. 2015. “Constructive Discrepancy Minimization by Walking on the Edges.” SIAM Journal on Computing 44 (5): 1573–82. https://doi.org/10.1137/130929400.
OpenAI. 2026a. Asymptotically minimal maxima of real Littlewood polynomials. OpenAI Math Release preprint OAI:Asymptotically-minimal-maxima-of-real-Littlewood-polynomials-September-23-2026.
OpenAI. 2026b. Nearly minimal maxima and positive minima of Littlewood polynomials. OpenAI Math Release preprint OAI:Nearly-minimal-maxima-and-positive-minima-of-Littlewood-polynomials-October-5-2026.
Pippenger, Nicholas, and Joel Spencer. 1989. “Asymptotic Behavior of the Chromatic Index for Hypergraphs.” Journal of Combinatorial Theory, Series A 51 (1): 24–42. https://doi.org/10.1016/0097-3165(89)90074-5.
Rudin, Walter. 1959. “Some Theorems on Fourier Coefficients.” Proceedings of the American Mathematical Society 10 (6): 855–59. https://doi.org/10.1090/S0002-9939-1959-0116184-5.
Spencer, Joel. 1985. “Six Standard Deviations Suffice.” Transactions of the American Mathematical Society 289 (2): 679–706. https://doi.org/10.1090/S0002-9947-1985-0784009-0.

  1. Contrary nonflatness claims in (el Abdalaoui 2025b, 2025a) and specific issues in their arguments are discussed in (OpenAI 2026a, Appendix A). Those claims are not inputs to the present proof.↩︎

LEVEL 1 COMPLETE!
You read 6,216 words and 611 formulas. Your math teacher would be proud.
Converted from the LaTeX source. Something look off? The original PDF is the real thing.

Cool Links: openai/math   Lean   Mathlib   arXiv   the real Coolmath Games