Documentation

CslibFrontier.DataStructure.Dictionary.SuccinctWhpFastProb.FastDeleteClean

fastDelete Preservation of Clean-Window State for SuccinctWhpFastProb #

Internal proof (fastDelete_clean_props) that fastDelete preserves epochClock, curEp, (fs.buf fs.curEp).itemAlloc, bufEverPresent, stageWorkRemaining ≤, and SaltBoundAt (not re-exported by SuccinctWhpFastProb).

theorem Cslib.DataStructure.Dictionary.SuccinctWhp.fastDelete_clean_props {c U V n_max : ℕ} {θ : SeedWhp c U n_max} {W_keys : Finset (Fin U)} {fs : FastState} {dict : State U} (hv : ValidFastState c U V n_max θ fs dict) (hdom_sub : ↑(dom dict) ⊆ ↑W_keys) (hsalt_cur : SaltBoundAt c U n_max θ W_keys fs) (u : Fin U) :
have fs' := fastDelete c U n_max θ fs u; fs'.epochClock = fs.epochClock ∧ fs'.curEp = fs.curEp ∧ (fs'.buf fs'.curEp).itemAlloc = (fs.buf fs.curEp).itemAlloc ∧ (∀ k < 2 ^ (cTabWhp c * bCharWhp n_max), bufEverPresent (cTabWhp c) (bCharWhp n_max) (fs'.buf fs'.curEp) k = bufEverPresent (cTabWhp c) (bCharWhp n_max) (fs.buf fs.curEp) k) ∧ stageWorkRemaining c n_max fs' ≤ stageWorkRemaining c n_max fs ∧ SaltBoundAt c U n_max θ W_keys fs'