Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 136

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let f(n)f(n) be the smallest number of colours required to colour the edges of KnK_n such that every K4K_4 contains at least 55 colours. Determine the size of f(n)f(n).

Asked by Erdős and Gyárfás [Er97b], who proved 56(n−1)<f(n)<n\frac56 (n - 1) < f(n) < n and f(9)=8f(9) = 8; Erdős believed that the upper bound is closer to the truth. In fact f(n)∼56nf(n) \sim \frac56 n, as shown by Bennett, Cushman, Dudek and Pralat [BCDP22]; Joos and Mubayi [JoMu22] found a shorter proof.

Subjects:Combinatorics (math.CO)
MSC classes:05
Tags:formal_proof
Cite as:NS.01085 [math.CO] · NS.01085v1 for this version
Declaration:Erdos136.erdos_136
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:3c2952e4ed090d67686d918ce59f394a02c3815f7d417622715be31ead4270b9
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/136.lean

Formal statement

theorem erdos_136 : Tendsto (fun n : ℕ ↦ (f n : ℝ) / (n : ℝ)) atTop (𝓝 (5 / 6 : ℝ))
Show the full Challenge.lean (70 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 136

*References:*
- [erdosproblems.com/136](https://www.erdosproblems.com/136)
- [Er97b] Erdős, Paul, *Some old and new problems in various branches of combinatorics*. Discrete
  Math. (1997), 227-231.
- [BCDP22] Bennett, P. and Cushman, R. and Dudek, A. and Pralat, P., *The Erdős-Gyárfás function
  $f(n,4,5)=\frac{5}{6}n+o(n)$ - so Gyárfás was right*. arXiv:2207.02920 (2022).
- [JoMu22] Joos, F. and Mubayi, D., *Ramsey theory constructions from hypergraph matchings*.
  arXiv:2208.12563 (2022).
-/

@[expose] public section

open Filter
open scoped Topology

namespace Erdos136

/-- An edge colouring of `K_n` with `k` colours is a `(4, 5)`-colouring if the six edges of every
copy of `K_4` receive at least five distinct colours. -/
def Is45Coloring {n k : ℕ} (C : SimpleGraph.TopEdgeLabeling (Fin n) (Fin k)) : Prop :=
  open scoped Classical in
  ∀ v : Fin 4 ↪ Fin n, 5 ≤ (Finset.univ.image (C.pullback v)).card

/-- `K_n` admits a `(4, 5)`-colouring with `k` colours. -/
def Colorable (n k : ℕ) : Prop :=
  ∃ C : SimpleGraph.TopEdgeLabeling (Fin n) (Fin k), Is45Coloring C

/-- `f n` is the least number of colours in a `(4, 5)`-colouring of `K_n`. -/
noncomputable def f (n : ℕ) : ℕ :=
  sInf {k | Colorable n k}

set_option linter.style.formal_proof_palomar false in
/--
Let $f(n)$ be the smallest number of colours required to colour the edges of $K_n$ such that every
$K_4$ contains at least $5$ colours. Determine the size of $f(n)$.

Asked by Erdős and Gyárfás [Er97b], who proved $\frac56 (n - 1) < f(n) < n$ and $f(9) = 8$; Erdős
believed that the upper bound is closer to the truth. In fact $f(n) \sim \frac56 n$, as shown by
Bennett, Cushman, Dudek and Pralat [BCDP22]; Joos and Mubayi [JoMu22] found a shorter proof.
-/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos136.lean#L49"]
theorem erdos_136 : Tendsto (fun n : ℕ ↦ (f n : ℝ) / (n : ℝ)) atTop (𝓝 (5 / 6 : ℝ)) := by
  sorry

end Erdos136

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos136.erdos_136 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_136 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-136
nosorry submit erdos-136 nosorry/erdos-136/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.