Resamplable hash families as randomized specifications #
HashFamily.seedSpec seedLaw eval is the seed-level model of a resamplable hash family as a
RandomizedSpec. Its state is the current seed: resample draws a fresh seed from seedLaw, and
eval u answers eval θ u at the seed θ. On the oblivious client of an operation list it is
evalOpsFromSeed (run_obliviousClient_seedSpec), and after an initial resample it is evalOps
(run_resample_obliviousClient_seedSpec). An implementation that refines seedSpec by a
RandomizedRefinement therefore meets every contract proved for evalOps, such as
kWiseSpec_contract_evalOps, and its adaptive clients are described by seedSpec as well.
Main definitions #
Cslib.DataStructure.HashFamily.seedSpec: the seed-level randomized specification.
Main results #
Cslib.DataStructure.HashFamily.run_obliviousClient_seedSpec: oblivious transcripts from a fixed seed areevalOpsFromSeed.Cslib.DataStructure.HashFamily.run_resample_bind_seedSpec,Cslib.DataStructure.HashFamily.run_resample_obliviousClient_seedSpec: after an initial resample, a client runs from a fresh seed, and oblivious transcripts areevalOps.
The seed-level model of a resamplable hash family: the state is the current seed, resample
draws a fresh seed from seedLaw, and eval u answers eval θ u without changing the seed.
Running the oblivious client of ops from the seed θ gives the transcript law
evalOpsFromSeed.
After an initial resample, a client runs from a fresh seed drawn from seedLaw.
After an initial resample, the transcript law of the oblivious client of ops is
evalOps.