Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.SuccinctWhpFastOpProg.FastDelete

Fast-Mode Deletion (fastDeleteGenProg) #

Worst-case O_c(1) parameter-free fast-mode deletion program and FastStateStep realization proof combining fastDeleteRemove, fastDeleteMoveLast, fastDeleteShrink, and overmarsStep.

Main definitions #

Main results #

@[irreducible]

Fast-mode deletion fastDeleteGenProg (d = ((wp, base), u_val)), refining fastDelete in O_c(1) worst-case memory operations.

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.fastDeleteGenProg_fastStep {c U V w n_max base : ℕ} {θ : SuccinctWhp.SeedWhp c U n_max} {fs : SuccinctWhp.FastState} {dict : State U} {s : Memory.State} (henv : WhpLargeEnv c U V w n_max w base) (hseed : SeedWhpMemRep base c U w n_max θ s.mem) (hrep : FastMemRep base c U V w n_max fs s.mem) (hv : SuccinctWhp.ValidFastState c U V n_max θ fs dict) (u : Fin U) :
have prog := fastDeleteGenProg ((mkWhpParams c U V w n_max, base), ↑u); have s' := (Memory.spec 0).clientState s prog; WordRAM.Realization.memoryCost prog s ≤ 26 * SuccinctWhp.cTabWhp c + 41 * hashEvalCostWhp c + 46001 ∧ Succinct.ValidProg w (base + SuccinctWhp.largeSpaceWhp c U V w n_max) s prog ∧ FastStateStep base c U V w n_max θ (SuccinctWhp.fastDelete c U n_max θ fs u) s s'