Multi-Level Tree Parameter Schedule and Subconstant-Redundancy Bit Budget #
This module formalizes the integer-exact multi-level hashing parameter schedule and pure bit-budget conservation bound for the large-parameter-regime dynamic succinct dictionary of Tianxiao Li, Jingxun Liang, Huacheng Yu, and Renfei Zhou, Dynamic Dictionary with Subconstant Wasted Bits per Key ([LiLiangYuZhou2024, Section 5, Sections 5.1–5.2 and 5.4–5.6]; arXiv:2310.20536v1, PDF pp. 25–36 / printed pp. 24–35).
Source statements, notation mapping, and formalization adaptations #
In [LLYZ24] (arXiv:2310.20536v1):
- Regime and sentinel padding (Section 5 opening, PDF pp. 25–26 / printed pp. 24–25; Section 1,
Theorem 1.1, PDF p. 2 / printed p. 1):
For capacity
n(Nin the paper), polynomial universen ^ (1 + α_min) ≤ U ≤ n ^ (1 + α_max)(encoded integer-exactly vian ^ (q_min + p_min) ≤ U ^ q_minandU ^ q_max ≤ n ^ (q_max + p_max)), value bound1 ≤ V, and redundancyn / (log₂ n) ^ 0.1 ≤ R ≤ n(n ^ 10 ≤ R ^ 10 * Nat.log 2 nandR ≤ n), the internal tree operates overU_base = U + n(adjoiningnsentinel keys so active key count stays in{n - 1, n}) rounded up to a multiplepaddedUnivofB_0 * 2 ^ I_1(Section 5.1, PDF p. 27 / printed p. 26). - Clamping
R(effRedundancy, Section 5 opening, PDF p. 26 / printed p. 25, formalization adaptation): The paper capsRatN / 2 ^ (log* N)since update timeO(log* N + log(N / R))already reachesO(log* N)there. HereeffRedundancy n R := min R (max 1 (n / max 256 (2 ^ logStar n)))clampsRsoredundancyRatio n R = n / effRedundancy n Rsatisfies both256 ≤ rand2 ^ logStar n ≤ racross allR ≤ n(includingR = n) without inflatingthresholdN, while preservingeffRedundancy n R ≤ Randlog₂ r = O(logStar n + log(n / R)). - Tree depth, branching factors, and ID-quotient schedule (Section 5
Tree Parameters& Section 5.1, PDF p. 27 / printed p. 26):treeDepth U r(k ≥ 2in the paper) is the leastℓ ≥ 2withNat.iterLog ℓ U ≤ 4 * r(adapting the paper'siterLog k U ≤ r < iterLog (k - 1) Uby a factor of4so the bottom branching factorB_{k - 1}is always at least2 ^ 17rather than1wheniterLog (k - 1) Ulies just abover, while keepingI_{k - 1} = O(r)and leaf waiting-list bitsO(n / r ^ 2)).- Power-of-two node counts
numNodes ℓ = 2 ^ cumBranchBits ℓ(B_ℓ = 2 ^ branchBits ℓ) placenFloor ℓ = n / numNodes ℓ ∈ [targetSize ℓ, 2 * targetSize ℓ)wheretargetSize ℓ = (Nat.iterLog ℓ U) ^ 9(1 ≤ ℓ < k) andtargetSize k = r ^ 9. - Window radius
delta ℓ = ⌊(nFloor ℓ) ^ (2 / 3)⌋(Nat.nthRoot 3 ((nFloor ℓ) ^ 2)), thresholdsnLow ℓ = nFloor ℓ - delta ℓandnHigh ℓ = nFloor ℓ + delta ℓ(n - 1andnatℓ = 0), ID bit-widthsidBits ℓ = 4 * Nat.clog 2 (2 * nFloor ℓ), and quotient rangesquotUniv ℓsatisfy the exact conservation identitynumNodes ℓ * 2 ^ idBits ℓ * quotUniv ℓ = paddedUnivat every level1 ≤ ℓ ≤ k(TreeSchedule.numNodes_mul_idUniv_mul_quotUniv).
- Shared root value pool capacity (Section 5.2 adaptation for arbitrary value bound
V): Section 5.2 (PDF pp. 28–29 / printed pp. 27–28) analyzes key-only root tables whereO(Δ_1)unused root slots per root costO((N / n_1) * Δ_1 * log U) = O(N / log ^ 2 N)bits. For general values inFin V(with no upper bound onlog₂ V), storing⌈log₂ V⌉bits inside every unused root slot would wasteΘ((n / log ^ 3 n) * log₂ V)bits. Instead, the bit-budget layout inBitBudget.leanallocates a shared root value pool of exact capacityrootValPoolCap = n - numNodes 2 * nLow 2, so total value slots across leaves, inner storage tables, and the shared root value pool equaln(TreeSchedule.total_value_slots_eq_cap). Note thattotalTreeBitsinBitBudget.leancomputes the arithmetic bit budget of the intended Section 5 layout and is not tied to an operational state by an explicit bit-packing encoding (pure node storage and tree operations follow in Stage 2, #5349). Total bit usage inParams.leanis bounded byinfoBits U V n + O(R)unconditionally for all1 ≤ V.
Scope and explicit out-of-scope gaps #
This module covers the integer-exact parameter schedule and value-slot conservation identities for
the Section 5 large-parameter polynomial-U milestone (n / log₂ ^ 0.1 n ≤ R ≤ n,
n ^ (1 + α_min) ≤ U ≤ n ^ (1 + α_max)). Bit-budget accounting (BitBudget.lean, Params.lean)
and regime-switched node seeds (NodeSeeds.lean, SeedBounds.lean) build on this module in
Stage 1; pure node storage structures, deterministic tree operations, and expected rehashing bounds
(Stages 2–3, #5349), Word-RAM Memory.Prog compilation, Section 4 small-parameter adapter
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.infoBits: exact information-theoretic benchmark⌈log₂(C(U, n) * V ^ n)⌉.Cslib.DataStructure.Dictionary.SubconstantRedundancy.effRedundancy,redundancyRatio,treeDepth,targetSize,cumBranchBits,branchBits,branchFactor,numNodes,nFloor,delta,nLow,nHigh,idBits,quotUnivOne: integer-exact tree parameter schedule helpers.Cslib.DataStructure.Dictionary.SubconstantRedundancy.TreeSchedule,TreeSchedule.ConcentrationReady: reusable abstract tree parameter bundle and concentration hypotheses.
Main results #
minRedundancyRatio_le_redundancyRatio,two_pow_logStar_le_redundancyRatio,iterLog_treeDepth_le,lt_iterLog_of_lt_treeDepth: clamped redundancy and tree-depth bounds.TreeSchedule.numNodes_mul_idUniv_mul_quotUniv: exactpaddedUnivfactorization across all tree levels.TreeSchedule.leaf_add_inner_slots_eq,TreeSchedule.total_value_slots_eq_cap: telescoping value-slot conservation across leaves, inner storage tables, and the shared root value pool.
References #
Section 1: Information benchmark, clamped redundancy, and integer schedule #
Exact integer ceiling ⌈log₂(C(U, n) * V ^ n)⌉ of the information-theoretic dictionary bit
lower bound (Minimap.infoBits U n V), avoiding per-key ceiling loss when V is not a power of
two.
Minimum clamped redundancy ratio r₀ = 256 (2 ^ 8), chosen so leaf target sizes r ^ 9
dominate (150 * m) ^ 3 in the child-router moment concentration inequality across all R ≤ n.
Clamped internal redundancy R_eff = min R (max 1 (n / max 256 (2 ^ log* n))), ensuring
R_eff ≤ R unconditionally, and 256 ≤ n / R_eff and 2 ^ log* n ≤ n / R_eff across all
1 ≤ R whenever max 256 (2 ^ log* n) ≤ n ([LiLiangYuZhou2024, Section 5], PDF p. 26 /
printed p. 25).
Internal per-key inverse-redundancy scale r = n / max (effRedundancy n R) 1.
Bounded fuel helper scanning levels ℓ = cur, cur + 1, … for the first ℓ with
Nat.iterLog ℓ U ≤ 4 * r.
Tree depth k ≥ 2: the least ℓ ≥ 2 (within Nat.floorLogStar U + 2) such that
Nat.iterLog ℓ U ≤ 4 * r.
Target expected node size lower bound at level ℓ: n at ℓ = 0, (Nat.iterLog ℓ U) ^ 9 at
internal levels 1 ≤ ℓ < k, and r ^ 9 at leaf level ℓ ≥ k.
Cumulative base-2 branching exponent S_ℓ (numNodes ℓ = 2 ^ S_ℓ): 0 at ℓ = 0 and
⌊log₂(n / targetSize n U r k ℓ)⌋ for 1 ≤ ℓ.
Per-level branching bit-width s_ℓ = S_{ℓ + 1} - S_ℓ (B_ℓ = 2 ^ s_ℓ).
Power-of-two branching factor B_ℓ = 2 ^ branchBits ℓ.
Total number of level-ℓ nodes N_ℓ = 2 ^ cumBranchBits ℓ across the forest.
Integer floor ⌊n / N_ℓ⌋ of the expected key load per level-ℓ node.
Allowed load-deviation radius Δ_ℓ = ⌊(nFloor ℓ) ^ (2 / 3)⌋ at level ℓ.
Key-ID bit width I_ℓ = 4 * ⌈log₂(2 * nFloor ℓ)⌉ at level 1 ≤ ℓ ≤ k (≥ 4 log₂ n_ℓ + 4).
Level-1 quotient range Q_1 = ⌈(U + n) / (B_0 * 2 ^ I_1)⌉ covering U real keys plus n
sentinel keys.
Section 2: Basic properties of effRedundancy, redundancyRatio, and treeDepth #
Section 3: Abstract TreeSchedule bundle and exact level conservation laws #
Abstract structural parameter bundle for a Section 5 multi-level dictionary tree.
Both small concrete test schedules and canonicalSchedule (under ValidRegime) instantiate
TreeSchedule, decoupling pure node and tree operations from asymptotic threshold constants.
- univ : ℕ
External key universe size
U. - valBound : ℕ
Value bound
V(1 ≤ V). - cap : ℕ
Dictionary capacity
n(2 ≤ n; internal tree holdsn - 1ornactive keys). - depth : ℕ
Tree depth
k ≥ 2(0= top router,1= roots,2 .. k - 1= inner,k= leaves). Per-level branching bit-widths
s_ℓ(0 ≤ ℓ < depth,B_ℓ = 2 ^ s_ℓ).Load-deviation radius
Δ_ℓ(1 ≤ ℓ ≤ depth).Key-ID bit-width
I_ℓ(1 ≤ ℓ ≤ depth).- quotOne : ℕ
Level-1 quotient universe
Q_1 ≥ 1. - epsInv : ℕ
Inverse space exponent
ε_invforDoubleTabulationchild routers. - alphaInv : ℕ
Gap exponent
α_invforDoubleTabulationchild routers.
Branching factor B_ℓ = 2 ^ s_ℓ at level ℓ.
Cumulative branching bit-depth S_ℓ = s_0 + ⋯ + s_{ℓ - 1}.
Total number of level-ℓ nodes N_ℓ = 2 ^ S_ℓ across the forest.
Lower load threshold nLow ℓ (cap - 1 at 0, nFloor ℓ - delta ℓ for ℓ ≥ 1).
Upper load threshold nHigh ℓ (cap at 0, nFloor ℓ + delta ℓ for ℓ ≥ 1).
Waiting-list capacity 2 * delta ℓ at level ℓ ≥ 2 (nHigh ℓ - nLow ℓ = 2 * delta ℓ).
Quotient remainder bit-shift I_ℓ - s_ℓ - I_{ℓ + 1} on edge ℓ → ℓ + 1.
Quotient universe Q_ℓ at level ℓ ≥ 1.
Padded top-level key universe U_pad = B_0 * 2 ^ I_1 * Q_1.
Exact ID-quotient universe conservation: N_ℓ * 2 ^ I_ℓ * Q_ℓ = U_pad across all
1 ≤ ℓ ≤ depth.
Right-coordinate universe T_ℓ of the level-ℓ Feistel child router (2 ^ I_1 * Q_1 at
ℓ = 0, 2 ^ (I_ℓ - s_ℓ) for 1 ≤ ℓ < depth).
Right-coordinate universe T'_ℓ of the level-ℓ Feistel ID compressor (Q_1 at ℓ = 1,
2 ^ (I_{ℓ - 1} - s_{ℓ - 1} - I_ℓ) = 2 ^ remBits (ℓ - 1) for 2 ≤ ℓ ≤ depth).
Lower load bound for children at inner levels:
B_ℓ * nLow (ℓ + 1) ≤ nLow ℓ for 2 ≤ ℓ < depth.
Inner table capacity identity:
tableCap ℓ + B_ℓ * nLow (ℓ + 1) = nLow ℓ for 2 ≤ ℓ < depth.
Telescoping slot identity across inner levels 2 .. depth - 1 and leaf level depth:
N_depth * nLow depth + ∑_{ℓ ∈ Ico 2 depth} N_ℓ * tableCap ℓ = N_2 * nLow 2.
Total value-slot conservation across leaf minimaps, inner tables, and the shared root value
pool: leafSlots + innerSlots + rootValPoolCap = cap (= n).
Probabilistic concentration readiness for Claim 5.4 and Lemma 5.3 across all levels of
P.
- gap_bound (ℓ : ℕ) : ℓ < P.depth → 2 ^ P.branchBits ℓ * P.routerRightUniv ℓ ≤ P.routerRightUniv ℓ ^ max P.alphaInv 1
- window_contained (ℓ : ℕ) : ℓ < P.depth → ∀ (m b_load : ℕ), P.nLow ℓ ≤ m → m ≤ P.nHigh ℓ → ↑m / 2 ^ P.branchBits ℓ - 1 / 5 * (↑m / 2 ^ P.branchBits ℓ) ^ (2 / 3) ≤ ↑b_load → ↑b_load ≤ ↑m / 2 ^ P.branchBits ℓ + 1 / 5 * (↑m / 2 ^ P.branchBits ℓ) ^ (2 / 3) → P.nLow (ℓ + 1) ≤ b_load ∧ b_load ≤ P.nHigh (ℓ + 1)
Section 4: Quantitative bounds for the canonical integer schedule #
Level scale s_ℓ: Nat.iterLog ℓ U for ℓ < k, and r for ℓ ≥ k.
Across all 0 ≤ ℓ < treeDepth U r, consecutive target sizes shrink by at least 2 ^ 18
(= 4 ^ 9).