Distance to cographs
Lax825442.DistanceToCograph · concepts/Lax825442/DistanceToCograph.lean · lax-825442
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
The distance to cographs is the minimum number of vertices whose deletion leaves a cograph. The remaining graph is induced on the vertices outside the deleted set. Cograph membership uses the registered , expressed through a twin-width-zero contraction sequence. This is the standard cograph class, equivalently the graphs with no induced four-vertex path.
Concept map
Lean source view on GitHub
| 1 | import Lax214022.Cographs |
| 2 | import Mathlib.Combinatorics.SimpleGraph.Finite |
| 3 | import Mathlib.Order.Lattice.Nat |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Distance to cographs |
| 8 | type: definition |
| 9 | --- |
| 10 | The distance to cographs is the minimum number of vertices whose deletion |
| 11 | leaves a cograph. The remaining graph is induced on the vertices outside the |
| 12 | deleted set. Cograph membership uses the registered `Lax214022.Cographs.IsCograph`, |
| 13 | expressed through a twin-width-zero contraction sequence. This is the standard |
| 14 | cograph class, equivalently the graphs with no induced four-vertex path. |
| 15 | -/ |
| 16 | |
| 17 | namespace Lax825442.DistanceToCograph |
| 18 | |
| 19 | /-- Minimum number of vertices whose deletion leaves a cograph. -/ |
| 20 | noncomputable def distanceToCograph {V : Type} [Fintype V] [DecidableEq V] |
| 21 | (G : SimpleGraph V) : ℕ := |
| 22 | sInf {k : ℕ | ∃ S : Finset V, (S.card = k) ∧ |
| 23 | (Lax214022.Cographs.IsCograph (G.induce {v | v ∉ S}))} |
| 24 | |
| 25 | end Lax825442.DistanceToCograph |
| 26 |
Builds on
Used by
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments