Documentation

CslibFrontier.Foundations.Combinatorics.SimpleGraph.PermMatching

A perfect matching from a permutation with even cycles #

If a permutation σ of the vertices of a finite simple graph G moves every vertex to a neighbour, then its cycles are cycles of G (of length at least 2, since G has no loops). When all of them have even length, taking every other edge of each cycle gives a perfect matching of G (SimpleGraph.exists_isPerfectMatching_of_perm). This is the combinatorial half of the proof of Tutte's determinant criterion for perfect matchings [Tut47]: a nonzero term in the expansion of the determinant of the Tutte matrix is such a permutation.

The matching is built by colouring every vertex y with the parity of its distance from a fixed representative of its cycle along σ. Since the cycle has even length, the colour alternates along σ, and each vertex is matched to σ y or to σ⁻¹ y according to its colour.

Main results #

References #

theorem SimpleGraph.exists_isPerfectMatching_of_perm {V : Type u_1} [Fintype V] [DecidableEq V] {G : SimpleGraph V} (σ : Equiv.Perm V) (hadj : ∀ (v : V), G.Adj v (σ v)) (heven : ∀ n ∈ σ.cycleType, Even n) :

A permutation that moves every vertex of G to a neighbour and has only cycles of even length gives a perfect matching of G: match every other edge of each cycle.