{
  "id": "4135",
  "ident": "NS.04135",
  "slug": "green-47",
  "title": "Green's Open Problem 47",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Suppose that a large sieve process leaves a set of quadratic size. Is that set quadratic?\n\nThe following very particular instance is probably the simplest [Gr24]:\nSuppose that $A \\subset \\mathbb{N}$ is a set with the property that\n$|A \\pmod p| \\leqslant \\frac{1}{2}(p + 1)$ for all sufficiently large $p$.\nIs it true that either $|A \\cap [X]| \\ll X^{1/2} / \\log^{100} X$, or $A$ is contained in the\nimage of $\\mathbb{Z}$ under a quadratic map $\\phi : \\mathbb{Q} \\to \\mathbb{Q}$?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "green",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Green47.green_47",
  "statement_lean": "theorem green_47 :\n    ¬ ∀ A : Set ℕ,\n      (∀ᶠ p in atTop, Nat.Prime p → Set.ncard (Set.image (fun a : ℕ => (a : ZMod p)) A) ≤ (p + 1) / 2) →\n      ((fun X : ℕ => ((A ∩ Set.Iic X).ncard : ℝ)) ≪ (fun X : ℕ => Real.sqrt (X : ℝ) / (Real.log (X : ℝ)) ^ 100))\n      ∨ (∃ P : Polynomial ℚ, P.degree = 2 ∧ ∀ a ∈ A, ∃ z : ℤ, (a : ℚ) = P.eval (z : ℚ))",
  "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# Green's Open Problem 47\n\n*References:*\n- [Gr24] [Ben Green's 100 Open Problems](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.47)\n- [GH14] Green, Ben, and Adam J. Harper. \"Inverse questions for the large sieve.\"\n  Geometric and Functional Analysis 24.4 (2014): 1167-1203.\n- [HV09] Helfgott, Harald Andrés, and Akshay Venkatesh. \"How small must ill-distributed sets be.\"\n  Analytic number theory 2 (2009): 224-234.\n- [Wa12] Walsh, Miguel N. \"The inverse sieve problem in high dimensions.\" (2012): 2001-2022.\n- [Wa14] Walsh, Miguel N. \"The algebraicity of ill-distributed sets.\"\n  Geometric and Functional Analysis 24.3 (2014): 959-967.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Green47\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSuppose that a large sieve process leaves a set of quadratic size. Is that set quadratic?\n\nThe following very particular instance is probably the simplest [Gr24]:\nSuppose that $A \\subset \\mathbb{N}$ is a set with the property that\n$|A \\pmod p| \\leqslant \\frac{1}{2}(p + 1)$ for all sufficiently large $p$.\nIs it true that either $|A \\cap [X]| \\ll X^{1/2} / \\log^{100} X$, or $A$ is contained in the\nimage of $\\mathbb{Z}$ under a quadratic map $\\phi : \\mathbb{Q} \\to \\mathbb{Q}$?\n-/\n@[category research solved, question, AMS 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/green-47-exact-containment-counterexample/blob/d6912b65cd04463ca81d2e7dfb52367718a3e3b2/lean/Green47ExactContainmentFC.lean#L19-L25\"]\ntheorem green_47 :\n    ¬ ∀ A : Set ℕ,\n      (∀ᶠ p in atTop, Nat.Prime p → Set.ncard (Set.image (fun a : ℕ => (a : ZMod p)) A) ≤ (p + 1) / 2) →\n      ((fun X : ℕ => ((A ∩ Set.Iic X).ncard : ℝ)) ≪ (fun X : ℕ => Real.sqrt (X : ℝ) / (Real.log (X : ℝ)) ^ 100))\n      ∨ (∃ P : Polynomial ℚ, P.degree = 2 ∧ ∀ a ∈ A, ∃ z : ℤ, (a : ℚ) = P.eval (z : ℚ)) := by\n  sorry\n\n/-- In Green and Harper's formulation [GH14, Conjecture 1.7], the quadratic containment\nis allowed to fail on a finite subset of $A$. -/\n@[category research open, question, AMS 11]\ntheorem green_47.variants.finite_exceptions :\n    ∀ A : Set ℕ,\n      (∀ᶠ p in atTop, Nat.Prime p → Set.ncard (Set.image (fun a : ℕ => (a : ZMod p)) A) ≤ (p + 1) / 2) →\n      ((fun X : ℕ => ((A ∩ Set.Iic X).ncard : ℝ)) ≪ (fun X : ℕ => Real.sqrt (X : ℝ) / (Real.log (X : ℝ)) ^ 100))\n      ∨ (∃ P : Polynomial ℚ, P.degree = 2 ∧ {a ∈ A | ¬∃ z : ℤ, (a : ℚ) = P.eval (z : ℚ)}.Finite) := by\n  sorry\n\nend Green47\n",
  "statement_hash": "063d6346513a476d1edd691e863aa9cd1e61fd748a3776b2160f90fc433b6b0e",
  "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."
}