Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Erdős–Hajnal for the five-vertex path

Open
TenChallenges.challenge_05_r5

by utkuokur · Nov 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

erdos-hajnalgraph-theorypathsten-challenges

The rung r=5r=5r=5 of the Erdős–Hajnal conjecture for paths (Nguyen, Scott and Seymour). There is a constant c>0c>0c>0 such that every finite graph with no induced five-vertex path has a clique or an independent set of size at least ncn^{c}nc:

∃c>0  ∀G P5-free:max⁡(ω(G),α(G)) ≥ nc.\exists c>0\ \ \forall G\ P_5\text{-free}:\quad \max(\omega(G),\alpha(G))\ \ge\ n^{c}.∃c>0  ∀G P5​-free:max(ω(G),α(G)) ≥ nc.
Preamble
import Definitions.Def_TenChallenges_Challenge_05
Formal statement
namespace TenChallenges
theorem challenge_05_r5 : statement_05 5 := by sorry
end TenChallenges
Source
T. Nguyen, A. Scott, P. Seymour, Induced subgraph density. VII. The five-vertex path, Proc. London Math. Soc. (2026), https://arxiv.org/abs/2312.15333, Theorem 1.1
Read-back

What the Lean code literally says, in plain math · claude-fable-5-1

Read-back of TenChallenges.challenge_05_r5. The declaration asserts the proposition statement05(5)\mathrm{statement}_{05}(5)statement05​(5), which by definition is the bundle's predicate ErdosHajnalConjectureFor applied to Mathlib's path graph P5P_{5}P5​; the parameter is fixed to n=5n = 5n=5 throughout.

The fixed graph PnP_nPn​. PnP_nPn​ is the simple graph whose vertex set is {0,1,…,n−1}\{0, 1, \dots, n-1\}{0,1,…,n−1} (the finite type with nnn elements) and in which two vertices i,ji, ji,j are adjacent iff i+1=ji + 1 = ji+1=j or j+1=ij + 1 = ij+1=i (as natural numbers). With n=5n = 5n=5 this is the path 0−1−2−3−40 - 1 - 2 - 3 - 40−1−2−3−4: 555 vertices and the 444 edges {0,1},{1,2},{2,3},{3,4}\{0,1\}, \{1,2\}, \{2,3\}, \{3,4\}{0,1},{1,2},{2,3},{3,4}. It is an undirected simple graph; the vertices 000 and n−1n-1n−1 are its two endpoints.

What is asserted. There exists a real number ccc with

c>0c > 0c>0

such that for every set VVV (an arbitrary type, implicit argument) equipped with a finiteness structure (so VVV is a finite set of vertices, possibly empty) and for every simple graph GGG with vertex set VVV (symmetric irreflexive adjacency ∼G\sim_G∼G​; no loops, no multiple edges):

if PnP_nPn​ is not inducedly contained in GGG, then there exists a finite subset S⊆VS \subseteq VS⊆V such that

( S is a clique of G    ∨    S is a clique of Gc )and∣S∣  ≥  ∣V∣ c.\big(\, S \text{ is a clique of } G \;\;\lor\;\; S \text{ is a clique of } G^{c} \,\big) \quad\text{and}\quad |S| \;\ge\; |V|^{\,c} .(S is a clique of G∨S is a clique of Gc)and∣S∣≥∣V∣c.

The pieces mean the following.

  • "PnP_nPn​ is inducedly contained in GGG" (Mathlib's relation Pn⊴GP_n \trianglelefteq GPn​⊴G) means that there exists a graph embedding of PnP_nPn​ into GGG: an injective map f:{0,…,n−1}→Vf : \{0, \dots, n-1\} \to Vf:{0,…,n−1}→V such that for all a,ba, ba,b,
f(a)∼Gf(b)  ⟺  a∼Pnb,f(a) \sim_G f(b) \iff a \sim_{P_n} b ,f(a)∼G​f(b)⟺a∼Pn​​b,

i.e. GGG contains an induced subgraph isomorphic to PnP_nPn​ (the images of consecutive path vertices are adjacent, and the images of non-consecutive path vertices are non-adjacent). The hypothesis is the negation: GGG contains no induced copy of PnP_nPn​ (it is "induced-PnP_nPn​-free"). For graphs GGG that do contain an induced PnP_nPn​ the hypothesis fails, so nothing is asserted about them. Non-induced copies of PnP_nPn​ (a path whose image has extra chords in GGG) are not excluded by the hypothesis.

  • "SSS is a clique of GGG" (Mathlib's IsClique) means that any two distinct elements of SSS are adjacent in GGG. GcG^{c}Gc is the complement graph: u∼Gcvu \sim_{G^c} vu∼Gc​v iff u≠vu \ne vu=v and u̸∼Gvu \not\sim_G vu∼G​v. So "SSS is a clique of GcG^cGc" means any two distinct elements of SSS are non-adjacent in GGG, i.e. SSS is an independent (stable) set of GGG. The disjunction is inclusive. The empty set and every one-element set are cliques of both GGG and GcG^cGc.
  • ∣S∣≥∣V∣c|S| \ge |V|^{c}∣S∣≥∣V∣c is an inequality of real numbers: the cardinality of SSS (a natural number, cast to R\mathbb{R}R) is at least ∣V∣|V|∣V∣ (the number of vertices of GGG, cast to R\mathbb{R}R) raised to the real exponent ccc. For ∣V∣≥1|V| \ge 1∣V∣≥1 this is the usual positive real ∣V∣c=exp⁡(cln⁡∣V∣)|V|^c = \exp(c \ln |V|)∣V∣c=exp(cln∣V∣). If VVV is empty, then ∣V∣c=0c=0|V|^c = 0^c = 0∣V∣c=0c=0 because c≠0c \ne 0c=0, and S=∅S = \emptysetS=∅ satisfies the conclusion. The inequality is non-strict.

Quantifier structure and edge cases. The order is ∃c>0    ∀V    ∀G    (hypothesis⇒∃S… )\exists c > 0 \;\; \forall V \;\; \forall G \;\; (\text{hypothesis} \Rightarrow \exists S \dots)∃c>0∀V∀G(hypothesis⇒∃S…): a single constant ccc must be chosen before VVV and GGG and must work uniformly for every finite induced-PnP_nPn​-free graph; ccc may depend only on the fixed n=5n = 5n=5. No upper bound on ccc is imposed (any positive real is allowed, including c>1c > 1c>1), and SSS is not required to be maximal or to be a clique and independent set simultaneously. Nothing else is assumed about GGG: it may be edgeless, complete, disconnected, or have a single vertex. The declaration does not say anything about path graphs with a different number of vertices, nor about non-induced containment.

Human review
  • Endorsed by Shuze Chen · Nov 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by utkuokur · Nov 4, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me