Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.SuccinctWhpBufferTrieProg.EverPresent

Parameter-Free bufEverPresentGenProg Subroutine #

Certified O_c(1) bufEverPresent query checking whether rKey has ever been inserted into the epoch character-trie buffer ep.

Main definitions #

Main results #

@[irreducible]

Parameter-free bufEverPresent (d = (((cp, base), ep), rKey)), returning 1 or 0.

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.bufEverPresentGenProg_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) :