{
  "id": "4222",
  "ident": "NS.04222",
  "slug": "green-84",
  "title": "Ben Green's Open Problem 84",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Is there a function $f : \\{1, \\dots, N\\} \\to \\{-1, 1\\}$ with $|\\hat{f}(\\theta)| \\geq c\\sqrt{N}$\nfor all $\\theta$?\n\nWe read this as: is there an absolute constant $c > 0$ such that such an $f$ exists for all\nsufficiently large $N$? It cannot hold for all $N$: for $N = 2$,\n$\\hat f(\\theta) = e(\\theta)(f(1) + f(2)e(\\theta))$ vanishes for some $\\theta$. The answer is yes\n[BBMST20], see `green_84.variants.bbmst`.",
  "subjects": [
    "math.CO",
    "math.CA",
    "msc:05",
    "msc:42"
  ],
  "tags": [
    "question"
  ],
  "collection": "green",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Green84.green_84",
  "statement_lean": "theorem green_84 :\n    ∃ c : ℝ, 0 < c ∧ ∀ᶠ N in atTop, ∃ f : ℕ → ℤ, IsSignOn N f ∧\n      ∀ θ : ℝ, c * √N ≤ ‖fourierSum N f θ‖",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\npublic import FormalConjectures.ErdosProblems.«228»\n\n/-!\n# Ben Green's Open Problem 84\n\nErdős's two-sided version of this question, $\\sqrt{N} \\ll |P(z)| \\ll \\sqrt{N}$ on the unit\ncircle, is `Erdos228.erdos_228` in `FormalConjectures.ErdosProblems.«228»`.\n\n*References:*\n- [Gr24] [Green, Ben. \"100 open problems.\" (2024).](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.84)\n- [BBMST20] Balister, P., Bollobás, B., Morris, R., Sahasrabudhe, J. and Tiba, M., *Flat\n  Littlewood polynomials exist*. Ann. of Math. (2) 192 (2020), 977--1004.\n  [arXiv:1907.09464](https://arxiv.org/abs/1907.09464)\n- [JKS13] Jedwab, J., Katz, D. J. and Schmidt, K.-U., *Advances in the merit factor problem for\n  binary sequences*. J. Combin. Theory Ser. A 120 (2013), 882--906.\n  [arXiv:1205.0626](https://arxiv.org/abs/1205.0626)\n- [OAI26a] OpenAI, *Asymptotically minimal maxima of real Littlewood polynomials*. OpenAI Math\n  Release preprint (2026).\n  https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Asymptotically-minimal-maxima-of-real-Littlewood-polynomials-September-23-2026/paper.pdf\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped ExponentialSum Finset Topology\n\nnamespace Green84\n\n/-- `IsSignOn N f` says that $f$ takes only the values $\\pm 1$ on $[N] = \\{1, \\dots, N\\}$. -/\ndef IsSignOn (N : ℕ) (f : ℕ → ℤ) : Prop :=\n  ∀ n ∈ Finset.Icc 1 N, f n = 1 ∨ f n = -1\n\n/--\n`fourierSum N f θ` is $\\hat f(\\theta) = \\sum_{n=1}^{N} f(n) e(n\\theta)$, with\n$e(x) = e^{2\\pi i x}$, the Fourier transform of the restriction of $f$ to $[N]$.\n-/\nnoncomputable def fourierSum (N : ℕ) (f : ℕ → ℤ) (θ : ℝ) : ℂ :=\n  ∑ n ∈ Finset.Icc 1 N, (f n : ℂ) * e (n * θ)\n\n/-- `signPoly ε z` is $P(z) = \\sum_{k=0}^{n} \\varepsilon_k z^k$, for `ε : Fin (n + 1) → ℤ`. -/\nnoncomputable def signPoly {n : ℕ} (ε : Fin (n + 1) → ℤ) (z : ℂ) : ℂ :=\n  ∑ k : Fin (n + 1), (ε k : ℂ) * z ^ (k : ℕ)\n\n/--\n`fourierMod A r` is the Fourier coefficient $\\sum_{a \\in A} e(ar/q)$ of a set\n$A \\subset \\mathbb{Z}/q\\mathbb{Z}$ at $r \\in \\mathbb{Z}/q\\mathbb{Z}$. The product $ar$ is\nrepresented by its value in $\\{0, \\dots, q - 1\\}$.\n-/\nnoncomputable def fourierMod {q : ℕ} (A : Finset (ZMod q)) (r : ZMod q) : ℂ :=\n  ∑ a ∈ A, e (((a * r).val : ℝ) / q)\n\n/--\nIs there a function $f : \\{1, \\dots, N\\} \\to \\{-1, 1\\}$ with $|\\hat{f}(\\theta)| \\geq c\\sqrt{N}$\nfor all $\\theta$?\n\nWe read this as: is there an absolute constant $c > 0$ such that such an $f$ exists for all\nsufficiently large $N$? It cannot hold for all $N$: for $N = 2$,\n$\\hat f(\\theta) = e(\\theta)(f(1) + f(2)e(\\theta))$ vanishes for some $\\theta$. The answer is yes\n[BBMST20], see `green_84.variants.bbmst`.\n-/\n@[category research solved, question, AMS 5 42]\ntheorem green_84 :\n    ∃ c : ℝ, 0 < c ∧ ∀ᶠ N in atTop, ∃ f : ℕ → ℤ, IsSignOn N f ∧\n      ∀ θ : ℝ, c * √N ≤ ‖fourierSum N f θ‖ := by\n  sorry\n\n/--\n**Flat Littlewood polynomials exist.** There are constants $\\Delta > \\delta > 0$ such that, for\nall $n \\ge 2$, there is a polynomial $P(z) = \\sum_{k=0}^{n} \\varepsilon_k z^k$ with\n$\\varepsilon_k \\in \\{-1, 1\\}$ such that $\\delta\\sqrt{n} \\le |P(z)| \\le \\Delta\\sqrt{n}$ for all\n$z \\in \\mathbb{C}$ with $|z| = 1$ [BBMST20, Theorem 1.1].\n\nWith $N = n + 1$ and $f(m) = \\varepsilon_{m-1}$, one has $|\\hat f(\\theta)| = |P(e(\\theta))|$, so\nthis answers `green_84` for all $N \\ge 3$.\n-/\n@[category research solved, AMS 5 30 42]\ntheorem green_84.variants.bbmst :\n    ∃ δ Δ : ℝ, 0 < δ ∧ δ < Δ ∧ ∀ n : ℕ, 2 ≤ n → ∃ ε : Fin (n + 1) → ℤ,\n      (∀ k, ε k = 1 ∨ ε k = -1) ∧\n        ∀ z : ℂ, ‖z‖ = 1 → δ * √n ≤ ‖signPoly ε z‖ ∧ ‖signPoly ε z‖ ≤ Δ * √n := by\n  sorry\n\n/--\nLittlewood's problem asks \"whether there is in fact such a polynomial with\n$|P(z)| = (1 + o(1))\\sqrt{N}$ always\"; [Gr24] adds that \"the answer to this may well be no\".\n\nWe read it as for `green_84`: for every $\\varepsilon > 0$ and all sufficiently large $N$ there is\n$f : [N] \\to \\{-1, 1\\}$ with $\\bigl||\\hat f(\\theta)| - \\sqrt{N}\\bigr| \\le \\varepsilon\\sqrt{N}$ for\nall $\\theta$. With unimodular complex coefficients in place of $\\pm 1$ such polynomials exist,\nby Kahane's theorem `Erdos230.erdos_230.variants.ultraflat`. For $\\pm 1$ coefficients the upper\nhalf holds: for every $\\eta > 0$ and all large $N$ some choice gives $\\max_\\theta |\\hat f(\\theta)|\n\\le (1 + \\eta)\\sqrt{N}$ [OAI26a, Theorem 1.1] (which answers `Erdos1150.erdos_1150`), but that\ntheorem gives no lower bound for $|\\hat f|$.\n-/\n@[category research open, question, AMS 5 30 42]\ntheorem green_84.variants.littlewood :\n    ∀ ε : ℝ, 0 < ε → ∀ᶠ N in atTop, ∃ f : ℕ → ℤ, IsSignOn N f ∧\n      ∀ θ : ℝ, |‖fourierSum N f θ‖ - √N| ≤ ε * √N := by\n  sorry\n\n/--\nThe merit factor problem of Golay: \"it is conjectured ... that\n$\\int_0^1 |P(z)|^4 \\, dz \\geq (1 + c)N^2$ for some universal $c > 0$\" [Gr24], for every\npolynomial $P(z) = \\sum_{i=0}^{N-1} \\varepsilon_i z^i$ with $\\pm 1$ coefficients, where\n$z = e(\\theta)$. Since $|P(e(\\theta))| = |\\hat f(\\theta)|$ for $f(n) = \\varepsilon_{n-1}$, we\nintegrate $|\\hat f|^4$.\n\nWe require $N \\ge 2$, since for $N = 1$ the integral equals $1 = N^2$. The integral is\n$N^2(1 + 1/F)$, where $F$ is the merit factor of the coefficient sequence [JKS13], so the\nconjecture says that the merit factor of binary sequences is bounded.\n\n[Gr24] lists this as open. The conjecture is false: the largest merit factor of a binary sequence\nof length $N$ tends to infinity as $N \\to \\infty$ [OAI26a, Corollary 8.1], a consequence of\n[OAI26a, Theorem 1.1], which answers `Erdos1150.erdos_1150`. [OAI26a] is a 2026 preprint.\n-/\n@[category research solved, AMS 5 42]\ntheorem green_84.variants.golay :\n    ¬ ∃ c : ℝ, 0 < c ∧ ∀ N : ℕ, 2 ≤ N → ∀ f : ℕ → ℤ, IsSignOn N f →\n      (1 + c) * (N : ℝ) ^ 2 ≤ ∫ θ in (0 : ℝ)..1, ‖fourierSum N f θ‖ ^ 4 := by\n  sorry\n\n/--\n[Gr24]: \"I am not sure if it known whether or not there exists, for infinitely many $q$, a subset\n$A \\subset \\mathbb{Z}/q\\mathbb{Z}$ of size $\\sim q^{1/3}$, all of whose nontrivial Fourier\ncoefficients have size $O(q^{1/6})$.\"\n\nWe read $\\sim$ as asymptotic equality, $|A_q| / q^{1/3} \\to 1$ as $q \\to \\infty$ in an infinite set\n$Q$, and the $O(q^{1/6})$ bound as uniform in $q \\in Q$. [Gr24] notes that $O(q^{1/6} \\log q)$\nfollows easily from a random construction.\n-/\n@[category research open, question, AMS 5 11 42]\ntheorem green_84.variants.ultraflat_mod :\n    ∃ Q : Set ℕ, Q.Infinite ∧ ∃ C : ℝ, ∃ A : (q : ℕ) → Finset (ZMod q),\n      Tendsto (fun q ↦ (#(A q) : ℝ) / (q : ℝ) ^ ((1 : ℝ) / 3))\n        (atTop ⊓ Filter.principal Q) (𝓝 1) ∧\n      ∀ q ∈ Q, ∀ r : ZMod q, r ≠ 0 → ‖fourierMod (A q) r‖ ≤ C * (q : ℝ) ^ ((1 : ℝ) / 6) := by\n  sorry\n\nend Green84\n",
  "statement_hash": "8d295ebd50e6006c016850da17e59ac48de30c249f47d284ab55b1a41d5db5c2",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}