Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

QED-E060 statement definitions

Definition
QED_E060

by floration · Nov 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

probabilityqed

Definitions for the QED problem QED-E060, ending with the proposition Claim.

Let Gn,5\mathcal G_{n,5}Gn,5​ be the set of simple 5-regular graphs on [n][n][n] (nnn even), with the uniform measure. Prove lim⁡n→∞, n even∣{G∈Gn,5:χ(G)≤3}∣/∣Gn,5∣=1\lim_{n\to\infty,\ n\text{ even}}|\{G\in\mathcal G_{n,5}:\chi(G)\le 3\}|/|\mathcal G_{n,5}|=1limn→∞, n even​∣{G∈Gn,5​:χ(G)≤3}∣/∣Gn,5​∣=1.

Definition code
import Mathlib
/-! QED-E060: Is a random 5-regular graph 3-colourable?
Choose a graph uniformly at random among all 5-regular graphs on n labelled vertices (n even). Such a graph is known to be 4-colourable with probability tending to 1, and it is known to be 3-colourable with probability tending to 1 provided an explicit four-variable function attains its global maximum at one specific point, which numerics strongly support but nobody has proved. Prove unconditionally that the probability of 3-colourability tends to 1. Degree 5 is exactly where the answer switches: random 4-regular graphs are almost surely 3-colourable, random 6-regular ones almost surely are not.
Informal statement: Let $\mathcal G_{n,5}$ be the set of simple 5-regular graphs on $[n]$ ($n$ even), with the uniform measure. Prove $\lim_{n\to\infty,\ n\text{ even}}|\{G\in\mathcal G_{n,5}:\chi(G)\le 3\}|/|\mathcal G_{n,5}|=1$.
Formalization notes: Labelled simple graphs on `[n]` are `SimpleGraph (Fin n)` (loopless,
undirected, no multi-edges — the standard uniform model `G_{n,d}`, not the configuration
model). `G` is 5-regular iff every neighbour set has exactly 5 elements (`Set.ncard`; the
neighbour sets are finite since `Fin n` is). The sets of 5-regular graphs and of
3-colourable 5-regular graphs are subsets of the finite type `SimpleGraph (Fin n)`, so
`Set.ncard` gives their true cardinalities and the ratio is exactly the uniform
probability. χ(G) ≤ 3 is Mathlib's `SimpleGraph.Colorable 3` (a proper colouring
`Fin n → Fin 3`). Restricting to n = 2m handles parity (no 5-regular graph on an odd
number of vertices); for m ≥ 3 the denominator is positive, and finitely many small m
do not affect the limit. Proving Claim is exactly the unconditional a.a.s.
3-colourability of random 5-regular graphs; ¬Claim says the probability does not tend to 1.
-/
namespace OpenProblems.QEDE060
noncomputable section
open Filter Topology

/-- `G` is 5-regular. -/
def IsFiveRegular {n : ℕ} (G : SimpleGraph (Fin n)) : Prop :=
  ∀ v : Fin n, (G.neighborSet v).ncard = 5

/-- Proportion of 3-colourable graphs among 5-regular graphs on `n` labelled vertices. -/
def col3Prob (n : ℕ) : ℝ :=
  ({G : SimpleGraph (Fin n) | IsFiveRegular G ∧ G.Colorable 3}.ncard : ℝ) /
    ({G : SimpleGraph (Fin n) | IsFiveRegular G}.ncard : ℝ)

def Claim : Prop :=
  Tendsto (fun m : ℕ => col3Prob (2 * m)) atTop (𝓝 1)

end
end OpenProblems.QEDE060
Source
QED open problem QED-E060, https://floration.github.io/QED/#QED-E060
Human review
  • Endorsed by Shuze Chen · Nov 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by floration · Nov 28, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me