The Erdős–Hajnal property for a fixed forbidden induced subgraph
DefinitionTenChallenges_ErdosHajnalThe definition behind Challenge 5 of the Ten Challenges benchmark. For a graph on a vertex type , the Erdős–Hajnal property for says that there is a real constant such that for every finite graph (on a vertex type in the lowest universe) containing no induced subgraph isomorphic to , there is a finite set of vertices of which is a clique of or a clique of the complement of (an independent set), with
The constant depends only on . The Erdős–Hajnal conjecture asserts this property for every finite graph ; the property is the basic object of the theory of induced subgraph density.
Formalization Note. "No induced copy of " is ¬ H ⊴ G with Mathlib's induced-subgraph relation; the size bound is stated in the reals with real exponentiation, so is covered by .
import Mathlib.Combinatorics.SimpleGraph.Hasse
import Mathlib.Analysis.SpecialFunctions.Pow.Real
open SimpleGraph
/-- The Erdős–Hajnal conjecture for a fixed forbidden graph `H`: there is `c_H > 0`
such that every finite `H`-free graph `G` has a clique or an independent set of
size at least `|V(G)|^c_H`. -/
def ErdosHajnalConjectureFor {W : Type*} (H : SimpleGraph W) : Prop :=
∃ c : ℝ, 0 < c ∧
∀ {V : Type} [Fintype V] (G : SimpleGraph V), ¬ H ⊴ G →
∃ s : Finset V, (G.IsClique s ∨ Gᶜ.IsClique s) ∧
(s.card : ℝ) ≥ (Fintype.card V : ℝ) ^ c
Read-back
What the Lean code literally says, in plain math · claude-fable-5-1
Read-back of the definition ErdosHajnalConjectureFor.
The definition takes a type (any type, in any universe, possibly empty or infinite) and a simple graph on vertex set (a simple graph is an irreflexive, symmetric adjacency relation on : no loops, no multiple edges). It produces the following proposition, written here in full:
Every binder and hypothesis, in order:
-
: there exists a real number with (strict). No upper bound is imposed on . The quantifier on comes before those on and , so a single (depending only on ) must work for all and below.
-
: for every type in the lowest universe (ordinary sets) that is equipped with a finiteness structure; i.e. ranges over all finite vertex sets, the empty set included. No decidability or other assumptions are made on .
-
: for every simple graph on vertex set (adjacency written ).
-
Hypothesis : it is not the case that is inducingly contained in . Here means that there exists a graph embedding of into , i.e. an injective map such that for all : if and only if . Equivalently, has an induced subgraph isomorphic to . So the hypothesis says: contains no induced copy of . (It is not the weaker statement " contains no subgraph isomorphic to ": a copy of in with extra edges among its vertices does not violate the hypothesis.)
-
Conclusion: there exists a finite set of vertices of (any subset of the finite set ; may be empty) such that
- either is a clique of , meaning: for all with , (every two distinct elements of are adjacent);
- or is a clique of the complement graph , whose adjacency is " and "; i.e. for all with , — is an independent set of ;
and, comparing real numbers,
where is the number of elements of , is the number of vertices of (both cast from natural numbers to reals), the inequality is non-strict (, not ), and is the real power with real exponent: for it is ; for and it is . (Since is required, the convention never comes into play.)
Edge cases silently included by the quantifiers:
- may be empty. Then and satisfies the conclusion, because is vacuously a clique of both and and .
- Any singleton is vacuously both a clique of and a clique of ; so whenever (for instance , or empty) the conclusion is met by a singleton or by .
- If is empty ( has no vertices), the empty map is an embedding of into every , so always holds, the hypothesis can never be satisfied, and the universally quantified part is vacuously true; the whole proposition then reduces to "there exists a real ", which is true.
- If is infinite, no injective map into a finite exists, so the hypothesis holds for every finite and the proposition asserts the conclusion for all finite simple graphs (on any finite vertex set).
- Nothing requires to be finite, nonempty, or connected; enters only through the hypothesis .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.