Documentation

CslibFrontier.Foundations.Combinatorics.Expander.MatchingPencil

Matching-path spectral pencils #

Eliminating the internal vertices of equal-length paths added along a matching gives the core matrix L + q (c P - M) - δ D. Here P selects the matched core vertices, M is the matching matrix, D = 3 I - P, and L is the core Laplacian. For a path of length ℓ, the parameters are q = sin θ / sin (ℓ θ), c = cos (ℓ θ), and δ = 1 - cos θ.

This module proves the finite matrix certificate behind the construction. A core quadratic-form gap greater than 2 q + 3 δ makes the pencil positive on mean-zero vectors. Its value on the constant vector is negative, so the pencil is nonsingular. The signless branch is positive on the whole space and accommodates either parity of the added paths.

Weights in [0,1] are allowed: the ordinary matching case takes w to be the indicator of the matched vertices and an involution σ pairing them. Fixed points of σ outside the support do not matter. These are matrix certificates; this module does not construct a subdivided graph or assert the existence of a near-Ramanujan core family.

Main results #

The certificate and its use for matching-path expansion are derived here. The proof uses the elementary hyperplane criterion rather than an eigenvalue perturbation theorem.

def Cslib.MatchingPencil.weightedMatching {V : Type u_1} [Fintype V] [DecidableEq V] (w : V → ℝ) (σ : Equiv.Perm V) :

The adjacency matrix of a weighted matching, represented by an involutive permutation that preserves the weights. The definition also makes sense before those hypotheses are imposed.

def Cslib.MatchingPencil.coreDegree {V : Type u_1} [DecidableEq V] (w : V → ℝ) :

The core degree matrix when a matched vertex has degree two and an unmatched vertex has degree three. Indicator weights give precisely those two cases.

def Cslib.MatchingPencil.pencil {V : Type u_1} [Fintype V] [DecidableEq V] (B : Matrix V V ℝ) (w : V → ℝ) (σ : Equiv.Perm V) (q c s δ : ℝ) :

The core pencil after path elimination; s = -1 is the positive-eigenvalue branch, and s = (-1)^(ℓ+1) is the negative-eigenvalue branch.

@[simp]
theorem Cslib.MatchingPencil.weightedMatching_mulVec {V : Type u_1} [Fintype V] [DecidableEq V] (w : V → ℝ) (σ : Equiv.Perm V) (x : V → ℝ) (v : V) :
(weightedMatching w σ).mulVec x v = w v * x (σ v)

Multiplication by a weighted matching evaluates the vector at the matched vertex.

theorem Cslib.MatchingPencil.weightedMatching_isSymm {V : Type u_1} [Fintype V] [DecidableEq V] (w : V → ℝ) (σ : Equiv.Perm V) (hσ : Function.Involutive ⇑σ) (hw : ∀ (v : V), w (σ v) = w v) :

An involution preserving the vertex weights gives a symmetric matching matrix.

@[simp]

The matching sends the constant vector to the vector of vertex weights.

theorem Cslib.MatchingPencil.abs_dotProduct_weightedMatching_le {V : Type u_1} [Fintype V] [DecidableEq V] (w : V → ℝ) (σ : Equiv.Perm V) (hw0 : ∀ (v : V), 0 ≤ w v) (hwσ : ∀ (v : V), w (σ v) = w v) (x : V → ℝ) :

The matching quadratic form is bounded by the weighted squared norm.

theorem Cslib.MatchingPencil.diagonal_form_bounds {V : Type u_1} [Fintype V] [DecidableEq V] (w : V → ℝ) (hw0 : ∀ (v : V), 0 ≤ w v) (hw1 : ∀ (v : V), w v ≤ 1) (x : V → ℝ) :

The weighted norm lies between zero and the ordinary squared norm.

The degree quadratic form is 3 ‖x‖² minus the weighted norm.

theorem Cslib.MatchingPencil.pencil_form {V : Type u_1} [Fintype V] [DecidableEq V] (B : Matrix V V ℝ) (w : V → ℝ) (σ : Equiv.Perm V) (q c s δ : ℝ) (x : V → ℝ) :
x ⬝ᵥ (pencil B w σ q c s δ).mulVec x = x ⬝ᵥ B.mulVec x + q * (c * x ⬝ᵥ (Matrix.diagonal w).mulVec x + s * x ⬝ᵥ (weightedMatching w σ).mulVec x) - δ * x ⬝ᵥ (coreDegree w).mulVec x

Expanding the pencil quadratic form isolates its three scalar perturbation terms.

theorem Cslib.MatchingPencil.pencil_lower_bound {V : Type u_1} [Fintype V] [DecidableEq V] (B : Matrix V V ℝ) (w : V → ℝ) (σ : Equiv.Perm V) (hw0 : ∀ (v : V), 0 ≤ w v) (hw1 : ∀ (v : V), w v ≤ 1) (hwσ : ∀ (v : V), w (σ v) = w v) {q c s δ : ℝ} (hq : 0 ≤ q) (hc : |c| ≤ 1) (hs : |s| ≤ 1) (hδ : 0 ≤ δ) (x : V → ℝ) :
x ⬝ᵥ B.mulVec x - (2 * q + 3 * δ) * x ⬝ᵥ x ≤ x ⬝ᵥ (pencil B w σ q c s δ).mulVec x

The matching perturbation costs at most 2 q + 3 δ in the quadratic-form gap.

theorem Cslib.MatchingPencil.pencil_isSymm {V : Type u_1} [Fintype V] [DecidableEq V] {B : Matrix V V ℝ} (hB : B.IsSymm) (w : V → ℝ) (σ : Equiv.Perm V) (hσ : Function.Involutive ⇑σ) (hwσ : ∀ (v : V), w (σ v) = w v) (q c s δ : ℝ) :
(pencil B w σ q c s δ).IsSymm

A symmetric core gives a symmetric matching pencil.

theorem Cslib.MatchingPencil.laplacianPencil_injective {V : Type u_1} [Fintype V] [DecidableEq V] {L : Matrix V V ℝ} (hL : L.IsSymm) (hLone : L.mulVec 1 = 0) (w : V → ℝ) (σ : Equiv.Perm V) (hσ : Function.Involutive ⇑σ) (hw0 : ∀ (v : V), 0 ≤ w v) (hw1 : ∀ (v : V), w v ≤ 1) (hwσ : ∀ (v : V), w (σ v) = w v) (hwpos : 0 < ∑ v : V, w v) {μ q c δ : ℝ} (hgap : ∀ (x : V → ℝ), 1 ⬝ᵥ x = 0 → μ * x ⬝ᵥ x ≤ x ⬝ᵥ L.mulVec x) (hq : 0 < q) (hc : |c| ≤ 1) (hc1 : c < 1) (hδ : 0 ≤ δ) (hbudget : 2 * q + 3 * δ < μ) :
Function.Injective (pencil L w σ q c (-1) δ).mulVec

The positive-eigenvalue pencil is nonsingular when the core Laplacian gap exceeds the perturbation budget. The matching must have positive total weight.

theorem Cslib.MatchingPencil.signlessPencil_injective {V : Type u_1} [Fintype V] [DecidableEq V] (Q : Matrix V V ℝ) (w : V → ℝ) (σ : Equiv.Perm V) (hw0 : ∀ (v : V), 0 ≤ w v) (hw1 : ∀ (v : V), w v ≤ 1) (hwσ : ∀ (v : V), w (σ v) = w v) {ν q c s δ : ℝ} (hgap : ∀ (x : V → ℝ), ν * x ⬝ᵥ x ≤ x ⬝ᵥ Q.mulVec x) (hq : 0 ≤ q) (hc : |c| ≤ 1) (hs : |s| ≤ 1) (hδ : 0 ≤ δ) (hbudget : 2 * q + 3 * δ < ν) :
Function.Injective (pencil Q w σ q c s δ).mulVec

A signless core gap larger than the same budget makes either parity pencil nonsingular. Unlike the Laplacian branch, positivity is assumed on the entire vector space.