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 #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compGmPopSlabGenProg,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.CompGmPopSlabPre: slab-pop and pool-compaction subroutine in compactedGlobalMetaand its precondition.
Main results #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compGmPopSlabGenProg_effect,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.realizesBounded_compGmPopSlabGen,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.validProg_compGmPopSlabGen: exactgmPopSlabeffect,RealizesBounded .exact, andValidProg w 0certificate.
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
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.validProg_compGmPopSlabGen {w : ℕ} {d : (CompParams × ℕ) × ℕ} {s : Memory.State} (h : CompGmPopSlabPre w d s) :
Succinct.ValidProg w 0 s (compGmPopSlabGenProg d)