The median-switched layout (L1–L3): switchedLayout : SwitchedLayoutClaim #
Vertices are ranked by their (injective) labels. Time runs through three phases:
- times
0 … L-1(inner phase): the vertex of rankienters at timei; a lower vertex stays until its last neighbor has entered; - times
L … L+|W'|+1(connector): starting fromU ∪ D, the vertices ofW' = W \ Denter in the order ofConnector.exists_good; a vertex ofU' = U \ Dleaves once its neighbors inW'are present; - times
i + |W'| + 2for ranksi ≥ L(outer phase): an upper vertex stays until its own rank, entering when its first neighbor or itself appears.
Here L = #{y ≤ 0}, U/W are the inner/outer frontiers at level zero and
D = crossFull.
Adapted from the MIT-licensed Lean 4 companion of [Gas26]
(doi:10.5281/zenodo.23883489, module CubicPathwidth.C3.SwitchedLayout).
References #
Frontier definitions #
Inner boundary of the level set {y ≤ t}: its vertices with a neighbor above t.
Outer boundary of the level set {y ≤ t}: vertices above t with a neighbor in {y ≤ t}.
Vertices of crossing degree three at level zero: degree three, with every neighbor on the other side of zero.
Level-zero lower connector load |U| + |D ∩ W| = |U'| + |D|.
Level-zero upper connector load |W| + |D ∩ U| = |W'| + |D|.
Layout sets and connector items #
Times #
Basic facts #
Connector order properties #
Bag membership by phase #
Interval facts #
Bag sizes #
Main theorem #
L1–L3. The median-switched layout gives a family of vertex intervals [s v, e v]
inside [0, T] meeting on every edge of G, with every bag having size at most w + 2
provided every negative-level inner frontier, positive-level outer frontier, and both level-zero
connector loads are at most w.