Nice tree decompositions #
A nice tree decomposition (SimpleGraph.NiceTreeDecomposition G) is a rooted binary tree
decomposition whose root and leaves have empty bags and whose every internal node is of three types
([CFK+15]):
- Leaf: no children, empty bag
∅. - Introduce
v: one childchildwithvoutsidechild.subtreeVertsandbag = insert v child.bag. - Forget
v: one childchildwithv ∈ child.bagandbag = child.bag.erase v. - Join: two children
left,rightwithleft.bag = right.bag = bagandDisjoint (left.subtreeVerts \ left.bag) right.subtreeVerts.
We model the syntax algebraically as SimpleGraph.NiceTree V, define its validity
(NiceTree.LocalValid, NiceTree.CoversFinset) and conversion to
SimpleGraph.RootedTreeDecomposition (NiceTree.toRootedTreeDecomposition), and prove that every
finite clique lies in some bag (NiceTree.exists_coversFinset_of_isClique). Conversely,
RootedTreeDecomposition.prune contracts redundant subset bags so that a finite vertex type
leaves at most card V + 1 nodes without increasing width, and RootedTreeDecomposition.toNiceTree
(computable when [LinearOrder V], with noncomputable [DecidableEq V] counterpart
RootedTreeDecomposition.toNice) converts any finite rooted or unrooted tree decomposition into a
NiceTreeDecomposition G with width at most the original width and at most
(3 * width + 5) * (card V + 1) nodes.
Main definitions #
SimpleGraph.NiceTree: algebraic syntax of leaf/introduce/forget/join tree decompositions.SimpleGraph.NiceTreeDecomposition: bundled nice tree decomposition ofGwith empty root bag.SimpleGraph.NiceTree.toRootedTreeDecomposition: parent-array rooted decomposition of a validNiceTree.SimpleGraph.RootedTreeDecomposition.prune: contraction eliminating redundant subset children, leaving at mostFintype.card V + 1nodes.SimpleGraph.RootedTreeDecomposition.toNiceTree,SimpleGraph.RootedTreeDecomposition.toNice,SimpleGraph.TreeDecomposition.exists_niceTreeDecomposition: conversion to a nice tree decomposition without increasing width.
Main results #
SimpleGraph.NiceTree.exists_coversFinset_of_isClique: every finite clique lies in some bag.SimpleGraph.RootedTreeDecomposition.prune_width_le,SimpleGraph.RootedTreeDecomposition.prune_nodes_le: width andO(|V|)node bounds for pruning.SimpleGraph.RootedTreeDecomposition.toNiceTree_width_le,SimpleGraph.RootedTreeDecomposition.toNiceTree_size_le: width does not increase and node count is at most(3 * R.width + 5) * (n + 1)(hence≤ (3 * R.width + 5) * (card V + 1)after pruning).
References #
Nice tree decomposition syntax and invariants #
Algebraic tree structure for a nice tree decomposition over vertex type V.
- leaf {V : Type uV} : NiceTree V
- introduce {V : Type uV} (v : V) (child : NiceTree V) : NiceTree V
- forget {V : Type uV} (v : V) (child : NiceTree V) : NiceTree V
- join {V : Type uV} (left right : NiceTree V) : NiceTree V
Instances For
The bag of vertices associated with the root node of T.
Maximum bag cardinality over all nodes in T.
Width of a NiceTree: largest bag size minus one.
Union of all bags occurring in the subtree T.
Symmetry of the join subtree-separation condition.
K is contained in at least one node's bag in T.
Every finite clique contained in T.subtreeVerts lies in some bag of T whenever every
edge of G inside T.subtreeVerts is covered.
Bundled nice tree decomposition #
A nice tree decomposition of G: a valid NiceTree V with empty root bag that covers all
vertices and edges of G.
- tree : NiceTree V
The underlying leaf/introduce/forget/join tree.
- localValid : self.tree.LocalValid
Local validity of introduce, forget, and join operations.
The root bag is empty.
Every vertex appears in the tree.
Every edge of
Gappears in some bag of the tree.
Width of a nice tree decomposition: largest bag size minus one.
Number of nodes in a nice tree decomposition.
Every finite clique of G lies in some bag of N.
Convert a valid NiceTree covering all vertices and edges of G into a
RootedTreeDecomposition with the same width and T.size nodes.
Convert a bundled nice tree decomposition into a RootedTreeDecomposition of the same width
and N.size nodes.
Pruning redundant subset bags (O(|V|) nodes) #
Contract a nonroot node c whose bag is a subset of its parent's bag, reducing the node
count by one without increasing the width.
Iteratively contract all nonroot nodes whose bag is contained in their parent's bag.
When the vertex type V is finite, pruning leaves at most card V + 1 nodes (m ≤ card V),
since every nonroot node introduces at least one vertex whose topmost node it is.
Converting RootedTreeDecomposition and TreeDecomposition to NiceTreeDecomposition #
Convert a rooted tree decomposition into a nice tree decomposition using sorted bag lists
(computable when [LinearOrder V]), without increasing width.
Prune and convert a rooted tree decomposition into a nice tree decomposition with at most
(3 * R.width + 5) * (card V + 1) nodes and width at most R.width.
Convert any rooted tree decomposition into a nice tree decomposition without requiring a
linear order on V.
Every finite tree decomposition has a nice tree decomposition of width at most D.width and
at most (3 * D.width + 5) * (card V + 1) nodes (when V is finite).