Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.SuccinctWhpBTreeProg.Delete

Certified SWAR B+-Tree Lazy Leaf Deletion (btreeDeleteGenProg) #

Parameter-free Memory.Prog implementation, O(1) specification, and Realizes .exact certificate for btreeDelete.

Main definitions #

Main results #

@[irreducible]

Parameter-free btreeDelete (d = (((cp, base), sIdx), q)).

theorem Cslib.DataStructure.Dictionary.WordRAM.SuccinctWhp.btreeDeleteGenProg_spec {c U V w n_max base sIdx insCount q : ℕ} {sl : SuccinctWhp.BTreeSlice} {mapFn : ℕ → Option ℕ} {s : Memory.State} (henv : WhpLargeEnv c U V w n_max w base) (hsIdx : sIdx < 3 * SuccinctWhp.numBucketsWhp n_max) (hins : insCount ≤ 8 * FeistelQuotient.slabScale n_max ^ 12) (hrep : BTreeSliceMemRep base c U V w n_max sIdx sl s.mem) (hv : SuccinctWhp.ValidWhpSlice n_max insCount sl mapFn) (hq : q < 2 ^ SuccinctWhp.fpBitsWhp n_max) :
have prog := btreeDeleteGenProg (((mkWhpCoreParams c U V w n_max, base), sIdx), q); have s' := (Memory.spec 0).clientState s prog; have sl' := SuccinctWhp.btreeDelete (SuccinctWhp.fpBitsWhp n_max) (SuccinctWhp.valLaneBitsWhp n_max) (SuccinctWhp.tMinWhp n_max) sl q; s'.frontier = s.frontier ∧ WordRAM.Realization.memoryCost prog s ≤ 274 ∧ Succinct.ValidProg w (base + SuccinctWhp.largeSpaceWhp c U V w n_max) s prog ∧ BTreeSliceMemRep base c U V w n_max sIdx sl' s'.mem ∧ (∀ sIdx' < 3 * SuccinctWhp.numBucketsWhp n_max, sIdx' ≠ sIdx → ∀ (sl₂ : SuccinctWhp.BTreeSlice), BTreeSliceMemRep base c U V w n_max sIdx' sl₂ s.mem → BTreeSliceMemRep base c U V w n_max sIdx' sl₂ s'.mem) ∧ ∀ (a : ℕ), a < base + offBtMeta c U V w n_max ∨ base + offTrieChild0 c U V w n_max ≤ a → s'.mem a = s.mem a