Memory.Prog Bit-Packed Array Primitives and Uniform Realizes Certificates #
This module wraps the overflow-free bit-packed array operations (readPacked, writePacked) from
CslibFrontier.DataStructure.Dictionary.WordRAM.BitPackedArray as Memory.Prog operations
(readPackedProg, writePackedProg) together with their Memory.spec functional, admissibility,
and cost lemmas and uniform parameter-free Realizes .exact certificates (realizes_readPackedGen,
realizes_writePackedGen).
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.readPackedProg,Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.writePackedProg:Memory.Progwrappers for bit-packed array reads and writes atbase + offset.Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.readPackedGenProg,Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.writePackedGenProg: parameter-freeMemory.Progwrappers forRealizes .exact.
Main results #
Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.clientResult_readPackedProg,Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.clientState_readPackedProg,Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.memoryCost_readPackedProg,Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.validHistory_readPackedProg:Memory.speccharacterization and admissibility ofreadPackedProg.Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.clientResult_writePackedProg,Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.clientState_writePackedProg,Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.memoryCost_writePackedProg,Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.validHistory_writePackedProg,Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.wellFormed_clientState_writePackedProg:Memory.speccharacterization, admissibility, and well-formedness preservation ofwritePackedProg.Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.readPackedCode_not_readsWidth,Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.writePackedCode_not_readsWidth: width-opcode freedom (¬ReadsWidth) ofreadPackedCodeandwritePackedCode.Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.realizes_readPackedGen,Cslib.DataStructure.Dictionary.WordRAM.BitPackedArray.realizes_writePackedGen: uniform parameter-freeRealizes .exactcertificates forreadPackedGenProgandwritePackedGenProg.
Memory.Prog operation reading the k-bit entry at index idx from a bit-packed array at
base + offset on a w-bit machine.
Memory.Prog operation writing val (< 2 ^ k) into the k-bit entry at index idx of a
bit-packed array at base + offset on a w-bit machine.
writePackedProg preserves Memory.WellFormed w at every interpreter width w' whenever
0 < w and k ≤ w.
readPackedCode does not invoke Op.width.
writePackedCode does not invoke Op.width.
Parameter-free Memory.Prog wrapper for readPackedProg taking
(((base, offset), (k, w)), idx).
Uniform parameter-free Realizes .exact certificate for readPackedGenProg.
Uniform parameter-free Realizes .exact certificate for writePackedGenProg.