{
  "id": "1230",
  "ident": "NS.01230",
  "slug": "erdos-184",
  "title": "Erdős Problem 184",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Any graph on $n$ vertices can be decomposed into $O(n)$ many edge-disjoint cycles and edges.\n\nThis was proved by an internal OpenAI model in September 2026 [OAI26a]; see the linked Lean\nproof.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos184.erdos_184",
  "statement_lean": "theorem erdos_184 :\n    ∃ f : ℕ → ℝ,\n      (f =O[atTop] fun n : ℕ ↦ (n : ℝ)) ∧\n      ∀ {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V),\n      ∃ (D : Finset G.Subgraph),\n        (∀ H ∈ D, IsCycleOrEdge H.coe) ∧\n        IsDecomposition G D ∧\n        (D.card : ℝ) ≤ f (Fintype.card V)",
  "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 184\n\n*References:*\n- [erdosproblems.com/184](https://www.erdosproblems.com/184)\n- [BM22] Bucić, M. and Montgomery, R., Towards the Erdős-Gallai Cycle Decomposition Conjecture.\n  arXiv:2211.07689 (2022).\n- [CFS14] Conlon, David and Fox, Jacob and Sudakov, Benny, Cycle packing. Random Structures\n  Algorithms (2014), 608-626.\n- [EGP66] Erdős, Paul and Goodman, A. W. and Pósa, Lajos, The representation of a graph by set\n  intersections. Canadian J. Math. (1966), 106-112.\n- [Er71] Erdős, P., Some unsolved problems in graph theory and combinatorial analysis. Combinatorial\n  Mathematics and its Applications (Proc. Conf., Oxford, 1969) (1971), 97-109.\n- [OAI26a] OpenAI, *A linear cycle-and-edge decomposition of every graph*. OpenAI Math Release\n  preprint (2026).\n  https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/A-linear-cycle-and-edge-decomposition-of-every-graph-September-24-2026/main.pdf\n- [Py85] Pyber, L., An Erdős-Gallai conjecture. Combinatorica (1985), 67-79.\n-/\n\n@[expose] public section\n\nopen Filter SimpleGraph\n\nnamespace Erdos184\n\n/--\nA graph $H$ is a cycle or an edge if it is connected and 2-regular, or if it has exactly one edge.\n-/\ndef IsCycleOrEdge {U : Type*} [Fintype U] (H : SimpleGraph U) : Prop :=\n  open scoped Classical in\n  (H.Connected ∧ H.IsRegularOfDegree 2) ∨ H.edgeFinset.card = 1\n\nopen scoped Classical in\nset_option linter.style.formal_proof_palomar false in\n/--\nAny graph on $n$ vertices can be decomposed into $O(n)$ many edge-disjoint cycles and edges.\n\nThis was proved by an internal OpenAI model in September 2026 [OAI26a]; see the linked Lean\nproof.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Combinatorics/CycleDecomposition/Main.lean#L207\"]\ntheorem erdos_184 :\n    ∃ f : ℕ → ℝ,\n      (f =O[atTop] fun n : ℕ ↦ (n : ℝ)) ∧\n      ∀ {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V),\n      ∃ (D : Finset G.Subgraph),\n        (∀ H ∈ D, IsCycleOrEdge H.coe) ∧\n        IsDecomposition G D ∧\n        (D.card : ℝ) ≤ f (Fintype.card V) := by\n  sorry\n\nopen scoped Classical in\n/--\nErdős and Gallai [EGP66] proved that $O(n \\log n)$ many cycles and edges suffices.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_184.variants.n_log_n :\n    ∃ f : ℕ → ℝ,\n      (f =O[atTop] fun n : ℕ ↦ (n : ℝ) * Real.log (n : ℝ)) ∧\n      ∀ {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V),\n      ∃ (D : Finset G.Subgraph),\n        (∀ H ∈ D, IsCycleOrEdge H.coe) ∧\n        IsDecomposition G D ∧\n        (D.card : ℝ) ≤ f (Fintype.card V) := by\n  sorry\n\nopen scoped Classical in\nset_option linter.style.formal_proof_palomar false in\n/--\nThe graph $K_{3,n-3}$ shows that at least $(1+c)n$ many cycles and edges are required, for some\nconstant $c>0$.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at \"https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/394ec1c1ff92bdf2fa10f30d62ae9d0455d3ce20/Proofs/T_Erdos184_erdos_184_variants_lower_bound.lean#L285\"]\ntheorem erdos_184.variants.lower_bound :\n    ∃ c > 0, ∀ᶠ n in atTop,\n      let G : SimpleGraph (Fin n) := fromRel (fun (i j : Fin n) => (i : ℕ) < 3 ∧ 3 ≤ (j : ℕ));\n      ∀ (D : Finset G.Subgraph),\n        (∀ H ∈ D, IsCycleOrEdge H.coe) →\n        IsDecomposition G D →\n        (1 + c) * (n : ℝ) ≤ (D.card : ℝ) := by\n  sorry\n\nopen scoped Classical in\n/--\nIn [Er71] Erdős suggests that only $n-1$ many cycles and edges are required if we do not\nrequire them to be edge-disjoint. Pyber [Py85] proved this.\n-/\n@[category research solved, question, AMS 5]\ntheorem erdos_184.variants.covering :\n    ∀ {V : Type} [Fintype V] [DecidableEq V] [Nonempty V] (G : SimpleGraph V),\n    ∃ (D : Finset G.Subgraph),\n      (∀ H ∈ D, IsCycleOrEdge H.coe) ∧\n      (⋃ H ∈ D, H.edgeSet) = G.edgeSet ∧\n      (D.card : ℝ) ≤ (Fintype.card V : ℝ) - 1 := by\n  sorry\n\nopen scoped Classical in\n/--\nBefore [OAI26a], the best bound was due to Bucić and Montgomery [BM22], who prove that\n$O(n\\log^* n)$ many cycles and edges suffice, where $\\log^*$ is the iterated logarithm function.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_184.variants.bucic_montgomery :\n    ∃ f : ℕ → ℝ,\n      (f =O[atTop] fun n : ℕ ↦ (n : ℝ) * (Real.iteratedLog (n : ℝ) : ℝ)) ∧\n      ∀ {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V),\n      ∃ (D : Finset G.Subgraph),\n        (∀ H ∈ D, IsCycleOrEdge H.coe) ∧\n        IsDecomposition G D ∧\n        (D.card : ℝ) ≤ f (Fintype.card V) := by\n  sorry\n\nopen scoped Classical in\n/--\nConlon, Fox, and Sudakov [CFS14] proved that $O_\\epsilon(n)$ cycles and edges suffice if $G$ has\nminimum degree at least $\\epsilon n$, for any $\\epsilon>0$.\n-/\n@[category research solved, AMS 5]\ntheorem erdos_184.variants.conlon_fox_sudakov :\n    ∀ ε > 0, ∃ f : ℕ → ℝ,\n      (f =O[atTop] fun n : ℕ ↦ (n : ℝ)) ∧\n      ∀ {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V),\n      (G.minDegree : ℝ) ≥ ε * (Fintype.card V : ℝ) →\n      ∃ (D : Finset G.Subgraph),\n        (∀ H ∈ D, IsCycleOrEdge H.coe) ∧\n        IsDecomposition G D ∧\n        (D.card : ℝ) ≤ f (Fintype.card V) := by\n  sorry\n\nend Erdos184\n",
  "statement_hash": "bccb936ae9a2084e58f1f1179f157dbc2b74b3161b3908b01ee297bee38b7436",
  "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."
}