{
  "id": "3289",
  "ident": "NS.03289",
  "slug": "erdos-817",
  "title": "Erdős Problem 817",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": null,
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos817.erdos_817",
  "statement_lean": "theorem erdos_817 :\n    ¬ (fun n => (3 ^ n : ℝ)) =O[atTop] fun n => (g 3 n : ℝ)",
  "challenge_source": "/-\nCopyright 2025 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# Erdős Problem 817\n\n*References:*\n- [erdosproblems.com/817](https://www.erdosproblems.com/817)\n- [Co26] Costa, S., *A negative answer to the Erdős–Sárközy question*.\n  [arXiv:2609.06303](https://arxiv.org/abs/2609.06303) (2026).\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos817\n\n/-- Define $g_k(n)$ to be the minimal $N$ such that $\\{1, ..., N\\}$ contains some $A$ of\nsize $|A| = n$ such that\n$$\n  \\langle A\\rangle = \\left\\{\\sum_{a \\in A} \\epsilon_a a : \\epsilon_a \\in\\{0, 1\\}\\right\\}\n$$\ncontains no non-trivial $k$-term arithmetic progression. -/\nnoncomputable\ndef g (k : ℕ) (n : ℕ) : ℕ := sInf { N | ∃ A ⊆ Finset.Icc 1 N, A.card = n ∧\n    ∀ s, s ⊆ { ∑ a ∈ B, a | B ∈ A.powerset } → s.IsAPOfLengthFree k}\n\nset_option linter.style.formal_proof_palomar false in\n/-- Let $k \\geq 3$. Define $g_k(n)$ to be the minimal $N$ such that\n$\\{1, ..., N\\}$ contains some $A$ of size $|A| = n$ such that\n$$\n  \\langle A\\rangle = \\left\\{\\sum_{a \\in A} \\epsilon_a a : \\epsilon_a \\in\\{0, 1\\}\\right\\}\n$$\ncontains no non-trivial $k$-term arithmetic progression. Estimate $g_k(n)$. In\nparticular, is it true that\n$$\n  g_3(n) \\gg 3^n\n$$\n\nThe answer is no: Costa [Co26, Corollary 1.2] proved that $\\liminf_{n \\to \\infty} g_3(n)/3^n = 0$.\n-/\n-- Formalisation note : only formalising the \"In particular\" part\n@[category research solved, question, AMS 5 11, formal_proof using lean4 at\n  \"https://zenodo.org/records/22638810\"]\ntheorem erdos_817 :\n    ¬ (fun n => (3 ^ n : ℝ)) =O[atTop] fun n => (g 3 n : ℝ) := by\n  sorry\n\n/-- A problem of Erdős and Sárközy who proved\n$$\n  g_3(n) \\gg \\frac{3^n}{n^{O(1)}}.\n$$ -/\n@[category research solved, AMS 5 11]\ntheorem erdos_817.variants.bdd_power : ∃ O > (0 : ℝ),\n    (fun (n : ℕ) => (3 ^ n : ℝ) / n ^ O) =O[atTop] fun n => (g 3 n : ℝ) := by\n  sorry\n\nend Erdos817\n",
  "statement_hash": "dc2df79686dbcd516c0dde91e12474501fcdc475b205224007fc611854f183fb",
  "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."
}