Memory.Prog Bit-Slice and Dense Pair-Stream Primitives via realize #
This module implements overflow-free Memory.Prog leaf accessors for the compacted epoch layout
and certifies every primitive with RealizesBounded .exact (¬ReadsWidth) via by realize:
- overflow-free bit-slice and packed-array accessors (
readBitSliceGenProg,writeBitSliceGenProg,readPackedCompGenProg,writePackedCompGenProg); - dense
(quotient, value)pair-stream accessors (readCompQuotGenProg,writeCompQuotGenProg,readCompValGenProg,writeCompValGenProg).
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.readBitSliceGenProg,writeBitSliceGenProg,readPackedCompGenProg,writePackedCompGenProg: bit-slice primitives.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.readCompQuotGenProg,writeCompQuotGenProg,readCompValGenProg,writeCompValGenProg: dense item streamMemory.Progprimitives.
Main results #
realizesBounded_readBitSliceGen,realizesBounded_writeBitSliceGen,realizesBounded_readPackedCompGen,realizesBounded_writePackedCompGen,realizesBounded_readCompQuotGen,realizesBounded_writeCompQuotGen,realizesBounded_readCompValGen,realizesBounded_writeCompValGen: parameter-freeRealizesBounded .exactcertificates.
References #
Section 1: Memory.Prog Simp Lemmas #
Section 2: Overflow-Free Bit-Slice and Packed-Array Primitives #
Precondition for readBitSliceGenProg.
Precondition for readPackedCompGenProg.
Section 3: Dense (quotient, value) Pair-Stream Memory.Prog Primitives #
Precondition for compQOffsetProg.
Entry precondition for dense (quotient, value) stream operations at itemBase.
Entry precondition for compacted metadata and circular-window operations at metaBase.
Read compQuotAt itemBase U V w N m_items s.mem d in Memory.Prog.
Precondition for readCompQuotGenProg.
Write q into compQuotAt at dense index d in Memory.Prog.
Precondition for writeCompQuotGenProg.
Read compValAt itemBase U V w N m_items s.mem d in Memory.Prog.
Precondition for readCompValGenProg.
Write v into compValAt at dense index d in Memory.Prog.
Precondition for writeCompValGenProg.