{
  "id": "2523",
  "ident": "NS.02523",
  "slug": "erdos-59",
  "title": "Erdős Problem 59",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Is it true that the number of graphs on $n$ vertices which do not contain $G$ is\n$$\\leq 2^{(1+o(1))\\mathrm{ex}(n;G)}?$$\n\nThe answer is no, already for $G=C_6$ (see `erdos_59.variants.morris_saxton`). Graphs are\nlabelled, and $G$ ranges over finite graphs containing a cycle, as in [MoSa16]; for some forests\nthe answer is trivially no (for the path with two edges the free graphs include all matchings,\nabout $2^{\\Theta(n\\log n)}$ of them).",
  "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": "Erdos59.erdos_59",
  "statement_lean": "theorem erdos_59 :\n    ¬ ∀ (k : ℕ) (H : SimpleGraph (Fin k)), ¬ H.IsAcyclic →\n      ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n        (numFree H n : ℝ) ≤ (2 : ℝ) ^ ((1 + ε) * (extremalNumber n H : ℝ))",
  "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 59\n\n*References:*\n- [erdosproblems.com/59](https://www.erdosproblems.com/59)\n- [EFR86] Erdős, P., Frankl, P. and Rödl, V., *The asymptotic number of graphs not containing a\n  fixed subgraph and a problem for hypergraphs having no exponent*. Graphs Combin. (1986),\n  113-121.\n- [MoSa16] Morris, R. and Saxton, D., *The number of $C_{2\\ell}$-free graphs*. Adv. Math. (2016),\n  534-580. [arXiv:1309.2927](https://arxiv.org/abs/1309.2927)\n- [Va99] Various, *Some of Paul's favorite problems*. Booklet produced for the conference \"Paul\n  Erdős and his mathematics\", Budapest, July 1999 (1999).\n-/\n\n@[expose] public section\n\nopen Filter SimpleGraph\n\nnamespace Erdos59\n\n/-- `numFree H n` is the number of labelled graphs on the vertex set `Fin n` which do not\ncontain `H` as a subgraph. -/\nnoncomputable def numFree {k : ℕ} (H : SimpleGraph (Fin k)) (n : ℕ) : ℕ :=\n  {G : SimpleGraph (Fin n) | H.Free G}.ncard\n\n/-- If `H` has an edge, the empty graph on `Fin n` is `H`-free, so `numFree H n` is positive. -/\n@[category API, AMS 5]\ntheorem numFree_pos {k : ℕ} {H : SimpleGraph (Fin k)} (hH : H ≠ ⊥) (n : ℕ) :\n    0 < numFree H n := by\n  unfold numFree\n  exact (Set.ncard_pos (Set.toFinite _)).2 ⟨⊥, SimpleGraph.free_bot hH⟩\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIs it true that the number of graphs on $n$ vertices which do not contain $G$ is\n$$\\leq 2^{(1+o(1))\\mathrm{ex}(n;G)}?$$\n\nThe answer is no, already for $G=C_6$ (see `erdos_59.variants.morris_saxton`). Graphs are\nlabelled, and $G$ ranges over finite graphs containing a cycle, as in [MoSa16]; for some forests\nthe answer is trivially no (for the path with two edges the free graphs include all matchings,\nabout $2^{\\Theta(n\\log n)}$ of them).\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/Erdos59.lean#L46\"]\ntheorem erdos_59 :\n    ¬ ∀ (k : ℕ) (H : SimpleGraph (Fin k)), ¬ H.IsAcyclic →\n      ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n        (numFree H n : ℝ) ≤ (2 : ℝ) ^ ((1 + ε) * (extremalNumber n H : ℝ)) := by\n  sorry\n\n/--\nIf $G$ is not bipartite the answer is yes, proved by Erdős, Frankl, and Rödl [EFR86].\n-/\n@[category research solved, AMS 5]\ntheorem erdos_59.variants.erdos_frankl_rodl {k : ℕ} (H : SimpleGraph (Fin k))\n    (hH : ¬ H.IsBipartite) :\n    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (numFree H n : ℝ) ≤ (2 : ℝ) ^ ((1 + ε) * (extremalNumber n H : ℝ)) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe answer is no for $G=C_6$, the cycle on 6 vertices. Morris and Saxton [MoSa16, Proposition\n1.4] have proved there are at least\n$$2^{(1+c)\\mathrm{ex}(n;C_6)}$$\nsuch graphs for infinitely many $n$, for some constant $c>0$.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos59.lean#L46\"]\ntheorem erdos_59.variants.morris_saxton :\n    ∃ c : ℝ, 0 < c ∧ ∃ᶠ n : ℕ in atTop,\n      (2 : ℝ) ^ ((1 + c) * (extremalNumber n (cycleGraph 6) : ℝ)) ≤\n        (numFree (cycleGraph 6) n : ℝ) := by\n  sorry\n\n/--\nIn [Va99] the specific case of $G=C_4$ is also asked.\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_59.variants.c4 :\n    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,\n      (numFree (cycleGraph 4) n : ℝ) ≤\n        (2 : ℝ) ^ ((1 + ε) * (extremalNumber n (cycleGraph 4) : ℝ)) := by\n  sorry\n\n/--\nIt is still possible (and conjectured by Morris and Saxton) that the weaker bound of\n$$2^{O(\\mathrm{ex}(n;G))}$$\nholds for all $G$ containing a cycle.\n-/\n@[category research open, AMS 5]\ntheorem erdos_59.variants.big_o :\n    ∀ (k : ℕ) (H : SimpleGraph (Fin k)), ¬ H.IsAcyclic →\n      ∃ C : ℝ, 0 < C ∧ ∀ᶠ n : ℕ in atTop,\n        (numFree H n : ℝ) ≤ (2 : ℝ) ^ (C * (extremalNumber n H : ℝ)) := by\n  sorry\n\nend Erdos59\n",
  "statement_hash": "ac80bcdcbcbedeeccdf32299adeabd71076427ee1ebc0861311c8cba45cd18c6",
  "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."
}