Documentation

CslibFrontier.Computability.Pebbling.BinaryTree

Black pebbling of complete binary trees #

The complete binary tree T_h of height h has a vertex for each root-first path of length at most h. Edges point from children to parents, so the leaves are the sources and the root is the sink. A vertex at depth d < h has black pebbling price h - d + 2, so the root has price h + 2.

The upper bound pebbles the two children one after the other. The lower bound uses the path-blocking engine of CslibFrontier.Computability.Pebbling.Blocking, with the leftmost path into each child as the witness path.

Main definitions #

Main results #

References #

Complete binary trees #

A vertex of the complete binary tree of height h: a root-first path of length at most h, where false is the left child.

  • path : List Bool

    The root-first path, with false for the left child.

  • length_le : self.path.length ≤ h

    The depth is at most h.

theorem Cslib.Pebbling.BinaryTreeVertex.ext {h : ℕ} {x y : BinaryTreeVertex h} (path : x.path = y.path) :
x = y

The complete binary tree T_h, with edges directed from children to parents.

The vertices of the subtree rooted at v.

A vertex at depth d of T_h can be pebbled with h - d + 2 pebbles.

Every non-leaf vertex v of T_h forces h - depth + 2 pebbles on its subtree.

The black pebbling price of a non-leaf vertex at depth d of T_h is h - d + 2.

The complete binary tree of height h ≥ 1 has black pebbling price h + 2.