{
  "id": "383",
  "ident": "NS.00383",
  "slug": "erdos-1017",
  "title": "Erdős Problem 1017",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n,k)$ be such that every graph on $n$ vertices and $k$ edges can be partitioned\ninto at most $f(n,k)$ edge-disjoint complete graphs. Estimate $f(n,k)$ for $k>n^2/4$.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos1017.erdos_1017.lower_bound",
  "statement_lean": "theorem erdos_1017.lower_bound :\n    ∀ n k : ℕ, k ≤ n.choose 2 → n * n < 4 * k →\n      erdos_1017.lower_bound.answer n k ≤ f n k",
  "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 1017\n\n*References:*\n- [erdosproblems.com/1017](https://www.erdosproblems.com/1017)\n- [EGP66] Erdős, Paul and Goodman, A. W. and Pósa, Lajos,\n  *The representation of a graph by set intersections*. Canadian J. Math. (1966), 106–112.\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- [GyKe17] Győri, Ervin and Keszegh, Balázs,\n  *On the number of edge-disjoint triangles in $K_4$-free graphs*.\n  Combinatorica (2017), 1113–1124.\n- [Lo68] Lovász, L., *On covering of graphs*.\n  Theory of Graphs (Proc. Colloq., Tihany, 1966) (1968), 231–236.\n-/\n\n@[expose] public section\n\nnamespace Erdos1017\n\nopen SimpleGraph\n\n/-- The least uniform bound on the number of cliques in an edge partition of an\n$n$-vertex, $k$-edge graph. For infeasible parameters the value is zero. -/\nnoncomputable def f (n k : ℕ) : ℕ :=\n  sInf {m : ℕ | ∀ G : SimpleGraph (Fin n), G.edgeSet.ncard = k →\n    ∃ P : Finset (Finset (Fin n)), G.IsCliqueEdgePartition P ∧ P.card ≤ m}\n\n/-- Partitioning into individual edges gives the bound $f(n,k) \\le k$. -/\n@[category API, AMS 5]\ntheorem f_le (n k : ℕ) : f n k ≤ k := by\n  classical\n  apply Nat.sInf_le\n  intro G hG\n  obtain ⟨P, hP, hcard⟩ := G.exists_isCliqueEdgePartition_card_eq\n  refine ⟨P, hP, ?_⟩\n  simpa [hcard, ← SimpleGraph.coe_edgeFinset, Set.ncard_coe_finset] using hG.le\n\n/-- The infimum defining $f$ is an attained uniform bound. -/\n@[category API, AMS 5]\ntheorem partition_card_le_f (n k : ℕ) (G : SimpleGraph (Fin n))\n    (hG : G.edgeSet.ncard = k) :\n    ∃ P : Finset (Finset (Fin n)), G.IsCliqueEdgePartition P ∧ P.card ≤ f n k := by\n  classical\n  have hne : {m : ℕ | ∀ H : SimpleGraph (Fin n), H.edgeSet.ncard = k →\n      ∃ P : Finset (Finset (Fin n)), H.IsCliqueEdgePartition P ∧ P.card ≤ m}.Nonempty := by\n    refine ⟨k, ?_⟩\n    intro H hH\n    obtain ⟨P, hP, hcard⟩ := H.exists_isCliqueEdgePartition_card_eq\n    refine ⟨P, hP, ?_⟩\n    simpa [hcard, ← SimpleGraph.coe_edgeFinset, Set.ncard_coe_finset] using hH.le\n  exact Nat.sInf_mem hne G hG\n\n/-- A graph with no edges needs no cliques in its edge partition. -/\n@[category test, AMS 5]\ntheorem f_zero (n : ℕ) : f n 0 = 0 := Nat.eq_zero_of_le_zero (f_le n 0)\n\n/-- A proposed uniform bound is valid exactly when it is at least $f(n,k)$. -/\n@[category API, AMS 5]\ntheorem f_le_iff (n k m : ℕ) : f n k ≤ m ↔\n    ∀ G : SimpleGraph (Fin n), G.edgeSet.ncard = k →\n      ∃ P : Finset (Finset (Fin n)), G.IsCliqueEdgePartition P ∧ P.card ≤ m := by\n  constructor\n  · intro h G hG\n    obtain ⟨P, hP, hcard⟩ := partition_card_le_f n k G hG\n    exact ⟨P, hP, hcard.trans h⟩\n  · intro h\n    apply Nat.sInf_le\n    exact h\n\n/-- Impossible edge counts give the vacuous value zero and are excluded from the question. -/\n@[category test, AMS 5]\ntheorem f_eq_zero_of_infeasible (n k : ℕ) (hk : n.choose 2 < k) : f n k = 0 := by\n  classical\n  apply Nat.eq_zero_of_le_zero\n  rw [f_le_iff]\n  intro G hG\n  have hcard := G.card_edgeFinset_le_card_choose_two\n  have : G.edgeFinset.card = k := by\n    simpa [← SimpleGraph.coe_edgeFinset, Set.ncard_coe_finset] using hG\n  simp only [Fintype.card_fin, this] at hcard\n  omega\n\ndef erdos_1017.lower_bound.answer (n k : ℕ) : ℕ := by sorry\n\n/-- Let $f(n,k)$ be such that every graph on $n$ vertices and $k$ edges can be partitioned\ninto at most $f(n,k)$ edge-disjoint complete graphs. Estimate $f(n,k)$ for $k>n^2/4$. -/\n@[category research open, question value, AMS 5]\ntheorem erdos_1017.lower_bound :\n    ∀ n k : ℕ, k ≤ n.choose 2 → n * n < 4 * k →\n      erdos_1017.lower_bound.answer n k ≤ f n k := by\n  sorry\n\ndef erdos_1017.upper_bound.answer (n k : ℕ) : ℕ := by sorry\n\n/-- Estimate an upper bound for $f(n,k)$, the worst-case number of complete subgraphs\nneeded to partition the edges of an $n$-vertex, $k$-edge graph, for\n$n^2/4 < k \\le \\binom{n}{2}$. -/\n@[category research open, question value, AMS 5]\ntheorem erdos_1017.upper_bound :\n    ∀ n k : ℕ, k ≤ n.choose 2 → n * n < 4 * k →\n      f n k ≤ erdos_1017.upper_bound.answer n k := by\n  sorry\n\nend Erdos1017\n",
  "statement_hash": "61526f0bd0b2af01e24e3c71ab4ad508781e018f447b73936de251c77415f996",
  "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."
}