{
  "id": "2498",
  "ident": "NS.02498",
  "slug": "erdos-573",
  "title": "Erdős Problem 573",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Is it true that\n$$\\mathrm{ex}(n;\\{C_3,C_4\\})\\sim (n/2)^{3/2}?$$\n\nA problem of Erdős and Simonovits. This problem is asking whether the threshold is the same as\nfor forbidding $C_4$ and all odd cycles (see `erdos_573.variants.kst`) if one only forbids the odd\ncycle of length $3$. See also [574] for the general case, and [765] for $\\mathrm{ex}(n;C_4)$.\n\nThis problem is #48 in Extremal Graph Theory in the graphs problem collection.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos573.erdos_573",
  "statement_lean": "theorem erdos_573 :\n    (fun n : ℕ ↦ (cycleExtremalNumber {3, 4} n : ℝ)) ~[atTop]\n      fun n : ℕ ↦ ((n : ℝ) / 2) ^ (3 / 2 : ℝ)",
  "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 573\n\n*References:*\n- [erdosproblems.com/573](https://www.erdosproblems.com/573)\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- [Er75] Erdős, P., *Some recent progress on extremal problems in graph theory*. Congr. Numer.\n  (1975), 3-14.\n- [ErSi82] Erdős, P. and Simonovits, M., *Compactness results in extremal graph theory*.\n  Combinatorica (1982), 275-288.\n- [Er93] Erdős, Paul, *Some of my favorite solved and unsolved problems in graph theory*.\n  Quaestiones Math. (1993), 333-350.\n- [KST54] Kővári, T. and Sós, V. T. and Turán, P., *On a problem of K. Zarankiewicz*.\n  Colloq. Math. (1954), 50-57.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics SimpleGraph\n\nnamespace Erdos573\n\nopen scoped Classical in\n/-- $\\mathrm{ex}(n;\\{C_k : k \\in L\\})$: the greatest number of edges of a simple graph on `n`\nvertices that contains no cycle $C_k$ with $k \\in L$ as a (not necessarily induced) subgraph.\n\n`cycleGraph k` is the cycle on `Fin k`. The definition is meaningful only for sets `L` of\nlengths `k ≥ 3`, which are the only ones used below: `cycleGraph 0` and `cycleGraph 1` have no\nedges, and `cycleGraph 2` is a single edge. -/\nnoncomputable def cycleExtremalNumber (L : Set ℕ) (n : ℕ) : ℕ :=\n  (Finset.univ.filter fun G : SimpleGraph (Fin n) => ∀ k ∈ L, (cycleGraph k).Free G).sup\n    fun G => G.edgeFinset.card\n\n/--\nIs it true that\n$$\\mathrm{ex}(n;\\{C_3,C_4\\})\\sim (n/2)^{3/2}?$$\n\nA problem of Erdős and Simonovits. This problem is asking whether the threshold is the same as\nfor forbidding $C_4$ and all odd cycles (see `erdos_573.variants.kst`) if one only forbids the odd\ncycle of length $3$. See also [574] for the general case, and [765] for $\\mathrm{ex}(n;C_4)$.\n\nThis problem is #48 in Extremal Graph Theory in the graphs problem collection.\n-/\n@[category research open, question, AMS 5]\ntheorem erdos_573 :\n    (fun n : ℕ ↦ (cycleExtremalNumber {3, 4} n : ℝ)) ~[atTop]\n      fun n : ℕ ↦ ((n : ℝ) / 2) ^ (3 / 2 : ℝ) := by\n  sorry\n\n/--\nErdős and Simonovits [ErSi82] proved that\n$$\\mathrm{ex}(n;\\{C_4,C_5\\})=(n/2)^{3/2}+O(n).$$\n\nThe source writes an equality; only the upper bound is stated here.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_573.variants.c4_c5 :\n    ∃ C : ℝ, ∀ᶠ n : ℕ in atTop,\n      (cycleExtremalNumber {4, 5} n : ℝ) ≤ ((n : ℝ) / 2) ^ (3 / 2 : ℝ) + C * n := by\n  sorry\n\n/--\nKővári, Sós, and Turán [KST54] proved that the extremal number of edges for containing either\n$C_4$ or an odd cycle of any length is $\\sim (n/2)^{3/2}$, that is,\n$$\\mathrm{ex}(n;\\{C_4, C_3, C_5, C_7, \\ldots\\})\\sim (n/2)^{3/2}.$$\nEquivalently, the maximum number of edges of a bipartite $C_4$-free graph on $n$ vertices is\n$\\sim (n/2)^{3/2}$. The attribution follows erdosproblems.com; the matching lower bound comes from\nfinite-geometry constructions.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_573.variants.kst :\n    (fun n : ℕ ↦ (cycleExtremalNumber ({4} ∪ {k | Odd k ∧ 3 ≤ k}) n : ℝ)) ~[atTop]\n      fun n : ℕ ↦ ((n : ℝ) / 2) ^ (3 / 2 : ℝ) := by\n  sorry\n\nend Erdos573\n",
  "statement_hash": "17c638971a7c1f20e0988d52ecb9984ab2076f62d832606360d80a2ea636af47",
  "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."
}