{
  "id": "3245",
  "ident": "NS.03245",
  "slug": "erdos-802",
  "title": "Erdős Problem 802",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is it true that any $K_r$-free graph on $n$ vertices with average degree $t$ contains an\nindependent set on\n$$\\gg_r \\frac{\\log t}{t}n$$\nmany vertices?\n\nA conjecture of Ajtai, Erdős, Komlós, and Szemerédi [AEKS81].",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": true,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos802.erdos_802",
  "statement_lean": "theorem erdos_802 : ∀ r : ℕ, ∃ c > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),\n    G.CliqueFree r →\n      c * (log G.averageDegree / G.averageDegree) * n ≤ G.indepNum",
  "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 802\n\n*References:*\n- [erdosproblems.com/802](https://www.erdosproblems.com/802)\n- [AEKS81] Ajtai, M. and Erdős, P. and Komlós, J. and Szemerédi, E., *On Turán's theorem for\n  sparse graphs*. Combinatorica (1981), 313-317.\n- [AKS80] Ajtai, Miklós and Komlós, János and Szemerédi, Endre, *A note on Ramsey numbers*.\n  J. Combin. Theory Ser. A (1980), 354-360.\n- [Al96b] Alon, Noga, *Independence numbers of locally sparse graphs and a Ramsey type problem*.\n  Random Structures Algorithms (1996), 271-278.\n- [Sh95] Shearer, James B., *On the independence number of sparse graphs*. Random Structures\n  Algorithms (1995), 269-271.\n-/\n\n@[expose] public section\n\nopen Real\n\nnamespace Erdos802\n\nopen scoped Classical in\n/--\nIs it true that any $K_r$-free graph on $n$ vertices with average degree $t$ contains an\nindependent set on\n$$\\gg_r \\frac{\\log t}{t}n$$\nmany vertices?\n\nA conjecture of Ajtai, Erdős, Komlós, and Szemerédi [AEKS81].\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_802 : ∀ r : ℕ, ∃ c > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),\n    G.CliqueFree r →\n      c * (log G.averageDegree / G.averageDegree) * n ≤ G.indepNum := by\n  sorry\n\nopen scoped Classical in\n/--\nAjtai, Erdős, Komlós, and Szemerédi [AEKS81] proved that any $K_r$-free graph on $n$ vertices\nwith average degree $t$ contains an independent set on\n$$\\gg_r \\frac{\\log\\log(t+1)}{t}n$$\nmany vertices.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_802.variants.aeks : ∀ r : ℕ, ∃ c > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),\n    G.CliqueFree r →\n      c * (log (log (G.averageDegree + 1)) / G.averageDegree) * n ≤ G.indepNum := by\n  sorry\n\nopen scoped Classical in\n/--\nShearer [Sh95] proved that any $K_r$-free graph on $n$ vertices with average degree $t$ contains\nan independent set on\n$$\\gg_r \\frac{\\log t}{\\log\\log(t+1)t}n$$\nmany vertices.\n\nWe assume $t \\geq 2$. For $t + 1$ slightly larger than $e$ the factor $\\log\\log(t+1)$ is close\nto $0$, so the bound blows up and the statement is false without such a restriction.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_802.variants.shearer : ∀ r : ℕ, ∃ c > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),\n    G.CliqueFree r → 2 ≤ G.averageDegree →\n      c * (log G.averageDegree / (log (log (G.averageDegree + 1)) * G.averageDegree)) * n ≤\n        G.indepNum := by\n  sorry\n\nopen scoped Classical in\n/--\nAjtai, Komlós, and Szemerédi [AKS80] proved the conjectured bound when $r = 3$: any\ntriangle-free graph on $n$ vertices with average degree $t$ contains an independent set on\n$$\\gg \\frac{\\log t}{t}n$$\nmany vertices.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_802.variants.r_eq_three : ∃ c > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),\n    G.CliqueFree 3 →\n      c * (log G.averageDegree / G.averageDegree) * n ≤ G.indepNum := by\n  sorry\n\nopen scoped Classical in\n/--\nAlon [Al96b] proved the conjectured bound under the stronger assumption that the induced graph\non every vertex neighbourhood has chromatic number $\\leq r - 2$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_802.variants.alon : ∀ r : ℕ, ∃ c > (0 : ℝ), ∀ n : ℕ, ∀ G : SimpleGraph (Fin n),\n    (∀ v, (G.induce (G.neighborSet v)).Colorable (r - 2)) →\n      c * (log G.averageDegree / G.averageDegree) * n ≤ G.indepNum := by\n  sorry\n\nend Erdos802\n",
  "statement_hash": "e561835c94732327d0b13f5a63635f83f39a9617edba7b9248d65be245c82c07",
  "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."
}