Greedy colouring #
This file proves the greedy colouring bound χ(G) ≤ Δ(G) + 1: a finite simple graph whose
vertices all have degree at most d can be properly coloured with d + 1 colours.
Main statements #
exists_color_not_used: a vertex of degree at mostdalways leaves one ofd + 1colours unused among its coloured neighbours.exists_coloring_on: every finite set of vertices admits a proper colouring withd + 1colours.chromaticNumber_le_maxDegree_add_one: the boundχ(G) ≤ d + 1for anyd ≥ Δ(G), andchromaticNumber_le_maxDegree_add_one'for the usual formχ(G) ≤ Δ(G) + 1.
theorem
SimpleGraph.exists_color_not_used
{V : Type u}
[Fintype V]
(G : SimpleGraph V)
[DecidableRel G.Adj]
{d : ℕ}
(hd : G.maxDegree ≤ d)
(a : V)
(s : Finset V)
(c : V → Fin (d + 1))
:
A vertex a has at most d neighbours, so among d + 1 colours there is always one that
no neighbour of a lying in s uses.
theorem
SimpleGraph.exists_coloring_on
{V : Type u}
[Fintype V]
(G : SimpleGraph V)
[DecidableRel G.Adj]
{d : ℕ}
(hd : G.maxDegree ≤ d)
(s : Finset V)
:
Greedy colouring. Every finite set of vertices can be properly coloured with d + 1
colours, by induction on the set of vertices coloured so far.
theorem
SimpleGraph.chromaticNumber_le_maxDegree_add_one
{V : Type u}
[Fintype V]
(G : SimpleGraph V)
[DecidableRel G.Adj]
{d : ℕ}
(hd : G.maxDegree ≤ d)
:
Any upper bound d on the maximum degree bounds the chromatic number by d + 1.
theorem
SimpleGraph.chromaticNumber_le_maxDegree_add_one'
{V : Type u}
[Fintype V]
(G : SimpleGraph V)
[DecidableRel G.Adj]
:
The usual form of the greedy bound: χ(G) ≤ Δ(G) + 1.