{
  "id": "4003",
  "ident": "NS.04003",
  "slug": "green-24",
  "title": "Green's Open Problem 24",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "If $A$ is a set of $n$ integers, what is the maximum number of affine translates of the set\n$\\lbrace 0,1,3 \\rbrace$ that $A$ can contain?\n\nConjectured in [Aa19] p.579: $\\left(\\frac{1}{3} + o(1)\\right) n^2$.",
  "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": "Green24.green_24",
  "statement_lean": "theorem green_24 : ∀ n, max013AffineTranslates n = green_24.answer n",
  "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 24\n\nReferences:\n- [Green, Ben. \"100 open problems.\" (2024).](https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf#problem.24)\n- [Aa19] Aaronson, James. \"Maximising the number of solutions to a linear equation in a set of integers.\"\n  Bulletin of the London Mathematical Society 51.4 (2019): 577-594.\n- [HaL28] Hardy, G. H., and J. E. Littlewood. \"Notes on the theory of series (VIII): an inequality.\"\n  Journal of the London Mathematical Society 1.2 (1928): 105-110.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Green24\n\n/--\nThe maximum number of $\\lbrace 0,1,3 \\rbrace$ affine translates that a set of size $n$ can\ncontain.\n-/\nnoncomputable def max013AffineTranslates (n : ℕ) : ℕ :=\n  sSup { k |\n    ∃ A : Finset ℤ,\n      A.card = n ∧\n      -- Iterate over (x,y) = (a, a + d) in A × A (x ≠ y), and check if a + 3d = x + 3(y - x) ∈ A\n      k = ((A ×ˢ A).filter (fun (x, y) ↦ x ≠ y ∧ x + 3 * (y - x) ∈ A)).card\n  }\n\ndef green_24.answer : ℕ → ℕ := sorry\n\n/--\nIf $A$ is a set of $n$ integers, what is the maximum number of affine translates of the set\n$\\lbrace 0,1,3 \\rbrace$ that $A$ can contain?\n\nConjectured in [Aa19] p.579: $\\left(\\frac{1}{3} + o(1)\\right) n^2$.\n-/\n@[category research open, question value, AMS 5 11]\ntheorem green_24 : ∀ n, max013AffineTranslates n = green_24.answer n := by\n  sorry\n\n/-  A collection of associated bounds and conjectured values. -/\n\nnamespace variants\n\n\n/-- From [Aa19] p.577: the trivial upper bound is $n^2$ (non asymptotic). -/\n@[category research solved, AMS 5 11]\ntheorem upper_trivial {n : ℕ} : max013AffineTranslates n ≤ n ^ 2 := by\n  apply csSup_le\n  · exact ⟨_, ⟨(Finset.range n).image Int.ofNat, by\n      rw [Finset.card_image_of_injective _ Int.ofNat_injective, Finset.card_range], rfl⟩⟩\n  · rintro k ⟨A, hA, rfl⟩\n    apply le_trans (Finset.card_filter_le _ _)\n    rw [Finset.card_product, hA, pow_two]\n\n/-- The asymptotic constant $\\gamma$ defined in [Aa19] p.579. -/\nnoncomputable def gamma : ℝ :=\n  limsup (fun n : ℕ => (max013AffineTranslates n : ℝ) / ((n : ℝ)^2)) atTop\n\n/-- Asymptotic upper bound (1.2) in [Aa19]. Named after Hardy and Littlewood [HaL28]. -/\n@[category research solved, AMS 5 11]\ntheorem upper_HL : gamma ≤ 3/4 := by\n  sorry\n\n/-- Asymptotic lower bound (1.2) in [Aa19]. Named after Hardy and Littlewood [HaL28]. -/\n@[category research solved, AMS 5 11]\ntheorem lower_HL : gamma ≥ 1/12 := by\n  sorry\n\n/-- Conjecture p.579 in [Aa19]: $\\left(\\frac{1}{3} + o(1)\\right) n^2$. -/\n@[category research open, AMS 5 11]\ntheorem conjecture : gamma = 1/3 := by\n  sorry\n\nend variants\n\nend Green24\n",
  "statement_hash": "73fb4c4f8a4348721ef469dcdcd7267391ed9d11d2d4ab5951365a7152ccfb4c",
  "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."
}