Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.ResizableSuccinct.Migration.ParamsCompute.Arena

Single-Tape 1 · OPT Shared Migration Arena and Peak-Space Bounds #

This module defines the shared single-tape item arena (migrateArenaWords) and peak migration word footprint (migratePeakWords) for epoch capacity migration in the resizable succinct dynamic dictionary (Bender, Farach-Colton, J. Kuszmaul, and W. Kuszmaul, SOSA 2024; Kuszmaul, Liang, and Zhou, SODA 2026), proving:

Main definitions #

Main results #

References #

Word length of the shared single-tape item arena holding both the growing prefix [0, i) of new compacted items and the right-aligned suffix [i, n) of unread old compacted items.

Peak hardware word footprint above base during single-tape epoch capacity migration from (N_old, n) to targetCap U n.

The absolute end of the migration workspace is the arena base plus its word length.

Sum of floor divisions is at most floor division of the sum for 0 < w.

Shared-Arena Non-Overlap (newItemEnd_le_oldItemNextWord): For every j ≤ n (j = i + 1 after inserting item i), the end word offset compactedItemWords U V w N_new j of the first j new items is at most the word offset (migrateArenaWords - iwOld) + wOffQ_old j where unread old item j begins, regardless of whether quotientBits U N_new ≤ quotientBits U N_old (growing N) or quotientBits U N_new > quotientBits U N_old (shrinking N).

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.offCompItems_le_div_metaBits {U w N n : ℕ} (hw : 0 < w) (hNU : N ≤ U) (hU : U ≤ 2 ^ w) (hN4 : N ≤ 4 * n) :
offCompItems U w N ≤ (1344 * n * Dynamic.logLogFactor n + w - 1) / w + 439

Compacted metadata word offset bound in terms of n when N ≤ 4 * n.

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.migratePeakWords_le_succinctWords {U V w N_old n : ℕ} (hw : 0 < w) (hU : WordRAM.Fits w U) (hn : 1 ≤ n) (hev : EpochValid U n N_old) :
migratePeakWords U V w N_old n ≤ Dynamic.succinctWords 2699 888 U V w n

1 · OPT Migration Peak Word-Space Bound (migratePeakWords_le_succinctWords): Whenever EpochValid U n N_old and 1 ≤ n, single-tape streaming capacity migration uses at most Dynamic.succinctWords 2699 888 U V w n hardware words at peak — strictly 1 · OPT(U, V, n) plus lower-order O(n log log n) bits, never 2 · OPT.

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.w_mul_migratePeakWords_le_bits {U V w N_old n : ℕ} (hw : 0 < w) (hU : WordRAM.Fits w U) (hn : 1 ≤ n) (hev : EpochValid U n N_old) :
w * migratePeakWords U V w N_old n ≤ Dynamic.optBits U V n + 2699 * n * Dynamic.logLogFactor n + 889 * w

1 · OPT Migration Peak Bit-Space Bound (w_mul_migratePeakWords_le_bits): Multiplying migratePeakWords U V w N_old n by w yields at most Dynamic.optBits U V n + 2699 * n * Dynamic.logLogFactor n + 889 * w bits.

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compactedItemWords_le_linear {U V w N n : ℕ} (hw : 0 < w) (hU : U ≤ 2 ^ w) (hV : V ≤ 2 ^ w) :
compactedItemWords U V w N n ≤ 2 * n + 2

Parameter-free O(n) word bound on compactedItemWords: every item uses ≤ 2 * w bits, so compactedItemWords U V w N n ≤ 2 * n + 2 words for all 0 < w, U ≤ 2 ^ w, V ≤ 2 ^ w.

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.offCompItems_le_linear {U w N : ℕ} (hw : 0 < w) (hNU : N ≤ U) (hU : WordRAM.Fits w U) :
offCompItems U w N ≤ 252 * N + 439

Parameter-free O(N) word bound on offCompItems U w N (≤ 252 * N + 439) for all 0 < w, N ≤ U, and Fits w U, independent of (U, V, w).

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.migratePeakWords_le_linear {U V w N_old n : ℕ} (hw : 0 < w) (hU : WordRAM.Fits w U) (hV : V ≤ 2 ^ w) (hn : 1 ≤ n) (hev : EpochValid U n N_old) :
migratePeakWords U V w N_old n ≤ 1514 * n + 886

Parameter-free O(n) linear word bound on migratePeakWords (≤ 1514 * n + 886), ensuring that word-zeroing, word-shifting, growZeroCode, and shrinkCode all run in O(n) instructions with constants completely independent of (U, V, w).