Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.ResizableSuccinct.Dispatch.SlotOps.ResolveSlot

Compacted Last-Slot and Indexed-Slot Resolvers (RealizesBounded .exact) #

Implements compLastSlotOfGenProg and compResolveIndexedSlotGenProg in Memory.Prog (¬ReadsWidth), with exact clientResult specs and RealizesBounded .exact / ValidProg w 0 certificates.

Main definitions #

Main results #

Resolve physical slot slotOf N gm b (bCount N gm b - 1) of the last item in bucket b.

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.clientResult_compLastSlotOfGenProg {U V w N metaBase b : ℕ} {s : Memory.State} (hslot : Succinct.SlotStoreInv N (compGmAt metaBase U w N s.mem)) (hb : b < FeistelQuotient.numBuckets N) (hbc : 1 ≤ Succinct.bCount N (compGmAt metaBase U w N s.mem) b) :
(Memory.spec 0).clientResult s (compLastSlotOfGenProg ((mkCompParams U V w N, metaBase), b)) = Succinct.slotOf N (compGmAt metaBase U w N s.mem) b (Succinct.bCount N (compGmAt metaBase U w N s.mem) b - 1)

Precondition for retrieving the last physical slot of bucket b.

Resolve indexed local slot j < effBucketCap N of bucket b to slotOf N gm b j.