R-recolourings #
Rec R c c': c' is optimal and its counts are those of c permuted by a permutation of the
colour sets that keeps sizes and the membership of every colour outside R (the effect of any
sequence of the moves of Lemma 2 with both colours in R). rec_two and rec_one are those
moves; Rec.card_filter: the number of m-piles in a collection defined by sizes and colours
outside R does not change.
def
LeanPool.BalancedEdgeColourings.Bkls.RPerm
{k : ℕ}
(R : Finset (Fin k))
(π : Equiv.Perm (Finset (Fin k)))
:
A permutation of colour sets keeping sizes and the colours outside R.
Equations
Instances For
theorem
LeanPool.BalancedEdgeColourings.Bkls.RPerm.refl
{k : ℕ}
(R : Finset (Fin k))
:
RPerm R (Equiv.refl (Finset (Fin k)))
theorem
LeanPool.BalancedEdgeColourings.Bkls.RPerm.trans
{k : ℕ}
{R : Finset (Fin k)}
{π₁ π₂ : Equiv.Perm (Finset (Fin k))}
(h1 : RPerm R π₁)
(h2 : RPerm R π₂)
:
RPerm R (Equiv.trans π₂ π₁)
theorem
LeanPool.BalancedEdgeColourings.Bkls.swap_cases
{k : ℕ}
(a b : Fin k)
(S T : Finset (Fin k))
:
(Equiv.swap S (Balanced.swapSet a b S)) T = T ∨ (Equiv.swap S (Balanced.swapSet a b S)) T = Balanced.swapSet a b T
def
LeanPool.BalancedEdgeColourings.Bkls.Rec
{V : Type u_1}
[Fintype V]
{G : SimpleGraph V}
{k : ℕ}
(R : Finset (Fin k))
(c c' : Vizing.PEC G (Fin k))
:
c' is an R-recolouring of c.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
LeanPool.BalancedEdgeColourings.Bkls.Rec.self
{V : Type u_1}
[Fintype V]
{G : SimpleGraph V}
{k : ℕ}
{R : Finset (Fin k)}
{c : Vizing.PEC G (Fin k)}
(h : Balanced.IsOptimal c)
:
Rec R c c
theorem
LeanPool.BalancedEdgeColourings.Bkls.Rec.opt
{V : Type u_1}
[Fintype V]
{G : SimpleGraph V}
{k : ℕ}
{R : Finset (Fin k)}
{c c' : Vizing.PEC G (Fin k)}
(h : Rec R c c')
:
theorem
LeanPool.BalancedEdgeColourings.Bkls.Rec.trans
{V : Type u_1}
[Fintype V]
{G : SimpleGraph V}
{k : ℕ}
{R : Finset (Fin k)}
{c c' c'' : Vizing.PEC G (Fin k)}
(h1 : Rec R c c')
(h2 : Rec R c' c'')
:
Rec R c c''
theorem
LeanPool.BalancedEdgeColourings.Bkls.rec_two
{V : Type u_1}
[Fintype V]
{G : SimpleGraph V}
{k : ℕ}
{R : Finset (Fin k)}
{c : Vizing.PEC G (Fin k)}
{a b : Fin k}
(hopt : Balanced.IsOptimal c)
(hab : a ≠ b)
(ha : a ∈ R)
(hb : b ∈ R)
{S : Finset (Fin k)}
(h : Balanced.cnt c S = Balanced.cnt c (Balanced.swapSet a b S) + 2)
:
∃ (c' : Vizing.PEC G (Fin k)),
Rec R c c' ∧ Balanced.cnt c' S = Balanced.cnt c (Balanced.swapSet a b S) ∧ Balanced.cnt c' (Balanced.swapSet a b S) = Balanced.cnt c S ∧ ∀ (X : Finset (Fin k)), X ≠ S → X ≠ Balanced.swapSet a b S → Balanced.cnt c' X = Balanced.cnt c X
Lemma 2, difference two, as a recolouring.
theorem
LeanPool.BalancedEdgeColourings.Bkls.rec_one
{V : Type u_1}
[Fintype V]
{G : SimpleGraph V}
{k : ℕ}
{R : Finset (Fin k)}
{c : Vizing.PEC G (Fin k)}
{a b : Fin k}
(hopt : Balanced.IsOptimal c)
(hab : a ≠ b)
(ha : a ∈ R)
(hb : b ∈ R)
{S : Finset (Fin k)}
(h : Balanced.cnt c S = Balanced.cnt c (Balanced.swapSet a b S) + 1)
:
partner c hab S ≠ S ∧ partner c hab S ≠ Balanced.swapSet a b S ∧ Balanced.swapSet a b (partner c hab S) ≠ S ∧ Balanced.swapSet a b (partner c hab S) ≠ Balanced.swapSet a b S ∧ Balanced.cnt c (partner c hab S) = Balanced.cnt c (Balanced.swapSet a b (partner c hab S)) + 1 ∧ ∃ (c' : Vizing.PEC G (Fin k)),
Rec R c c' ∧ Balanced.cnt c' S = Balanced.cnt c (Balanced.swapSet a b S) ∧ Balanced.cnt c' (Balanced.swapSet a b S) = Balanced.cnt c S ∧ Balanced.cnt c' (partner c hab S) = Balanced.cnt c (Balanced.swapSet a b (partner c hab S)) ∧ Balanced.cnt c' (Balanced.swapSet a b (partner c hab S)) = Balanced.cnt c (partner c hab S) ∧ ∀ (X : Finset (Fin k)),
X ≠ S →
X ≠ Balanced.swapSet a b S →
X ≠ partner c hab S →
X ≠ Balanced.swapSet a b (partner c hab S) → Balanced.cnt c' X = Balanced.cnt c X
Lemma 2, difference one, as a recolouring.
theorem
LeanPool.BalancedEdgeColourings.Bkls.Rec.card_filter
{V : Type u_1}
[Fintype V]
{G : SimpleGraph V}
{k : ℕ}
{R : Finset (Fin k)}
{c c' : Vizing.PEC G (Fin k)}
(h : Rec R c c')
(P : Finset (Fin k) → Prop)
(hP : ∀ (T T' : Finset (Fin k)), T.card = T'.card → (∀ x ∉ R, x ∈ T ↔ x ∈ T') → (P T ↔ P T'))
(m : ℕ)
:
Pile counts in an R-invariant collection are preserved.