Adaptive Cell-Probe Decision Trees and Deterministic Cell-Probe Schemes #
The cell-probe model originates in Minsky and Papert [MP69] and was developed for
dynamic data structures by Fredman and for static data structures by Yao [Yao81] (see
[Mil99], §1.2, pp. 1–2; §1.5, p. 4; §2.1, pp. 4–5). In a time-invariant deterministic
Scheme, persistent state between operations consists solely of S cells of w-bit words
(Mem S w := Fin S → Fin (2 ^ w), total space S * w bits, with no persistent registers across
operations). IndexedScheme is a time-aware relaxation whose step additionally receives the
global operation index t : ℕ (a free clock outside cell memory); because per-operation coin
fixing (Randomized.Scheme.exists_det_indexedScheme_le_expectedSeqProbes) returns an
IndexedScheme (only the coin-free-step variant returns a time-invariant Scheme), deterministic
lower bounds used with it must hold against step-indexed schemes.
Each operation is answered by an adaptive read/write decision tree
(ProbeTree S w α := OracleComp (@ProbeOp.Result S w) α) whose internal nodes either read a cell
i : Fin S (branching 2 ^ w ways on its w-bit content) or overwrite a cell i : Fin S with a
w-bit value, while all local computation between probes is uncharged. Three conventions differ
slightly from Miltersen's presentation ([Mil99], §1.2, pp. 1–2):
- Separate read and write probes: reads and writes each cost
1probe, whereas a combined decision-assignment node in [Mil99] reads and overwrites the same cell at cost1, so probe counts here are at most twice Miltersen's. - Arbitrary initial memory
init:Scheme.initandIndexedScheme.initallow any initialMem cells wrather than requiringzeroMem. For deterministic schemes this adds no power, as each tree can XOR-relabel reads and writes against a fixedinitat zero probe cost ([Mil99], §1.3, p. 3). - Finite cell domain: memory has
Scells (Fin S) rather than an unbounded sequenceC_0, C_1, …, withpadCellsembeddingS ≤ S'.
For the read-only embedding of static Boolean DecisionTrees into ProbeTree S 1 α, see
CslibFrontier.Computability.CellProbe.DecisionTree.
Main definitions #
Cslib.CellProbe.Mem,Cslib.CellProbe.zeroMem,Cslib.CellProbe.restrictMem,Cslib.CellProbe.padMem:S-cellw-bit memory configurations, subset snapshots, and cell padding.Cslib.CellProbe.ProbeOp,Cslib.CellProbe.ProbeOp.Result,Cslib.CellProbe.ProbeOp.cell: elementary read/write cell probes and their reply types.Cslib.CellProbe.ProbeTree,Cslib.CellProbe.ProbeTree.read,Cslib.CellProbe.ProbeTree.write,Cslib.CellProbe.ProbeTree.run,Cslib.CellProbe.ProbeTree.eval,Cslib.CellProbe.ProbeTree.nextMem,Cslib.CellProbe.ProbeTree.probes,Cslib.CellProbe.ProbeTree.probedCells,Cslib.CellProbe.ProbeTree.depth,Cslib.CellProbe.ProbeTree.padCells: deterministic adaptive cell-probe trees, stateful execution, probe counts, probed-cell sets, worst-case depth, and cell padding.Cslib.CellProbe.Scheme,Cslib.CellProbe.IndexedScheme,Cslib.CellProbe.Scheme.toIndexed: time-invariant deterministic cell-probe schemes and their time-aware step-indexed relaxation over arbitrary operation signatures(Op, Result).Cslib.CellProbe.IndexedScheme.runInterval,Cslib.CellProbe.IndexedScheme.probesInterval,Cslib.CellProbe.IndexedScheme.probedCellsInterval,Cslib.CellProbe.IndexedScheme.runSeq,Cslib.CellProbe.IndexedScheme.seqProbes,Cslib.CellProbe.IndexedScheme.probedCellsSeq,Cslib.CellProbe.IndexedScheme.padCells: multi-step interval and full-sequence execution, probe accounting, and cell padding onIndexedScheme.Cslib.CellProbe.Scheme.runFrom,Cslib.CellProbe.Scheme.probesFrom,Cslib.CellProbe.Scheme.probedCellsFrom,Cslib.CellProbe.Scheme.runSeq,Cslib.CellProbe.Scheme.seqProbes,Cslib.CellProbe.Scheme.probedCellsSeq,Cslib.CellProbe.Scheme.padCells: execution, probe accounting, and cell padding onScheme.
Main results #
Cslib.CellProbe.ProbeTree.run_bind,Cslib.CellProbe.ProbeTree.probes_bind,Cslib.CellProbe.ProbeTree.probedCells_bind: monadic composition laws for stateful runs, probe counts, and probed-cell sets.Cslib.CellProbe.ProbeTree.card_probedCells_le_probes,Cslib.CellProbe.ProbeTree.probes_le_depth: cardinality of distinct probed cells is bounded by pathwise probes, which is bounded by structural tree depth.Cslib.CellProbe.ProbeTree.nextMem_eq_of_notMem_probedCells,Cslib.CellProbe.ProbeTree.run_eq_of_eq_on_probedCells: frame and locality/replay — unprobed cells retain their initial values, and memories agreeing ont.probedCells m₁produce identical outputs, probe counts, probed-cell sets, and post-memory values ont.probedCells m₁.Cslib.CellProbe.ProbeTree.card_le_pow_depth,Cslib.CellProbe.ProbeTree.clog_le_depth_of_injective: standard2 ^ w-ary branching lower boundK ≤ (2 ^ w) ^ t.depth(⌈log_{2^w} K⌉ ≤ t.depth) for any tree distinguishingKmemory states.Cslib.CellProbe.IndexedScheme.nextMem_runInterval_eq_of_notMem_probedCellsInterval,Cslib.CellProbe.IndexedScheme.runInterval_eq_of_eq_on_probedCellsInterval: multi-operation interval lifts of the frame and locality/replay theorems.
References #
Cell memory and subset snapshots #
Memory state of a cell-probe data structure with S cells of w-bit words (S * w bits
total, with no persistent registers between operations).
All-zero initial memory of S cells of w-bit words.
Cardinality of the S-cell w-bit memory state space Mem S w.
Subset snapshot of memory m restricted to a cell set I : Finset (Fin S), defined via
Finset.restrict.
Two memories have equal snapshots on I iff they agree at every cell in I.
Elementary cell-probe operations #
Every cell-probe reply type has at most 2 ^ w values.
Deterministic adaptive cell-probe trees #
Deterministic adaptive cell-probe decision tree returning α : Type on S cells of w bits.
Defined as OracleComp (@ProbeOp.Result S w) α
(= (PFunctor.mk (ProbeOp S w) ProbeOp.Result).FreeM α), inheriting LawfulMonad, do-notation,
and arbitrary uncharged computation in continuations.
The number of distinct probed cells along a path is at most the number of probes.
Frame and locality / replay #
Any cell outside t.probedCells m retains its initial value in (t.run m).2.
Locality and replay for deterministic ProbeTrees: if m₂ agrees with m₁ on
t.probedCells m₁, then executing t from m₂ produces the exact same return value, probe count,
probed-cell set, and post-memory contents on t.probedCells m₁ (for cells outside
t.probedCells m₁, see nextMem_eq_of_notMem_probedCells).
Information-theoretic counting lower bound #
Standard 2 ^ w-ary branching bound: if t : ProbeTree S w α produces distinct return
values across (enc x) for all x ∈ I, then I.card ≤ (2 ^ w) ^ t.depth.
Standard 2 ^ w-ary branching bound: if t : ProbeTree S w α distinguishes every input of a
finite type ι via enc : ι → Mem S w, then Fintype.card ι ≤ (2 ^ w) ^ t.depth.
Information-theoretic worst-case cell-probe lower bound ⌈log_{2^w} |ι|⌉ ≤ t.depth whenever
t distinguishes all inputs of ι (for w = 0, Nat.clog 1 _ = 0).
Lift a ProbeTree S w α to S' cells (S ≤ S') by embedding cell indices via Fin.castLE.
Deterministic cell-probe schemes and multi-step interval locality #
Time-invariant deterministic cell-probe scheme with cells cells of w-bit words.
Persistent state between operations consists solely of Mem cells w.
Time-aware relaxation of a deterministic cell-probe scheme: step receives the global
operation index t : ℕ (a free clock outside cell memory) in addition to o : Op. Fixing
per-operation private coins via the averaging (coin-fixing) argument, the easy direction of Yao's
principle [Yao77], produces an IndexedScheme, so deterministic lower bounds paired with it must
hold against step-indexed schemes.
- init : Mem cells w
Initial cell memory (0 probes).
Adaptive read/write cell-probe decision tree executed at step
ton operationo.
Embed any time-invariant Scheme as a step-indexed IndexedScheme.
Execute an operation slice ops : List Op starting at step index t₀ and memory m,
returning (transcript, postMem).
Total number of cell probes incurred while executing ops from step index t₀ and m.
Total number of cell probes executed across ops starting from D.init.
Set of distinct cells probed across ops starting from D.init.
Cells outside D.probedCellsInterval t₀ m ops are unchanged in (D.runInterval t₀ m ops).2.
Cells outside D.probedCellsSeq ops retain D.init in (D.runSeq ops).2.
Multi-step interval locality and replay: if m₂ agrees with m₁ on
D.probedCellsInterval t₀ m₁ ops, then simulating ops from (t₀, m₂) produces the exact same
transcript, probe count, probed-cell set, and post-memory contents on
D.probedCellsInterval t₀ m₁ ops (for cells outside D.probedCellsInterval t₀ m₁ ops, see
nextMem_runInterval_eq_of_notMem_probedCellsInterval).
Pad an IndexedScheme from cells cells to cells' cells (cells ≤ cells').
Cells outside P.probedCellsFrom m ops are unchanged in (P.runFrom m ops).2.
Cells outside P.probedCellsSeq ops retain P.init in (P.runSeq ops).2.