Documentation

CslibFrontier.Computability.Pebbling.Blocking

Path blocking and lower bounds for the black pebble game #

A configuration P blocks a vertex v when every path from a source to v meets P. Unblocked G P v is the complement: some source path into v avoids P. The predicate ForcesPebbles G R v n says that every legal run that starts with v unblocked and later pebbles v passes, strictly after its start, through a configuration with at least n pebbles on the region R. Blocking is Definition 4.9 of [Nor15]; the invariant ForcesPebbles is this library's own formulation of the path-blocking argument for Cook's pyramid lower bound ([Coo74]; [Nor15], Theorem 4.8), whose written proof argues with converging paths instead.

Main definitions #

Main results #

References #

Blocking and the lower-bound engine #

inductive Cslib.Pebbling.Unblocked {V : Type u_1} (G : Digraph V) (P : Finset V) :
V → Prop

Unblocked G P v: some path from a source of G to v avoids P.

  • source {V : Type u_1} {G : Digraph V} {P : Finset V} {v : V} (hsrc : ∀ (u : V), ¬G.Adj u v) (hv : v ∉ P) : Unblocked G P v

    An unpebbled source is unblocked.

  • step {V : Type u_1} {G : Digraph V} {P : Finset V} {u v : V} (hu : Unblocked G P u) (huv : G.Adj u v) (hv : v ∉ P) : Unblocked G P v

    An unpebbled successor of an unblocked vertex is unblocked.

theorem Cslib.Pebbling.Unblocked.notMem {V : Type u_1} {G : Digraph V} {P : Finset V} {v : V} (h : Unblocked G P v) :
v ∉ P
theorem Cslib.Pebbling.Unblocked.exists_adj {V : Type u_1} {G : Digraph V} {P : Finset V} {v u₀ : V} (h : Unblocked G P v) (hu₀ : G.Adj u₀ v) :
∃ (u : V), G.Adj u v ∧ Unblocked G P u
theorem Cslib.Pebbling.unblocked_empty {V : Type u_1} {G : Digraph V} (hG : WellFounded G.Adj) (v : V) :
def Cslib.Pebbling.ForcesPebbles {V : Type u_1} (G : Digraph V) [DecidableEq V] (R : Set V) (v : V) (n : ℕ) :

Every legal pebbling that starts with an unblocked path to v and later pebbles v passes, strictly after its start, through a configuration with at least n pebbles on R.

theorem Cslib.Pebbling.forcesPebbles_one {V : Type u_1} {G : Digraph V} [DecidableEq V] {R : Set V} {x : V} (hx : x ∈ R) :

Any vertex of R forces one pebble on R.

theorem Cslib.Pebbling.forcesPebbles_three {V : Type u_1} {G : Digraph V} [DecidableEq V] {R : Set V} {x y z : V} (hy : G.Adj y x) (hz : G.Adj z x) (hyz : y ≠ z) (hxR : x ∈ R) (hyR : y ∈ R) (hzR : z ∈ R) :

A vertex with two distinct predecessors in R forces three pebbles on R.

theorem Cslib.Pebbling.ForcesPebbles.step {V : Type u_1} {G : Digraph V} [DecidableEq V] {Rx Ry Rz : Set V} {x y z : V} {n : ℕ} (hy : G.Adj y x) (hz : G.Adj z x) (hpred : ∀ (u : V), G.Adj u x → u = y ∨ u = z) (hRy : Ry ⊆ Rx) (hRz : Rz ⊆ Rx) (hby : ∀ (P : Finset V), ¬Unblocked G P y → ∃ w ∈ P, w ∈ Rx ∧ w ∉ Rz) (hbz : ∀ (P : Finset V), ¬Unblocked G P z → ∃ w ∈ P, w ∈ Rx ∧ w ∉ Ry) (hFy : ForcesPebbles G Ry y n) (hFz : ForcesPebbles G Rz z n) :
ForcesPebbles G Rx x (n + 1)

The inductive step of the path-blocking argument for a vertex x whose predecessors are exactly y and z. If blocking all paths to y puts a pebble on Rx \ Rz and blocking all paths to z puts a pebble on Rx \ Ry, then x forces one more pebble on Rx than its predecessors force on their regions.

theorem Cslib.Pebbling.ForcesPebbles.le_of_blackPebblable {V : Type u_1} {G : Digraph V} [DecidableEq V] {R : Set V} {v : V} {n s : ℕ} (hF : ForcesPebbles G R v n) (hu : Unblocked G ∅ v) (h : BlackPebblable G s v) :
n ≤ s

Lower bound: if v forces n pebbles on some region and every path from a source to v is initially open, then every successful budget for v is at least n.