Perfect graphs and comparability graphs #
A simple graph G is perfect (SimpleGraph.IsPerfect) when every finite induced subgraph G[S]
has chromatic number equal to its clique number: χ(G[S]) = ω(G[S]). Since ω ≤ χ holds for every
graph, perfection is equivalent to every finite induced subgraph being ω(G[S])-colorable
(SimpleGraph.isPerfect_iff_forall_colorable).
The comparability graph (SimpleGraph.comparabilityGraph α) of a partial order α joins
distinct comparable elements (a < b ∨ b < a). Its cliques are the chains of α
(SimpleGraph.isClique_comparabilityGraph_iff), its independent sets are the antichains
(SimpleGraph.isIndepSet_comparabilityGraph_iff), its k-colorings are coverings by k
antichains (SimpleGraph.colorable_comparabilityGraph_iff), and the k-colorings of its
complement are coverings by k chains (SimpleGraph.colorable_compl_comparabilityGraph_iff).
By Mirsky's theorem (exists_antichain_coloring_iff), every comparability graph is perfect
(SimpleGraph.isPerfect_comparabilityGraph). The complementary theorem—that every cocomparability
graph (comparabilityGraph α)ᶜ is perfect, via Dilworth's theorem—lives in
CslibFrontier.Algorithms.Lean.MaxFlow.GreeneKleitman
(Cslib.Algorithms.Lean.MaxFlow.isPerfect_compl_comparabilityGraph).
Main definitions #
SimpleGraph.IsPerfect: every finite induced subgraph hasχ(G[S]) = ω(G[S]).SimpleGraph.comparabilityGraph: the comparability graph of a partial order.
Main results #
SimpleGraph.isPerfect_iff_forall_colorable: perfection viaω(G[S])-colorability of finite induced subgraphs.SimpleGraph.IsPerfect.chromaticNumber_eq_cliqueNum,SimpleGraph.IsPerfect.induce: globalχ = ωon finite perfect graphs and hereditary closure under induced subgraphs.SimpleGraph.isClique_comparabilityGraph_iff,SimpleGraph.isIndepSet_comparabilityGraph_iff: cliques are chains and independent sets are antichains.SimpleGraph.colorable_comparabilityGraph_iff,SimpleGraph.colorable_compl_comparabilityGraph_iff: colorings correspond to antichain and chain coverings.SimpleGraph.isPerfect_comparabilityGraph: every comparability graph is perfect (via Mirsky's theorem).
References #
- L. Mirsky, A dual of Dilworth's decomposition theorem
- A. Schrijver, Combinatorial Optimization: Polyhedra and Efficiency, Chapter 65 (locator not verified against primary source)
A simple graph G is perfect if every finite induced subgraph G[S] has chromatic number
equal to its clique number: χ(G[S]) = ω(G[S]).
A finite perfect graph has χ(G) = ω(G).
Perfection is hereditary: every induced subgraph of a perfect graph is perfect.
The comparability graph of a partial order α: distinct elements are adjacent when they are
comparable (a < b ∨ b < a).
Inducing comparabilityGraph α on a subset s gives the comparability graph of s.
Inducing (comparabilityGraph α)ᶜ on s gives the complement of comparabilityGraph s.
Cliques of the comparability graph are chains of the partial order.
Independent sets of the comparability graph are antichains of the partial order.
Proper k-colorings of comparabilityGraph α correspond to coverings by k antichains.
Proper k-colorings of (comparabilityGraph α)ᶜ correspond to coverings by k chains.
Perfection of comparability graphs (via Mirsky's theorem [Mir71]; [Sch03],
Chapter 65, locator not verified against primary source): the comparability graph of any partial
order α is perfect.