The GGM prefix hybrids #
At level depth, sample an independent label for each newly queried prefix of that length.
Remember it for later queries with the same prefix, and evaluate the remaining suffix using the
generator. Malformed queries receive the empty word, as in the PRF games.
The cache is an ordinary list. One call preserves a label-width invariant and adds at most one entry. The shared stateful interpreter certifies the entire adaptive game, including copying, sampling, replies and growing storage. This module identifies the endpoint games; adjacent-hybrid security requires a further reduction.
Main definitions #
Cslib.Crypto.GGM.frontierOracle: memoized prefix labels followed by tree evaluation.Cslib.Crypto.GGM.hybridGame: the complete adaptive prefix experiment.
Main results #
Cslib.Crypto.GGM.hybridGame_zero,.hybridGame_self: exact real and ideal endpoints.Cslib.Crypto.GGM.isPPTOn_hybridGame: uniform strict PPT for the complete experiment.
References #
- O. Goldreich, S. Goldwasser, S. Micali, How to Construct Random Functions,
Section 3.3, the algorithms
A_iin the proof of Theorem 3.
Adapts Crypto/Computational/GGM/Hybrid.lean on the cslib crypto branch at
5ff69ca93402e7c947208dc56396d6d86203ccd8 to the shared typed interpreter.
A finite collection of queried prefixes and their sampled labels.
Instances For
The adaptive hybrid game starts with an empty prefix cache.
Instances For
At level zero, all valid queries share one root label. Sampling that label on demand agrees with choosing the key at the start of the real PRF game, even if there are no valid queries.
At the final level, the prefix hybrid is exactly the ideal PRF game.
Each call preserves label widths and adds at most one encoded entry. Key lengths and duplicate cache keys are unrestricted; only cached label widths are constrained.
Certify a prefix call written with computed parameters, query and full cache.
A uniform adversary's complete adaptive prefix game is strict PPT, uniformly over the chosen level. The local invariant accounts for every reply and all added encoded storage.