Documentation

CslibFrontier.Computability.Circuit.Frontier.Layouts.Switched.Sample

One sample controls every frontier of the median-switched layout #

Fix a simple subcubic graph H on Fin n, a decay rate q ∈ [0, 1), and a truncation radius R. For a sample ω : Fin n → ℝ of independent standard Gaussians, score each vertex v by y ω v = ⟪unitKernelRow H q R v, WithLp.toLp 2 ω⟫. Because q < 1, the unit kernel rows are pairwise distinct (unitKernelRow_ne_of_ne), so y ω is almost surely injective.

Over a symmetric grid {-T, -(M - 1) δ, ..., 0, ..., (M - 1) δ, T} with δ = T / M, every negative-level inner frontier is covered by the next grid inner frontier to its left plus a single half-open cell (a, b]:

innerFrontier H y t ⊆ innerFrontier H y a ∪ cellSet y a b for a ≤ t ≤ b,

and every positive-level outer frontier is covered symmetrically by the next grid outer frontier to its right plus the same cell. Only 4 M + 6 local vertex-count events are tracked: M inner frontiers below zero, M outer frontiers above zero, 2 M cell counts, 2 tails beyond ±T, and the 4 counts making up lowerZero and upperZero at level zero.

Every vertex event depends only on the coordinates of ω in the closed ball of radius R + 1 around v, so by Cslib.Circuits.Frontier.Gaussian.measureReal_deviation_le each count deviates from its mean by ε n with probability at most 4 ^ (2 * R + 2) / (ε ^ 2 * n). Per-vertex expectations are bounded by kappa ρ via starFrontier (for t ≠ 0) and switch_bound (at t = 0), by δ / √(2π) on cells, and by 1 / T ^ 2 on the two tails.

Main definitions #

Main results #

References #

noncomputable def Cslib.Circuits.Frontier.Switched.switchedBound (ρ T ε : ℝ) (M : ℕ) :

The per-vertex switched frontier bound at correlation floor ρ, truncation level T, deviation slack ε, and M half-axis grid cells of width δ = T / M.

noncomputable def Cslib.Circuits.Frontier.Switched.vertexScore {n : ℕ} (H : SimpleGraph (Fin n)) (q : ℝ) (R : ℕ) (ω : Fin n → ℝ) (v : Fin n) :

The Gaussian vertex score ⟪unitKernelRow H q R v, WithLp.toLp 2 ω⟫.

Kernel row distinctness and injectivity #

theorem Cslib.Circuits.Frontier.Switched.unitKernelRow_ne_of_ne {V : Type u_1} [Fintype V] (H : SimpleGraph V) {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q < 1) (R : ℕ) {u v : V} (huv : u ≠ v) :

For 0 ≤ q < 1, distinct vertices have distinct unit kernel rows: comparing their ratios at u and v yields 1 ≤ q ^ 2 < 1.

For 0 ≤ q < 1, the Gaussian vertex score vertexScore H q R ω is almost surely injective.

Deterministic grid comparison #

theorem Cslib.Circuits.Frontier.Switched.innerFrontier_subset_grid {n : ℕ} (H : SimpleGraph (Fin n)) (y : Fin n → ℝ) {a t b : ℝ} (hat : a ≤ t) (htb : t ≤ b) :
innerFrontier H y t ⊆ innerFrontier H y a ∪ cellSet y a b

Any negative-level inner frontier is covered by the next grid inner frontier to its left plus the corresponding half-open cell (a, b].

theorem Cslib.Circuits.Frontier.Switched.outerFrontier_subset_grid {n : ℕ} (H : SimpleGraph (Fin n)) (y : Fin n → ℝ) {a t b : ℝ} (hat : a ≤ t) (htb : t ≤ b) :
outerFrontier H y t ⊆ outerFrontier H y b ∪ cellSet y a b

Any positive-level outer frontier is covered by the next grid outer frontier to its right plus the corresponding half-open cell (a, b].

Locality and expectation bounds #

Simultaneous union bound for one good labeling #

theorem Cslib.Circuits.Frontier.Switched.exists_good_labeling {n : ℕ} (H : SimpleGraph (Fin n)) (hdeg : ∀ (v : Fin n), H.degree v ≤ 3) {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q < 1) (R : ℕ) {ρ : ℝ} (hρ0 : 0 < ρ) (hρs : ρ ≤ rStar) (hadj : ∀ (u w : Fin n), H.Adj u w → ρ ≤ inner ℝ (Gaussian.unitKernelRow H q R u) (Gaussian.unitKernelRow H q R w)) {T ε : ℝ} (hT : 0 < T) (hε : 0 < ε) {M : ℕ} (hM : 0 < M) (hlarge : ↑(4 * M + 6) * ↑(4 ^ (2 * R + 2)) / ε ^ 2 < ↑n) :
∃ (y : Fin n → ℝ), Function.Injective y ∧ (∀ t < 0, ↑(innerFrontier H y t).card < switchedBound ρ T ε M * ↑n) ∧ (∀ (t : ℝ), 0 < t → ↑(outerFrontier H y t).card < switchedBound ρ T ε M * ↑n) ∧ ↑(lowerZero H y) < switchedBound ρ T ε M * ↑n ∧ ↑(upperZero H y) < switchedBound ρ T ε M * ↑n

A good labeling. For a simple graph H on Fin n of maximum degree at most 3, with adjacent unitKernelRow correlation at least ρ ∈ (0, rStar] and 0 ≤ q < 1, once n > (4 * M + 6) * 4 ^ (2 * R + 2) / ε ^ 2, there exists an injective labeling y : Fin n → ℝ whose negative-level inner frontiers, positive-level outer frontiers, lowerZero, and upperZero are all strictly bounded by switchedBound ρ T ε M * n.