Documentation

CslibFrontier.Computability.Circuit.Frontier.Layouts.Gaussian.Matching

Simultaneous Gaussian concentration for matched-edge layouts #

Given a loopless cubic multigraph G with a matching M : Set E (pairwise vertex-disjoint edges) and unit edge vectors vec : E → EuclideanSpace ℝ V supported on closedBall G.toSimpleGraph v (R + 1) around each incident vertex v (such as edgeVector G q R from CslibFrontier.Computability.Circuit.Frontier.Layouts.Gaussian.EdgeScores or raw-sum kernel edge vectors), score the edges of G by vecScore vec ω e = ⟪vec e, WithLp.toLp 2 ω⟫. The deterministic threshold cost Multigraph.matchingCost G M (vecScore vec ω) t decomposes into three local binary indicator sums:

Each count concentrates around its expectation under Measure.pi (fun _ => gaussianReal 0 1) by Cslib.Circuits.Frontier.Gaussian.measureReal_deviation_le. Over a uniform grid -T, -T + δ, ..., T of K windows (δ = 2T / K), a union bound over 4 K + 2 deviation events yields one Gaussian sample ω simultaneously controlling the matching cost at each grid threshold -T + i * δ (0 ≤ i < K), each window edge count [-T + i * δ, -T + (i + 1) * δ), and both tail edge counts (< -T and ≥ T) (exists_good_matching_sample_of_vec_mean).

Thus any uniform per-vertex expectation bound μ ≥ 0 on expectedMatchingCostVec over cubic graphs gives CubicLayoutBound μ (cubicLayoutBound_of_matching_vec_mean).

Main definitions #

Main results #

Per-vertex width bound of the matched-edge pair-insertion layout at a concentrated Gaussian sample, given per-vertex expected matching cost μ, tail cutoff T, slack ε, and K grid windows of width 2T / K.

noncomputable def Cslib.Circuits.Frontier.Gaussian.vecScore {V : Type u_1} {E : Type u_2} [Fintype V] (vec : E → EuclideanSpace ℝ V) (ω : V → ℝ) (e : E) :

Gaussian edge score attached to an edge-vector family vec : E → EuclideanSpace ℝ V.

noncomputable def Cslib.Circuits.Frontier.Gaussian.unmatchedVecStraddleEvent {V : Type u_1} {E : Type u_2} [Fintype V] (G : Multigraph V E) (M : Set E) (vec : E → EuclideanSpace ℝ V) (t : ℝ) (v : V) :
Set (V → ℝ)

Local event that an unpaired vertex v ∉ G.matchedVertices M straddles threshold t under vecScore vec. Supported on closedBall G.toSimpleGraph v (R + 1). Empty on matched vertices.

noncomputable def Cslib.Circuits.Frontier.Gaussian.pairAnyVecEvent {V : Type u_1} {E : Type u_2} [Fintype V] (G : Multigraph V E) (M : Set E) (vec : E → EuclideanSpace ℝ V) (t : ℝ) (e : E) :
Set (V → ℝ)

Local event that a matched edge e ∈ M has its four outer incident edges straddling threshold t (Multigraph.PairStraddlesAny) under vecScore vec.

noncomputable def Cslib.Circuits.Frontier.Gaussian.pairBothVecEvent {V : Type u_1} {E : Type u_2} [Fintype V] (G : Multigraph V E) (M : Set E) (vec : E → EuclideanSpace ℝ V) (t : ℝ) (e : E) :
Set (V → ℝ)

Local event that a matched edge e ∈ M has both outer pairs of incident edges straddling threshold t (Multigraph.PairStraddlesBoth) under vecScore vec.

noncomputable def Cslib.Circuits.Frontier.Gaussian.expectedMatchingCostVec {V : Type u_1} {E : Type u_2} [Fintype V] (G : Multigraph V E) [Fintype E] (M : Set E) (vec : E → EuclideanSpace ℝ V) (t : ℝ) :

Expected value of G.matchingCost M (vecScore vec ·) t under Measure.pi (fun _ => gaussianReal 0 1), summed over the three families of indicator events.

noncomputable def Cslib.Circuits.Frontier.Gaussian.unmatchedStraddleEvent {V : Type u_1} {E : Type u_2} [Fintype V] (G : Multigraph V E) (M : Set E) (q : ℝ) (R : ℕ) (t : ℝ) (v : V) :
Set (V → ℝ)

The event that an unpaired vertex v ∉ G.matchedVertices M straddles threshold t under Gaussian edge scores edgeScore G q R.

noncomputable def Cslib.Circuits.Frontier.Gaussian.pairAnyEvent {V : Type u_1} {E : Type u_2} [Fintype V] (G : Multigraph V E) (M : Set E) (q : ℝ) (R : ℕ) (t : ℝ) (e : E) :
Set (V → ℝ)

The event that a matched edge e ∈ M has its four outer incident edges straddling threshold t (Multigraph.PairStraddlesAny) under edgeScore G q R.

noncomputable def Cslib.Circuits.Frontier.Gaussian.pairBothEvent {V : Type u_1} {E : Type u_2} [Fintype V] (G : Multigraph V E) (M : Set E) (q : ℝ) (R : ℕ) (t : ℝ) (e : E) :
Set (V → ℝ)

The event that a matched edge e ∈ M has both outer pairs of incident edges straddling threshold t (Multigraph.PairStraddlesBoth) under edgeScore G q R.

theorem Cslib.Circuits.Frontier.Gaussian.measurableSet_unmatchedStraddleEvent {V : Type u_1} {E : Type u_2} [Fintype V] {G : Multigraph V E} [Finite E] (M : Set E) (q : ℝ) (R : ℕ) (t : ℝ) (v : V) :
theorem Cslib.Circuits.Frontier.Gaussian.dependsOn_unmatchedStraddleEvent {V : Type u_1} {E : Type u_2} [Fintype V] {G : Multigraph V E} (M : Set E) (q : ℝ) (R : ℕ) (t : ℝ) (v : V) :
DependsOn (fun (x : V → ℝ) => x ∈ unmatchedStraddleEvent G M q R t v) (closedBall G.toSimpleGraph v (R + 1))
theorem Cslib.Circuits.Frontier.Gaussian.measurableSet_pairAnyEvent {V : Type u_1} {E : Type u_2} [Fintype V] {G : Multigraph V E} [Finite E] (M : Set E) (q : ℝ) (R : ℕ) (t : ℝ) (e : E) :
theorem Cslib.Circuits.Frontier.Gaussian.measurableSet_pairBothEvent {V : Type u_1} {E : Type u_2} [Fintype V] {G : Multigraph V E} [Finite E] (M : Set E) (q : ℝ) (R : ℕ) (t : ℝ) (e : E) :
theorem Cslib.Circuits.Frontier.Gaussian.dependsOn_pairAnyEvent {V : Type u_1} {E : Type u_2} [Fintype V] {G : Multigraph V E} (hloop : G.Loopless) (M : Set E) (q : ℝ) (R : ℕ) (t : ℝ) (e : E) :
DependsOn (fun (x : V → ℝ) => x ∈ pairAnyEvent G M q R t e) (closedBall G.toSimpleGraph (G.src e) (R + 2))
theorem Cslib.Circuits.Frontier.Gaussian.dependsOn_pairBothEvent {V : Type u_1} {E : Type u_2} [Fintype V] {G : Multigraph V E} (hloop : G.Loopless) (M : Set E) (q : ℝ) (R : ℕ) (t : ℝ) (e : E) :
DependsOn (fun (x : V → ℝ) => x ∈ pairBothEvent G M q R t e) (closedBall G.toSimpleGraph (G.src e) (R + 2))
theorem Cslib.Circuits.Frontier.Gaussian.measureReal_deviation_unmatchedStraddleEvent_le {V : Type u_1} {E : Type u_2} [Fintype V] {G : Multigraph V E} [Finite E] (hdeg : G.MaxDegreeLE 3) (M : Set E) (q : ℝ) (R : ℕ) (t : ℝ) {c : ℝ} (hc : 0 < c) :

Concentration bound for unmatchedStraddleEvent on a MaxDegreeLE 3 multigraph.

theorem Cslib.Circuits.Frontier.Gaussian.measureReal_deviation_closedBall_src_le {V : Type u_1} {E : Type u_2} [Fintype V] {G : Multigraph V E} [Fintype E] (hloop : G.Loopless) (h3 : ∀ (v : V), (G.incidenceSet v).ncard = 3) (R : ℕ) {A : E → Set (V → ℝ)} (hm : ∀ (e : E), MeasurableSet (A e)) (hd : ∀ (e : E), DependsOn (fun (x : V → ℝ) => x ∈ A e) (closedBall G.toSimpleGraph (G.src e) (R + 2))) {c : ℝ} (hc : 0 < c) :
(MeasureTheory.Measure.pi fun (x : V) => ProbabilityTheory.gaussianReal 0 1).real (deviation A c) ≤ 3 / 2 * ↑(Fintype.card V) * ↑(vertexOverlap 3 (R + 1)) / c ^ 2

Concentration bound for any edge-indexed event family supported on radius R + 2 around G.src e in a loopless cubic multigraph.

theorem Cslib.Circuits.Frontier.Gaussian.measureReal_deviation_edgeScoreEvent_le {V : Type u_1} {E : Type u_2} [Fintype V] {G : Multigraph V E} [Fintype E] (hloop : G.Loopless) (h3 : ∀ (v : V), (G.incidenceSet v).ncard = 3) (q : ℝ) (R : ℕ) {p : ℝ → Prop} (hp : MeasurableSet {x : ℝ | p x}) {c : ℝ} (hc : 0 < c) :
(MeasureTheory.Measure.pi fun (x : V) => ProbabilityTheory.gaussianReal 0 1).real (deviation (edgeScoreEvent G q R p) c) ≤ 3 / 2 * ↑(Fintype.card V) * ↑(vertexOverlap 3 (R + 1)) / c ^ 2

Concentration bound for edgeScoreEvent G q R p in a loopless cubic multigraph.

theorem Cslib.Circuits.Frontier.Gaussian.twelve_mul_ncard_edgeScore_tail_le {V : Type u_1} {E : Type u_2} [Fintype V] {G : Multigraph V E} [Fintype E] (hloop : G.Loopless) (h3 : ∀ (v : V), (G.incidenceSet v).ncard = 3) {q : ℝ} {R : ℕ} (hunit : ∀ (e : E), ‖edgeVector G q R e‖ = 1) {T c : ℝ} (hT : 0 < T) {p : ℝ → Prop} (hp : ∀ (x : ℝ), p x → T ≤ |x|) {ω : V → ℝ} (hdev : ω ∉ deviation (edgeScoreEvent G q R p) c) :
12 * ↑{e : E | p (edgeScore G q R ω e)}.ncard ≤ ↑(Fintype.card V) * (18 / T ^ 2) + 12 * c

Sample-wise tail edge bound 12 |{e | p (edgeScore e)}| ≤ |V| · (18 / T ^ 2) + 12 c outside deviation (edgeScoreEvent G q R p) c.

theorem Cslib.Circuits.Frontier.Gaussian.exists_good_matching_sample_of_vec_mean {V : Type u_1} {E : Type u_2} [Fintype V] {G : Multigraph V E} [Fintype E] (hloop : G.Loopless) (h3 : ∀ (v : V), (G.incidenceSet v).ncard = 3) {M : Set E} (hM : G.IsMatching M) {vec : E → EuclideanSpace ℝ V} (R : ℕ) (hunit : ∀ (e : E), ‖vec e‖ = 1) (hsupp : ∀ {v : V} {e : E}, e ∈ G.incidenceSet v → ∀ {z : V}, z ∉ closedBall G.toSimpleGraph v (R + 1) → (vec e).ofLp z = 0) {T ε : ℝ} (hT : 0 < T) (hε : 0 < ε) {K : ℕ} (hK : 0 < K) (large : (6 * ↑K + 3) * ↑(vertexOverlap 3 (R + 1)) / ε ^ 2 < ↑(Fintype.card V)) {μ : ℝ} (hmean : ∀ (t : ℝ), expectedMatchingCostVec G M vec t ≤ ↑(Fintype.card V) * μ) :
∃ (σ : Layout V), ↑(G.width σ) ≤ ↑(Fintype.card V) * matchingBoundOfMean μ T ε K

A good matching sample from a mean bound on local unit edge vectors. Let G be a loopless cubic multigraph (parallel edges allowed) with a matching M : Set E and unit edge vectors vec : E → EuclideanSpace ℝ V vanishing outside closedBall G.toSimpleGraph v (R + 1) around each incident vertex v. If expectedMatchingCostVec G M vec t ≤ |V| * μ for every t, then for |V| > (6 * K + 3) * vertexOverlap 3 (R + 1) / ε ^ 2, some Gaussian sample yields a matched-edge layout of width at most |V| * matchingBoundOfMean μ T ε K.

theorem Cslib.Circuits.Frontier.Gaussian.exists_tail_window_grid {ξ : ℝ} (hξ : 0 < ξ) :
∃ (T : ℝ) (K : ℕ), 0 < T ∧ 0 < K ∧ 18 / T ^ 2 ≤ ξ / 2 ∧ 18 * (2 * T / ↑K) / √(2 * Real.pi) ≤ ξ / 2

Explicit cutoff T > 0 and grid subdivision K > 0 keeping both the Gaussian tail contribution 18 / T ^ 2 and the window contribution 18 (2 T / K) / √(2 π) within ξ / 2.

theorem Cslib.Circuits.Frontier.Gaussian.exists_matching_grid_parameters {μ ξ : ℝ} (hμ : 0 ≤ μ) (hξ : 0 < ξ) :
∃ (T : ℝ) (ε : ℝ) (K : ℕ), 0 < T ∧ 0 < ε ∧ 0 < K ∧ matchingBoundOfMean μ T ε K ≤ μ + ξ

For every μ ≥ 0 and ξ > 0, explicit cutoff/grid parameters keep matchingBoundOfMean μ T ε K within μ + ξ.

theorem Cslib.Circuits.Frontier.Gaussian.cubicLayoutBound_of_matching_vec_mean {μ : ℝ} (hμ : 0 ≤ μ) (hmean : ∀ {ξ : ℝ}, 0 < ξ → ∃ (R : ℕ), ∀ (V E : Type) [inst : Fintype V] [inst_1 : Fintype E] (G : Multigraph V E), G.Loopless → Function.Injective G.ends → (∀ (v : V), (G.incidenceSet v).ncard = 3) → ∃ (M : Set E) (vec : E → EuclideanSpace ℝ V), G.IsMatching M ∧ (∀ (e : E), ‖vec e‖ = 1) ∧ (∀ {v : V} {e : E}, e ∈ G.incidenceSet v → ∀ {z : V}, z ∉ closedBall G.toSimpleGraph v (R + 1) → (vec e).ofLp z = 0) ∧ ∀ (t : ℝ), expectedMatchingCostVec G M vec t ≤ ↑(Fintype.card V) * (μ + ξ / 2)) :

Cubic layout reduction from local unit edge vectors. If for every ξ > 0 there is a locality radius R such that every finite simple cubic multigraph G admits a matching M and R + 1-local unit edge vectors vec with expectedMatchingCostVec G M vec t ≤ |V| * (μ + ξ / 2), then CubicLayoutBound μ.