Documentation

CslibFrontier.DataStructure.Dictionary.SuccinctWhpModelTick.FastInsert

Fast-Mode Insertion Specification (ValidFastState.fastInsert_spec) #

Assembles the in-place overwrite branch and the colliding-buffer / live-slice fresh-insertion branches with Overmars bucket rebuilding (overmarsStep_spec) to prove ValidFastState.fastInsert_spec [BFCKK24].

Main results #

References #

theorem Cslib.DataStructure.Dictionary.SuccinctWhp.ValidFastState.fastInsert_spec {c U V n_max : ℕ} (hnU : n_max ≤ U) {θ : SeedWhp c U n_max} {fs fs' : FastState} {dict : State U} (hv : ValidFastState c U V n_max θ fs dict) {u : Fin U} {v : ℕ} (hvalid : Dynamic.valid V n_max dict (Dynamic.Op.insert u v)) (hins : fastInsert c U n_max θ fs u v = some fs') :
CoreFastInv c U V n_max θ fs' (Dynamic.step dict (Dynamic.Op.insert u v)).1 ∧ (∀ b' < numBucketsWhp n_max, OvermarsBucketInv c U n_max θ fs' b') ∧ ValidEpochStage c U n_max θ fs' ∧ fs'.epochClock = fs.epochClock

Whenever fastInsert succeeds (= some fs'), fs' refines Dynamic.step dict (.insert u v) and preserves CoreFastInv, OvermarsBucketInv on all buckets, and ValidEpochStage (hence also ValidEpochStagePreTick).