Documentation

CslibFrontier.Foundations.Combinatorics.SimpleGraph.TreeDecomposition.Subtree

Subtrees of rooted tree decompositions #

For a rooted tree decomposition R : G.RootedTreeDecomposition n, this file describes the subtree below a node: its descendants, its children and the vertices in its bags. These are the separation facts used by dynamic programming over tree decompositions. A bag separates the vertices first introduced below each child from the rest of the graph, and different children introduce disjoint sets of vertices.

Main definitions #

Main results #

References #

Descendants #

j lies in the subtree rooted at i: climbing from j reaches i.

theorem SimpleGraph.RootedTreeDecomposition.IsDescendant.trans {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {i j k : Fin (n + 1)} (hkj : R.IsDescendant k j) (hji : R.IsDescendant j i) :
theorem SimpleGraph.RootedTreeDecomposition.IsDescendant.le {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {i j : Fin (n + 1)} (h : R.IsDescendant j i) :
i ≤ j
theorem SimpleGraph.RootedTreeDecomposition.IsDescendant.antisymm {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {i j : Fin (n + 1)} (hji : R.IsDescendant j i) (hij : R.IsDescendant i j) :
i = j
theorem SimpleGraph.RootedTreeDecomposition.IsDescendant.total {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {i j k : Fin (n + 1)} (hi : R.IsDescendant k i) (hj : R.IsDescendant k j) :

Two ancestors of a common node are comparable.

Every node lies in the subtree of the root.

Children #

def SimpleGraph.RootedTreeDecomposition.children {V : Type uV} {G : SimpleGraph V} {n : ℕ} (R : G.RootedTreeDecomposition n) (i : Fin (n + 1)) :
Finset (Fin (n + 1))

The children of node i: the nonroot nodes whose parent is i.

theorem SimpleGraph.RootedTreeDecomposition.mem_children {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {i c : Fin (n + 1)} :
c ∈ R.children i ↔ c ≠ 0 ∧ R.parent c = i
theorem SimpleGraph.RootedTreeDecomposition.lt_of_mem_children {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {i c : Fin (n + 1)} (h : c ∈ R.children i) :
i < c
theorem SimpleGraph.RootedTreeDecomposition.exists_mem_children_of_isDescendant {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {i j : Fin (n + 1)} (h : R.IsDescendant j i) (hne : j ≠ i) :
∃ c ∈ R.children i, R.IsDescendant j c

A strict descendant of i lies below some child of i.

theorem SimpleGraph.RootedTreeDecomposition.eq_of_mem_children {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {i c c' j : Fin (n + 1)} (hc : c ∈ R.children i) (hc' : c' ∈ R.children i) (hj : R.IsDescendant j c) (hj' : R.IsDescendant j c') :
c = c'

A node lies below at most one child of a given node.

Vertices of a subtree #

noncomputable def SimpleGraph.RootedTreeDecomposition.subtreeVerts {V : Type uV} {G : SimpleGraph V} {n : ℕ} (R : G.RootedTreeDecomposition n) (i : Fin (n + 1)) :

The vertices in the bags of the subtree rooted at i.

theorem SimpleGraph.RootedTreeDecomposition.mem_subtreeVerts {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {i : Fin (n + 1)} {v : V} :
v ∈ R.subtreeVerts i ↔ ∃ (j : Fin (n + 1)), R.IsDescendant j i ∧ v ∈ R.bag j

Every vertex lies in the subtree of the root.

theorem SimpleGraph.RootedTreeDecomposition.isDescendant_top {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {v : V} {d : Fin (n + 1)} (hd : v ∈ R.bag d) :
R.IsDescendant d (R.top v)
theorem SimpleGraph.RootedTreeDecomposition.mem_bag_of_isDescendant {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {v : V} {c d : Fin (n + 1)} (hd : v ∈ R.bag d) (hdc : R.IsDescendant d c) (hc : R.IsDescendant c (R.top v)) :
v ∈ R.bag c

Every bag between a node containing v and the topmost node for v contains v.

theorem SimpleGraph.RootedTreeDecomposition.mem_bag_of_mem_subtreeVerts_of_mem_bag_parent {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {v : V} {c : Fin (n + 1)} (hv : v ∈ R.subtreeVerts c) (hp : v ∈ R.bag (R.parent c)) :
v ∈ R.bag c

The parent's bag meets the subtree of c only inside the bag of c.

theorem SimpleGraph.RootedTreeDecomposition.isDescendant_top_of_notMem_bag_parent {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {v : V} {c : Fin (n + 1)} (hv : v ∈ R.subtreeVerts c) (hp : v ∉ R.bag (R.parent c)) :
R.IsDescendant (R.top v) c

A vertex below c that is not in the parent's bag has its topmost node below c.

theorem SimpleGraph.RootedTreeDecomposition.isDescendant_of_mem_bag_of_notMem_bag_parent {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {v : V} {c d : Fin (n + 1)} (hv : v ∈ R.subtreeVerts c) (hp : v ∉ R.bag (R.parent c)) (hd : v ∈ R.bag d) :

A vertex below c that is not in the parent's bag occurs only in bags below c.

theorem SimpleGraph.RootedTreeDecomposition.mem_subtreeVerts_of_adj {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {u x : V} {c : Fin (n + 1)} (hu : u ∈ R.subtreeVerts c) (hp : u ∉ R.bag (R.parent c)) (hux : G.Adj u x) :

The parent's bag separates the vertices introduced below c from the rest of the graph: every neighbour of such a vertex also lies below c.

theorem SimpleGraph.RootedTreeDecomposition.eq_of_mem_subtreeVerts_of_mem_children {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {v : V} {i c c' : Fin (n + 1)} (hc : c ∈ R.children i) (hc' : c' ∈ R.children i) (hv : v ∈ R.subtreeVerts c) (hv' : v ∈ R.subtreeVerts c') (hvi : v ∉ R.bag i) :
c = c'

Different children of i introduce disjoint sets of vertices outside the bag of i.

theorem SimpleGraph.RootedTreeDecomposition.exists_mem_children_of_mem_subtreeVerts {V : Type uV} {G : SimpleGraph V} {n : ℕ} {R : G.RootedTreeDecomposition n} {v : V} {i : Fin (n + 1)} (hv : v ∈ R.subtreeVerts i) (hvi : v ∉ R.bag i) :
∃ c ∈ R.children i, v ∈ R.subtreeVerts c

Every vertex below i that is not in the bag of i lies below some child of i.