Maximum matching number
Lax825442.MaximumMatching · concepts/Lax825442/MaximumMatching.lean · lax-825442
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A matching is a set of edges with no shared endpoints. The maximum matching number of a finite simple graph is the largest number of edges in a matching. The empty graph has value zero. The definition uses mathlib's subgraph matching predicate and counts edges, rather than matched vertices.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Matching |
| 2 | import Mathlib.Order.Lattice.Nat |
| 3 | import Mathlib.Data.Set.Card |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Maximum matching number |
| 8 | type: definition |
| 9 | --- |
| 10 | A matching is a set of edges with no shared endpoints. The maximum matching |
| 11 | number of a finite simple graph is the largest number of edges in a matching. |
| 12 | The empty graph has value zero. The definition uses mathlib's subgraph |
| 13 | matching predicate and counts edges, rather than matched vertices. |
| 14 | -/ |
| 15 | |
| 16 | namespace Lax825442.MaximumMatching |
| 17 | |
| 18 | /-- The maximum number of edges in a matching. -/ |
| 19 | noncomputable def maximumMatching {V : Type} [Fintype V] [DecidableEq V] |
| 20 | (G : SimpleGraph V) : ℕ := |
| 21 | sSup {n : ℕ | ∃ M : G.Subgraph, M.IsMatching ∧ (M.edgeSet.ncard = n)} |
| 22 | |
| 23 | end Lax825442.MaximumMatching |
| 24 |
Builds on
none
Used by
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments