Documentation

CslibFrontier.Foundations.Combinatorics.Expander.BipartiteRotation

Regular bipartite multigraphs, bipartite double covers, and mixing #

A D-regular bipartite multigraph between left vertices L and right vertices R—retaining parallel-edge multiplicities—is presented by a bijection toRight : L × D ≃ R × D matching each left dart (u, i) to its right dart (v, j) (Cslib.BipartiteRotationMap). When D is nonempty and finite, this forces |L| = |R| (card_left_eq_card_right). Its symmetric rotation map on L ⊕ R is B.toRotationMap, and any D-regular multigraph G : RotationMap V D gives a bipartite double cover G.doubleCover : BipartiteRotationMap V V D whose edges and walk operators mirror G.

The normalized biadjacency walk operator B.walkLeft : (R → ℝ) →ₗ[ℝ] (L → ℝ) averages a right-side function over left-side neighbors, with adjoint B.walkRight = B.flip.walkLeft. The normalized nontrivial singular value B.nontrivialSingularValue is the operator norm of B.walkLeft on mean-zero functions, equal to B.flip.nontrivialSingularValue. It bounds every eigenvalue μ of B.toRotationMap orthogonal to both (1_L, 1_R) and (1_L, -1_R) (abs_eigenvalue_le_nontrivialSingularValue_of_isBipartiteBalanced), equals G.spectralExpansion for G.doubleCover (nontrivialSingularValue_doubleCover), and yields the bipartite expander mixing lemma (abs_card_interedges_sub_le, abs_card_interedges_sub_le_mul_sqrt).

Main definitions #

Main results #

References #

structure Cslib.BipartiteRotationMap (L : Type u_1) (R : Type u_2) (D : Type u_3) :
Type (max (max u_1 u_2) u_3)

A D-regular bipartite multigraph between left vertices L and right vertices R, retaining parallel edges via the dart bijection toRight : L × D ≃ R × D.

  • toRight : L × D ≃ R × D

    The bijection pairing each left dart (u, i) with its opposite right dart (v, j).

theorem Cslib.BipartiteRotationMap.ext_iff {L : Type u_1} {R : Type u_2} {D : Type u_3} {x y : BipartiteRotationMap L R D} :
theorem Cslib.BipartiteRotationMap.ext {L : Type u_1} {R : Type u_2} {D : Type u_3} {x y : BipartiteRotationMap L R D} (toRight : x.toRight = y.toRight) :
x = y
def Cslib.BipartiteRotationMap.ofEquiv {L : Type u_1} {R : Type u_2} {D : Type u_3} {E : Type u_4} (eL : L × D ≃ E) (eR : R × D ≃ E) :

Build a D-regular bipartite multigraph from left and right edge-port bijections onto a common edge type E.

def Cslib.BipartiteRotationMap.flip {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) :

Flip the two sides of a bipartite multigraph.

@[simp]
theorem Cslib.BipartiteRotationMap.flip_flip {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) :
B.flip.flip = B

Flipping twice returns the original bipartite rotation map.

def Cslib.BipartiteRotationMap.neighborRight {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) (u : L) (i : D) :
R

The right endpoint reached by left vertex u along its i-th port.

def Cslib.BipartiteRotationMap.neighborLeft {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) (v : R) (j : D) :
L

The left endpoint reached by right vertex v along its j-th port.

theorem Cslib.BipartiteRotationMap.neighborLeft_eq_flip_neighborRight {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) (v : R) (j : D) :

Left neighbors in B are right neighbors in B.flip.

def Cslib.BipartiteRotationMap.toRotationMap {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) :

View a D-regular bipartite multigraph as a D-regular rotation map on L ⊕ R.

Bipartite double cover of a regular multigraph G : RotationMap V D: left vertex u is joined by port i to right vertex (G.rot (u, i)).1 at port (G.rot (u, i)).2.

@[simp]
theorem Cslib.BipartiteRotationMap.doubleCover_neighborRight {D : Type u_3} {V : Type u_5} (G : RotationMap V D) (u : V) (i : D) :

Right neighbors in G.doubleCover agree with neighbors in G.

@[simp]
theorem Cslib.BipartiteRotationMap.doubleCover_neighborLeft {D : Type u_3} {V : Type u_5} (G : RotationMap V D) (v : V) (j : D) :

Left neighbors in G.doubleCover agree with neighbors in G.

When D is finite and nonempty, left and right sides have the same cardinality N.

noncomputable def Cslib.BipartiteRotationMap.walkLeft {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] :
(R → ℝ) →ₗ[ℝ] L → ℝ

The left-side normalized biadjacency operator: averages a function g : R → ℝ over the D neighbors of each left vertex.

noncomputable def Cslib.BipartiteRotationMap.walkRight {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] :
(L → ℝ) →ₗ[ℝ] R → ℝ

The right-side normalized biadjacency operator: B.flip.walkLeft.

theorem Cslib.BipartiteRotationMap.walkLeft_apply {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] (g : R → ℝ) (u : L) :
B.walkLeft g u = Finset.univ.expect fun (i : D) => g (B.neighborRight u i)

Pointwise formula for B.walkLeft.

theorem Cslib.BipartiteRotationMap.walkRight_apply {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] (f : L → ℝ) (v : R) :
B.walkRight f v = Finset.univ.expect fun (j : D) => f (B.neighborLeft v j)

Pointwise formula for B.walkRight.

@[simp]
theorem Cslib.BipartiteRotationMap.walkLeft_const {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] [Nonempty D] (c : ℝ) :
(B.walkLeft fun (x : R) => c) = fun (x : L) => c

B.walkLeft preserves constant functions.

@[simp]
theorem Cslib.BipartiteRotationMap.walkRight_const {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] [Nonempty D] (c : ℝ) :
(B.walkRight fun (x : L) => c) = fun (x : R) => c

B.walkRight preserves constant functions.

@[simp]
theorem Cslib.BipartiteRotationMap.toRotationMap_walk_sumElim {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] (f : L → ℝ) (g : R → ℝ) :

On L ⊕ R, B.toRotationMap.walk sends (f, g) to (walkLeft g, walkRight f).

@[simp]

Left walk of G.doubleCover is G.walk.

@[simp]

Right walk of G.doubleCover is G.walk.

theorem Cslib.BipartiteRotationMap.expect_walkLeft {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] [Fintype L] [Fintype R] [Nonempty D] (g : R → ℝ) :
(Finset.univ.expect fun (u : L) => B.walkLeft g u) = Finset.univ.expect fun (v : R) => g v

Averaging B.walkLeft g over left vertices equals averaging g over right vertices.

theorem Cslib.BipartiteRotationMap.expect_mul_walkLeft {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] [Fintype L] [Fintype R] (f : L → ℝ) (g : R → ℝ) :
(Finset.univ.expect fun (u : L) => f u * B.walkLeft g u) = Finset.univ.expect fun (v : R) => B.walkRight f v * g v

B.walkLeft and B.walkRight are adjoint with respect to uniform expectations on L and R.

theorem Cslib.BipartiteRotationMap.expect_walkLeft_eq_zero {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] [Fintype L] [Fintype R] {g : R → ℝ} (hg : (Finset.univ.expect fun (v : R) => g v) = 0) :
(Finset.univ.expect fun (u : L) => B.walkLeft g u) = 0

B.walkLeft preserves mean zero.

theorem Cslib.BipartiteRotationMap.expect_walkRight_eq_zero {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] [Fintype L] [Fintype R] {f : L → ℝ} (hf : (Finset.univ.expect fun (u : L) => f u) = 0) :
(Finset.univ.expect fun (v : R) => B.walkRight f v) = 0

B.walkRight preserves mean zero.

theorem Cslib.BipartiteRotationMap.walkLeft_sub_expect {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype D] [Fintype R] [Nonempty D] (g : R → ℝ) :
(B.walkLeft fun (v : R) => g v - Finset.univ.expect fun (w : R) => g w) = fun (u : L) => B.walkLeft g u - Finset.univ.expect fun (w : R) => g w

For a centered function g - 𝔼 g, B.walkLeft commutes with subtracting the mean.

noncomputable def Cslib.BipartiteRotationMap.nontrivialSingularValue {L : Type u_1} {R : Type u_2} {D : Type u_3} (B : BipartiteRotationMap L R D) [Fintype L] [Fintype R] [Fintype D] :

The normalized nontrivial singular value σ₂(B) of B: the operator norm of B.walkLeft on mean-zero functions, equivalently the second singular value of the normalized biadjacency matrix A / |D|.

theorem Cslib.BipartiteRotationMap.expect_walkLeft_sq_le {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype L] [Fintype R] [Fintype D] {B : BipartiteRotationMap L R D} [Nonempty D] {g : R → ℝ} (hg : (Finset.univ.expect fun (v : R) => g v) = 0) :
(Finset.univ.expect fun (u : L) => B.walkLeft g u ^ 2) ≤ B.nontrivialSingularValue ^ 2 * Finset.univ.expect fun (v : R) => g v ^ 2

On mean-zero right-side functions, B.walkLeft shrinks the second moment by at most σ₂(B) ^ 2.

theorem Cslib.BipartiteRotationMap.nontrivialSingularValue_le_iff {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype L] [Fintype R] [Fintype D] {B : BipartiteRotationMap L R D} [Nonempty D] {c : ℝ} (hc : 0 ≤ c) :
B.nontrivialSingularValue ≤ c ↔ ∀ (g : R → ℝ), (Finset.univ.expect fun (v : R) => g v) = 0 → (Finset.univ.expect fun (u : L) => B.walkLeft g u ^ 2) ≤ c ^ 2 * Finset.univ.expect fun (v : R) => g v ^ 2

σ₂(B) ≤ c (for c ≥ 0) iff 𝔼 (B.walkLeft g)^2 ≤ c^2 𝔼 g^2 for all mean-zero g.

By adjointness, σ₂(B.flip) ≤ σ₂(B).

@[simp]

Symmetry of singular values: σ₂(B.flip) = σ₂(B).

theorem Cslib.BipartiteRotationMap.expect_walkRight_sq_le {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype L] [Fintype R] [Fintype D] {B : BipartiteRotationMap L R D} [Nonempty D] {f : L → ℝ} (hf : (Finset.univ.expect fun (u : L) => f u) = 0) :
(Finset.univ.expect fun (v : R) => B.walkRight f v ^ 2) ≤ B.nontrivialSingularValue ^ 2 * Finset.univ.expect fun (u : L) => f u ^ 2

On mean-zero left-side functions, B.walkRight shrinks the second moment by at most σ₂(B) ^ 2.

theorem Cslib.BipartiteRotationMap.expect_mul_walkLeft_sq_le {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype L] [Fintype R] [Fintype D] {B : BipartiteRotationMap L R D} [Nonempty D] {f : L → ℝ} {g : R → ℝ} :
(Finset.univ.expect fun (u : L) => f u) = 0 → ∀ (hg : (Finset.univ.expect fun (v : R) => g v) = 0), (Finset.univ.expect fun (u : L) => f u * B.walkLeft g u) ^ 2 ≤ (B.nontrivialSingularValue ^ 2 * Finset.univ.expect fun (u : L) => f u ^ 2) * Finset.univ.expect fun (v : R) => g v ^ 2

Squared bilinear correlation bound for mean-zero functions f : L → ℝ and g : R → ℝ.

@[simp]

The bipartite double cover of a regular multigraph G has the same normalized nontrivial singular value as G.spectralExpansion.

def Cslib.BipartiteRotationMap.IsBipartiteBalanced {L : Type u_1} {R : Type u_2} [Fintype L] [Fintype R] (f : L ⊕ R → ℝ) :

A function on L ⊕ R is bipartite-balanced when its averages on L and R both vanish (i.e. orthogonal to both (1_L, 1_R) and (1_L, -1_R)).

Every eigenfunction B.toRotationMap.walk f = μ • f (f ≠ 0) that is orthogonal to the trivial ±1 eigenfunctions (1_L, ±1_R) has eigenvalue |μ| ≤ B.nontrivialSingularValue.

theorem Cslib.BipartiteRotationMap.isBipartiteBalanced_iff_inner_eq_zero {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype L] [Fintype R] [Finite D] [Nonempty D] (B : BipartiteRotationMap L R D) (hL : 0 < Fintype.card L) (f : L ⊕ R → ℝ) :
IsBipartiteBalanced f ↔ inner ℝ (WithLp.toLp 2 fun (x : L ⊕ R) => 1) (WithLp.toLp 2 f) = 0 ∧ inner ℝ (WithLp.toLp 2 (Sum.elim (fun (x : L) => 1) fun (x : R) => -1)) (WithLp.toLp 2 f) = 0

In the Euclidean space EuclideanSpace ℝ (L ⊕ R), IsBipartiteBalanced f holds iff WithLp.toLp 2 f is orthogonal to both (1_L, 1_R) and (1_L, -1_R).

def Cslib.BipartiteRotationMap.interedges {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype D] [DecidableEq R] (B : BipartiteRotationMap L R D) (U : Finset L) (W : Finset R) :
Finset (L × D)

The edges of B from left set U to right set W, represented as left darts (u, i) with u ∈ U and B.neighborRight u i ∈ W.

@[simp]
theorem Cslib.BipartiteRotationMap.mem_interedges {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype D] [DecidableEq R] (B : BipartiteRotationMap L R D) {U : Finset L} {W : Finset R} {p : L × D} :
p ∈ B.interedges U W ↔ p.1 ∈ U ∧ B.neighborRight p.1 p.2 ∈ W

Membership in B.interedges U W means p.1 ∈ U and B.neighborRight p.1 p.2 ∈ W.

@[simp]
theorem Cslib.BipartiteRotationMap.interedges_empty_left {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype D] [DecidableEq R] (B : BipartiteRotationMap L R D) (W : Finset R) :

No bipartite edges leave the empty left set.

@[simp]
theorem Cslib.BipartiteRotationMap.interedges_empty_right {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype D] [DecidableEq R] (B : BipartiteRotationMap L R D) (U : Finset L) :

No bipartite edges enter the empty right set.

@[simp]

The interedge count of G.doubleCover agrees with G.interedges.

theorem Cslib.BipartiteRotationMap.abs_card_interedges_sub_le {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype L] [Fintype R] [Fintype D] [DecidableEq L] [DecidableEq R] (B : BipartiteRotationMap L R D) [Nonempty D] (U : Finset L) (W : Finset R) :
|↑(B.interedges U W).card - ↑(Fintype.card D) * ↑U.card * ↑W.card / ↑(Fintype.card L)| ≤ B.nontrivialSingularValue * ↑(Fintype.card D) * √(↑U.card * ↑Uᶜ.card * ↑W.card * ↑Wᶜ.card) / ↑(Fintype.card L)

Bipartite expander mixing lemma, sharper form: for B : BipartiteRotationMap L R D with d = |D| > 0 and N = |L| = |R|, the number of edges from U ⊆ L to W ⊆ R differs from d |U| |W| / N by at most σ₂(B) d √(|U| |Uᶜ| |W| |Wᶜ|) / N.

theorem Cslib.BipartiteRotationMap.abs_card_interedges_sub_le_mul_sqrt {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype L] [Fintype R] [Fintype D] [DecidableEq R] (B : BipartiteRotationMap L R D) [Nonempty D] (U : Finset L) (W : Finset R) :
|↑(B.interedges U W).card - ↑(Fintype.card D) * ↑U.card * ↑W.card / ↑(Fintype.card L)| ≤ B.nontrivialSingularValue * ↑(Fintype.card D) * √(↑U.card * ↑W.card)

Bipartite expander mixing lemma: |e(U, W) - d |U| |W| / N| ≤ σ₂(B) d √(|U| |W|).

theorem Cslib.BipartiteRotationMap.card_interedges_le_of_nontrivialSingularValue_le {L : Type u_1} {R : Type u_2} {D : Type u_3} [Fintype L] [Fintype R] [Fintype D] [DecidableEq R] (B : BipartiteRotationMap L R D) [Nonempty D] {lam : ℝ} (hlam : B.nontrivialSingularValue ≤ lam) (U : Finset L) (W : Finset R) :
↑(B.interedges U W).card ≤ ↑(Fintype.card D) * ↑U.card * ↑W.card / ↑(Fintype.card L) + lam * ↑(Fintype.card D) * √(↑U.card * ↑W.card)

Upper edge bound for a d-regular bipartite graph with singular-value bound lam: e(U, W) ≤ d |U| |W| / N + lam d √(|U| |W|).