{
  "id": "3547",
  "ident": "NS.03547",
  "slug": "erdos-895",
  "title": "Erdős Problem 895",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Is it true that, for all sufficiently large $n$, if $G$ is a triangle-free graph on\n$\\{1,\\ldots,n\\}$ then there must exist three independent points $a,b,a+b$?\n\nA problem of Erdős and Hajnal [Er95d]. The stated problem has been resolved by Barber (personal\ncommunication) who verified using a SAT solver that this is true for all $n\\geq 18$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos895.erdos_895",
  "statement_lean": "theorem erdos_895 :\n    ∀ᶠ n in atTop, ∀ G : SimpleGraph (Set.Icc 1 n), G.CliqueFree 3 →\n      ∃ a b c : Set.Icc 1 n, a ≠ b ∧ (a : ℕ) + (b : ℕ) = c ∧ G.IsIndepSet {a, b, c}",
  "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 895\n\n*References:*\n- [erdosproblems.com/895](https://www.erdosproblems.com/895)\n- [Er95d] Erdős, Paul, *On some problems in combinatorial set theory*. Publ. Inst. Math.\n  (Beograd) (N.S.) (1995), 61-65.\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos895\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIs it true that, for all sufficiently large $n$, if $G$ is a triangle-free graph on\n$\\{1,\\ldots,n\\}$ then there must exist three independent points $a,b,a+b$?\n\nA problem of Erdős and Hajnal [Er95d]. The stated problem has been resolved by Barber (personal\ncommunication) who verified using a SAT solver that this is true for all $n\\geq 18$.\n-/\n@[category research solved, question, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos895.lean#L268\"]\ntheorem erdos_895 :\n    ∀ᶠ n in atTop, ∀ G : SimpleGraph (Set.Icc 1 n), G.CliqueFree 3 →\n      ∃ a b c : Set.Icc 1 n, a ≠ b ∧ (a : ℕ) + (b : ℕ) = c ∧ G.IsIndepSet {a, b, c} := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nBarber's sharp form of [erdős_895](https://www.erdosproblems.com/895): every triangle-free graph on\n$\\{1,\\ldots,n\\}$ with $n\\geq 18$ contains three independent points $a,b,a+b$.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos895.lean#L243\"]\ntheorem erdos_895.variants.eighteen (n : ℕ) (hn : 18 ≤ n) (G : SimpleGraph (Set.Icc 1 n))\n    (hG : G.CliqueFree 3) :\n    ∃ a b c : Set.Icc 1 n, a ≠ b ∧ (a : ℕ) + (b : ℕ) = c ∧ G.IsIndepSet {a, b, c} := by\n  sorry\n\n/--\nHajnal thought that there is in fact an independent set which is a Hindman set - that is, an\nindependent set of the shape\n$$\\left\\{ \\sum_{i\\in S}a_i : S\\subseteq \\{1,\\ldots,k\\}\\right\\}$$\nfor some $a_1,\\ldots,a_k$ (provided $n$ is sufficiently large depending on $k$).\n\nThe general question of an independent Hindman set remains open. Here the $a_i$ are taken to be\ndistinct positive integers and $S$ ranges over the nonempty subsets of $\\{1,\\ldots,k\\}$.\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_895.variants.hindman :\n    ∀ k : ℕ, ∀ᶠ n in atTop, ∀ G : SimpleGraph (Set.Icc 1 n), G.CliqueFree 3 →\n      ∃ a : Fin k → ℕ, StrictMono a ∧ ∃ I : Set (Set.Icc 1 n), G.IsIndepSet I ∧\n        Subtype.val '' I = {m | ∃ S : Finset (Fin k), S.Nonempty ∧ m = ∑ i ∈ S, a i} := by\n  sorry\n\nend Erdos895\n",
  "statement_hash": "920a2ebdd58886203ab67c451db509649373b9fba297f5dc752004d2b75cf0ec",
  "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."
}