The directed path #
The directed path 0 → 1 → 2 → ⋯ on ℕ is the computation graph of a straight-line computation
that runs for ever: vertex n + 1 has the single predecessor n, and 0 is the only source.
It is the graph of Bennett's reversible simulation of an irreversible computation, where vertex
n stands for the checkpoint after n + 1 segments of the computation. Its black pebbling is
trivial: two pebbles slide along it, so every vertex other than the source has black pebbling
price 2.
Main definitions #
Cslib.Pebbling.pathDigraph: the directed path onℕ.
Main results #
Cslib.Pebbling.BlackPebblable.two_le_of_adj: a vertex with a predecessor needs two pebbles.Cslib.Pebbling.blackPebblingPrice_pathDigraph_succ: the black pebbling price ofn + 1is2.
A vertex with a predecessor cannot be black-pebbled with fewer than two pebbles: when its pebble is placed, the predecessor's pebble is still on the graph.
Every vertex of the directed path other than the source has black pebbling price 2.
The source of the directed path has black pebbling price 1.