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 #
Cslib.CellProbe.memToBool,Cslib.CellProbe.boolToMem: inverse bijections betweenMem S 1andFin S → Bool.Cslib.CellProbe.ProbeTree.ofDecisionTree: read-only 1-bit cell-probe embedding ofDecisionTree (Fin S) α.
Main results #
Cslib.CellProbe.ProbeTree.run_ofDecisionTree,Cslib.CellProbe.ProbeTree.probes_ofDecisionTree,Cslib.CellProbe.ProbeTree.probedCells_ofDecisionTree,Cslib.CellProbe.ProbeTree.depth_ofDecisionTree: exact agreement on return value, pathwise probe cost, distinct queried coordinates, and structural worst-case depth.
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) :
@[simp]
theorem Cslib.CellProbe.ProbeTree.probes_ofDecisionTree {S : ℕ} {α : Type} (t : DecisionTree (Fin S) α) (m : Mem S 1) :
@[simp]
theorem Cslib.CellProbe.ProbeTree.probedCells_ofDecisionTree {S : ℕ} {α : Type} (t : DecisionTree (Fin S) α) (m : Mem S 1) :
@[simp]
theorem Cslib.CellProbe.ProbeTree.depth_ofDecisionTree {S : ℕ} {α : Type} (t : DecisionTree (Fin S) α) :