Documentation

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

Compacted GlobalMeta Tail Removal (compRemoveTailGMOnlyGenProg) #

Implements compRemoveTailGMOnlyGenProg in Memory.Prog (¬ReadsWidth), proving its exact gmRemoveTail state effect, CompGmFrame preservation, RealizesBounded .exact, and ValidProg w 0 admissibility.

Main definitions #

Main results #

Remove the last tail descriptor of bucket b in compacted GlobalMeta (gmRemoveTail) without touching item arrays (¬ReadsWidth).

theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compRemoveTailGMOnlyGenProg_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) (htail : Succinct.TailBijection N (compGmAt metaBase U w N s.mem) (fun (b' : ℕ) => compGmAt metaBase U w N s.mem (Succinct.gmRIdx b')) (compGmAt metaBase U w N s.mem 1)) (hr_pos : 1 ≤ compGmAt metaBase U w N s.mem (Succinct.gmRIdx b)) :
have s' := (Memory.spec 0).clientState s (compRemoveTailGMOnlyGenProg ((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.gmRemoveTail N (compGmAt metaBase U w N s.mem) b

Precondition for removing only the tail descriptor in global metadata.