Feedback vertex number
Lax379983.FeedbackVertexNumber · concepts/Lax379983/FeedbackVertexNumber.lean · lax-379983
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
Let be a finite undirected simple graph. A feedback vertex set is a set for which the induced graph is acyclic. The feedback vertex number is
The minimum exists because deleting all vertices leaves an acyclic graph.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Acyclic |
| 2 | import Mathlib.Data.Nat.Lattice |
| 3 | import Mathlib.Data.Set.Card |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Feedback vertex number |
| 8 | type: definition |
| 9 | --- |
| 10 | Let be a finite undirected simple graph. A feedback vertex set is a |
| 11 | set for which the induced graph is acyclic. |
| 12 | The feedback vertex number is |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | The minimum exists because deleting all vertices leaves an acyclic graph. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax379983.FeedbackVertexNumber |
| 21 | |
| 22 | /-- The minimum number of vertices whose deletion makes the graph acyclic. -/ |
| 23 | noncomputable def feedbackVertexNumber {V : Type*} [Finite V] (G : SimpleGraph V) : ℕ := |
| 24 | sInf {n : ℕ | ∃ S : Set V, S.ncard = n ∧ (G.induce Sᶜ).IsAcyclic} |
| 25 | |
| 26 | end Lax379983.FeedbackVertexNumber |
| 27 |
Builds on
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments