Per-Operation Fast-Path Hit Probability for the WHP Succinct Dynamic Dictionary #
This module connects the trailing-window hash-seed event GoodSeedOnWindow (proved to hold with
probability at least 1 - (max n_max 1)⁻¹ ^ c in SuccinctWhpProb) to the deterministic pure
transition machine whpRunPure / whpStepPure (SuccinctWhpModelTick):
- Epoch rebuild potential (
stageWorkRemaining): tracks remaining background ticks across Stages0 .. 5ofepochTick. UnderGoodSeedOnWindow, every dirty bucket admits a collision-free salt< sMaxWhp c n_max, bounding total rebuild ticks per epoch bystageWorkMax c n_max < qEpochWhp n_maxsoepochTicknever aborts at rollover. - Clean-epoch invariant (
CleanWindowFast): bounds(fs.buf fs.curEp).itemAllocby the number of colliding window insertions already encountered (< 2 * sMaxWhp c n_max), ensuring none of the capacity, backyard-pool, Stage-1rKey, buffer-cap, or rollover guards infastStepPureever fires inside a clean epoch. - Self-healing / rollover burn-in (
HasBurnInBudget): within at mostqEpochWhp n_maxoperations of entering the trailing windowwindowSuffix(length = 2 * qEpochWhp n_max + 2), eithertrySelfHealor an epoch rollover deterministically placeswhpRunPureintoCleanWindowFast, where it remains through the target operationop. - Master per-operation fast-branch probability theorem (
toOuterMeasure_not_isFastStepHit_le): for everyc, U, V, n_maxwithn_max ≤ Uand every admissible oblivious sequenceops_prev ++ [op], the probability overθ ~ seedLawWhp c U n_maxthat stepopfails to take the fast branch (.smallbelowwhpThreshold c, or.fastwithfastStepPure = some _at or abovewhpThreshold c) is at most(max n_max 1 : ℝ≥0∞)⁻¹ ^ c.
Main definitions #
Cslib.DataStructure.Dictionary.SuccinctWhp.IsFastStepHit: predicate indicating thatwhpStepPuretakes the fast branch (.smallor.fasthit).
Main results #
Cslib.DataStructure.Dictionary.SuccinctWhp.isFastStepHit_of_goodSeedOnWindow: deterministic fast-branch hit guarantee wheneverGoodSeedOnWindow c U n_max (ops_prev ++ [op]) θholds.Cslib.DataStructure.Dictionary.SuccinctWhp.toOuterMeasure_not_isFastStepHit_le:(seedLawWhp c U n_max).toOuterMeasure {θ | ¬ IsFastStepHit ...} ≤ (max n_max 1)⁻¹ ^ c.
Predicate stating that on seed θ after history ops_prev, executing op takes the
fast branch (either .small mode when n_max < whpThreshold c, or .fast mode with
fastStepPure = some _ when whpThreshold c ≤ n_max).
Deterministic bridge: for every whpThreshold c ≤ n_max, if θ satisfies GoodSeedOnWindow
on ops_prev ++ [op], then whpRunPure reaches .fast fs after ops_prev and fastStepPure
succeeds (some _) on op.
Master per-operation slow-fallback probability bound:
Across all capacities n_max ≤ U (both < whpThreshold c and ≥ whpThreshold c), on any
admissible oblivious operation history ops_prev ++ [op], the probability over θ ~ seedLawWhp
that op fails to take the fast branch (IsFastStepHit) is at most
(max n_max 1 : ℝ≥0∞)⁻¹ ^ c.