Subconstant-Redundancy Pure Storage Nodes and Metadata Separation #
This file formalizes the pure node-level storage structures and Section 5.6 metadata-versus-payload
separation for the multi-level dictionary tree of Tianxiao Li, Jingxun Liang, Huacheng Yu, and
Renfei Zhou, Dynamic Dictionary with Subconstant Wasted Bits per Key
([LiLiangYuZhou2024, Sections 5.2 and 5.6];
arXiv:2310.20536v1, PDF pp. 27–30 and 35–36 /
printed pp. 26–29 and 34–35), re-exporting the regime-switched hash-seed spaces and concentration
theorems from NodeSeeds.
Main definitions #
Cslib.DataStructure.Dictionary.SubconstantRedundancy.WaitingList: bounded waiting list of pairs(x_id^[ℓ], x_id^[ℓ - 1])(Section 5.2, capacitywaitCap ℓ = 2 * delta ℓ).StorageTableMeta,StorageTable: inner and root storage tables separatingStorageTableMeta(Section 5.6ID-only slot locatorlocateSlot, corresponding to the bit budgetsuccinctTableMetaBits, though modeled here as an unpacked injective partial slot mapFin m → Option (Fin (2 ^ I))with∑_{k=0}^m C(m, k) · k! · C(2^I, k)states rather than packed to that bit budget by an explicit encoding) from(quot, val)payload slots.TreeSchedule.LeafMeta,TreeSchedule.LeafNode,TreeSchedule.InnerMeta,TreeSchedule.InnerNode,TreeSchedule.RootMeta,TreeSchedule.RootNode: leaf (Minimap.FixedEncoded), inner, and root node representations with explicit metadata projections (toMeta,LeafMeta.locateSlot) for DFS metadata packing.
Main results #
WaitingList.lookup_push,WaitingList.lookup_remove,WaitingList.lookup_pop_snd: exactFunction.updateequations for waiting-list operations (Algorithm 3).StorageTable.query_overwrite,StorageTable.query_insert,StorageTable.query_delete,StorageTable.query_replace,StorageTable.query_ofFinset: exactFunction.updateequations for storage-table operations.TreeSchedule.rootKeys_le_rootValPoolCap: active root values across allN_1roots never exceedrootValPoolCap(TreeState.rootKeyCount_le_rootValPoolCap).
References #
Section 3: Pure waiting lists, storage tables, and Section 5.6 metadata separation #
Bounded waiting list storing up to cap pairs (x_id^[ℓ], x_id^[ℓ - 1]) with distinct first
components ([LiLiangYuZhou2024, Section 5.2];
arXiv:2310.20536v1, PDF p. 28 / printed p. 27).
Ordered
(currentId, parentId)pairs currently held in the waiting list.
Active level-ℓ ID set present in w.
Empty waiting list.
Look up the parent ID x_id^[ℓ - 1] associated with k : Fin (2 ^ I_cur).
Push a fresh (k, prev) pair onto w.
Remove k (if present) from w (Algorithm 3, Branch 1).
Pop the head entry (y_id^[ℓ], y_id^[ℓ - 1]) of a nonempty waiting list (Algorithm 3,
Branch 2).
Build a waiting list from a finite set S (#S ≤ cap) and parent-ID map f.
Pure storage-table ID metadata on Fin (2 ^ I) with m slots (Section 5.6 metadata
component of SuccinctBucket, corresponding to the bit budget succinctTableMetaBits I m,
though modeled here as an unpacked injective partial slot assignment
Fin m → Option (Fin (2 ^ I)) with ∑_{k=0}^m C(m, k) · k! · C(2^I, k) states rather than
packed to that bit budget by an explicit encoding).
Slot-to-active-ID assignment across the
mtable slots.
Metadata-only slot locator (Section 5.6): returns some i iff key k occupies slot i,
without inspecting quotient or value payloads.
Active ID set represented in tm.
Empty storage-table metadata.
Inner or root storage table separating tableMeta : StorageTableMeta I m (Section 5.6
metadata) from payload : Fin m → Fin Q × Fin V ((quot, val) payload slots).
- tableMeta : StorageTableMeta I m
Active-ID slot metadata separated from payload values (
Section 5.6). Per-slot
(quotient, value)payload array.
Look up (quot, val) for k : Fin (2 ^ I) via metadata-only locateSlot followed by a single
payload-slot read.
Empty storage table (given 1 ≤ Q and 1 ≤ V).
Overwrite the (quot, val) payload of an existing key k ∈ tbl.tableMeta.dom in place,
leaving tableMeta unchanged.
Insert a fresh key k ∉ tbl.tableMeta.dom when tbl.tableMeta.dom.card < m (used at root
nodes ℓ = 1).
Delete k from tbl (used at root nodes ℓ = 1).
Replace an active key k_old ∈ tbl.tableMeta.dom with (k_new, qv_new) in the freed slot
(Algorithm 3, Branch 2 at inner nodes 2 ≤ ℓ < depth).
Bulk-initialize a storage table from S : Finset (Fin (2 ^ I)) and payload map f (used in
tree construction and subtree reconstruction), materializing the first min #S m elements of S
in ascending order (#S ≤ m recovers all of S).
Leaf metadata (Section 5.6): hash seed g_u, waiting list, and Minimap subset/spillover
header, decoupled from nLow depth payload slots.
Metadata-only leaf slot locator (Section 5.6 & Lemma 3.7): returns some (spill, slotIdx)
without inspecting leaf payload slots.
Leaf node (ℓ = depth) combining LeafMeta with nLow depth spillover memory slots
(Minimap.FixedEncoded).
Underlying Minimap.FixedEncoded representation of a LeafNode.
Construct a LeafNode from seed, wait, and a Minimap.FixedEncoded state.
Inner-node metadata (2 ≤ ℓ < depth, Section 5.6): hash seed, waiting list, and
StorageTableMeta (independent of quotUniv ℓ and valBound).
- seed : P.NodeSeed ℓ
Per-node hash seed at level
ℓ. Waiting list of capacity
waitCap ℓ.Active-ID slot metadata of the node's storage table.
Inner node (2 ≤ ℓ < depth) combining InnerMeta with tableCap ℓ (quot, val) payload
slots.
Root-node metadata (ℓ = 1, Section 5.6): hash seed and StorageTableMeta (no waiting list
at ℓ = 1).
- seed : P.NodeSeed 1
Per-node hash seed at
ℓ = 1. Active-ID slot metadata of the root storage table.
Root node (ℓ = 1), storing (quot, val) inline via StorageTable in the pure tree model
(while the Section 5 layout bit budget arithmetic in BitBudget.lean accounts for a shared root
value pool).
When all leaf minimaps (nLow depth keys each) and inner storage tables (tableCap ℓ keys
each) are at full capacity and total active keys totalActive ≤ cap, total keys stored across all
N_1 root tables never exceed P.rootValPoolCap.