Fast Deletion Substep 1 (fastDeleteRemoveGenProg) #
Assembles Substep 1 (fastDeleteRemove) combining epoch-buffer, live-slice, Overmars-slice, and
rebuild-slice deletions.
Main definitions #
Main results #
theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.realizes_fastDeleteRemoveGen :
WordRAM.Realization.Realizes WordRAM.Basis.exact fastDeleteRemoveGenProg WordRAM.Realization.WordEncoding.encode
WordRAM.Realization.WordEncoding.encode
(fun (w : ℕ) (x : (((WhpParams × ℕ) × ℕ) × ℕ) × ℕ) (s : Memory.State) =>
match x with
| ((((wp, base), b), loc_del), u_val) =>
∃ (c : ℕ) (U : ℕ) (V : ℕ) (w₀ : ℕ) (n_max : ℕ) (θ : SuccinctWhp.SeedWhp c U n_max) (fs : SuccinctWhp.FastState)
(dict : State U),
WhpLargeEnv c U V w₀ n_max w base ∧ wp = mkWhpParams c U V w₀ n_max ∧ SeedWhpMemRep base c U w₀ n_max θ s.mem ∧ FastMemRep base c U V w₀ n_max fs s.mem ∧ SuccinctWhp.ValidFastState c U V n_max θ fs dict ∧ b < SuccinctWhp.numBucketsWhp n_max ∧ loc_del < fs.bktCount b ∧ u_val < U)
fun (x : (((WhpParams × ℕ) × ℕ) × ℕ) × ℕ) (x_1 : Memory.State) => 0
theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.fastDeleteRemoveGenProg_fastStep {c U V w n_max base b loc_del : ℕ} {θ : SuccinctWhp.SeedWhp c U n_max} {fs : SuccinctWhp.FastState} {dict : State U} {s : Memory.State} (u : Fin U) (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) (hb : b < SuccinctWhp.numBucketsWhp n_max) (hld : loc_del < fs.bktCount b) :
have prog := fastDeleteRemoveGenProg ((((mkWhpParams c U V w n_max, base), b), loc_del), ↑u);
have s' := (Memory.spec 0).clientState s prog;
WordRAM.Realization.memoryCost prog s ≤ 2 * SuccinctWhp.cTabWhp c + 2 * hashEvalCostWhp c + 870 ∧ Succinct.ValidProg w (base + SuccinctWhp.largeSpaceWhp c U V w n_max) s prog ∧ FastStateStep base c U V w n_max θ (SuccinctWhp.fastDeleteRemove c U n_max θ fs u b loc_del) s s'