Documentation

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

Compacted GlobalMeta Slab Pop and Pool Compaction (compGmPopSlabGenProg) #

Implements compGmPopSlabGenProg in Memory.Prog (¬ReadsWidth), combining top-slab unlinking and swap-with-last pool compaction with exact gmPopSlab state effects, CompGmFrame preservation, RealizesBounded .exact, and ValidProg w 0 admissibility.

Main definitions #

Main results #

Pop the top slab of bucket b and compact the slab pool in GlobalMeta (gmPopSlab, ¬ReadsWidth).

Precondition for popping a slab in global metadata.

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compGmPopSlabGenProg_effect {metaBase itemBase U V w N m_items b : ℕ} (hw : 0 < w) (hitem : metaBase + offCompItems U w N ≤ itemBase) (hb_pos : 0 < FeistelQuotient.bucketBits N) (hb : b < FeistelQuotient.numBuckets N) (s : Memory.State) (hslab : Succinct.SlabBijection N (compGmAt metaBase U w N s.mem) (fun (b' : ℕ) => compGmAt metaBase U w N s.mem (Succinct.gmQIdx b')) (compGmAt metaBase U w N s.mem 0)) (hq_pos : 1 ≤ compGmAt metaBase U w N s.mem (Succinct.gmQIdx b)) :
have s' := (Memory.spec 0).clientState s (compGmPopSlabGenProg ((mkCompParams U V w N, metaBase), b)); CompGmFrame metaBase itemBase U V w N m_items s s' ∧ compGmAt metaBase U w N s'.mem = Succinct.gmPopSlab N (compGmAt metaBase U w N s.mem) b