Empty-to-Active First-Epoch Initialization (initFirstEpochCode) #
Compiles the empty-to-active transition (n = 0 → n' = 1, N₁ = targetCap U 1) on insert u v
into the parameter-free (¬ReadsWidth) native RCode .exact rResize subroutine
initFirstEpochCode, proving its distributional O(1) execution bound
initFirstEpochCode_execRCodeDist.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.initFirstCharge: parameter-freeO(1)expected amortized instruction charge for0 → 1first-epoch creation.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.initFirstEpochCode: parameter-freeRCode .exact rResizeempty-to-active transition (n = 0 → n' = 1).
Main results #
not_readsWidth_initFirstEpochCode:initFirstEpochCodedoes not inspect the ambient word width.initFirstEpochCode_execRCodeDist: distributionalExecRCodeDistspecification withinbase + compactedEpochWords U V w (targetCap U 1) 1, bounding expected instructions plus post-stepinEpochPotentialbyinitFirstCharge.
Parameter-free $O(1)$ expected amortized instruction charge for 0 → 1 first-epoch creation
(initFirstEpochCode).
Empty-to-active epoch transition (n = 0 → n' = 1, N₁ = targetCap U 1) on insert u v:
grows [base + 8, base + compactedEpochWords U V w N₁ 1), writes epoch parameters, samples a
uniform QuotHashSeed U N₁, initializes metadata, and inserts (u, v) (¬ReadsWidth).
initFirstEpochCode does not inspect the ambient word width w (¬ReadsWidth).
Distributional 0 → 1 Epoch Creation (initFirstEpochCode_execRCodeDist):
From the 8-word empty dictionary state (n = 0, N = 0) at base, initFirstEpochCode creates
the first active epoch (N₁, 1, 1) (N₁ = targetCap U 1) containing (u, v) under a fresh
uniform QuotHashSeed U N₁, never exceeding base + compactedEpochWords U V w N₁ 1 and bounding
expected instructions plus post-step inEpochPotential by initFirstCharge.