Documentation

LeanPool.BalancedEdgeColourings.Bkls.CycleAdj

One cycle, with adjacent matched vertices allowed #

cycle_colouring_adj: as Cyc.cycle_colouring, but the internal matching may join adjacent vertices. Following the article, two adjacent matched vertices t − 1, t are identified: the edge t − 1 between them is removed, the shorter cycle (where the identified vertex is free) is coloured by induction, and the removed edge gets the third colour. On a triangle every proper colouring separates all three colour sets, so adjacent pairs impose nothing there.

The third colour.

theorem LeanPool.BalancedEdgeColourings.Bkls.Cyc.cycle_colouring_adj (r : ℕ) [NeZero r] :
3 ≤ r → ∀ (st : ZMod r → VState r), (∀ (i : ZMod r) (F : Finset (Fin 3)), st i = VState.ext F → F.card = 2) → (∀ (i j : ZMod r), st i = VState.int j → st j = VState.int i ∧ j ≠ i) → (Odd r → ∃ (i : ZMod r), st i = VState.free) → ¬(r = 6 ∧ ∀ (i : ZMod r), st i = VState.int (i + 3)) → ∃ (f : ZMod r → Fin 3), (∀ (i : ZMod r), f i ≠ f (i + 1)) ∧ (∀ (i : ZMod r) (F : Finset (Fin 3)), st i = VState.ext F → S f i ≠ F) ∧ ∀ (i j : ZMod r), st i = VState.int j → S f i ≠ S f j

One cycle of Lemma 3, adjacent pairs allowed.