The level-zero connector order (L2) #
Items p ∈ P have at most two endpoints ends p ⊆ Q. Adding the vertices of
Q one at a time, an item is covered once all its endpoints are present.
We find an order of Q in which, after k additions,
k - #covered ≤ max 0 (|Q| - |P|) + 1.
Proof: if Q has a proper nonempty part closed under items, order the part
with the smaller excess first and recurse; otherwise grow a connected prefix,
which covers a new item at each step.
Adapted from the MIT-licensed Lean 4 companion of [Gas26]
(doi:10.5281/zenodo.23883489, module CubicPathwidth.C3.Connector).
References #
def Cslib.Circuits.Frontier.Switched.Connector.covered {α : Type u_1} {β : Type u_2} [DecidableEq α] (P : Finset β) (ends : β → Finset α) (X : Finset α) :
Number of items whose endpoints all lie in X.
def Cslib.Circuits.Frontier.Switched.Connector.Good {α : Type u_1} {β : Type u_2} [DecidableEq α] (Q : Finset α) (P : Finset β) (ends : β → Finset α) (l : List α) :
The connector bound for an instance (Q, P).
theorem Cslib.Circuits.Frontier.Switched.Connector.combine {α : Type u_1} {β : Type u_2} [DecidableEq α] (Q A B : Finset α) (P : Finset β) (ends : β → Finset α) (hAB : Disjoint A B) (hQ : A ∪ B = Q) (lA lB : List α) (hA : Good A ({p ∈ P | ends p ⊆ A}) ends lA) (hB : Good B ({p ∈ P | ¬ends p ⊆ A}) ends lB) (hle : ↑A.card - ↑{p ∈ P | ends p ⊆ A}.card ≤ ↑B.card - ↑{p ∈ P | ¬ends p ⊆ A}.card) :
Ordering a closed part A (smaller excess) before the rest B.
theorem Cslib.Circuits.Frontier.Switched.Connector.exists_good {α : Type u_1} {β : Type u_2} [DecidableEq α] (Q : Finset α) (P : Finset β) (ends : β → Finset α) (hsub : ∀ p ∈ P, ends p ⊆ Q) (hne : ∀ p ∈ P, (ends p).Nonempty) (htwo : ∀ p ∈ P, (ends p).card ≤ 2) :
L2, abstract form: every instance has a good order.