The Expander Mixing Lemma #
For a d-regular λ-expander G on n vertices and vertex sets A, B, the number of
edges between A and B is close to what one would expect in a random d-regular graph:
$$ \left| e(A, B) - \frac{d}{n} |A| |B| \right| \le \lambda d \sqrt{|A| |B|}. $$
Main definitions #
norm_adj_matrix: the normalised adjacency matrixM = A / d.expander:Gis aγ-expander when every eigenvalue ofMother than1is at mostγin absolute value.e_AB: the number of ordered pairs inA × Bjoined by an edge.
Main statements #
eq_const_of_mulVec_eq: on a connected graph every1-eigenvector ofMis constant.eigval_eq_one_unique: consequently the eigenvalue1is simple.expander_mixing_lemma: the inequality above.
References #
- Swastik Kopparty, Lecture 2: Expander Graphs, Mixing lemma and Applications to randomness, Topics in Pseudo-randomness and Complexity Theory (Spring 2018), Rutgers University. Scribes: Danny Scheinerman, Harsha Tirumala.
The normalized adjacency matrix M = A / d. Since G is d-regular, M is the
transition matrix of the simple random walk on G, so its eigenvalues all lie in [-1, 1].
Equations
- norm_adj_matrix G d = (↑d)⁻¹ • SimpleGraph.adjMatrix ℝ G
Instances For
M is symmetric (real symmetric matrices are Hermitian), so the spectral theorem applies.
Every constant function is a 1-eigenvector of M: since G is d-regular, every vertex
has exactly d neighbours, so averaging a constant over them returns the same constant.
The eigenvalue 1 and its eigenspace #
The mixing lemma's proof needs to know that the eigenvalue 1 of M is simple, with the
constant function spanning its eigenspace. This is where connectivity of G enters: the
argument below propagates the maximum of an eigenvector along walks.
A 1-eigenvector f of M satisfies the mean-value property: its value at v is the
average of its values over the d neighbours of v.
Maximum propagation. If a 1-eigenvector attains its global maximum m at v, then it
equals m at every neighbour of v.
The point is that f v is the average of the d neighbouring values, all of which are ≤ m.
An average of values ≤ m can only equal m if every one of them equals m.
The maximum spreads along any walk, so a 1-eigenvector is constant on each connected
component.
The eigenvalue 1 of M is simple on a connected graph: every 1-eigenvector is
constant. Together with norm_adj_matrix_mulVec_const this pins the eigenspace down exactly.
The spectrum of M and the definition of an expander #
The eigenvalues of M, indexed by the vertex set.
Equations
- eigval G d i = ⋯.eigenvalues i
Instances For
A fixed orthonormal basis of eigenvectors of M, indexed by the vertex set.
Equations
- eigvec G d = ⋯.eigenvectorBasis
Instances For
1 is an eigenvalue of M, witnessed by the constant eigenvector.
Normalisation: a constant eigenvector has unit length, so n · c² = 1. This is the
v₁ = 𝟙/√n of the informal proof, stated so that no square root — and no choice of sign —
is ever needed.
At an index carrying the eigenvalue 1, the eigenvector is a nonzero constant.
The eigenvalue 1 is simple. Two distinct eigenbasis indices cannot both carry the
eigenvalue 1: their eigenvectors would both be nonzero constants, hence not orthogonal.
G is a γ-expander when every eigenvalue of M other than the top eigenvalue 1
is at most γ in absolute value.
On a connected d-regular graph the eigenvalue 1 is simple (see eigval_eq_one_unique),
so this really does exclude exactly one eigenvalue, as in the informal statement.
Instances For
Expansion in the eigenbasis #
The two identities below are the engine of the mixing lemma: the first is the informal
proof's ⟨𝟙_A, M𝟙_B⟩ = ∑ αᵢβᵢλᵢ, the second is Parseval's ∑ αᵢ² = ‖𝟙_A‖².
Applying M to a vector expanded in the eigenbasis scales each coordinate by λᵢ.
⟨x, M y⟩ = ∑ᵢ λᵢ αᵢ βᵢ, where αᵢ = ⟨vᵢ, x⟩ and βᵢ = ⟨vᵢ, y⟩.
Parseval. The eigen-coefficients of x have the same total square as x itself.
e(A, B) counts ordered pairs (a, b) ∈ A × B joined by an edge of G.
Instances For
𝟙_S viewed in EuclideanSpace, so that inner products against the eigenbasis
are available.
Equations
- ind S = WithLp.toLp 2 (indicator S)
Instances For
e(A, B) = d ⟨𝟙_A, M 𝟙_B⟩, the first line of the informal computation.
The coefficient of 𝟙_A along a constant eigenvector of value c is c · |A|.
This is the informal proof's α₁ = ⟨𝟙_A, v₁⟩ = |A|/√n.
Parseval, specialised to an indicator: ∑ᵢ αᵢ² = |A|.
Expander mixing lemma. For a connected d-regular γ-expander on n = |V| vertices
and any two sets of vertices A, B,
$$ \left| e(A,B) - \frac{d}{n}|A||B| \right| \le \gamma\, d \sqrt{|A||B|}. $$
The estimate e(A,B) ≈ (d/n)|A||B| is what one expects for a random d-regular graph.