Compacted Bucket-Level and Feistel-Dispatched Dictionary Operations in Memory.Prog #
This module completes the Memory.Prog subroutine layer (¬ReadsWidth, certified via
RealizesBounded .exact) for in-epoch operations on the compacted resizable succinct dictionary,
coupling every mutating and read-only path via FixedCoupled to the fixed-capacity reference
operations in SuccinctBucketOps.lean, SuccinctDeleteOps.lean, and SuccinctHash.lean:
compGrowDeltaGenProg,compShrinkDeltaGenProg: overflow-free0..2-word item-stream delta evaluators for pre-insertgrowZeroCodeand post-deleteshrinkCode;compFeistelCoordsProg: shared Feistel(b, q, m)coordinate extractor;compQueryWithHashGenProg: Feistel-dispatched lookup returnings_abs u;compInsertSearchWithHashGenProg,compWritePhysValGenProg,compInsertAppendNewGenProg: split two-phase insertion allowing the Resizable Word RAM caller to grow the hardware frontier bycompactedItemWords U V w N (n + 1) - compactedItemWords U V w N n ≤ 2words only on a miss (found = 0) before writing the new dense slot;compDeletePrepWithHashGenProg,compDeleteFinishWithHashGenProg: two-phase compacted deletion coupled todeletePrepWithHashProganddeleteFinishWithHashProg(via internal payload-copy and bucket-level helpers).
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compGrowDeltaGenProg,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compShrinkDeltaGenProg: overflow-free word-delta evaluators for item-count transitionsn → n + 1andn → n - 1.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compQueryWithHashGenProg: compacted Feistel-dispatched dictionary lookup.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compInsertSearchWithHashGenProg,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compWritePhysValGenProg,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compInsertAppendNewGenProg: compacted split insertion subroutines (search, in-place value update, and post-grow slot append).Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compDeletePrepWithHashGenProg,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compDeleteFinishWithHashGenProg: compacted two-phase Feistel-dispatched deletion subroutines.
Main results #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compQueryWithHashGenProg_dict_spec: dictionary-level lookup correctness andO(1 + probeExcess)memoryCostbound.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compInsertHit_dict_spec,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compInsertMiss_dict_spec: dictionary-levelDictStateInvandFixedCoupledpreservation and amortizedmemoryCostbounds for hit (in-place update) and miss (post-grow append) insertion paths.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compDeleteWithHashGenProg_dict_spec: dictionary-levelDictStateInvandFixedCoupledpreservation and amortizedmemoryCostbound for two-phase compacted deletion.
References #
@[simp]