The Erdős–Hajnal conjecture
OpenErdosHajnal.conjectureFor every finite graph there exists a constant such that every finite graph with no induced subgraph isomorphic to has a clique or an independent set of size at least . Equivalently, , where . This is Erdős Problem 61, the Erdős–Hajnal conjecture. The exponent depends only on and is not fixed numerically.
import Definitions.Def_TenChallenges_ErdosHajnal set_option autoImplicit false open SimpleGraph
namespace ErdosHajnal
theorem conjecture {W : Type} [Fintype W] (H : SimpleGraph W) :
ErdosHajnalConjectureFor H := by
sorry
end ErdosHajnal
Read-back
What the Lean code literally says, in plain math · grok-build
For every finite set and every simple graph with vertex set , there exists a real number such that the following holds for every finite set and every simple graph with vertex set . A simple graph is an undirected graph with no loops and no multiple edges, so adjacency is a symmetric irreflexive relation on the whole vertex set.
If there is no injective map such that for all ,
then there exists a subset such that either every two distinct elements of are adjacent in , or every two distinct elements of are adjacent in the complement , and
In , two vertices are adjacent if and only if they are distinct and not adjacent in . The symbols and are those cardinalities regarded as real numbers, and the power is real exponentiation. The “or” is inclusive. The real depends only on ; the statement requires and imposes no upper bound on .
The negated hypothesis is the non-existence of even one induced copy of all of in (injective on vertices, adjacency preserved and reflected). It holds automatically whenever no injection exists, in particular whenever . If has fewer than two elements, both adjacency alternatives hold vacuously. If , then because , and meets the bound. If , the empty map is an injective map of the required kind into every , so the hypothesis fails for every and the implication holds vacuously. If and , then , so no subset satisfies the size inequality.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.