Documentation

CslibFrontier.Foundations.Combinatorics.SimpleGraph.Comparability

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 #

Main results #

References #

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]).

theorem SimpleGraph.isPerfect_iff {V : Type u_1} {G : SimpleGraph V} :
G.IsPerfect ↔ ∀ (S : Finset V), (induce (↑S) G).chromaticNumber = ↑(induce (↑S) G).cliqueNum
theorem SimpleGraph.isPerfect_iff_forall_colorable {V : Type u_1} {G : SimpleGraph V} :
G.IsPerfect ↔ ∀ (S : Finset V), (induce (↑S) G).Colorable (induce (↑S) G).cliqueNum

A graph is perfect iff every finite induced subgraph is ω(G[S])-colorable.

A finite perfect graph has χ(G) = ω(G).

theorem SimpleGraph.IsPerfect.induce {V : Type u_1} {G : SimpleGraph V} (hG : G.IsPerfect) (s : Set V) :

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).

@[simp]
theorem SimpleGraph.comparabilityGraph_adj {α : Type u_1} [PartialOrder α] {a b : α} :
(comparabilityGraph α).Adj a b ↔ a < b ∨ b < a
@[simp]

Inducing comparabilityGraph α on a subset s gives the comparability graph of s.

@[simp]

Inducing (comparabilityGraph α)ᶜ on s gives the complement of comparabilityGraph s.

theorem SimpleGraph.isClique_comparabilityGraph_iff {α : Type u_1} [PartialOrder α] {s : Set α} :
(comparabilityGraph α).IsClique s ↔ IsChain (fun (x1 x2 : α) => x1 ≤ x2) s

Cliques of the comparability graph are chains of the partial order.

theorem SimpleGraph.isIndepSet_comparabilityGraph_iff {α : Type u_1} [PartialOrder α] {s : Set α} :
(comparabilityGraph α).IsIndepSet s ↔ IsAntichain (fun (x1 x2 : α) => x1 ≤ x2) s

Independent sets of the comparability graph are antichains of the partial order.

theorem SimpleGraph.colorable_comparabilityGraph_iff {α : Type u_1} [PartialOrder α] {k : ℕ} :
(comparabilityGraph α).Colorable k ↔ ∃ (f : α → Fin k), ∀ (i : Fin k), IsAntichain (fun (x1 x2 : α) => x1 ≤ x2) (f ⁻¹' {i})

Proper k-colorings of comparabilityGraph α correspond to coverings by k antichains.

theorem SimpleGraph.colorable_compl_comparabilityGraph_iff {α : Type u_1} [PartialOrder α] {k : ℕ} :
(comparabilityGraph α)ᶜ.Colorable k ↔ ∃ (f : α → Fin k), ∀ (i : Fin k), IsChain (fun (x1 x2 : α) => x1 ≤ x2) (f ⁻¹' {i})

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.