{
  "id": "4219",
  "ident": "NS.04219",
  "slug": "green-82",
  "title": "Ben Green's Open Problem 82",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $A \\subset \\mathbb{Z}$ be a set of size $n$. For how many $\\theta \\in \\mathbb{R}/\\mathbb{Z}$\nmust we have $\\sum_{a \\in A} \\cos(2\\pi a\\theta) = 0$? The answer is the function `minZeros`.",
  "subjects": [
    "math.NT",
    "math.CA",
    "msc:11",
    "msc:42"
  ],
  "tags": [
    "question"
  ],
  "collection": "green",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Green82.green_82",
  "statement_lean": "theorem green_82 : green_82.answer = minZeros",
  "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\n\n/-!\n# Ben Green's Open Problem 82\n\n*References:*\n- [Ben Green's Open Problem 82](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.82)\n- [An improved lower bound for a problem of Littlewood on the zeros of cosine polynomials](https://arxiv.org/abs/2407.16075) (Bedert, 2025)\n- [Cosine polynomials with few zeros](https://arxiv.org/abs/2005.01695) (Juškevičius & Sahasrabudhe, 2020)\n-/\n\n@[expose] public section\n\nopen Filter Real Set\nopen scoped Finset\n\nnamespace Green82\n\n/-- The minimum number of zeros in $[0,1)$ of $\\sum_{a \\in A} \\cos(2\\pi a\\theta)$\nover all sets $A \\subset \\mathbb{Z}$ of size $n$. -/\nnoncomputable def minZeros (n : ℕ+) : ℕ∞ :=\n  ⨅ A : {A : Finset ℤ // A.card = n},\n    ({θ : ℝ | θ ∈ Ico 0 1 ∧ ∑ a ∈ A.val, cos (2 * π * a * θ) = 0} : Set ℝ).ncard\n\ndef green_82.answer : ℕ+ → ℕ∞ := sorry\n\n/-- Let $A \\subset \\mathbb{Z}$ be a set of size $n$. For how many $\\theta \\in \\mathbb{R}/\\mathbb{Z}$\nmust we have $\\sum_{a \\in A} \\cos(2\\pi a\\theta) = 0$? The answer is the function `minZeros`. -/\n@[category research open, question value, AMS 11 42]\ntheorem green_82 : green_82.answer = minZeros := by\n  sorry\n\n/-- Lower bound: every set has at least $(\\log \\log n)^{1-o(1)}$ zeros. -/\n@[category research solved, AMS 11 42]\ntheorem green_82_lower_bound :\n    ∃ o : ℕ → ℝ, o =o[atTop] (fun _ ↦ (1 : ℝ)) ∧\n      ∀ᶠ n in atTop, ∀ A : Finset ℤ, A.card = n →\n        (⌊(Real.log (Real.log n)) ^ (1 - |o n|)⌋₊ : ℕ∞) ≤\n        ({θ : ℝ | θ ∈ Ico 0 1 ∧ ∑ a ∈ A, cos (2 * π * a * θ) = 0} : Set ℝ).ncard := by\n  sorry\n\n/-- Upper bound: there exists $A$ with at most $C(n \\log n)^{2/3}$ zeros. -/\n@[category research solved, AMS 11 42]\ntheorem green_82_upper_bound :\n    ∃ C > 0, ∀ n ≥ 1, ∃ A : Finset ℤ, A.card = n ∧\n      ({θ : ℝ | θ ∈ Ico 0 1 ∧ ∑ a ∈ A, cos (2 * π * a * θ) = 0} : Set ℝ).ncard ≤\n      (⌊C * (n * Real.log n) ^ (2 / 3 : ℝ)⌋₊ : ℕ∞) := by\n  sorry\n\nend Green82\n",
  "statement_hash": "da04ff426338e717245df948423fe38601776dfb263148f8f3c52bcbe3735c0f",
  "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."
}