Memory History Admissibility (ValidHistory) for Succinct Dictionary Programs #
This module proves (Memory.spec w).ValidHistory for all Memory.Prog operations of the
fixed-capacity succinct dictionary (queryBodyProg, insertBodyProg, deletePrepProg, and
deleteFinishProg), discharging the admissibility obligation required when extracting native
Word-RAM Code via Realizes.code_spec. The proofs unfold the unexposed programs of the tail and
slab operation modules and reuse private bound lemmas of SuccinctTailOps, SuccinctSlabPool,
SuccinctSlabMove, SuccinctSlabDemote and SuccinctDeleteOps; from SuccinctSlabOps they need
only the bodies of lastSlotOfProg, pushBackTailWriteProg, pushBackSlotProg and
popBackSlotProg. This module reads all of these through import all.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.Succinct.ValidMem: memory state well-formedness at word widthwand frontier≥ F.Cslib.DataStructure.Dictionary.WordRAM.Succinct.ValidProg: predicate asserting that aMemory.Progclient produces a valid memory history fromswheneverValidMem w F sholds.Cslib.DataStructure.Dictionary.WordRAM.Succinct.dictFrontier: standard dictionary frontierbase + totalSpace U V w n_max h_space.
Main results #
Cslib.DataStructure.Dictionary.WordRAM.Succinct.validProg_queryBody,Cslib.DataStructure.Dictionary.WordRAM.Succinct.validProg_insertBody,Cslib.DataStructure.Dictionary.WordRAM.Succinct.validProg_deletePrep,Cslib.DataStructure.Dictionary.WordRAM.Succinct.validProg_deleteFinish: memory history admissibility for the four top-levelMemory.Progdictionary subroutines.
A memory state is well-formed at word size w and has frontier at least F.
A Memory.Prog client produces a valid memory history from s whenever ValidMem w F s
holds.
For a valid prefix that leaves the state unchanged and returns r, the continuation at r
determines the final state, result and validity. The bind cost adds the prefix cost.
Standard dictionary frontier base + totalSpace U V w n_max h_space.