The areas / V30. Combinatorics
Mathlib.Combinatorics.SimpleGraph.Tutte
7 declarations. Mathlib docs · Source
Tutte's theorem
Main definitions
SimpleGraph.IsTutteViolator G uis a set of verticesusuch that the amount of odd components left after deletingufromGis larger than the number of vertices inu. This certifies non-existence of a perfect matching.
Main results
SimpleGraph.tuttestates Tutte's theorem: A graph has a perfect matching, if and only if no Tutte violators exist.
def SimpleGraph.IsTutteViolator E1 #
{V : Type u_1} → SimpleGraph V → Set V → Prop
A set certifying non-existence of a perfect matching
theorem SimpleGraph.IsTutteViolator.mono E1 #
∀ {V : Type u_1} {G G' : SimpleGraph V} [Finite V] {u : Set V}, G ≤ G' → G'.IsTutteViolator u → G.IsTutteViolator u
theorem SimpleGraph.Subgraph.IsPerfectMatching.exists_of_isClique_supp E1 #
∀ {V : Type u_1} {G : SimpleGraph V} [Finite V],
Even (Nat.card V) →
¬G.IsTutteViolator G.universalVerts →
(∀ (K : G.deleteUniversalVerts.coe.ConnectedComponent), G.deleteUniversalVerts.coe.IsClique K.supp) →
∃ M, M.IsPerfectMatching
If the universal vertices of a graph G decompose G into cliques such that the Tutte isn't
violated, then G has a perfect matching.
theorem SimpleGraph.IsTutteViolator.empty E1 #
∀ {V : Type u_1} {G : SimpleGraph V} [Finite V], Odd (Nat.card V) → G.IsTutteViolator ∅
theorem SimpleGraph.not_isTutteViolator_of_isPerfectMatching E2 #
∀ {V : Type u_1} {G : SimpleGraph V} [Finite V] {M : G.Subgraph},
M.IsPerfectMatching → ∀ (u : Set V), ¬G.IsTutteViolator u
Proves the necessity part of Tutte's theorem
theorem SimpleGraph.exists_isTutteViolator E2 #
∀ {V : Type u_1} {G : SimpleGraph V} [Finite V],
(∀ (M : G.Subgraph), ¬M.IsPerfectMatching) → Even (Nat.card V) → ∃ u, G.IsTutteViolator u
From a graph on an even number of vertices with no perfect matching, we can remove an odd number of vertices such that there are more odd components in the resulting graph than vertices we removed.
This is the sufficiency side of Tutte's theorem.
theorem SimpleGraph.tutte E3 #
∀ {V : Type u_1} {G : SimpleGraph V} [Finite V], (∃ M, M.IsPerfectMatching) ↔ ∀ (u : Set V), ¬G.IsTutteViolator u
Tutte's theorem
A graph has a perfect matching if and only if: For every subset u of vertices, removing this
subset induces at most u.ncard components of odd size. This is formally stated using the
predicate IsTutteViolator, which is satisfied exactly when this condition does not hold.