Colouring a path greedily (Balister–Kostochka–Li–Schelp 2004, Corollary 4, paths) #
A path with vertices 0, …, n and edges i = {i, i + 1} (i < n); an edge colouring is
f : ℕ → Fin 3 (only f 0, …, f (n - 1) matter), proper iff f i ≠ f (i + 1) for i + 1 < n.
The colour set of vertex i is pathSet n f i (the colours of the edges i - 1 and i that
exist). Every vertex is free, or must avoid a given set (ext F), or must differ from its partner
j (int j, an involution). If both ends are free, a greedy choice of f 0, f 1, … succeeds:
at each step two colours keep the colouring proper and the constraint at the new vertex excludes
at most one (exists_path_colouring).
theorem
LeanPool.BalancedEdgeColourings.Bkls.exists_path_colouring
(n : ℕ)
(st : ℕ → PState)
(h0 : st 0 = PState.free)
(hn : st n = PState.free)
(hint : ∀ (i j : ℕ), st i = PState.int j → st j = PState.int i ∧ j ≠ i ∧ j ≤ n)
(hrange : ∀ (i : ℕ), n < i → st i = PState.free)
:
Greedy colouring of a path with free ends.