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.realizes_fastDeleteGen :
WordRAM.Realization.Realizes WordRAM.Basis.exact fastDeleteGenProg WordRAM.Realization.WordEncoding.encode
WordRAM.Realization.WordEncoding.encode
(fun (w : ℕ) (x : (WhpParams × ℕ) × ℕ) (s : Memory.State) =>
match x with
| ((wp, base), u_val) => ValidFastMemPre w wp base s ∧ u_val < wpU wp.1)
fun (x : (WhpParams × ℕ) × ℕ) (x_1 : Memory.State) => 0
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'