Documentation

CslibFrontier.Computability.Circuit.Frontier.Layouts.WeightedKernel

Degree-weighted max-product walk kernels for bounded-degree layouts #

In a saturated compression of a multigraph of maximum degree d ≥ 3, the quotient core H is not necessarily d-regular: vertex degrees D_u = |incidenceSet u| (counted with multiplicity) range over 3 ≤ D_u ≤ d, subject to the saturation condition D_u + D_v ≥ d + 3 across every edge e = (u, v). Using a uniform decay ratio q = 1 / √(d - 1) penalises degree-three endpoints as if they had degree d, losing both on the core-size bound 3 d / (2 d - 3) and on mixed-degree edges.

Give each edge (u, v) of H.toSimpleGraph the degree-weighted step factor

q_{uv} = θ / (√(√(D_u - 1)) · √(√(D_v - 1))) = θ · ((D_u - 1)(D_v - 1)) ^ (-1/4)

for θ ∈ [0, 1), and define the truncated max-product walk kernel weightedKernelRow at radius R by Bellman–Ford iteration up to R steps. Because q_{uv} < 1 when D_u, D_v ≥ 3, strictly improving walks never backtrack, and backward induction bounds the truncation-boundary square sum at u by (D_u / 2) θ ^ (2 R) ≤ (d / 2) θ ^ (2 R), even in the presence of parallel edges ((H.toSimpleGraph.neighborSet w).ncard ≤ D_w). Consequently, adjacent unit rows satisfy

2 q_{uv} / (1 + q_{uv} ^ 2) - (d / 2) θ ^ (2 R) ≤ ⟪unitWeightedKernelRow u, unitWeightedKernelRow v⟫

(le_inner_unitWeightedKernelRow). Summing Sheppard's crossing bound [She99] over all edges of H with multiplicity and comparing edge-by-edge against 1 - 1 / D_u - 1 / D_v via the multigraph handshake identity ∑_e (1 - 1 / D_u - 1 / D_v) = |E(H)| - |V(H)| ≤ β₁(G) - 1 yields LayoutBound d A whenever arccos(ρ_{d₁, d₂}) / π ≤ A (1 - 1 / d₁ - 1 / d₂) holds on all valid endpoint degree pairs 3 ≤ d₁ ≤ d₂ ≤ d with d₁ + d₂ ≥ d + 3 (layoutBound_of_weightedKernel).

Closed-form layout bounds #

Main definitions #

Main results #

References #

Finite maximum with zero floor #

Degree-weighted max-product walk kernel #

noncomputable def Cslib.Circuits.Frontier.WeightedKernel.edgeWeight {V : Type u_1} (deg : V → ℕ) (θ : ℝ) (u v : V) :

Symmetric degree-weighted step factor θ / (√(√(deg u - 1)) * √(√(deg v - 1))).

theorem Cslib.Circuits.Frontier.WeightedKernel.edgeWeight_comm {V : Type u_1} (deg : V → ℕ) (θ : ℝ) (u v : V) :
edgeWeight deg θ u v = edgeWeight deg θ v u

The edge weight is symmetric in its endpoints.

theorem Cslib.Circuits.Frontier.WeightedKernel.edgeWeight_nonneg {V : Type u_1} (deg : V → ℕ) {θ : ℝ} (hθ : 0 ≤ θ) (u v : V) :
0 ≤ edgeWeight deg θ u v

The edge weight is nonnegative when θ ≥ 0.

theorem Cslib.Circuits.Frontier.WeightedKernel.edgeWeight_sq {V : Type u_1} (deg : V → ℕ) (θ : ℝ) (u v : V) :
edgeWeight deg θ u v ^ 2 = θ ^ 2 / (√(↑(deg u) - 1) * √(↑(deg v) - 1))

Squaring edgeWeight removes the outer square roots.

noncomputable def Cslib.Circuits.Frontier.WeightedKernel.weightedKernelRow {V : Type u_1} [Finite V] (H : SimpleGraph V) (deg : V → ℕ) (θ : ℝ) (R : ℕ) (v : V) :

The truncated degree-weighted max-product walk kernel row of v at radius R.

noncomputable def Cslib.Circuits.Frontier.WeightedKernel.unitWeightedKernelRow {V : Type u_1} [Fintype V] (H : SimpleGraph V) (deg : V → ℕ) (θ : ℝ) (R : ℕ) (v : V) :

The unit degree-weighted kernel row of v: weightedKernelRow divided by its norm.

theorem Cslib.Circuits.Frontier.WeightedKernel.weightedKernelRow_nonneg {V : Type u_1} [Finite V] {H : SimpleGraph V} {deg : V → ℕ} {θ : ℝ} (R : ℕ) (v z : V) :
0 ≤ (weightedKernelRow H deg θ R v).ofLp z

Every entry of weightedKernelRow is nonnegative.

theorem Cslib.Circuits.Frontier.WeightedKernel.weightedKernelRow_self {V : Type u_1} [Finite V] {H : SimpleGraph V} {deg : V → ℕ} {θ : ℝ} (hθ0 : 0 ≤ θ) (hθ1 : θ ≤ 1) (hlo : ∀ (v : V), 3 ≤ deg v) (R : ℕ) (v : V) :
(weightedKernelRow H deg θ R v).ofLp v = 1

At v itself, weightedKernelRow equals 1 whenever 0 ≤ θ ≤ 1 and degrees are at least three.

theorem Cslib.Circuits.Frontier.WeightedKernel.weightedKernelRow_eq_zero_of_lt {V : Type u_1} [Finite V] {H : SimpleGraph V} {deg : V → ℕ} {θ : ℝ} {R : ℕ} {v z : V} (h : ↑R < H.edist v z) :
(weightedKernelRow H deg θ R v).ofLp z = 0

Outside the closed ball of radius R around v, weightedKernelRow vanishes.

Pointwise adjacent defect #

Norms and backward-induction sum bounds #

theorem Cslib.Circuits.Frontier.WeightedKernel.one_le_norm_weightedKernelRow {V : Type u_1} [Fintype V] {H : SimpleGraph V} {deg : V → ℕ} {θ : ℝ} (R : ℕ) (v : V) :

Every weightedKernelRow has Euclidean norm at least 1.

theorem Cslib.Circuits.Frontier.WeightedKernel.unitWeightedKernelRow_apply {V : Type u_1} [Fintype V] {H : SimpleGraph V} {deg : V → ℕ} {θ : ℝ} (R : ℕ) (v z : V) :
(unitWeightedKernelRow H deg θ R v).ofLp z = ‖weightedKernelRow H deg θ R v‖⁻¹ * (weightedKernelRow H deg θ R v).ofLp z

Coordinate z of unitWeightedKernelRow is weightedKernelRow divided by its norm.

@[simp]
theorem Cslib.Circuits.Frontier.WeightedKernel.norm_unitWeightedKernelRow {V : Type u_1} [Fintype V] {H : SimpleGraph V} {deg : V → ℕ} {θ : ℝ} (R : ℕ) (v : V) :

Unit weighted kernel rows have norm 1.

theorem Cslib.Circuits.Frontier.WeightedKernel.unitWeightedKernelRow_eq_zero_of_lt {V : Type u_1} [Fintype V] {H : SimpleGraph V} {deg : V → ℕ} {θ : ℝ} {R : ℕ} {v z : V} (h : ↑R < H.edist v z) :
(unitWeightedKernelRow H deg θ R v).ofLp z = 0

Outside the closed ball of radius R around v, unitWeightedKernelRow vanishes.

theorem Cslib.Circuits.Frontier.WeightedKernel.le_inner_weightedKernelRow {V : Type u_1} [Fintype V] {H : SimpleGraph V} {deg : V → ℕ} {θ : ℝ} {d : ℕ} (hθ0 : 0 ≤ θ) (hθ1 : θ < 1) (hlo : ∀ (v : V), 3 ≤ deg v) (hhi : ∀ (v : V), deg v ≤ d) (hsimple : ∀ (v : V), (H.neighborSet v).ncard ≤ deg v) {R : ℕ} (hR : 1 ≤ R) {u v : V} (huv : H.Adj u v) :
have q := edgeWeight deg θ u v; 2 * q / (1 + q ^ 2) * (‖weightedKernelRow H deg θ R u‖ ^ 2 + ‖weightedKernelRow H deg θ R v‖ ^ 2) / 2 - ↑d / 2 * (θ ^ 2) ^ R ≤ inner ℝ (weightedKernelRow H deg θ R u) (weightedKernelRow H deg θ R v)

Correlation of adjacent degree-weighted kernel rows. For R ≥ 1 and θ ∈ [0, 1), if every vertex has degree 3 ≤ deg w ≤ d bounding its simple neighbor count, adjacent kernel rows satisfy κ (‖k_u‖ ^ 2 + ‖k_v‖ ^ 2) / 2 - (d / 2) (θ ^ 2) ^ R ≤ ⟪k_u, k_v⟫ with κ = 2 q_{uv} / (1 + q_{uv} ^ 2).

theorem Cslib.Circuits.Frontier.WeightedKernel.le_inner_unitWeightedKernelRow {V : Type u_1} [Fintype V] {H : SimpleGraph V} {deg : V → ℕ} {θ : ℝ} {d : ℕ} (hθ0 : 0 ≤ θ) (hθ1 : θ < 1) (hlo : ∀ (v : V), 3 ≤ deg v) (hhi : ∀ (v : V), deg v ≤ d) (hsimple : ∀ (v : V), (H.neighborSet v).ncard ≤ deg v) {R : ℕ} (hR : 1 ≤ R) {u v : V} (huv : H.Adj u v) :
have q := edgeWeight deg θ u v; 2 * q / (1 + q ^ 2) - ↑d / 2 * (θ ^ 2) ^ R ≤ inner ℝ (unitWeightedKernelRow H deg θ R u) (unitWeightedKernelRow H deg θ R v)

Correlation of adjacent unit degree-weighted kernel rows. Under the hypotheses of le_inner_weightedKernelRow, the normalized unit rows of adjacent vertices u ~ v satisfy 2 q_{uv} / (1 + q_{uv} ^ 2) - (d / 2) (θ ^ 2) ^ R ≤ ⟪unitWeightedKernelRow u, unitWeightedKernelRow v⟫.

Multigraph handshake and limiting degree-pair correlations #

theorem Cslib.Circuits.Frontier.WeightedKernel.sum_one_sub_inv_deg_eq {V : Type u_1} {E : Type u_2} [Fintype V] [Fintype E] {G : Multigraph V E} (hl : G.Loopless) (hpos : ∀ (v : V), 0 < (G.incidenceSet v).ncard) :
∑ e : E, (1 - 1 / ↑(G.incidenceSet (G.src e)).ncard - 1 / ↑(G.incidenceSet (G.tgt e)).ncard) = ↑(Fintype.card E) - ↑(Fintype.card V)

Multigraph cycle-excess handshake. In a finite loopless multigraph where every vertex has at least one incident edge, ∑_e (1 - 1 / D_{src e} - 1 / D_{tgt e}) = |E| - |V|.

Limiting step factor 1 / (√(√(d₁ - 1)) * √(√(d₂ - 1))) at θ = 1 for endpoint degrees (d₁, d₂).

Limiting adjacent unit-row correlation 2 q / (1 + q ^ 2) at θ = 1 for endpoint degrees (d₁, d₂).

pairCorrelation is symmetric in (d₁, d₂).

General degree-pair layout theorem #

theorem Cslib.Circuits.Frontier.layoutBound_of_weightedKernel {d : ℕ} (hd : 3 ≤ d) {A : ℝ} (hA : 0 ≤ A) (hpairs : ∀ (d₁ d₂ : ℕ), 3 ≤ d₁ → d₁ ≤ d₂ → d₂ ≤ d → d + 3 ≤ d₁ + d₂ → Real.arccos (WeightedKernel.pairCorrelation d₁ d₂) / Real.pi ≤ A * (1 - 1 / ↑d₁ - 1 / ↑d₂)) :

Degree-weighted max-product walk kernel layout bound. For d ≥ 3 and A ≥ 0, if every degree pair (d₁, d₂) with 3 ≤ d₁ ≤ d₂ ≤ d and d + 3 ≤ d₁ + d₂ satisfies arccos (pairCorrelation d₁ d₂) / π ≤ A (1 - 1 / d₁ - 1 / d₂), then LayoutBound d A holds.

Closed-form rational and trigonometric helpers for d = 4, 5, 6 #

Diagonal evaluation: pairCorrelation d d = Gaussian.vertexCorrelation d for d ≥ 1.

The exact degree-five layout coefficient (5 / 3) arccos (4 / 5) / π ≈ 0.341388.

Closed-form circuit lower-bound coefficient 1 + 1 / fiveCoefficient.

Rational lower bound 3929 / 1000 ≤ 1 + 3 π / (5 arccos (4 / 5)) ≈ 3.929219.

The exact degree-six layout coefficient (3 / 2) arccos (√5 / 3) / π ≈ 0.348419.

Closed-form circuit lower-bound coefficient 1 + 1 / sixCoefficient.

Rational lower bound 387 / 100 ≤ 1 + 2 π / (3 arccos (√5 / 3)) ≈ 3.870105.

Closed-form LayoutBound instances for maximum degrees 4, 5, and 6 #

Degree-four layout bound 1 / 3. Connected loopless multigraphs of maximum degree four have layouts of width (1 / 3 + o(1)) β₁ + o(|V|): (4, 4) edges meet 1 / 3 with equality and (3, 4) edges have strictly smaller normalized crossing probability.

Degree-five weighted layout bound. Connected loopless multigraphs of maximum degree five have layouts of width (fiveCoefficient + o(1)) β₁ + o(|V|), where fiveCoefficient = (5 / 3) arccos (4 / 5) / π ≈ 0.341388.

Degree-six weighted layout bound. Connected loopless multigraphs of maximum degree six have layouts of width (sixCoefficient + o(1)) β₁ + o(|V|), where sixCoefficient = (3 / 2) arccos (√5 / 3) / π ≈ 0.348419.