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 #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compLastSlotOfGenProg,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.CompLastSlotOfPre: resolver for the last physical slotslotOf N gm b (bCount N gm b - 1)in bucketb.Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compResolveIndexedSlotGenProg,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.CompResolveIndexedSlotPre: resolver for indexed bucket slotj < effBucketCap N.
Main results #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.realizesBounded_compLastSlotOfGen,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.validProg_compLastSlotOfGen:RealizesBounded .exactandValidProg w 0certificates forcompLastSlotOfGenProg.realizesBounded_compResolveIndexedSlotGen,validProg_compResolveIndexedSlotGen:RealizesBounded .exactandValidProg w 0certificates forcompResolveIndexedSlotGenProg.
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.clientState_compLastSlotOfGenProg (d : (CompParams × ℕ) × ℕ) (s : Memory.State) :
@[simp]
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.runClient_state_compLastSlotOfGenProg (d : (CompParams × ℕ) × ℕ) (s : Memory.State) :
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.
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.validProg_compLastSlotOfGen {w : ℕ} {d : (CompParams × ℕ) × ℕ} {s : Memory.State} (h : CompLastSlotOfPre w d s) :
Succinct.ValidProg w 0 s (compLastSlotOfGenProg d)
Resolve indexed local slot j < effBucketCap N of bucket b to slotOf N gm b j.
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.clientState_compResolveIndexedSlotGenProg (d : ((CompParams × ℕ) × ℕ) × ℕ) (s : Memory.State) :
@[simp]
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.runClient_state_compResolveIndexedSlotGenProg (d : ((CompParams × ℕ) × ℕ) × ℕ) (s : Memory.State) :
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.clientResult_compResolveIndexedSlotGenProg {U V w N metaBase b j : ℕ} {s : Memory.State} (hslot : Succinct.SlotStoreInv N (compGmAt metaBase U w N s.mem)) (hb : b < FeistelQuotient.numBuckets N) (hj_bc : j < Succinct.bCount N (compGmAt metaBase U w N s.mem) b) (hj_cap : j < SuccinctBucket.effBucketCap N) :
(Memory.spec 0).clientResult s (compResolveIndexedSlotGenProg (((mkCompParams U V w N, metaBase), b), j)) = Succinct.slotOf N (compGmAt metaBase U w N s.mem) b j
Precondition for resolving indexed slot entries.
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.validProg_compResolveIndexedSlotGen {w : ℕ} {d : ((CompParams × ℕ) × ℕ) × ℕ} {s : Memory.State} (h : CompResolveIndexedSlotPre w d s) :