Documentation

CslibFrontier.DataStructure.Dictionary.SubconstantRedundancy.BitBudget

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 #

Main definitions #

Main results #

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).

Total bit budget of shared global lookup tables: (1) leaf DynamicMatching.Scheme permutations, (2) shared leaf Minimap.lookupHeader table (Lemma 3.7), (3) shared Four-Russians carryless-multiplication table (KWise), and (4) shared Section 5.6 level-3 DFS subtree lookup table (when 3 ≤ 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.

theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.TreeSchedule.nonLeaf_infoBits_conservation {U_pad V n n_L : ℕ} (hn : 1 ≤ n) (hV : 1 ≤ V) (hnL : n_L ≤ n) (hU : 3 * n ≤ U_pad) :
have d := n - n_L; have q_base := Nat.clog 2 ((U_pad + n - 1) / n); infoBits U_pad V n_L + d * (q_base + Nat.clog 2 V) ≤ infoBits U_pad V n + 3 * d + 1

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.