Documentation

CslibFrontier.Computability.Pebbling.Pyramid

Black pebbling of pyramids #

The pyramid Π_h of height h has levels 0, …, h, with h + 1 - k vertices on level k. The vertex at level k + 1 and position j has the two predecessors at level k and positions j and j + 1. Level 0 holds the sources and level h the single sink.

Cook proved that pebbling the sink of Π_h requires h + 2 pebbles; we follow the formulation of [Nor15], Theorem 4.8, in the game without sliding. We derive this from the path-blocking engine in CslibFrontier.Computability.Pebbling.Blocking: blocking the column path into one predecessor and the diagonal path into the other gives the extra pebble at each level. The matching upper bound pebbles the two predecessors of a vertex one after the other.

Main definitions #

Main results #

References #

Pyramids #

A vertex of the pyramid of height h: level level ≤ h (sources at level 0, the sink at level h) and position pos with level + pos ≤ h.

  • level : ℕ

    The level, from 0 at the sources to h at the sink.

  • pos : ℕ

    The position within the level.

  • le : self.level + self.pos ≤ h

    Level k has positions 0, …, h - k.

theorem Cslib.Pebbling.PyramidVertex.ext {h : ℕ} {x y : PyramidVertex h} (level : x.level = y.level) (pos : x.pos = y.pos) :
x = y

The pyramid graph Π_h.

@[simp]
theorem Cslib.Pebbling.pyramid_adj {h : ℕ} {u v : PyramidVertex h} :
(pyramid h).Adj u v ↔ v.level = u.level + 1 ∧ (u.pos = v.pos ∨ u.pos = v.pos + 1)

The vertices of the sub-pyramid with sink v.

Cook's path-blocking argument: every vertex v of Π_h above the sources forces v.level + 2 pebbles on the sub-pyramid below it.

Every successful budget for a vertex of Π_h at level k ≥ 1 is at least k + 2.

The black pebbling price of a vertex of Π_h at level k ≥ 1 is k + 2.

Cook's theorem. The pyramid of height h ≥ 1 has black pebbling price h + 2.