Pathwidth
Lax183560.Pathwidth · concepts/Lax183560/Pathwidth.lean · lax-183560
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
The pathwidth of a graph is the minimum width of a path decomposition. The width of a path decomposition is the maximum bag size minus one. The empty graph has pathwidth zero.
Concept map
Lean source view on GitHub
| 1 | import Lax183560.PathDecomposition |
| 2 | import Mathlib.Order.Lattice.Nat |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Pathwidth |
| 7 | type: definition |
| 8 | --- |
| 9 | The pathwidth of a graph is the minimum width of a path decomposition. |
| 10 | The width of a path decomposition is the maximum bag size minus one. |
| 11 | The empty graph has pathwidth zero. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax183560.Pathwidth |
| 15 | |
| 16 | open Lax183560.PathDecomposition |
| 17 | |
| 18 | /-- Existence of a path decomposition with bags of size at most `k + 1`. -/ |
| 19 | def HasPathwidthAtMost {V : Type} (G : SimpleGraph V) (k : ℕ) : Prop := |
| 20 | ∃ D : PathDecomposition G, ∀ i, (D.bag i).card ≤ k + 1 |
| 21 | |
| 22 | /-- The minimum path-decomposition width. -/ |
| 23 | noncomputable def pathwidth {V : Type} [Fintype V] [DecidableEq V] |
| 24 | (G : SimpleGraph V) : ℕ := |
| 25 | sInf {k | HasPathwidthAtMost G k} |
| 26 | |
| 27 | end Lax183560.Pathwidth |
| 28 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments