{
  "id": "1067",
  "ident": "NS.01067",
  "slug": "erdos-13",
  "title": "Erdős Problem 13",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "If $A \\subseteq \\{1, ..., N\\}$ is a set with no $a, b, c \\in A$ such that $a | (b+c)$ and\n$a < \\min(b,c)$, then $|A| \\le N/3 + O(1)$. This has been solved by Bedert [Be23].\n\n[Be23] Bedert, B., _On a problem of Erdős and Sárközy about sequences with no term dividing\nthe sum of two larger terms_. arXiv:2301.07065 (2023).",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/13",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos13.erdos_13",
  "statement_lean": "theorem erdos_13 : ∃ C : ℝ, ∀ N : ℕ, ∀ A ⊆ Icc 1 N, IsForbiddenTripleFree A →\n    (A.card : ℝ) ≤ (N : ℝ) / 3 + C",
  "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# Erdős Problem 13\n\n*Reference:* [erdosproblems.com/13](https://www.erdosproblems.com/13)\n-/\n\n@[expose] public section\n\nopen Finset Nat\n\nnamespace Erdos13\n\n/--\nA finite set of naturals `A` is said to be forbidden-triple-free if for all `a, b, c ∈ A`,\nif `a < min(b, c)` then `a` does not divide `b + c`.\n-/\ndef IsForbiddenTripleFree (A : Finset ℕ) : Prop :=\n  ∀ a ∈ A, ∀ b ∈ A, ∀ c ∈ A, a < min b c → ¬ (a ∣ b + c)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIf $A \\subseteq \\{1, ..., N\\}$ is a set with no $a, b, c \\in A$ such that $a | (b+c)$ and\n$a < \\min(b,c)$, then $|A| \\le N/3 + O(1)$. This has been solved by Bedert [Be23].\n\n[Be23] Bedert, B., _On a problem of Erdős and Sárközy about sequences with no term dividing\nthe sum of two larger terms_. arXiv:2301.07065 (2023).\n-/\n@[category research solved, AMS 5 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos13.lean#L8261\"]\ntheorem erdos_13 : ∃ C : ℝ, ∀ N : ℕ, ∀ A ⊆ Icc 1 N, IsForbiddenTripleFree A →\n    (A.card : ℝ) ≤ (N : ℝ) / 3 + C := by\n  sorry\n\n/--\nA general version asks, for a fixed $r \\in \\mathbb{N}$, if a set\n$A \\subseteq \\{1, ..., N\\}$ has no $a \\in A$ and $b_1, ..., b_r \\in A$ such that\n$a | (b_1 + ... + b_r)$ and $a < \\min(b_1, ..., b_r)$, then is it true that\n$|A| \\le N/(r+1) + O(1)$?\n-/\n@[category research open, question, AMS 5 11]\ntheorem erdos_13.variants.general : ∀ r : ℕ, ∃ C : ℝ, ∀ N : ℕ,\n    ∀ A ⊆ Icc 1 N,\n    (∀ a ∈ A, ∀ (b : Fin r → ℕ), (∀ i, b i ∈ A) → (∀ i, a < b i) →\n      ¬ (a ∣ ∑ i, b i)) →\n    (A.card : ℝ) ≤ (N : ℝ) / (r + 1) + C := by\n  sorry\n\nend Erdos13\n",
  "statement_hash": "f8752c7dc759355e88f5f7d8f3f2f4b6c2b4072ba7ac6f9e3334b56aec262d65",
  "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."
}