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 #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compRemoveTailGMOnlyGenProg,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.CompRemoveTailGMOnlyPre: metadata-only tail-descriptor removal subroutine and its precondition.
Main results #
Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.compRemoveTailGMOnlyGenProg_effect,Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.validProg_compRemoveTailGMOnlyGen: exactgmRemoveTaileffect andValidProg w 0certificate.realizesBounded_compRemoveTailGMOnlyGen:RealizesBounded .exactcertificate forcompRemoveTailGMOnlyGenProg.
Remove the last tail descriptor of bucket b in compacted GlobalMeta (gmRemoveTail)
without touching item arrays (¬ReadsWidth).
@[simp]
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.
theorem Cslib.DataStructure.Dictionary.WordRAM.ResizableSuccinct.validProg_compRemoveTailGMOnlyGen {w : ℕ} {d : (CompParams × ℕ) × ℕ} {s : Memory.State} (h : CompRemoveTailGMOnlyPre w d s) :