Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.CuckooHashing.Analysis

Cuckoo analysis for the regime-switched Word-RAM hash family #

This bridge applies the machine-independent cuckoo graph analysis to the concrete hash pair from WordRAM.CuckooHashing.HashFamily. It combines the trinomial-polynomial instance in the small-capacity regime with Thorup's double-tabulation instance in the large-capacity regime.

Main results #

This is a specialization of the sufficient cuckoo interface; it retains the graph analysis's uniformity over valid placements and insertion orders, and the Word-RAM implementation's polynomial-universe and table-load conditions.

References #

theorem Cslib.DataStructure.Dictionary.WordRAM.CuckooHashing.isCuckooHashPair_provableFamily {c_exp n_max U M : ℕ} (hU : U ≤ max n_max 4 ^ c_exp) (hm : 32 * max n_max 4 ≤ 2 ^ M) :

Unconditional IsCuckooHashPair for the regime-switched Word-RAM hash family (trinomialPolyHash + doubleTabHash) across all capacities n_max : ℕ and polynomial universes U ≤ max n_max 4 ^ c_exp: Whenever U ≤ max n_max 4 ^ c_exp and 32 * max n_max 4 ≤ 2 ^ M, the uniform distribution seedLaw c_exp n_max U M on Seed c_exp n_max U M with (evalHash1, evalHash2) satisfies IsCuckooHashPair (seedLaw c_exp n_max U M) evalHash1 evalHash2 n_max (maxEvictions n_max) 3 4.