Documentation

CslibFrontier.DataStructure.Dictionary.SuccinctBucket

Partitioned-bucket, micro-bucket, and slab-hysteresis model for succinct dictionaries #

This file develops the pure structural, combinatorial, and probabilistic core of the fixed-capacity succinct dictionary with deletions. It combines the bucket partition and fingerprint-indexed buckets of Bender, Farach-Colton, J. Kuszmaul and W. Kuszmaul, SOSA 2024, Sections 3–4 with one-round Feistel quotienting (Arbitman, Naor and Segev, FOCS 2010, Claim 5.7; Bender, Conway, Farach-Colton, Kuszmaul and Tagliavini, J. ACM 2023, Section 7). Storage uses zero-wasted-slot full-slab / tail-item packing (Bender, Farach-Colton, J. Kuszmaul, W. Kuszmaul and M. Liu, STOC 2022, Sections 5.2 and 6.1, Lemma 24) together with this formalization's own micro-bucket chains and slab-hysteresis potential:

  1. Unified bucket and micro-bucket decomposition (totalMicroBits_eq_log): At capacity n_max, each key is assigned a bucketBits n_max-bit Feistel bucket (numBuckets n_max = 2 ^ bucketBits n_max) and a microBits n_max-bit local micro-bucket (microBits n_max = min ⌊log₂ n_max⌋ (3 * logLogFactor n_max)), where totalMicroBits n_max = bucketBits n_max + microBits n_max = ⌊log₂ n_max⌋ across all n_max. Thus the total number of (bucket, microBucket) chains across the entire table is totalMicroBuckets n_max = 2 ^ ⌊log₂ n_max⌋ ∈ (n_max / 2, max n_max 1], and each bucket indexes up to effBucketCap n_max = 4 * 2 ^ microBits n_max local slots using effBucketPosBits n_max ≤ microBits n_max + 3 ≤ 6 * logLogFactor n_max bits per pointer.
  2. Pointwise hysteresis slab potential (bucketPotential): When 0 < bucketBits n_max, each bucket partitions its c_b = q_b * K + r_b items into q_b full slabs of K = slabSize n_max = (slabScale n_max)^2 items and r_b < 2 * K tail items (with 1 ≤ r_b whenever 0 < q_b). Promoting K tail items when r_b reaches 2 * K and demoting a full slab when r_b drops to 0 with 0 < q_b are paid for deterministically (pointwise for every hash seed) by the hysteresis potential bucketPotential K q_b r_b.
  3. 3-wise independent expected collision and overflow bounds (expect_probeExcess_le_three_on, tsum_uniform_probeExcess_twoStage_le): A single 3-wise independent hash family H : ι → Q → Fin (2 ^ totalMicroBits n_max) provides both the combined (bucket, microBucket) hash feistelMicroHash and (by bit-prefix projection) the 3-wise independent bucket hash feistelBucketHash. For any key set S and key u with #(S.erase u) ≤ n_max, when the first stage qOf is quotient-injective on insert u (S.erase u), expect_probeExcess_le_three_on bounds the expected micro-bucket collisions with keys in S.erase u by 2 and the expected bucket overflow above effBucketCap n_max by 1, giving at most 3 expected excess probes. For a two-stage hash family whose first stage has collision bound C_bad, tsum_uniform_probeExcess_twoStage_le bounds expected excess probes by 3 + C_bad whenever #(S.erase u) ≤ n_max, across operation sequences of arbitrary length without sticky collision flags or seed resampling.

Main definitions #

Main results #

References #

Section 1: Micro-bucket, effective bucket capacity, and slab parameters #

Number of local micro-bucket bits min ⌊log₂ n⌋ (3 * logLogFactor n) within each Feistel bucket.

Number of micro-buckets 2 ^ microBits n per Feistel bucket.

Total number of (bucket, microBucket) address bits bucketBits n + microBits n = ⌊log₂ n⌋.

Total number of micro-buckets 2 ^ totalMicroBits n = 2 ^ ⌊log₂ n⌋ across all buckets.

Effective per-bucket indexed local slot capacity 4 * 2 ^ microBits n.

Bit-width ⌈log₂ (min n (effBucketCap n) + 1)⌉ of 1-based local slot pointers 0 .. min n (effBucketCap n).

Base-2 logarithm of the slab size: 0 when bucketBits n = 0 (single-bucket regime) and 2 * logLogFactor n when 0 < bucketBits n (multi-bucket slab regime).

Full-slab size K = 2 ^ slabBits n (1 when bucketBits n = 0, (slabScale n)^2 when 0 < bucketBits n).

Number of direct-indexed full-slab directory entries per bucket: 0 when bucketBits n = 0 and 4 * slabScale n when 0 < bucketBits n (covering all 4 * (slabScale n)^3 = effBucketCap n indexed local slots).

Maximum number of tail items per bucket (0 when bucketBits n = 0, 2 * slabSize n when 0 < bucketBits n).

Maximum number of full slabs across the entire table (0 when bucketBits n = 0, n / slabSize n when 0 < bucketBits n).

Maximum number of tail items across the entire table (numBuckets n * tailCapPerBucket n).

Bit-width ⌈log₂ (n + 1)⌉ capable of representing any global index or count in 0 .. n.

Quotient keyQuotient (bucketBits n) u.val packaged in Fin (2 ^ quotientBits U n).

When n ≤ U, (quotientFin U n u).val = keyQuotient (bucketBits n) u.val.

When n ≤ U, equality of quotientFin U n implies equality of keyQuotient (bucketBits n).

If U ≤ 2 ^ w and n ≤ U, then totalMicroBits n ≤ w.

When 0 < bucketBits n, microBits n = 3 * Dynamic.logLogFactor n and effBucketCap n = 4 * (slabScale n) ^ 3.

Every 1-based local slot pointer 0 .. min n (effBucketCap n) fits strictly below 2 ^ effBucketPosBits n.

Total indexed local slots across all buckets satisfy numBuckets n * effBucketCap n = 4 * totalMicroBuckets n ≤ 4 * max n 1.

Whenever n ≤ U and U < 2 ^ w, globalPtrBits n ≤ w.

Whenever n ≤ U and U < 2 ^ w, effBucketPosBits n ≤ w.

Section 2: Hysteresis slab potential (bucketPotential) #

Per-bucket slab hysteresis potential ϕ(K, q, r) for slab size K:

  • r - K when K ≤ r (accumulating potential toward a slab promotion at r = 2 * K);
  • K - r when 0 < q ∧ r < K (accumulating potential toward a slab demotion at r = 0);
  • 0 when q = 0 ∧ r < K.
@[simp]

An empty bucket (q = 0, r = 0) has zero hysteresis potential.

When r ≤ 2 * K, bucketPotential K q r ≤ K.

Updated (q', r') slab and tail counts after appending one item to a bucket with counts (q, r): promotes K tail items to a new full slab when r + 1 = 2 * K.

Number of items moved between the tail pool and full-slab pool by pushBackCounts.

Updated (q', r') slab and tail counts after removing the last item from a bucket with counts (q, r) (1 ≤ r): demotes the last full slab into K tail items when r = 1 ∧ 0 < q.

Number of items moved between the full-slab pool and tail pool by popBackCounts.

pushBackCounts increments the total item count q * K + r by 1.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.pushBackCounts_bounds {K q r : ℕ} (hK : 1 ≤ K) (hr : r < 2 * K) :
1 ≤ (pushBackCounts K q r).2 ∧ (pushBackCounts K q r).2 < 2 * K

pushBackCounts preserves the hysteresis upper bound r' < 2 * K and positivity 1 ≤ r'.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.popBackCounts_sum {K q r : ℕ} (hr : 1 ≤ r) :
(popBackCounts K q r).1 * K + (popBackCounts K q r).2 = q * K + r - 1

popBackCounts decrements the total item count q * K + r by 1 when 1 ≤ r.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.popBackCounts_bounds {K q r : ℕ} (hK : 1 ≤ K) (hr1 : 1 ≤ r) (hr2 : r < 2 * K) :
(popBackCounts K q r).2 < 2 * K ∧ (0 < (popBackCounts K q r).1 → 1 ≤ (popBackCounts K q r).2)

popBackCounts preserves r' < 2 * K and (0 < q' → 1 ≤ r').

Pointwise hysteresis amortization for pushBack: bucketPotential K q' r' + pushBackWork K r ≤ bucketPotential K q r + 1.

Pointwise hysteresis amortization for popBack: bucketPotential K q' r' + popBackWork K q r ≤ bucketPotential K q r + 1.

Section 3: Feistel micro-bucket and bucket hash decomposition & expected cost bounds #

def Cslib.DataStructure.Dictionary.SuccinctBucket.feistelMicroHash {ι : Type u_1} {Q : Type u_2} {U : ℕ} (n_max : ℕ) (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (u : Fin U) :
Fin (2 ^ totalMicroBits n_max)

Combined (bucket, microBucket) Feistel hash mapping u : Fin U into Fin (2 ^ totalMicroBits n_max).

def Cslib.DataStructure.Dictionary.SuccinctBucket.feistelBucketHash {ι : Type u_1} {Q : Type u_2} {U : ℕ} (n_max : ℕ) (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (u : Fin U) :

Feistel bucket hash mapping u : Fin U into Fin (2 ^ bucketBits n_max) (the low bucketBits n_max bits of feistelMicroHash).

def Cslib.DataStructure.Dictionary.SuccinctBucket.feistelLocalMicro {ι : Type u_1} {Q : Type u_2} {U : ℕ} (n_max : ℕ) (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (u : Fin U) :

Local micro-bucket index (H i (qOf u)).val / 2 ^ bucketBits n_max < numMicroPerBucket n_max within u's Feistel bucket.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.feistelMicroHash_val_div {ι : Type u_1} {Q : Type u_2} {U : ℕ} (n_max : ℕ) (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (u : Fin U) :
↑(feistelMicroHash n_max qOf H i u) / 2 ^ FeistelQuotient.bucketBits n_max = ↑(feistelLocalMicro n_max qOf H i u)

The Feistel XOR only touches the low bucketBits n_max bits, so the high bits of feistelMicroHash are the local micro-bucket feistelLocalMicro.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.feistelMicroHash_val_eq {ι : Type u_1} {Q : Type u_2} {U : ℕ} (n_max : ℕ) (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (u : Fin U) :
↑(feistelMicroHash n_max qOf H i u) = ↑(feistelLocalMicro n_max qOf H i u) * 2 ^ FeistelQuotient.bucketBits n_max + ↑(feistelBucketHash n_max qOf H i u)

(feistelMicroHash n_max qOf H i u).val decomposes into feistelBucketHash in the low bucketBits n_max bits and feistelLocalMicro in the high microBits n_max bits.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.feistelMicroHash_eq_iff {ι : Type u_1} {Q : Type u_2} {U : ℕ} (n_max : ℕ) (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (u₁ u₂ : Fin U) :
feistelMicroHash n_max qOf H i u₁ = feistelMicroHash n_max qOf H i u₂ ↔ feistelBucketHash n_max qOf H i u₁ = feistelBucketHash n_max qOf H i u₂ ∧ feistelLocalMicro n_max qOf H i u₁ = feistelLocalMicro n_max qOf H i u₂

Two keys land in the same global micro-bucket feistelMicroHash if and only if they land in the same Feistel bucket feistelBucketHash and the same local micro-bucket feistelLocalMicro.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.feistelBucketHash_val_eq_feistelBucket {ι : Type u_1} {Q : Type u_2} {U : ℕ} (n_max : ℕ) (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (u : Fin U) :
↑(feistelBucketHash n_max qOf H i u) = FeistelQuotient.feistelBucket (FeistelQuotient.bucketBits n_max) (fun (x : ℕ) => ↑(H i (qOf u))) ↑u

feistelBucketHash agrees with feistelBucket on the integer hash output (H i (qOf u)).val.

def Cslib.DataStructure.Dictionary.SuccinctBucket.microCollCount {ι : Type u_1} {Q : Type u_2} {U : ℕ} (n_max : ℕ) (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (S : Finset (Fin U)) (u : Fin U) :

Number of keys in S.erase u colliding with u in the combined (bucket, microBucket) hash feistelMicroHash.

def Cslib.DataStructure.Dictionary.SuccinctBucket.bucketOvfCount {ι : Type u_1} {Q : Type u_2} {U : ℕ} (n_max : ℕ) (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (S : Finset (Fin U)) (u : Fin U) :

Number of keys in S.erase u in u's Feistel bucket beyond the indexed local capacity effBucketCap n_max.

def Cslib.DataStructure.Dictionary.SuccinctBucket.probeExcess {ι : Type u_1} {Q : Type u_2} {U : ℕ} (n_max : ℕ) (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (S : Finset (Fin U)) (u : Fin U) :

Combined excess probe count microCollCount + bucketOvfCount for key u against S.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.expect_microCollCount_le_two_on {ι : Type u_1} {Q : Type u_2} [Fintype ι] {U n_max : ℕ} {qOf : Fin U → Q} {H : ι → Q → Fin (2 ^ totalMicroBits n_max)} (hh : Probability.IsPairwiseIndependentHash H) (S : Finset (Fin U)) (u : Fin U) (hS : (S.erase u).card ≤ n_max) (hq : ∀ u₁ ∈ insert u (S.erase u), ∀ u₂ ∈ insert u (S.erase u), qOf u₁ = qOf u₂ → FeistelQuotient.keyQuotient (FeistelQuotient.bucketBits n_max) ↑u₁ = FeistelQuotient.keyQuotient (FeistelQuotient.bucketBits n_max) ↑u₂) :
(Finset.univ.expect fun (i : ι) => ↑(microCollCount n_max qOf H i S u)) ≤ 2

Expected micro-bucket collision bound: under a pairwise-independent hash H, for any S : Finset (Fin U) with #(S.erase u) ≤ n_max such that qOf is quotient-injective on insert u (S.erase u), the expected number of keys in S.erase u landing in u's micro-bucket is at most 2.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.expect_bucketOvfCount_le_one_on {ι : Type u_1} {Q : Type u_2} [Fintype ι] {U n_max : ℕ} {qOf : Fin U → Q} {H : ι → Q → Fin (2 ^ totalMicroBits n_max)} (hh : Probability.IsKWiseIndependentHash 3 H) (S : Finset (Fin U)) (u : Fin U) (hS : (S.erase u).card ≤ n_max) (hq : ∀ u₁ ∈ insert u (S.erase u), ∀ u₂ ∈ insert u (S.erase u), qOf u₁ = qOf u₂ → FeistelQuotient.keyQuotient (FeistelQuotient.bucketBits n_max) ↑u₁ = FeistelQuotient.keyQuotient (FeistelQuotient.bucketBits n_max) ↑u₂) :
(Finset.univ.expect fun (i : ι) => ↑(bucketOvfCount n_max qOf H i S u)) ≤ 1

Expected bucket overflow bound: under a 3-wise independent hash H, for any S : Finset (Fin U) with #(S.erase u) ≤ n_max such that qOf is quotient-injective on insert u (S.erase u), the expected overflow above effBucketCap n_max in u's Feistel bucket is at most 1.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.expect_probeExcess_le_three_on {ι : Type u_1} {Q : Type u_2} [Fintype ι] {U n_max : ℕ} {qOf : Fin U → Q} {H : ι → Q → Fin (2 ^ totalMicroBits n_max)} (hh : Probability.IsKWiseIndependentHash 3 H) (S : Finset (Fin U)) (u : Fin U) (hS : (S.erase u).card ≤ n_max) (hq : ∀ u₁ ∈ insert u (S.erase u), ∀ u₂ ∈ insert u (S.erase u), qOf u₁ = qOf u₂ → FeistelQuotient.keyQuotient (FeistelQuotient.bucketBits n_max) ↑u₁ = FeistelQuotient.keyQuotient (FeistelQuotient.bucketBits n_max) ↑u₂) :
(Finset.univ.expect fun (i : ι) => ↑(probeExcess n_max qOf H i S u)) ≤ 3

Master expected probe-excess bound: under a 3-wise independent hash H, for any S : Finset (Fin U) with #(S.erase u) ≤ n_max such that qOf is quotient-injective on insert u (S.erase u), the expected combined probe excess probeExcess n_max qOf H i S u is at most 3.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.sum_probeExcess_le_three_mul_card_on {ι : Type u_1} {Q : Type u_2} [Fintype ι] {U n_max : ℕ} {qOf : Fin U → Q} {H : ι → Q → Fin (2 ^ totalMicroBits n_max)} (hh : Probability.IsKWiseIndependentHash 3 H) (S : Finset (Fin U)) (u : Fin U) (hS : (S.erase u).card ≤ n_max) (hq : ∀ u₁ ∈ insert u (S.erase u), ∀ u₂ ∈ insert u (S.erase u), qOf u₁ = qOf u₂ → FeistelQuotient.keyQuotient (FeistelQuotient.bucketBits n_max) ↑u₁ = FeistelQuotient.keyQuotient (FeistelQuotient.bucketBits n_max) ↑u₂) :
∑ i : ι, probeExcess n_max qOf H i S u ≤ 3 * Fintype.card ι

Natural-number sum form of expect_probeExcess_le_three_on: the sum of probeExcess over all seeds i : ι is at most 3 * Fintype.card ι.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.probeExcess_le_two_mul_card {ι : Type u_1} {Q : Type u_2} {U n_max : ℕ} (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (S : Finset (Fin U)) (u : Fin U) :
probeExcess n_max qOf H i S u ≤ 2 * (S.erase u).card

Deterministic worst-case bound on probeExcess: for any seed i, probeExcess n_max qOf H i S u ≤ 2 * #(S.erase u).

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.tsum_uniform_probeExcess_twoStage_le {Q : Type u_2} {ι₁ : Type u_3} {ι₂ : Type u_4} [Fintype ι₁] [DecidableEq ι₁] [Nonempty ι₁] [Fintype ι₂] [Nonempty ι₂] {U n_max C_bad : ℕ} (qOf : ι₁ → Fin U → Q) (H : ι₂ → Q → Fin (2 ^ totalMicroBits n_max)) (hh : Probability.IsKWiseIndependentHash 3 H) (S : Finset (Fin U)) (u : Fin U) (hS : (S.erase u).card ≤ n_max) (G : Finset ι₁) (hG : ∀ i₁ ∈ G, ∀ u₁ ∈ insert u (S.erase u), ∀ u₂ ∈ insert u (S.erase u), qOf i₁ u₁ = qOf i₁ u₂ → FeistelQuotient.keyQuotient (FeistelQuotient.bucketBits n_max) ↑u₁ = FeistelQuotient.keyQuotient (FeistelQuotient.bucketBits n_max) ↑u₂) (hbad : (Finset.univ \ G).card * (2 * (S.erase u).card) ≤ C_bad * Fintype.card ι₁) :
∑' (p : ι₁ × ι₂), (Probability.PMF.uniformOfFintype (ι₁ × ι₂)) p * ↑(probeExcess n_max (qOf p.1) H p.2 S u) ≤ ↑(3 + C_bad)

Two-stage universe-reduced expected probe-excess bound: for a product seed space ι₁ × ι₂ where the first stage qOf : ι₁ → Fin U → Q is quotient-injective on insert u (S.erase u) on a good seed set G ⊆ univ with #(univ \ G) * (2 * #(S.erase u)) ≤ C_bad * Fintype.card ι₁, and the second stage H : ι₂ → Q → Fin (2 ^ totalMicroBits n_max) is 3-wise independent, the expected probeExcess under PMF.uniformOfFintype (ι₁ × ι₂) is at most 3 + C_bad.

Section 4: Cardinality bounds for injective bucket and micro-bucket slot maps #

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.card_microSlots_le {ι : Type u_1} {Q : Type u_2} {U n_max : ℕ} (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (S : Finset (Fin U)) (u : Fin U) (J : Finset ℕ) (keyAt : ℕ → Fin U) (hinj : Set.InjOn keyAt ↑J) (hmem : ∀ j ∈ J, keyAt j ∈ S ∧ feistelMicroHash n_max qOf H i (keyAt j) = feistelMicroHash n_max qOf H i u) :
J.card ≤ 1 + microCollCount n_max qOf H i S u

If a finset J : Finset ℕ of local slot indices injects via keyAt : ℕ → Fin U into the keys of S landing in u's micro-bucket, then #J ≤ 1 + microCollCount n_max qOf H i S u.

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.bucketOverflow_le {ι : Type u_1} {Q : Type u_2} {U n_max c_b : ℕ} (qOf : Fin U → Q) (H : ι → Q → Fin (2 ^ totalMicroBits n_max)) (i : ι) (S : Finset (Fin U)) (u : Fin U) (keyAt : Fin c_b → Fin U) (hinj : Function.Injective keyAt) (hmem : ∀ (j : Fin c_b), keyAt j ∈ S ∧ feistelBucketHash n_max qOf H i (keyAt j) = feistelBucketHash n_max qOf H i u) :
c_b - effBucketCap n_max ≤ 1 + bucketOvfCount n_max qOf H i S u

If a bucket contains c_b items that inject via keyAt : Fin c_b → Fin U into the keys of S landing in u's Feistel bucket, then the overflow count c_b - effBucketCap n_max is at most 1 + bucketOvfCount n_max qOf H i S u.

Section 5: Master word-level space accounting (succinctWords) #

theorem Cslib.DataStructure.Dictionary.SuccinctBucket.succinct_space_le_succinctWords {U V w n_max B_aux C_aux C_pad C_hdr : ℕ} (haux : B_aux ≤ C_aux * n_max * Dynamic.logLogFactor n_max) :
(n_max * FeistelQuotient.quotientBits U n_max + n_max * FeistelQuotient.valBits V + B_aux + w - 1) / w + C_pad + C_hdr ≤ Dynamic.succinctWords (C_aux + 5) (C_pad + C_hdr) U V w n_max

Master succinct word-space bound: if the auxiliary bit budget B_aux is at most C_aux * n_max * Dynamic.logLogFactor n_max, then storing n_max quotients of quotientBits U n_max bits, n_max values of valBits V bits, B_aux auxiliary bits (with additive word overhead C_pad), and C_hdr header/hash words uses at most Dynamic.succinctWords (C_aux + 5) (C_pad + C_hdr) U V w n_max words across all w.

Total number of effBucketPosBits n-bit entries in the local micro-bucket metadata array LocalMeta: for each of the numBuckets n buckets, numMicroPerBucket n micro-bucket heads plus 2 * effBucketCap n doubly-linked list pointers (next and prev).

Number of variable per-bucket and per-slab globalPtrBits n-bit entries in GlobalMeta: 0 in the single-bucket regime (bucketBits n = 0), and numBuckets n * (3 + dirSlabsPerBucket n + 2 * tailCapPerBucket n) + 4 * maxFullSlabs n in the multi-bucket slab regime (0 < bucketBits n).

Total number of globalPtrBits n-bit entries in GlobalMeta: 4 global header slots (slots 0 and 1 store n_slabs and n_tails; slots 2 and 3 are unused) plus globalMetaVarLen n.

Succinct table word-space bound: the sum of the word sizes of Quotients, Values, the 9 LocalMeta sub-arrays of length totalMicroBuckets n_max, GlobalMeta, and C_hdr header/hash words is at most Dynamic.succinctWords 79 (35 + C_hdr) U V w n_max across all w.