{
  "id": "1085",
  "ident": "NS.01085",
  "slug": "erdos-136",
  "title": "Erdős Problem 136",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $f(n)$ be the smallest number of colours required to colour the edges of $K_n$ such that every\n$K_4$ contains at least $5$ colours. Determine the size of $f(n)$.\n\nAsked by Erdős and Gyárfás [Er97b], who proved $\\frac56 (n - 1) < f(n) < n$ and $f(9) = 8$; Erdős\nbelieved that the upper bound is closer to the truth. In fact $f(n) \\sim \\frac56 n$, as shown by\nBennett, Cushman, Dudek and Pralat [BCDP22]; Joos and Mubayi [JoMu22] found a shorter proof.",
  "subjects": [
    "math.CO",
    "msc:05"
  ],
  "tags": [
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos136.erdos_136",
  "statement_lean": "theorem erdos_136 : Tendsto (fun n : ℕ ↦ (f n : ℝ) / (n : ℝ)) atTop (𝓝 (5 / 6 : ℝ))",
  "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-/\n\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 136\n\n*References:*\n- [erdosproblems.com/136](https://www.erdosproblems.com/136)\n- [Er97b] Erdős, Paul, *Some old and new problems in various branches of combinatorics*. Discrete\n  Math. (1997), 227-231.\n- [BCDP22] Bennett, P. and Cushman, R. and Dudek, A. and Pralat, P., *The Erdős-Gyárfás function\n  $f(n,4,5)=\\frac{5}{6}n+o(n)$ - so Gyárfás was right*. arXiv:2207.02920 (2022).\n- [JoMu22] Joos, F. and Mubayi, D., *Ramsey theory constructions from hypergraph matchings*.\n  arXiv:2208.12563 (2022).\n-/\n\n@[expose] public section\n\nopen Filter\nopen scoped Topology\n\nnamespace Erdos136\n\n/-- An edge colouring of `K_n` with `k` colours is a `(4, 5)`-colouring if the six edges of every\ncopy of `K_4` receive at least five distinct colours. -/\ndef Is45Coloring {n k : ℕ} (C : SimpleGraph.TopEdgeLabeling (Fin n) (Fin k)) : Prop :=\n  open scoped Classical in\n  ∀ v : Fin 4 ↪ Fin n, 5 ≤ (Finset.univ.image (C.pullback v)).card\n\n/-- `K_n` admits a `(4, 5)`-colouring with `k` colours. -/\ndef Colorable (n k : ℕ) : Prop :=\n  ∃ C : SimpleGraph.TopEdgeLabeling (Fin n) (Fin k), Is45Coloring C\n\n/-- `f n` is the least number of colours in a `(4, 5)`-colouring of `K_n`. -/\nnoncomputable def f (n : ℕ) : ℕ :=\n  sInf {k | Colorable n k}\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $f(n)$ be the smallest number of colours required to colour the edges of $K_n$ such that every\n$K_4$ contains at least $5$ colours. Determine the size of $f(n)$.\n\nAsked by Erdős and Gyárfás [Er97b], who proved $\\frac56 (n - 1) < f(n) < n$ and $f(9) = 8$; Erdős\nbelieved that the upper bound is closer to the truth. In fact $f(n) \\sim \\frac56 n$, as shown by\nBennett, Cushman, Dudek and Pralat [BCDP22]; Joos and Mubayi [JoMu22] found a shorter proof.\n-/\n@[category research solved, AMS 5, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos136.lean#L49\"]\ntheorem erdos_136 : Tendsto (fun n : ℕ ↦ (f n : ℝ) / (n : ℝ)) atTop (𝓝 (5 / 6 : ℝ)) := by\n  sorry\n\nend Erdos136\n",
  "statement_hash": "3c2952e4ed090d67686d918ce59f394a02c3815f7d417622715be31ead4270b9",
  "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."
}