{
  "id": "359",
  "ident": "NS.00359",
  "slug": "erdos-1008",
  "title": "Erdős Problem 1008",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Does every graph with $m$ edges contain a subgraph with $\\gg m^{2/3}$ edges which contains\nno $C_4$?\n\nThis problem was first solved in the affirmative by Conlon, Fox, and Sudakov [CFS14b]. A simple\nproof is given by Hunter in the comments.",
  "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": "Erdos1008.erdos_1008",
  "statement_lean": "theorem erdos_1008 :\n    ∃ c > (0 : ℝ), ∀ (V : Type) [Fintype V] (G : SimpleGraph V),\n      ∃ H ≤ G, (cycleGraph 4).Free H ∧\n        c * (G.edgeSet.ncard : ℝ) ^ (2 / 3 : ℝ) ≤ (H.edgeSet.ncard : ℝ)",
  "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 1008\n\n*References:*\n- [erdosproblems.com/1008](https://www.erdosproblems.com/1008)\n- [CFS14b] Conlon, D. and Fox, J. and Sudakov, B., *Large subgraphs without complete bipartite\n  graphs*. arXiv:1401.6711 (2014).\n- [Er71] Erdős, P., *Some unsolved problems in graph theory and combinatorial analysis*.\n  Combinatorial Mathematics and its Applications (Proc. Conf., Oxford, 1969) (1971), 97-109.\n-/\n\n@[expose] public section\n\nopen SimpleGraph\n\nnamespace Erdos1008\n\nset_option linter.style.formal_proof_palomar false in\n/--\nDoes every graph with $m$ edges contain a subgraph with $\\gg m^{2/3}$ edges which contains\nno $C_4$?\n\nThis problem was first solved in the affirmative by Conlon, Fox, and Sudakov [CFS14b]. A simple\nproof is given by Hunter in the comments.\n-/\n@[category research solved, question, AMS 5, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos1008.lean\"]\ntheorem erdos_1008 :\n    ∃ c > (0 : ℝ), ∀ (V : Type) [Fintype V] (G : SimpleGraph V),\n      ∃ H ≤ G, (cycleGraph 4).Free H ∧\n        c * (G.edgeSet.ncard : ℝ) ^ (2 / 3 : ℝ) ≤ (H.edgeSet.ncard : ℝ) := by\n  sorry\n\n/--\nOriginally asked by Bollobás and Erdős in 'a colloquium on graph theory at Tihany' with $m^{2/3}$\nreplaced by $m^{3/4}$. Folkman showed this is false with the counterexample $K_{n,n^2}$, which has\n$n^3$ edges, and yet every subgraph with $>n^2+\\binom{n}{2}$ edges contains a $C_4$.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_1008.variants.three_quarters :\n    ¬ ∃ c > (0 : ℝ), ∀ (V : Type) [Fintype V] (G : SimpleGraph V),\n      ∃ H ≤ G, (cycleGraph 4).Free H ∧\n        c * (G.edgeSet.ncard : ℝ) ^ (3 / 4 : ℝ) ≤ (H.edgeSet.ncard : ℝ) := by\n  sorry\n\n/--\nFolkman's counterexample $K_{n,n^2}$, which has $n^3$ edges, and yet every subgraph with\n$>n^2+\\binom{n}{2}$ edges contains a $C_4$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1008.variants.folkman (n : ℕ) :\n    ((completeBipartiteGraph (Fin n) (Fin (n ^ 2))).edgeSet.ncard = n ^ 3) ∧\n      ∀ H ≤ completeBipartiteGraph (Fin n) (Fin (n ^ 2)),\n        n ^ 2 + n.choose 2 < H.edgeSet.ncard → cycleGraph 4 ⊑ H := by\n  sorry\n\n/--\nIn [Er71] Erdős revises the conjecture to $m^{2/3}$, and notes $\\gg m^{1/2}$ is trivial.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_1008.variants.lower_bound :\n    ∃ c > (0 : ℝ), ∀ (V : Type) [Fintype V] (G : SimpleGraph V),\n      ∃ H ≤ G, (cycleGraph 4).Free H ∧\n        c * (G.edgeSet.ncard : ℝ) ^ (1 / 2 : ℝ) ≤ (H.edgeSet.ncard : ℝ) := by\n  sorry\n\nend Erdos1008\n",
  "statement_hash": "ba7f161fb12d64077035f9437456dbbf36f5c572afe24911a21c7878593f3c97",
  "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."
}