Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.SuccinctWhpBufferTrieProg.Delete

Parameter-Free bufDeleteGenProg Subroutine #

Certified O_c(1) bufDelete clearing nodeActive leaf := 0 while preserving BufEpFrame and opposite-buffer representations.

Main definitions #

Main results #

@[irreducible]

Parameter-free bufDelete (d = (((cp, base), ep), rKey)).

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.bufDeleteGenProg_spec {c U V w n_max base ep rKey : ℕ} {tr : SuccinctWhp.BufTrie} {mapFn : ℕ → Option (ℕ × ℕ)} {s : Memory.State} (henv : WhpLargeEnv c U V w n_max w base) (hep : ep = 0 ∨ ep = 1) (hrep : BufTrieMemRep base c U V w n_max ep tr s.mem) (hv : SuccinctWhp.ValidBufTrie (SuccinctWhp.cTabWhp c) (SuccinctWhp.bCharWhp n_max) tr mapFn) :
have prog := bufDeleteGenProg (((mkWhpCoreParams c U V w n_max, base), ep), rKey); have s' := (Memory.spec 0).clientState s prog; have tr' := SuccinctWhp.bufDelete (SuccinctWhp.cTabWhp c) (SuccinctWhp.bCharWhp n_max) tr rKey; s'.frontier = s.frontier ∧ WordRAM.Realization.memoryCost prog s ≤ 2 * SuccinctWhp.cTabWhp c + 8 ∧ Succinct.ValidProg w (base + SuccinctWhp.largeSpaceWhp c U V w n_max) s prog ∧ BufTrieMemRep base c U V w n_max ep tr' s'.mem ∧ BufEpFrame base c U V w n_max ep s.mem s'.mem