Vertex-cover number
Lax825442.VertexCover · concepts/Lax825442/VertexCover.lean · lax-825442
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
The vertex-cover number is the minimum size of a set meeting every edge. This natural-valued interface refers to mathlib’s vertex-cover number; it is finite on finite graphs. Mathlib's ensures that conversion to a natural number loses no information in this domain.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.VertexCover |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Vertex-cover number |
| 6 | type: definition |
| 7 | --- |
| 8 | The vertex-cover number is the minimum size of a set meeting every edge. This |
| 9 | natural-valued interface refers to mathlib’s vertex-cover number; it is finite |
| 10 | on finite graphs. |
| 11 | Mathlib's `SimpleGraph.vertexCoverNum_ne_top_of_finite` ensures that conversion |
| 12 | to a natural number loses no information in this domain. |
| 13 | -/ |
| 14 | |
| 15 | namespace Lax825442.VertexCover |
| 16 | |
| 17 | /-- The natural-valued vertex-cover number of a finite graph. -/ |
| 18 | noncomputable def vertexCover {V : Type} [Fintype V] [DecidableEq V] |
| 19 | (G : SimpleGraph V) : ℕ := |
| 20 | G.vertexCoverNum.toNat |
| 21 | |
| 22 | end Lax825442.VertexCover |
| 23 | |
| 24 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments