Interval bags, ranks, and cubic pathwidth to cutwidth #
This file collects the basic interval-bag and label-rank utilities for the switched Gaussian sweep,
and provides the median edge-index bridge (exists_width_le_of_intervals) that turns any finite
interval decomposition of a cubic multigraph G with maximum bag size w into a vertex layout
of cutwidth at most w + 1 (i.e., cw(G) ≤ pw(G) + 2).
Proof of the bridge. Suppose every vertex v is assigned a closed interval [s v, e v] in
{0, …, T} and every edge a lies inside some bag intervalBag s e (t a). Assign every edge a
distinct integer score score a = t a * (|E| + 1) + idx a, where idx : E ≃ Fin |E|. Order the
vertices by their median edge score (Multigraph.exists_isMedian). For any threshold m splitting
a prefix P from Pᶜ, write i = m / (|E| + 1):
- edges crossing
Pwithscore a < minject intointervalBag s e i \ Pvia their outer endpoint (eachv ∉ Phas at least two edges scoring at leastm); - edges crossing
Pwithm < score ainject intointervalBag s e i ∩ Pvia their inner endpoint (eachu ∈ Phas at least two edges scoring at mostm); - at most one edge has
score a = m, sincescoreis injective.
Therefore |edgeCut P| ≤ |intervalBag s e i| + 1. This recovers the cw ≤ pw + 2 bound for
cubic multigraphs (even with parallel edges) in direct elementary fashion.
The rank lemmas are adapted from the MIT-licensed Lean 4 companion of [Gas26]
(doi:10.5281/zenodo.23883489, module CubicPathwidth.C3.Intervals).
Main definitions #
Cslib.Circuits.Frontier.Switched.intervalBag: the bag{v | s v ≤ t ∧ t ≤ e v}.Cslib.Circuits.Frontier.Switched.rank: the rank#{u | y u < y v}of a vertex label.
Main results #
Cslib.Circuits.Frontier.Switched.exists_width_le_of_intervals: turning a vertex interval cover of a cubic multigraph into a vertex layout of width at mostmaxBag + 1.
References #
- S. Gaspers, Path Decompositions of Sparse Graphs via Gaussian Sweeps and Faster Exponential Algorithms
- [F. S. Makedon and I. H. Sudborough, On minimizing width in linear layouts, Discrete Appl. Math. 23 (1989), 243–265]
A vertex belongs to intervalBag s e t iff s v ≤ t ≤ e v.
Ranks of injective real labelings #
For injective y, rank y is injective.
Cubic pathwidth-to-cutwidth bridge #
From vertex intervals (pathwidth) to a vertex layout (cutwidth) on cubic multigraphs.
If every vertex v carries a nonempty interval [s v, e v] ⊆ [0, T] such that every edge joins
two vertices whose intervals overlap inside {0, …, T}, and every intervalBag s e t (t ≤ T)
has cardinality at most w, then the cubic multigraph admits a layout of width at most w + 1.