The black pebble game #
The black pebble game on a directed graph G is played on configurations C : Finset V of
pebbled vertices, where G.Adj u v means that u is an immediate predecessor of v. A move
either places a pebble on a vertex whose predecessors all carry pebbles, or removes a pebble.
In particular a pebble can always be placed on a source. A vertex is pebblable with s pebbles
if some run from the empty configuration that never holds more than s pebbles pebbles it. The
black pebbling price of a vertex is the least such s, and 0 when no budget suffices.
We use Nordström's convention, without sliding: placing a pebble always uses a new pebble. Under the sliding rule of [Sav98] every price is one lower ([Nor15], Proposition 2.5).
Main definitions #
Cslib.Pebbling.Move: the movesplace vandremove v.Cslib.Pebbling.BlackStep: one legal move, with no pebble budget.Cslib.Pebbling.blackPebbleGame G s: the game withspebbles, as a cslibLTS.Cslib.Pebbling.BlackPebblable G s v:vcan be pebbled withspebbles.Cslib.Pebbling.blackPebblingPrice G v: the least suchs.
Main results #
Cslib.Pebbling.BlackPebblable.mono: pebblability is monotone in the budget.Cslib.Pebbling.BlackPebblable.of_forall_adj: the composition rule.Cslib.Pebbling.blackPebblable_fintypeCard: on a finite graph with well-founded predecessor relation, every vertex is pebblable with one pebble per vertex.Cslib.Pebbling.blackPebblingPrice_eq: the price is determined by a matching upper and lower bound.
References #
- J. Nordström, Pebble games, proof complexity, and time-space trade-offs, Definition 2.10.
- J. Nordström, New wine into old wineskins, Definition 1.1 and Proposition 2.5.
- J. E. Savage, Models of Computation, Section 10.1.
The game #
One legal move of the black pebble game, without a budget.
- place {V : Type u_1} [DecidableEq V] {G : Digraph V} {C : Finset V} {v : V} (h : ∀ (u : V), G.Adj u v → u ∈ C) : BlackStep G C (Move.place v) (insert v C)
- remove {V : Type u_1} [DecidableEq V] {G : Digraph V} {C : Finset V} {v : V} : BlackStep G C (Move.remove v) (C.erase v)
The black pebble game with s pebbles.
v can be black-pebbled with at most s pebbles.
The black pebbling price of v: the least s such that v is pebblable with s pebbles.
When no budget suffices (for example at a vertex with a self-loop, with infinitely many
predecessors, or with no open path from a source), the set is empty and the price is
sInf ∅ = 0. Statements about the price therefore need a pebblability witness, as in
blackPebblingPrice_eq; on a finite graph with well-founded predecessor relation every vertex
is pebblable (blackPebblable_fintypeCard).
Removing the pebbles of D one at a time.
A vertex is pebblable exactly when some run ends with a pebble on that vertex alone.
Keeping the pebbles of F in place throughout a run costs at most F.card extra pebbles.
Composition: if every predecessor of v lies in ps and can be pebbled with s pebbles,
then v can be pebbled with t pebbles whenever #ps + 1 ≤ t and s + #ps ≤ t + 1.
On a finite graph without infinite descending chains of predecessors, every vertex can be pebbled with one pebble per vertex.
A vertex that no budget pebbles has price 0.
The price is n when n pebbles suffice and every successful budget is at least n.
On a finite graph with well-founded predecessor relation, the price of any vertex is at most the number of vertices.
A source is pebblable with one pebble.
A source has black pebbling price 1.