Single-Tape 1 · OPT Active Epoch Migration (migrateActiveCode) #
Assembles migrateSetupParamsCode, migrateSetupShiftCode, resampleHashCode, and
migrateFinishCode into the parameter-free (¬ReadsWidth) native RCode .exact rResize
single-tape 1 · OPT streaming rebuild migrateActiveCode, proving its distributional execution
and expected potential-amortized instruction bound migrateActiveCode_execRCodeDist.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.migrateActiveCode: parameter-freeRCode .exact rResizesingle-tape1 · OPTstreaming rebuild from(N_old, n, n_init_old)to(targetCap U n, n, n).
Main results #
not_readsWidth_migrateActiveCode:migrateActiveCodedoes not inspect the ambient word width.migrateActiveCode_execRCodeDist: distributionalExecRCodeDistspecification within hardware frontierbase + migratePeakWords U V w N_old n(≤ base + Dynamic.succinctWords 2699 888 U V w n), bounding expected instructions plus post-migrationinEpochPotentialbymigLinearFactor * n.
Parameter-free (¬ReadsWidth) native RCode .exact rResize single-tape 1 · OPT streaming
rebuild from (N_old, n, n_init_old) to (targetCap U n, n, n).
migrateActiveCode does not inspect the ambient word width w (¬ReadsWidth).
Distributional Single-Tape 1 · OPT Rebuild (migrateActiveCode_execRCodeDist):
From any active compacted epoch (N_old, n, n_init_old) (1 ≤ n, EpochValid U n N_old),
migrateActiveCode resamples a fresh uniform QuotHashSeed U (targetCap U n) and streams all n
entries into (targetCap U n, n, n) at base without ever exceeding hardware frontier
base + migratePeakWords U V w N_old n (≤ base + Dynamic.succinctWords 2699 888 U V w n),
bounding expected instructions plus post-migration inEpochPotential by migLinearFactor * n.