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:
migrateActiveCode: single-tape1 · OPTstreaming 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, never2 · OPT), sampling a fresh uniformQuotHashSeed U (targetCap U n), and bounding expected instructions plus post-migrationinEpochPotentialbymigLinearFactor * n.initFirstEpochCode: empty-to-active transition (n = 0 → n' = 1,N₁ = targetCap U 1) oninsert u vinO(1)instructions withinbase + compactedEpochWords U V w (targetCap U 1) 1.deleteLastOneCode: singleton deletion (n = 1 → 1or1 → 0) ondelete uinO(1)deterministic instructions, collapsing to the 8-word empty header when the sole key matchesu.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.rResize,epochEmb,migFactor,migLinearFactor,initFirstCharge,deleteLastOneCharge: parameter-free register budget,rEpochembedding, and cost constants.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.migrateActiveCode,initFirstEpochCode,deleteLastOneCode: parameter-freeRCode .exact rResizeepoch-boundary subroutines.
Main results #
not_readsWidth_migrateActiveCode,not_readsWidth_initFirstEpochCode,not_readsWidth_deleteLastOneCode: width-independence (¬ReadsWidth) of all three subroutines.migrateActiveCode_execRCodeDist:ExecRCodeDistspecification for single-tape1 · OPTcapacity doubling and halving.initFirstEpochCode_execRCodeDist:ExecRCodeDistspecification for0 → 1epoch creation.deleteLastOneCode_demonicExec:RDemonicExecspecification forn = 1deletion and empty collapse.