{
  "id": "1225",
  "ident": "NS.01225",
  "slug": "erdos-180",
  "title": "Erdős Problem 180",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "If $\\mathcal{F}$ is a finite set of finite graphs then $\\mathrm{ex}(n;\\mathcal{F})$ is the maximum\nnumber of edges a graph on $n$ vertices can have without containing any subgraphs from\n$\\mathcal{F}$. Note that it is trivial that $\\mathrm{ex}(n;\\mathcal{F})\\leq \\mathrm{ex}(n;G)$ for\nevery $G\\in\\mathcal{F}$. Is it true that, for every $\\mathcal{F}$, there exists $G\\in\\mathcal{F}$\nsuch that\n$$\\mathrm{ex}(n;G)\\ll_{\\mathcal{F}}\\mathrm{ex}(n;\\mathcal{F})?$$\n\nThis is the Erdős–Simonovits compactness conjecture. The answer is no: OpenAI [OpenAI26] give a\nfamily of connected bipartite graphs, none of them acyclic, for which no single member controls\nthe family extremal number. See `erdos_180.variants.counterexample`.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos180.erdos_180",
  "statement_lean": "theorem erdos_180 :\n    ¬ ∀ family : Finset FiniteGraph,\n      family.Nonempty → IsCyclicFamily family → IsCompactFamily family",
  "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 180\n\n*References:*\n- [erdosproblems.com/180](https://www.erdosproblems.com/180)\n- [ErSi82] Erdős, P. and Simonovits, M., *Compactness results in extremal graph theory*.\n  Combinatorica (1982), 275-288.\n- [OpenAI26] OpenAI, *Ten advances in mathematics and theoretical computer science*. (2026).\n-/\n\n@[expose] public section\n\nopen Filter SimpleGraph\n\nnamespace Erdos180\n\n/-- A finite graph, bundled with its vertex count, so that a family may mix orders. -/\nstructure FiniteGraph where\n  order : ℕ\n  graph : SimpleGraph (Fin order)\n\n/-- A host graph is `family`-free when it contains no member of `family` as a subgraph. -/\ndef FamilyFree (family : Finset FiniteGraph) {n : ℕ} (host : SimpleGraph (Fin n)) : Prop :=\n  ∀ forbidden ∈ family, forbidden.graph.Free host\n\nopen scoped Classical in\n/-- $\\mathrm{ex}(n;\\mathcal{F})$, the greatest number of edges of a graph on `n` vertices\ncontaining no member of `family`. -/\nnoncomputable def familyExtremal (family : Finset FiniteGraph) (n : ℕ) : ℕ :=\n  (Finset.univ.filter (FamilyFree family)).sup\n    fun host : SimpleGraph (Fin n) => host.edgeFinset.card\n\n/-- No member of the family is acyclic. -/\ndef IsCyclicFamily (family : Finset FiniteGraph) : Prop :=\n  ∀ forbidden ∈ family, ¬ forbidden.graph.IsAcyclic\n\n/-- The family is *compact*: some single member already controls the family extremal number. -/\ndef IsCompactFamily (family : Finset FiniteGraph) : Prop :=\n  ∃ forbidden ∈ family, ∃ C : ℝ, 0 < C ∧\n    ∀ᶠ n : ℕ in atTop,\n      (extremalNumber n forbidden.graph : ℝ) ≤ C * (familyExtremal family n : ℝ)\n\n/--\nIf $\\mathcal{F}$ is a finite set of finite graphs then $\\mathrm{ex}(n;\\mathcal{F})$ is the maximum\nnumber of edges a graph on $n$ vertices can have without containing any subgraphs from\n$\\mathcal{F}$. Note that it is trivial that $\\mathrm{ex}(n;\\mathcal{F})\\leq \\mathrm{ex}(n;G)$ for\nevery $G\\in\\mathcal{F}$. Is it true that, for every $\\mathcal{F}$, there exists $G\\in\\mathcal{F}$\nsuch that\n$$\\mathrm{ex}(n;G)\\ll_{\\mathcal{F}}\\mathrm{ex}(n;\\mathcal{F})?$$\n\nThis is the Erdős–Simonovits compactness conjecture. The answer is no: OpenAI [OpenAI26] give a\nfamily of connected bipartite graphs, none of them acyclic, for which no single member controls\nthe family extremal number. See `erdos_180.variants.counterexample`.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_180 :\n    ¬ ∀ family : Finset FiniteGraph,\n      family.Nonempty → IsCyclicFamily family → IsCompactFamily family := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe counterexample: a nonempty family of connected bipartite graphs, none acyclic, that is not\ncompact.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/openai/ten-proofs/blob/94bc0feb6a9ff12c7d31d6de640a725c9d43d2b6/CompactnessAndDegeneracy.lean\"]\ntheorem erdos_180.variants.counterexample :\n    ∃ family : Finset FiniteGraph,\n      family.Nonempty ∧\n      (∀ forbidden ∈ family,\n        forbidden.graph.Connected ∧ forbidden.graph.IsBipartite ∧\n          ¬ forbidden.graph.IsAcyclic) ∧\n      ¬ IsCompactFamily family := by\n  sorry\n\nend Erdos180\n",
  "statement_hash": "d336cf55dcb4cd97302452bc2d3f1c6e037daacf41fe3bc0b803910b31dbfecf",
  "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."
}