Documentation

CslibFrontier.DataStructure.Dictionary.SubconstantRedundancy.Schedule

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

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 #

Main results #

References #

Section 1: Information benchmark, clamped redundancy, and integer schedule #

@[reducible, inline]

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

Lower key-load threshold n_low_ℓ: n - 1 at ℓ = 0, and nFloor ℓ - delta ℓ for ℓ ≥ 1.

Upper key-load threshold n_high_ℓ: n at ℓ = 0, and nFloor ℓ + delta ℓ for ℓ ≥ 1.

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.

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.

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

Node storage capacity m_ℓ (nHigh 1 - B_1 * nLow 2 at ℓ = 1, nLow ℓ - B_ℓ * nLow (ℓ + 1) for 2 ≤ ℓ < depth, and nLow depth at ℓ = 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.

Section 4: Quantitative bounds for the canonical integer schedule #

Level scale s_ℓ: Nat.iterLog ℓ U for ℓ < k, and r for ℓ ≥ k.

theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.two_pow_eighteen_mul_targetSize_succ_le {n U r ℓ : ℕ} (hr : minRedundancyRatio ≤ r) (hU : 4 * r ≤ Nat.log 2 U) (hn : 2 ^ 18 * Nat.log 2 U ^ 9 ≤ n) (hlt : ℓ < treeDepth U r) :
have k := treeDepth U r; 2 ^ 18 * targetSize n U r k (ℓ + 1) ≤ targetSize n U r k ℓ

Across all 0 ≤ ℓ < treeDepth U r, consecutive target sizes shrink by at least 2 ^ 18 (= 4 ^ 9).

theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.targetSize_le_of_step {n U r k : ℕ} (hstep : ∀ j < k, 2 ^ 18 * targetSize n U r k (j + 1) ≤ targetSize n U r k j) (ℓ : ℕ) :
ℓ ≤ k → targetSize n U r k ℓ ≤ n
theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.targetSize_pos {n U r k ℓ : ℕ} (hn : 1 ≤ n) (hr : 1 ≤ r) (hU : 4 * r ≤ Nat.log 2 U) (hℓ : ℓ ≤ treeDepth U r) (hk : k = treeDepth U r) :
1 ≤ targetSize n U r k ℓ
theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.numNodes_mul_targetSize_bounds {n U r k ℓ : ℕ} (hpos : 1 ≤ targetSize n U r k ℓ) (hle : targetSize n U r k ℓ ≤ n) :
numNodes n U r k ℓ * targetSize n U r k ℓ ≤ n ∧ n < 2 * numNodes n U r k ℓ * targetSize n U r k ℓ
theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.targetSize_le_nFloor_and_lt {n U r k ℓ : ℕ} (hpos : 1 ≤ targetSize n U r k ℓ) (hle : targetSize n U r k ℓ ≤ n) :
targetSize n U r k ℓ ≤ nFloor n U r k ℓ ∧ nFloor n U r k ℓ < 2 * targetSize n U r k ℓ
theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.cumBranchBits_add_seventeen_le {n U r k ℓ : ℕ} (hpos_cur : 1 ≤ targetSize n U r k ℓ) (hpos_next : 1 ≤ targetSize n U r k (ℓ + 1)) (hle_cur : targetSize n U r k ℓ ≤ n) (hstep : 2 ^ 18 * targetSize n U r k (ℓ + 1) ≤ targetSize n U r k ℓ) :
cumBranchBits n U r k ℓ + 17 ≤ cumBranchBits n U r k (ℓ + 1)
theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.nFloor_succ_eq_div {n U r k ℓ : ℕ} (hle : cumBranchBits n U r k ℓ ≤ cumBranchBits n U r k (ℓ + 1)) :
nFloor n U r k (ℓ + 1) = nFloor n U r k ℓ / branchFactor n U r k ℓ
theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.ten_mul_delta_le_branchFactor_mul_delta_succ {n U r k ℓ : ℕ} (hS : cumBranchBits n U r k ℓ + 17 ≤ cumBranchBits n U r k (ℓ + 1)) (hx8 : 8 ≤ nFloor n U r k (ℓ + 1)) :
10 * delta n U r k ℓ ≤ branchFactor n U r k ℓ * delta n U r k (ℓ + 1)
theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.four_mul_branchBits_add_idBits_succ_le {n U r k ℓ : ℕ} (hle : cumBranchBits n U r k ℓ ≤ cumBranchBits n U r k (ℓ + 1)) (hx1 : 1 ≤ nFloor n U r k (ℓ + 1)) :
4 * branchBits n U r k ℓ + idBits n U r k (ℓ + 1) ≤ idBits n U r k ℓ
theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.nHigh_sq_mul_nFloor_sq_le_four_mul_two_pow_idBits {n U r k ℓ : ℕ} (h1 : 1 ≤ ℓ) (h8 : 8 ≤ nFloor n U r k ℓ) :
nHigh n U r k ℓ ^ 2 * nFloor n U r k ℓ ^ 2 ≤ 4 * 2 ^ idBits n U r k ℓ
theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.numNodes_mul_delta_mul_levelScale_cubed_le {n U r k ℓ : ℕ} (h1 : 1 ≤ ℓ) (hpos : 1 ≤ targetSize n U r k ℓ) (hle : targetSize n U r k ℓ ≤ n) :
numNodes n U r k ℓ * delta n U r k ℓ * levelScale U r k ℓ ^ 3 ≤ n
theorem Cslib.DataStructure.Dictionary.SubconstantRedundancy.idBits_pred_le_mul_levelScale {n U r ℓ : ℕ} (hr : minRedundancyRatio ≤ r) (h2 : 2 ≤ ℓ) (hℓ : ℓ ≤ treeDepth U r) (hpos_pred : 1 ≤ targetSize n U r (treeDepth U r) (ℓ - 1)) (hle_pred : targetSize n U r (treeDepth U r) (ℓ - 1) ≤ n) :
have k := treeDepth U r; idBits n U r k (ℓ - 1) ≤ 148 * levelScale U r k ℓ