{
  "id": "4171",
  "ident": "NS.04171",
  "slug": "green-65",
  "title": "Ben Green's Open Problem 65",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is there $c > 0$ such that every sufficiently large subset $A \\subseteq [N]$ of size at least\n$N^{1-c}$ has a difference that is a nonzero square?",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "green",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Green65.green_65",
  "statement_lean": "theorem green_65 :\n    LargeDifferencePattern IsNonzeroSquare",
  "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 65\n\n*References:*\n- [Gr26] [Ben Green's Open Problem 65](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.65)\n- [Gr22] [Green, Ben. \"On Sárközy's theorem for shifted primes.\"](https://arxiv.org/abs/2206.08001)\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped Pointwise\n\nnamespace Green65\n\n/-- An integer is a nonzero square if it is the square of a nonzero natural number. -/\ndef IsNonzeroSquare (d : ℤ) : Prop :=\n  ∃ n : ℕ, n ≠ 0 ∧ d = (n : ℤ) ^ 2\n\n/-- An integer is one less than a prime. -/\ndef IsPrimeMinusOne (d : ℤ) : Prop :=\n  ∃ p : ℕ, p.Prime ∧ d = (p : ℤ) - 1\n\n/--\nThere is a fixed density exponent $c > 0$ such that every sufficiently large subset\n$A \\subseteq [N]$ with $|A| \\geq N^{1-c}$ has a difference satisfying $P$.\n\nWe model $[N]$ as the integer interval $\\{1, \\ldots, N\\}$ and use sufficiently large $N$, since\nthe literal small-$N$ version is false for the nonzero-square question.\n-/\ndef LargeDifferencePattern (P : ℤ → Prop) : Prop :=\n  ∃ c : ℝ, 0 < c ∧ c < 1 ∧ ∀ᶠ N : ℕ in atTop, ∀ A : Finset ℤ,\n    A ⊆ Finset.Icc 1 (N : ℤ) →\n      (N : ℝ) ^ (1 - c) ≤ (A.card : ℝ) →\n        ∃ d ∈ A - A, P d\n\n/-- Without \"sufficiently large $N$\" the question is false for every $c$:\n$A = \\{1\\} \\subseteq [1]$ has $|A| = 1 = 1^{1-c}$ and $A - A = \\{0\\}$. -/\n@[category test, AMS 5 11]\ntheorem not_forall_of_isNonzeroSquare :\n    ¬ ∃ c : ℝ, 0 < c ∧ c < 1 ∧ ∀ N : ℕ, ∀ A : Finset ℤ,\n      A ⊆ Finset.Icc 1 (N : ℤ) → (N : ℝ) ^ (1 - c) ≤ (A.card : ℝ) →\n        ∃ d ∈ A - A, IsNonzeroSquare d := by\n  rintro ⟨c, -, -, h⟩\n  obtain ⟨d, hd, n, hn, hdn⟩ :=\n    h 1 {1} (by decide) (by norm_num [Real.one_rpow])\n  have hd0 : d = 0 := by simpa using hd\n  rw [hd0, eq_comm] at hdn\n  simp at hdn\n  exact hn hdn\n\n/--\nIs there $c > 0$ such that every sufficiently large subset $A \\subseteq [N]$ of size at least\n$N^{1-c}$ has a difference that is a nonzero square?\n-/\n@[category research open, question, AMS 5 11]\ntheorem green_65 :\n    LargeDifferencePattern IsNonzeroSquare := by\n  sorry\n\n/--\nGreen asks the analogous question with a nonzero square replaced by $p - 1$ for a prime $p$.\nGreen [Gr22, Theorem 1.1] solved this positively.\n-/\n@[category research solved, question, AMS 5 11]\ntheorem green_65.variants.prime_minus_one :\n    LargeDifferencePattern IsPrimeMinusOne := by\n  sorry\n\nend Green65\n",
  "statement_hash": "49a7ac49e805756a61f66f0de89ccd666e29ee53ba5d4f2596d66d7e766560e3",
  "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."
}