Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.ResizableSuccinct.Dispatch.BucketOps.QueryInsert

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 #

Resolve physical slot phys through denseOfPhysGenProg and overwrite its value with v_new (¬ReadsWidth).

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.