Documentation

LeanPool.BalancedEdgeColourings.Bkls.SwapX

Swapping a set of ends closed under Kempe partners and J #

swapQ: swapping a, b on all the Kempe paths through a set Q of ends closed under Kempe partners replaces S(v) by i S(v) exactly for v ∈ Q.

swap_exchange: if moreover Q is closed under J and the colouring is optimal, the J-matched vertices of Q cancel, and optimality forces every pair {T, i T} met by a J-unmatched vertex of Q to be exchanged completely (Σ_T 2 p_T (p_T - δ_T) ≤ 0 with equality only then): the result is an optimal colouring whose counts are those of c with these pairs interchanged.

theorem LeanPool.BalancedEdgeColourings.Bkls.swapQ {V : Type u_1} [DecidableEq V] {G : SimpleGraph V} {k : ℕ} {c : Vizing.PEC G (Fin k)} {a b : Fin k} [Finite V] (htot : Balanced.Total c) {Q : Finset V} (hQK : ∀ q ∈ Q, ∀ (v : V), Balanced.IsEnd c a b v → (c.kempeGraph a b).Reachable q v → v ∈ Q) :

Swapping the Kempe paths through Q.

noncomputable def LeanPool.BalancedEdgeColourings.Bkls.pcnt {V : Type u_1} {G : SimpleGraph V} {k : ℕ} (c : Vizing.PEC G (Fin k)) (P : Finset V) (T : Finset (Fin k)) :

The number of J-unmatched vertices of P with colour set T.

Equations
Instances For
    theorem LeanPool.BalancedEdgeColourings.Bkls.card_unmatched_le {V : Type u_1} [Fintype V] {G : SimpleGraph V} {k : ℕ} {c : Vizing.PEC G (Fin k)} {a b : Fin k} (P : Finset V) (hP : ∀ v ∈ P, ¬JMatched c a b v) (T : Finset (Fin k)) :

    J-unmatched vertices with colour set T: at most n_T - n_{i T} of them.

    theorem LeanPool.BalancedEdgeColourings.Bkls.swapSet_equiv_sum {k : ℕ} {a b : Fin k} {M : Type u_2} [AddCommMonoid M] (g : Finset (Fin k) → M) :
    ∑ T : Finset (Fin k), g (Balanced.swapSet a b T) = ∑ T : Finset (Fin k), g T
    theorem LeanPool.BalancedEdgeColourings.Bkls.swap_exchange {V : Type u_1} [Fintype V] {G : SimpleGraph V} {k : ℕ} {c : Vizing.PEC G (Fin k)} {a b : Fin k} (hopt : Balanced.IsOptimal c) :
    a ≠ b → ∀ {Q : Finset V} (hQK : ∀ q ∈ Q, ∀ (v : V), Balanced.IsEnd c a b v → (c.kempeGraph a b).Reachable q v → v ∈ Q) (hQJ : ∀ q ∈ Q, ∀ (v : V), JRel c a b q v → v ∈ Q), ∃ (c' : Vizing.PEC G (Fin k)), Balanced.IsOptimal c' ∧ ∀ (T : Finset (Fin k)), Balanced.cnt c' T = Balanced.cnt c (if 0 < pcnt c ({v ∈ Q | ¬JMatched c a b v}) T ∨ 0 < pcnt c ({v ∈ Q | ¬JMatched c a b v}) (Balanced.swapSet a b T) then Balanced.swapSet a b T else T)

    The exchange swap.