Register Budget rResize, epochEmb, ABI Registers, and Migration Cost Factors #
Parameter-free register space rResize, injective embedding epochEmb : Fin rEpoch → Fin rResize,
named register aliases mBase..mCnt, and parameter-free exchange/linear cost factors
migFactor and migLinearFactor for epoch-boundary transitions on the Resizable Word RAM.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.rResize,epochEmb,mReg: parameter-free register budget,rEpochembedding, and fixed register bank0..159.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.mBase,mTag,mArgU,mArgV,mOutTag,mOutVal,mK,mRes,mCur,mIdx,mZero,mOne,mCnt: caller-visible ABI and shared control registers.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.migFactor,migLinearFactor: parameter-free exchange and per-item migration cost factors.
Main results #
rEpoch_le_rResize,le_rResize_160,epochEmb_injective,mReg_ne,mGrow_nodup: register-space bounds, injectivity, and distinctness ofgrowZeroCoderegisters.
Parameter-free register budget for the full resizable succinct dictionary (rEpoch plus
new-epoch parameter banks 90..145, migration control registers 146..159, and migration
RealizesBounded scratch 160..).
Persistent base-address register 0 (= epochEmb rBase).
Operation tag input register 2 (= epochEmb rTag).
Input key register 3 (= epochEmb rArgU).
Input value register 4 (= epochEmb rArgV).
Output presence tag register 5 (= epochEmb rOutTag).
Output value register 6 (= epochEmb rOutVal).
Word count delta / mask scratch register 7.
Result / random sample scratch register 8.
Current address / pointer scratch register 9.
Loop index / end pointer scratch register 10.
Constant-0 register 11.
Constant-1 register 12.
Active element count n register 13.
Combined parameter-free exchange factor dominating inEpochFactor and all migration
RealizesBounded witnesses.
Parameter-free linear instruction factor 120000 * migFactor per migrated item (1 ≤ n),
covering migrateSetupCode, resampleHashCode, migrateFinishCode, and the post-migration
inEpochPotential of the rebuilt epoch.