Documentation

CslibFrontier.DataStructure.Dictionary.SuccinctWhpModelTick.InsertBase

Backyard-Pool Allocation and Shared Fresh-Insertion Invariants #

Internal backyard-pool slot allocation (pool_alloc_new) and common CoreFastInv field proofs (FastInsertFreshBase, fastInsertFresh_base) shared by both the colliding-fingerprint buffer branch and the collision-free live-slice branch of fastInsert [BFCKK24].

Main definitions #

Main results #

References #

structure Cslib.DataStructure.Dictionary.SuccinctWhp.FastInsertFreshBase (c U V n_max : ℕ) (θ : SeedWhp c U n_max) (fs : FastState) (dict : State U) (u : Fin U) (v : ℕ) (hasFpCollision : Bool) :

Common coordinate-preservation, dictionary-refinement, backyard-pool, and reduced-key non-collision properties of fastInsertFresh shared by both hasFpCollision branches.

theorem Cslib.DataStructure.Dictionary.SuccinctWhp.fastInsertFresh_base {c U V n_max : ℕ} (hnU : n_max ≤ U) {θ : SeedWhp c U n_max} {fs : FastState} {dict : State U} (hv : ValidFastState c U V n_max θ fs dict) {u : Fin U} {v : ℕ} (hv_lt : v < V) (hno_q : ∀ loc < fs.bktCount (FeistelQuotient.feistelBucket (bWhp n_max) (bktHash c U n_max θ.1) ↑u), fs.quotArr (FastState.physSlot n_max fs (FeistelQuotient.feistelBucket (bWhp n_max) (bktHash c U n_max θ.1) ↑u) loc) ≠ FeistelQuotient.keyQuotient (bWhp n_max) ↑u) (hX_lt : fs.bktCount (FeistelQuotient.feistelBucket (bWhp n_max) (bktHash c U n_max θ.1) ↑u) < totalLocalCoordsWhp n_max) (htop_pos : capFrontWhp n_max ≤ fs.bktCount (FeistelQuotient.feistelBucket (bWhp n_max) (bktHash c U n_max θ.1) ↑u) → 0 < fs.poolFreeTop) (hcur_lk_none : bufLookup (cTabWhp c) (bCharWhp n_max) (fs.buf fs.curEp) (fpReducedKey c U n_max θ.2 u) = none) (hold_lk_none : fs.rebStage ≤ 3 → bufLookup (cTabWhp c) (bCharWhp n_max) (fs.buf fs.oldEp) (fpReducedKey c U n_max θ.2 u) = none) (hasFpCollision : Bool) :
FastInsertFreshBase c U V n_max θ fs dict u v hasFpCollision

Establishes FastInsertFreshBase when u is absent from fs and all fresh-insertion capacity and buffer-collision guards pass.