Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.SuccinctWhpBufferTrieProg.CheckSlot

Parameter-Free bufCheckSlotGenProg Subroutine #

Certified O_c(1) bufCheckSlot verification reading itemBucket id, itemLoc id, and nodeActive leaf for a log entry id without mutating memory.

Main definitions #

Main results #

@[irreducible]

Parameter-free bufCheckSlot (d = (((cp, base), ep), id)), returning (0, (0, 0)) on none and (1, (b, loc)) on some (b, loc).

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.bufCheckSlotGenProg_spec {c U V w n_max base ep id : ℕ} {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 := bufCheckSlotGenProg (((mkWhpCoreParams c U V w n_max, base), ep), id); (Memory.spec 0).clientState s prog = s ∧ ((Memory.spec 0).clientResult s prog = match SuccinctWhp.bufCheckSlot tr id with | none => (0, 0, 0) | some (b, loc) => (1, b, loc)) ∧ WordRAM.Realization.memoryCost prog s ≤ 12 ∧ Succinct.ValidProg w (base + SuccinctWhp.largeSpaceWhp c U V w n_max) s prog