Compacted Feistel-Dispatched Lookup and Split Insertion (Memory.Prog) #
Implements compQueryWithHashGenProg, compInsertSearchWithHashGenProg,
compWritePhysValGenProg, and compInsertAppendNewGenProg along with their
RealizesBounded .exact and ValidProg certificates.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compQueryWithHashGenProg: Feistel-dispatched compacted lookup.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compInsertSearchWithHashGenProg,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compWritePhysValGenProg,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compInsertAppendNewGenProg: split two-phase compacted insertion subroutines.
Resolve physical slot phys through denseOfPhysGenProg and overwrite its value with v_new
(¬ReadsWidth).
Precondition for compWritePhysValGenProg.
Feistel-dispatched compacted dictionary lookup (¬ReadsWidth):
d = ((cp, (metaBase, itemBase)), (u, h_q)), returning Option ℕ.
Phase 1 of split compacted insertion (¬ReadsWidth):
computes Feistel coordinates (b, q, m) from (u, h_q), searches bucket (b, m) for q, and
returns ((found, phys), (b, m)).
Phase 2b (miss path) of split compacted insertion (¬ReadsWidth):
after growZeroCode has extended s.frontier to cover n + 1 dense items, appends (q, v) to
bucket b (q = u >>> cpBucketBits cp) and prepends the new slot to micro-chain (b, m) if
indexed.
Precondition for compInsertAppendNewGenProg.