Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.ResizableSuccinct.Migration.Exec

Native RCode Epoch-Migration, First-Epoch Initialization, and Last-Delete Subroutines #

Compiles the verified Memory.Prog subroutines from Migration.ParamsCompute and Migration.StreamStep together with growZeroCode, shrinkCode, and resampleHashCode into parameter-free (¬ReadsWidth) native RCode .exact rResize epoch-transition programs on the Resizable Word RAM:

  1. migrateActiveCode: single-tape 1 · OPT streaming rebuild from (N_old, n, n_init_old) to (targetCap U n, n, n) (1 ≤ n ≤ U, EpochValid U n N_old), keeping the hardware frontier ≤ base + migratePeakWords U V w N_old n (≤ base + Dynamic.succinctWords 2699 888 U V w n, never 2 · OPT), sampling a fresh uniform QuotHashSeed U (targetCap U n), and bounding expected instructions plus post-migration inEpochPotential by migLinearFactor * n.
  2. initFirstEpochCode: empty-to-active transition (n = 0 → n' = 1, N₁ = targetCap U 1) on insert u v in O(1) instructions within base + compactedEpochWords U V w (targetCap U 1) 1.
  3. deleteLastOneCode: singleton deletion (n = 1 → 1 or 1 → 0) on delete u in O(1) deterministic instructions, collapsing to the 8-word empty header when the sole key matches u.

Main definitions #

Main results #

References #