Vertex expansion of bipartite graphs #
A bipartite graph between left vertices ι and right vertices κ is a decidable relation
G : ι → κ → Prop, with the neighbourhoods Finset.bipartiteAbove / Finset.bipartiteBelow and
the double-counting lemmas of Mathlib. A set S of left vertices has neighbours N(S)
(Cslib.Bipartite.neighbors) and unique neighbours U(S)
(Cslib.Bipartite.uniqueNeighbors), the right vertices adjacent to exactly one vertex of S
[GuruswamiRudraSudan2025, Definitions 11.2.1 and 11.3.3]. The graph is a vertex expander for
sets of size at most k with factor α (Cslib.Bipartite.IsVertexExpander) when every such S
has α |S| ≤ |N(S)|; this is the (n, m, c, γ, α) bipartite expander of
[GuruswamiRudraSudan2025, Definition 11.2.2] with k = γ n, except that we only require left
degrees at most c (Cslib.Bipartite.IsLeftBounded) rather than exactly c.
The unique-neighbour lemma (Cslib.Bipartite.IsVertexExpander.le_card_uniqueNeighbors): if left
degrees are at most c, then (2 α - c) |S| ≤ |U(S)| for |S| ≤ k. For a lossless expander
α = c (1 - ε) this is |U(S)| ≥ c (1 - 2 ε) |S| [GuruswamiRudraSudan2025, Lemma 11.3.4]
[GuruswamiSharma2010, Lemma 3]. It drives the distance and decoding analysis of expander codes
[SS96] in CslibFrontier.Foundations.Data.Code.ExpanderCode.
Main definitions #
Cslib.Bipartite.neighbors,Cslib.Bipartite.uniqueNeighbors: neighbours and unique neighbours.Cslib.Bipartite.IsLeftBounded,Cslib.Bipartite.IsBiregular: degree conditions.Cslib.Bipartite.IsVertexExpander: vertex expansion of small left sets.
Main results #
Cslib.Bipartite.two_mul_card_neighbors_le:2 |N(S)| ≤ |U(S)| + c |S|.Cslib.Bipartite.IsVertexExpander.le_card_uniqueNeighbors: the unique-neighbour lemma.Cslib.Bipartite.IsBiregular.card_mul_eq:n c = m dfor a(c, d)-biregular graph.
References #
The unique neighbours U(S) of a set S of left vertices: the right vertices adjacent to
exactly one vertex of S [GuruswamiRudraSudan2025, Definition 11.3.3].
Unique neighbours are neighbours.
A (c, d)-biregular graph has left degrees at most c.
The edges leaving S, counted at their right endpoints in N(S): at most c |S|.
Double counting the edges between S and N(S): a neighbour that is not unique receives at
least two edges, so 2 |N(S)| ≤ |U(S)| + c |S|.
The unique-neighbour lemma [GuruswamiRudraSudan2025, Lemma 11.3.4]
[GuruswamiSharma2010, Lemma 3]. If left degrees are at most c and sets of at most k left
vertices expand by α, then every such set S has at least (2 α - c) |S| unique neighbours.
With α = c (1 - ε) this is the source's |U(S)| ≥ c (1 - 2 ε) |S|; the source assumes
c-left-regularity, which we weaken to left degrees at most c.
A (c, d)-biregular graph with n left and m right vertices has n c = m d edges.