Multi-Level Subconstant-Redundancy Bit-Budget Accounting and Information Conservation #
This module builds on CslibFrontier.DataStructure.Dictionary.SubconstantRedundancy.Schedule to
formalize the Section 5 pure bit-budget accounting (totalTreeBits, redundancySlack) and general
TreeSchedule information-conservation bound totalTreeBits ≤ infoBits paddedUniv valBound cap + redundancySlack ([LiLiangYuZhou2024, Sections 5.1–5.2 and 5.4–5.6];
arXiv:2310.20536v1, PDF pp. 25–36 / printed pp. 24–35).
For the canonical Section 5 parameter instantiation (canonicalSchedule) and end-to-end bound
totalTreeBits ≤ infoBits U V n + spaceConst * R, see Canonical.lean and Params.lean.
Source mapping, adaptations, and scope #
- Bit-budget conservation (
Section 5.2, PDF pp. 27–30 / printed pp. 26–29;Section 5.6, PDF pp. 35–36 / printed pp. 34–35):- Leaf nodes (
ℓ = k) store fixed-capacity minimaps (Minimap.FixedEncoded,m = nLow k), contributingallLeavesBits ≤ infoBits paddedUniv V n_L + 3 * numNodes kvia Vandermonde's inequality (allLeavesBits_le_padded_infoBits_add). - Inner nodes (
2 ≤ ℓ < k) budgetSuccinctBucketmetadata +(quot, val)slots; root nodes (ℓ = 1) budgetSuccinctBucketmetadata +(quot, localSlotIdx)slots together with a slab-and-tail shared root value pool (rootPoolDirBitsdirectory overhead +rootValPoolCap⌈log₂ V⌉-bit value slots), avoidingVoverhead on unused root capacity (totalTreeBits_le_padded_infoBits_add). - Non-root waiting lists (
allWaitingListsBits), regime-switched child-router and ID-compressor seeds (allHashSeedsBits), and all four shared global lookup tables (sharedTablesBits: leaf dynamic-matching permutations, shared minimap lookup table, Four-Russiansclmultable, and Section 5.6 level-3 DFS subtree lookup table) enterredundancySlack.
- Leaf nodes (
- Small-node child-router regime switch (
Section 5.4&Claim B.2adaptation): Nodes withnLow ℓ ≥ childRouterThreshold epsInv alphaInvuse Thorup'sDoubleTabulation(ChildRouterSeed), whereas nodes withnLow ℓ < childRouterThreshold epsInv alphaInvswitch to(2 * childRouterHalfInd (nHigh ℓ))-wisetrinomialPolyHash, avoiding the doubly exponentialchildRouterThresholdlower bound onthresholdN. - Out-of-scope gaps: Word-RAM compilation to executable memory programs (
Memory.ProgandCode), Section 4 small-Radapter trees (R < n / log₂ ^ 0.1 n), strong history independence, dynamic resizing in|S|, and super-polynomial key universes (U > n ^ (1 + α_max)) are out of scope here.
Main definitions #
Cslib.DataStructure.Dictionary.SubconstantRedundancy.waitingListBits,succinctTableMetaBits,TreeSchedule.routerSeedBits,TreeSchedule.nodeHashSeedBits,TreeSchedule.nodeMetaBits,TreeSchedule.subtreeMetaBits,TreeSchedule.allLeavesBits,TreeSchedule.allInnerTablesBits,TreeSchedule.rootSlabSize,TreeSchedule.rootPoolDirBits,TreeSchedule.allRootTablesBits,TreeSchedule.allWaitingListsBits,TreeSchedule.allHashSeedsBits,TreeSchedule.sharedTablesBits,TreeSchedule.totalTreeBits,TreeSchedule.redundancySlack: complete node, subtree, and global table bit-budget accounting.
Main results #
TreeSchedule.allLeavesBits_le_padded_infoBits_add,TreeSchedule.nonLeaf_infoBits_conservation,TreeSchedule.totalTreeBits_le_padded_infoBits_add: generalTreeSchedulebit conservation (totalTreeBits ≤ infoBits paddedUniv V cap + redundancySlack, valid for all1 ≤ V).
References #
Waiting-list bit width ⌈log₂(cap + 1)⌉ + cap * (I_cur + I_prev) (Section 5.2).
Metadata bit width of a SuccinctBucket storage table on Fin (2 ^ I) with capacity m:
m ID-quotients of quotientBits (2 ^ I) m bits, LocalMeta, GlobalMeta, and the 3-wise
trinomial hash seed (Section 5.2 & Section 5.6).
Section 1: Tree bit-budget accounting and core information conservation #
Bit width of the regime-switched child-router seed at level 0 ≤ ℓ < depth:
FeistelPerm.childRouterSeedBits when childRouterThreshold epsInv alphaInv ≤ nLow ℓ, and
2 * childRouterHalfInd (nHigh ℓ) * trinomialDeg T_ℓ s_ℓ below childRouterThreshold.
Per-node hash-seed bits (g_u in Section 5.5): routerSeedBits 0 at ℓ = 0,
routerSeedBits ℓ + idCompressorSeedBits for 1 ≤ ℓ < depth, and idCompressorSeedBits at
ℓ = depth.
Per-node metadata bits (Section 5.6 ID-set + waiting-list + hash-seed metadata, excluding
O(w)-bit quotient/value payload slots and independent of valBound at leaf spillovers via
2 * nLow depth upper bound).
Total DFS pre-order subtree metadata bit width rooted at a single level-ℓ node
(1 ≤ ℓ ≤ depth, Section 5.6).
Total leaf representation bits across all N_depth fixed-capacity leaf minimaps
(header + slots).
Total inner-node storage-table bits (SuccinctBucket metadata + quot + val payload slots)
across levels 2 ≤ ℓ < depth.
Slab size K_slab = (⌈log₂(cap + 2)⌉) ^ 2 for the shared root value pool.
Directory and free-list overhead bits of the slab+tail shared root value pool across all N_1
roots (O(n / log n + n / log ^ 6 n) bits, independent of valBound).
Total root storage-table bits (SuccinctBucket metadata + (quot, localIdx) slots across all
N_1 roots) plus the shared root value pool (rootValPoolCap ⌈log₂ V⌉-bit value slots +
rootPoolDirBits slab/tail directory).
Total waiting-list bits across all non-root levels 2 ≤ ℓ ≤ depth.
Total hash-seed bits across the top router (ℓ = 0) and all tree nodes (1 ≤ ℓ ≤ depth).
Bit budget for tree-level operational metadata: Nat.clog 2 (P.cap + 1) bits to store the
active sentinel count (ranging over 0 ≤ c ≤ P.cap) plus 1 bit for the occupancy flag
distinguishing cap - 1 from cap active elements.
Total pure tree representation bit budget summing the intended Section 5 layout bit
budgets of all leaf minimaps, inner/root SuccinctBucket storage tables, shared root value pool,
waiting lists, Feistel / trinomial hash seeds, shared global lookup tables, and tree-level
operational metadata. This defines the arithmetic bit budget of the intended Section 5 layout
(SuccinctBucket + shared-root-pool layout) and is not tied to an operational state by an
explicit Word-RAM bit-packing encoding.
Leaf minimap bit conservation (Section 5.2): across all N_depth full-capacity leaves
(n_L = N_depth * nLow depth), allLeavesBits ≤ infoBits paddedUniv valBound n_L + 3 * N_depth.
Non-leaf quotient + value bit conservation: combining infoBits U_pad V n_L with d = n - n_L
slots of (⌈log₂ ⌈U_pad / n⌉⌉ + ⌈log₂ V⌉) bits never exceeds infoBits U_pad V n + 3 * d + 1
whenever 3 * n ≤ U_pad.
Redundancy slack (admitting a V-independent O(R) upper bound since Minimap.headerUniv
bounds leaf spillover by 2 * n_leaf) combining inner/root SuccinctBucket metadata, per-level
quotient-bit excess above ⌈log₂ ⌈U_pad / cap⌉⌉, unused root slot slack, root slab/tail directory,
waiting lists, hash seeds, shared lookup tables, and tree-level operational metadata.
General TreeSchedule bit-budget bound (for all 1 ≤ valBound, with no upper bound on
valBound): whenever cap ≤ N_ℓ * (nFloor ℓ + 1) across 1 ≤ ℓ < depth and
3 * cap ≤ paddedUniv, totalTreeBits ≤ infoBits paddedUniv valBound cap + redundancySlack.