The Tutte–Berge formula #
For a finite simple graph G = (V, E) and a vertex set U, write o(G - U) for the number of
connected components of G - U with an odd number of vertices. The Tutte–Berge formula
([Ber58]; [Sch17], Theorem 5.1) states that the maximum size ν(G) of a matching is
ν(G) = min_U (|V| + |U| - o(G - U)) / 2.
Here it is stated with vertex counts: a matching M covers 2|M| vertices, so the formula reads
max_M |V(M)| = min_U (|V| + |U| - o(G - U)).
- Weak duality (
≤). Every odd component ofG - Ucontains a vertex thatMleaves uncovered or matches intoU. These vertices are distinct, soo(G - U) ≤ |V \ V(M)| + |U|. - Strong duality (
≥). TakeU₀maximizing the deficiencyo(G - U) - |U|, with maximumd. Adjoindnew vertices adjacent to every other vertex. A parity argument shows that the resulting graph satisfies Tutte's condition, so it has a perfect matching by Mathlib'sSimpleGraph.tutte. Deleting the new vertices leaves a matching ofGmissing at mostdvertices. This is Berge's derivation of the formula from Tutte's theorem ([Ber58]). Schrijver gives a direct inductive proof instead, then derives Tutte's theorem as Corollary 5.1a.
Main results #
SimpleGraph.Subgraph.IsMatching.ncard_verts_add_ncard_oddComponents_le: weak duality,|V(M)| + o(G - U) ≤ |V| + |U|for every matchingMand vertex setU.SimpleGraph.exists_isMatching_ncard_verts_add_ncard_oddComponents_eq: strong duality, some matching and some vertex set attain equality.IsMatching.isMaximumMatching_iff_exists_ncard_verts_add_ncard_oddComponents_eq(in namespaceSimpleGraph.Subgraph): a matching is maximum iff someUattains equality, soUcertifies maximality.SimpleGraph.Subgraph.IsMaximumMatching.isLeast_two_mul_ncard_edgeSet: the Tutte–Berge formula. Twice the size of a maximum matching is the least value of|V| + |U| - o(G - U).SimpleGraph.Iso.ncard_oddComponents_eq: isomorphic graphs have equally many odd components.
References #
Isomorphic graphs have equally many odd components.
Deleting U from a finite graph leaves |V| - |U| vertices.
Weak duality #
Every odd component of G - U contains a vertex that M leaves uncovered or matches into
U. This generalizes Mathlib's ConnectedComponent.odd_matches_node_outside from perfect
matchings to arbitrary matchings.
Tutte–Berge, weak duality ([Sch17], Theorem 5.1, easy direction): a matching M
and a vertex set U of a finite graph satisfy |V(M)| + o(G - U) ≤ |V| + |U|.
Strong duality via universal vertices #
Tutte–Berge, strong duality ([Ber58]; [Sch17], Theorem 5.1): a finite graph
has a matching M and a vertex set U with |V(M)| + o(G - U) = |V| + |U|.
A maximum matching attains the Tutte–Berge bound: some vertex set U has
|V(M)| + o(G - U) = |V| + |U|.
A matching of a finite graph is maximum iff some vertex set U attains the Tutte–Berge bound
|V(M)| + o(G - U) = |V| + |U|. Such a U certifies that M is maximum.
The Tutte–Berge formula ([Ber58]; [Sch17], Theorem 5.1): twice the size of a
maximum matching M of a finite graph is the least value of |V| + |U| - o(G - U) over vertex
sets U. The subtraction is truncated, but by weak duality it never truncates.