Documentation

CslibFrontier.Computability.Circuit.Frontier.Layouts.Switched.SwitchedLayout

The median-switched layout (L1–L3): switchedLayout : SwitchedLayoutClaim #

Vertices are ranked by their (injective) labels. Time runs through three phases:

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 #

noncomputable def Cslib.Circuits.Frontier.Switched.innerFrontier {n : ℕ} (G : SimpleGraph (Fin n)) (y : Fin n → ℝ) (t : ℝ) :

Inner boundary of the level set {y ≤ t}: its vertices with a neighbor above t.

noncomputable def Cslib.Circuits.Frontier.Switched.outerFrontier {n : ℕ} (G : SimpleGraph (Fin n)) (y : Fin n → ℝ) (t : ℝ) :

Outer boundary of the level set {y ≤ t}: vertices above t with a neighbor in {y ≤ t}.

noncomputable def Cslib.Circuits.Frontier.Switched.crossFull {n : ℕ} (G : SimpleGraph (Fin n)) (y : Fin n → ℝ) :

Vertices of crossing degree three at level zero: degree three, with every neighbor on the other side of zero.

noncomputable def Cslib.Circuits.Frontier.Switched.lowerZero {n : ℕ} (G : SimpleGraph (Fin n)) (y : Fin n → ℝ) :

Level-zero lower connector load |U| + |D ∩ W| = |U'| + |D|.

noncomputable def Cslib.Circuits.Frontier.Switched.upperZero {n : ℕ} (G : SimpleGraph (Fin n)) (y : Fin n → ℝ) :

Level-zero upper connector load |W| + |D ∩ U| = |W'| + |D|.

noncomputable def Cslib.Circuits.Frontier.Switched.cellSet {n : ℕ} (y : Fin n → ℝ) (a b : ℝ) :

Labels in the half-open interval (a, b].

Layout sets and connector items #

Times #

Basic facts #

Connector order properties #

Bag membership by phase #

Cardinality comparisons with lowerZero and upperZero #

Interval facts #

Bag sizes #

Main theorem #

theorem Cslib.Circuits.Frontier.Switched.Layout.exists_intervals_of_loads {n : ℕ} (G : SimpleGraph (Fin n)) (hG : ∀ (v : Fin n), G.degree v ≤ 3) (y : Fin n → ℝ) (hy : Function.Injective y) (w : ℕ) (hin : ∀ t < 0, (innerFrontier G y t).card ≤ w) (hout : ∀ (t : ℝ), 0 < t → (outerFrontier G y t).card ≤ w) (hlo : lowerZero G y ≤ w) (hhi : upperZero G y ≤ w) :
∃ (T : ℕ) (s : Fin n → ℕ) (e : Fin n → ℕ), (∀ (v : Fin n), s v ≤ e v) ∧ (∀ (v : Fin n), e v ≤ T) ∧ (∀ (u v : Fin n), G.Adj u v → max (s u) (s v) ≤ min (e u) (e v)) ∧ ∀ t ≤ T, (intervalBag s e t).card ≤ w + 2

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.