Runtime-Parameterized ReducedKWise Hashing on the Resizable Word RAM #
Completes the parameter-free (¬ReadsWidth) Word-RAM / Resizable Word RAM compilation of the
two-stage universe-reduced $k$-wise independent polynomial hash family of
[BFCKK24] (Cslib.Probability.reducedPolyHash):
evalHashGenProg: runtime polynomial evaluation andb'-bit output extraction inMemory.Progcertified viaby realize(RealizesBounded .exact), usingO(k)deterministic operations and the 162-word scratch slice[scratchBase, scratchBase + 162)rather than 240 static registers;resampleHashCode: parameter-freeRCode .exact rsubroutine resampling a uniform seedReducedPolySeed w₀ b b' k(ExecRCodeDist).
Re-exports RuntimeReducedKWise.ParamsInit (HashParams, mkHashParams, initTableGenProg) and
RuntimeReducedKWise.Horner.
Main definitions #
Cslib.DataStructure.HashFamily.WordRAM.RuntimeReducedKWise.evalHashGenProg,evalMemBound,EvalHashGenPre: runtimek-wise polynomial hash evaluator inMemory.Prog.Cslib.DataStructure.HashFamily.WordRAM.RuntimeReducedKWise.resampleHashCode: parameter-freeRCode .exact rsubroutine resampling a uniformReducedPolySeed w₀ b b' k.
Main results #
evalHashGenProg_spec,realizesBounded_evalHashGen: exact agreement withCslib.Probability.reducedPolyHash,O(k)memory cost, andRealizesBounded .exactcertificate.not_readsWidth_resampleHashCode,resampleHashCode_execRCodeDist: width-independence andExecRCodeDistuniform seed-sampling specification on the Resizable Word RAM.
References #
Section 1: Output limb packing and full evalHashGenProg #
Complete runtime polynomial hash evaluation Memory.Prog.
Parameter-independent O(k) upper bound on memoryCost (evalHashGenProg d) s.
Entry precondition for evalHashGenProg.
Full specification of evalHashGenProg.
Parameter-free RealizesBounded .exact certificate for evalHashGenProg (
¬ReadsWidth).
Section 4: Parameter-free seed resampling (resampleHashCode) on RCode .exact r #
Parameter-free RCode .exact r subroutine resampling a uniform ReducedPolySeed w₀ b b' k.
Compositional ExecRCodeDist specification of resampleHashCode.