High-Probability Seed Events and Tail Bounds for the WHP Succinct Dictionary #
This module defines the static hash-seed pair SeedWhp c U n_max = BktSeed × FpSeed (combining two
independent universe-reduced salted general-q double-tabulation seeds from
BitPackedDoubleTabulation), the concrete per-state and trailing-window deterministic seed
conditions (GoodSeedOnState and GoodSeedOnWindow), and proves the per-operation failure
probability bound:
For every exponent c ≥ 1, every capacity whpThreshold c ≤ n_max, every key universe n_max ≤ U,
and every admissible oblivious operation prefix ops : List (Dynamic.Op U),
(seedLawWhp c U n_max).toOuterMeasure {θ | ¬ GoodSeedOnWindow c U n_max ops θ} ≤ (max n_max 1 : ℝ≥0∞)⁻¹ ^ c.
Main definitions #
Cslib.DataStructure.Dictionary.SuccinctWhp.BktSeed,FpSeed,SeedWhp,seedLawWhp: combined static seed type and uniform distribution.Cslib.DataStructure.Dictionary.SuccinctWhp.bktHash,fpReducedKey,fpHash: pure Feistel-bucket hash, Stage-1 reduced key, and Stage-2 salted fingerprint hash.Cslib.DataStructure.Dictionary.SuccinctWhp.BalancedBuckets,GoodSeedOnState,GoodSeedOnWindow: deterministic load-balance, Stage-1 injectivity, collision-free salt existence, and epoch salt-collision count conditions.
Main results #
Cslib.DataStructure.Dictionary.SuccinctWhp.GoodSeedOnWindow.goodSeedOnState_of_mem:GoodSeedOnWindowimpliesGoodSeedOnStateon every state along the trailing2 * Q + 2operations (including the target post-state for deterministic self-healing).Cslib.DataStructure.Dictionary.SuccinctWhp.toOuterMeasure_not_goodSeedOnWindow_le: total failure probability across Stage-1 universe reduction, Stage-2k-uniqueness, Feistel bucket load balance, multi-salt collision-freedom, and window salt-collision count is at most(max n_max 1 : ℝ≥0∞)⁻¹ ^ c.
References #
Section 1: Static seed pair and pure hash evaluation wrappers #
Static seed type for the Feistel quotient bucket hash (M_out = bWhp n_max).
Static seed type for the salted fingerprint hash (M_out = fpBitsWhp n_max).
Combined static seed pair (θ_bkt, θ_fp) sampled once during initSetup.
Stage-1 reduced key fpReducedKey c U n_max θ₂ u < 2 ^ rRedWhp c n_max used for both Stage-2
salted fingerprint hashing and constant-depth BufTrie indexing.
Section 2: Trailing window, BalancedBuckets, GoodSeedOnState, and GoodSeedOnWindow #
(Dynamic.spec U V n_max).run produces a post-state independent of (V, n_max).
Append law for ((Dynamic.spec U V n_max).run s (l₁ ++ l₂)).1.
List of all intermediate states [s₀, s₁, ..., s_k] visited along ops from s₀.
Finset of all keys occurring in .insert u v operations in ops.
Trailing window length 2 * qEpochWhp n_max + 2 covering two full epochs plus transitions.
State at the start of the trailing windowLenWhp n_max operations of ops.
Trailing ≤ windowLenWhp n_max operations of ops.
Single-bucket load-balance condition |X_b - #S / M| ≤ deltaWhp n_max at bucket b.
Concrete single-state fast-mode eligibility condition on (θ, s) checked during
self-healing from fallbackMode to fastMode:
fpReducedKeyis injective ondom s;feistelBucketsatisfiesBalancedBucketsondom s;- Every bucket
bofdom sadmits at least one collision-free salt< sMaxWhp c n_max.
Trailing-window good-seed event for operation history ops:
- Stage-1
fpReducedKeyis injective onW_keys = dom s_start ∪ opInsKeys suf; BalancedBucketsholds ondom sfor every states ∈ stateSeq s_start suf;BalancedBucketsholds onW_ins = opInsKeys suf;- Every window bucket
W_bkt(b)admits a collision-free salt< sMaxWhp c n_max; - Fewer than
2 * sMaxWhp c n_maxinserted keys inW_insever collide with another key in their window bucket under any salt< sMaxWhp c n_max.
GoodSeedOnWindow implies GoodSeedOnState on every state along the trailing window (including
the final state ((Dynamic.spec U 0 0).run (empty U) ops).1).
Fundamental logarithmic scale inequality: Nat.log 2 n_max ≤ slabScale n_max.
When whpThreshold c ≤ n_max, 6553600 ≤ slabScale n_max and
cEff c + 4 ≤ slabScale n_max.
Section 4: Window bucket caps, Feistel load balance, salt bounds, and main theorem #
Master per-operation bad-seed probability bound:
For every capacity whpThreshold c ≤ n_max, exponent c : ℕ, and admissible oblivious operation
sequence ops : List (Dynamic.Op U)
((Dynamic.spec U V n_max).ValidHistory (Dictionary.empty U) ops),
(seedLawWhp c U n_max).toOuterMeasure {θ | ¬ GoodSeedOnWindow c U n_max ops θ} ≤ (max n_max 1 : ℝ≥0∞)⁻¹ ^ c.