Documentation

LeanPool.BalancedEdgeColourings.Bkls.TwoCol

Two-colouring graphs of maximum degree two with even cycles #

two_colour: a graph of maximum degree two whose cycles have even length has a proper colouring with two colours (each component, a path or an even cycle, is coloured by the parity of the position along it). two_colour_two_matchings: the union of two matchings has only even cycles.

theorem LeanPool.BalancedEdgeColourings.Bkls.Comp.two_colour {E : Type u_1} [Fintype E] {L : SimpleGraph E} [DecidableRel L.Adj] (hdeg : ∀ (v : E), L.degree v ≤ 2) (heven : ∀ (n : ℕ) (p : ℕ → E), IsPathFn L n p → 2 ≤ n → L.Adj (p 0) (p n) → Even (n + 1)) :
∃ (g : E → Bool), ∀ (a b : E), L.Adj a b → g a ≠ g b

Two colours suffice.

theorem LeanPool.BalancedEdgeColourings.Bkls.Comp.two_matchings {E : Type u_1} [Finite E] (Q B : E → E → Prop) (hQs : ∀ (u v : E), Q u v → Q v u) (hQu : ∀ (u v w : E), Q u v → Q u w → v = w) (hBs : ∀ (u v : E), B u v → B v u) (hBu : ∀ (u v w : E), B u v → B u w → v = w) :
∃ (g : E → Bool), (∀ (u v : E), u ≠ v → Q u v → g u ≠ g v) ∧ ∀ (u v : E), u ≠ v → B u v → g u ≠ g v

The union of two matchings is two-colourable.