Pure Slab Bijection Preservation (gmPushSlab, gmPopSlab) #
This module defines the pure GlobalMeta slab-stack updates (gmPushSlab, gmUnlinkTopSlab,
gmCompactSlab, gmPopSlab) and proves that they preserve SlabBijection and TailBijection
when promoting or demoting a full slab of K = slabSize n_max items.
Main definitions #
Cslib.DataStructure.Dictionary.WordRAM.Succinct.gmPushSlab: pureGlobalMetaupdate allocating a new full slab as the top slab of bucketb.Cslib.DataStructure.Dictionary.WordRAM.Succinct.gmUnlinkTopSlab: Stage A of slab pop, unlinking the top slab of bucketb.Cslib.DataStructure.Dictionary.WordRAM.Succinct.gmCompactSlab: Stage B of slab pop, compacting the physical slab pool into the vacated slabp_del.Cslib.DataStructure.Dictionary.WordRAM.Succinct.gmPopSlab: compositeGlobalMetaupdate popping the top slab of bucketband compacting the slab pool.
Main results #
Cslib.DataStructure.Dictionary.WordRAM.Succinct.gmPushSlab_fields: field-by-field description ofgmPushSlab.Cslib.DataStructure.Dictionary.WordRAM.Succinct.tailBijection_gmPushSlab,Cslib.DataStructure.Dictionary.WordRAM.Succinct.slabBijection_gmPushSlab:gmPushSlabpreservesTailBijectionandSlabBijection.Cslib.DataStructure.Dictionary.WordRAM.Succinct.gmUnlinkTopSlab_fields,Cslib.DataStructure.Dictionary.WordRAM.Succinct.gmCompactSlab_fields_lt: field-by-field descriptions of the two stages ofgmPopSlab.Cslib.DataStructure.Dictionary.WordRAM.Succinct.tailBijection_gmPopSlab,Cslib.DataStructure.Dictionary.WordRAM.Succinct.slabBijection_gmPopSlab:gmPopSlabpreservesTailBijectionandSlabBijection.
Section 1: Pure gmPushSlab and SlabBijection preservation #
Field-by-field description of gmPushSlab across all GlobalMeta sub-arrays.
gmPushSlab preserves TailBijection.
gmPushSlab assigns physical slab gm 0 to (b, gm (gmQIdx b)) and preserves
SlabBijection.
Section 2: Pure gmUnlinkTopSlab, gmCompactSlab, gmPopSlab and SlabBijection #
Field-by-field description of gmUnlinkTopSlab (Stage A of slab pop).
Field-by-field description of gmCompactSlab when p_del < gmA 0 - 1 (Stage B of slab pop).
gmPopSlab decrements gm 0 and gm (gmQIdx b) while preserving all tail fields.
gmPopSlab preserves TailBijection.
gmPopSlab relocates the last physical slab gm 0 - 1 into gm (gmSlabTopIdx b) and
preserves SlabBijection.