Branchwidth
Lax183560.Branchwidth · concepts/Lax183560/Branchwidth.lean · lax-183560
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
The branchwidth of a graph is the minimum, over all branch decompositions of its edge set, of the maximum size of a middle set. The middle set of a cut consists of the vertices incident with an edge on each side of the cut. Graphs with at most one edge have branchwidth zero.
Concept map
Lean source view on GitHub
| 1 | import Lax183560.BranchDecompositions |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Branchwidth |
| 6 | type: definition |
| 7 | --- |
| 8 | The branchwidth of a graph is the minimum, over all branch decompositions of |
| 9 | its edge set, of the maximum size of a middle set. The middle set of a cut |
| 10 | consists of the vertices incident with an edge on each side of the cut. |
| 11 | Graphs with at most one edge have branchwidth zero. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax183560.Branchwidth |
| 15 | |
| 16 | open Lax183560.BranchDecompositions |
| 17 | |
| 18 | /-- Number of vertices incident with an edge in `A` and an edge outside `A`. -/ |
| 19 | noncomputable def middleSize {V : Type} [Fintype V] [DecidableEq V] |
| 20 | (G : SimpleGraph V) (A : Finset (Sym2 V)) : ℕ := |
| 21 | {v : V | (∃ e : Sym2 V, e ∈ G.edgeSet ∧ e ∈ A ∧ v ∈ e) ∧ |
| 22 | (∃ e : Sym2 V, e ∈ G.edgeSet ∧ e ∉ A ∧ v ∈ e)}.ncard |
| 23 | |
| 24 | /-- A branch decomposition with every middle set of size at most `k`. -/ |
| 25 | noncomputable def HasBranchwidthAtMost {V : Type} [Fintype V] [DecidableEq V] |
| 26 | (G : SimpleGraph V) (k : ℕ) : Prop := by |
| 27 | classical |
| 28 | exact G.edgeSet = ∅ ∨ |
| 29 | ∃ t : BranchDecompositions.BinaryTree (Sym2 V), |
| 30 | t.Valid G.edgeFinset ∧ |
| 31 | t.cutWidth (middleSize G) ≤ k |
| 32 | |
| 33 | /-- The minimum middle-set width of an edge branch decomposition. -/ |
| 34 | noncomputable def branchwidth {V : Type} [Fintype V] [DecidableEq V] |
| 35 | (G : SimpleGraph V) : ℕ := |
| 36 | sInf {k | HasBranchwidthAtMost G k} |
| 37 | |
| 38 | end Lax183560.Branchwidth |
| 39 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments