Deterministic Singleton Deletion and Empty-Epoch Collapse (deleteLastOneCode) #
Compiles singleton deletion (n = 1 → 1 or 1 → 0) on delete u into the parameter-free
(¬ReadsWidth) native RCode .exact rResize subroutine deleteLastOneCode, proving its O(1)
deterministic RDemonicExec specification deleteLastOneCode_demonicExec.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.deleteLastOneCharge: parameter-freeO(1)deterministic instruction charge forn = 1deletion and empty-epoch collapse.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.deleteLastOneCode: parameter-freeRCode .exact rResizesingleton-epoch deletion and empty-header collapse subroutine.
Main results #
not_readsWidth_deleteLastOneCode:deleteLastOneCodedoes not inspect the ambient word width.deleteLastOneCode_demonicExec: deterministicRDemonicExecspecification collapsing to the 8-word emptyCompactedRepon key match and preservingCompactedSplitRepandinEpochPotentialon key miss withindeleteLastOneChargeinstructions.
Parameter-free $O(1)$ deterministic instruction charge for n = 1 deletion and empty-epoch
collapse (deleteLastOneCode).
Singleton deletion (n = 1 → 1 or 1 → 0) on delete u: reconstructs the sole live key
u₀ at dense slot 0, and on u₀ = u zeros (N, n, n_init) at base + 5..7 and shrinks back
to the 8-word empty header (¬ReadsWidth).
deleteLastOneCode does not inspect the ambient word width w (¬ReadsWidth).
Deterministic Singleton Delete (deleteLastOneCode_demonicExec):
From an active singleton epoch (n = 1, EpochValid U 1 N) at base with seed θ:
- when
(s_abs u).isSome(Function.update s_abs u none = Dictionary.empty U),deleteLastOneCodecollapses to the 8-word emptyCompactedRep U V w 0 0 0in≤ deleteLastOneChargesteps; - when
¬(s_abs u).isSome(Function.update s_abs u none = s_abs),deleteLastOneCodepreservesCompactedSplitRepwith the same seedθand unchangedinEpochPotentialin≤ deleteLastOneChargesteps.