Documentation

CslibFrontier.Computability.CellProbe.DecisionTree

Read-Only Embedding of Static Boolean Decision Trees into 1-Bit Cell-Probe Trees #

This file embeds static Boolean query trees (Cslib.DecisionTree (Fin S) α) as read-only 1-bit cell-probe trees (Cslib.CellProbe.ProbeTree S 1 α), identifying Boolean assignments Fin S → Bool with 1-bit cell memories Mem S 1 (Fin S → Fin 2).

Main definitions #

Main results #

def Cslib.CellProbe.memToBool {S : ℕ} (m : Mem S 1) :
Fin S → Bool

View a 1-bit cell memory Mem S 1 (Fin S → Fin 2) as a Boolean assignment Fin S → Bool (0 ↦ false, 1 ↦ true).

def Cslib.CellProbe.boolToMem {S : ℕ} (x : Fin S → Bool) :
Mem S 1

Encode a Boolean assignment x : Fin S → Bool as a 1-bit cell memory Mem S 1 (false ↦ 0, true ↦ 1).

Embed a static Boolean DecisionTree (Fin S) α as a read-only 1-bit ProbeTree S 1 α.

@[simp]
theorem Cslib.CellProbe.ProbeTree.run_ofDecisionTree {S : ℕ} {α : Type} (t : DecisionTree (Fin S) α) (m : Mem S 1) :