Documentation

CslibFrontier.Foundations.Combinatorics.KahnLovasz

The Kahn–Lovász / Alon–Friedland bound for perfect matchings #

For any finite simple graph G with vertex degrees d v, the number of perfect matchings of G is at most ∏ v, (d v)! ^ (1 / (2 * d v)) ([AF08], attributing the bound to Kahn and Lovász).

The proof identifies each perfect matching with a fixed-point-free involution τ of V along the edges of G, and constructs an injection from ordered pairs (τ₁, τ₂) of perfect matchings into the permutations σ supported on G's adjacency matrix (cycle covers of G): on each ⟨τ₁, τ₂⟩-orbit O, fixing a linear order on V and taking m = min O, the vertices at even alternating distance from m (the τ₂ ∘ τ₁-orbit of m) are sent along τ₁ and the remaining vertices along τ₂. Because τ₁ and τ₂ are fixed-point-free involutions, the two halves are disjoint and O coincides with the σ-orbit of m, so m, the parity partition, and both τ₁ and τ₂ are uniquely recovered from σ. This yields M(G)² ≤ per(A_G), after which Brégman's theorem (Matrix.permanent_le_prod_factorial_rpow [Bre73]) and taking square roots gives the bound.

A vertex of degree 0 contributes the factor 0! ^ (1 / 0) = 1 with Mathlib's Real.rpow convention; such a graph has no perfect matching, so the inequality holds without positivity hypotheses.

Main definitions #

Main results #

References #

noncomputable def SimpleGraph.isPerfectMatchingEquivInvolution {V : Type u_1} (G : SimpleGraph V) :
{ M : G.Subgraph // M.IsPerfectMatching } ≃ { τ : Equiv.Perm V // (∀ (v : V), τ (τ v) = v) ∧ ∀ (v : V), G.Adj v (τ v) }

Equivalence between perfect matchings of G and involutions of V moving every vertex to a neighbour.

@[simp]

The involution associated with a perfect matching M sends v to w if and only if M.Adj v w.

The square of the number of perfect matchings of a finite simple graph G is at most the permanent of its adjacency matrix ([AF08]).

Kahn–Lovász / Alon–Friedland upper bound on perfect matchings [AF08]: the number of perfect matchings of a finite simple graph G is at most ∏ v, (G.degree v)! ^ (1 / (2 * G.degree v)).