The hashed parity inverter as a PPT word program #
The reduction samples one saved predictor tape, a hash length, a matrix, a guessed digest, and decoder masks. It then invokes the shared word decoder with the public fields and coins captured by its callback. All sampling uses fair bits, with a fixed polynomial bound for every input.
The coin budget uses the actual framed input encoding: the unary security parameter contributes
2 * n + 1 cells and the parity query another n. All public fields and delimiters are charged.
The saved evaluator returns a Boolean directly, without decoding arbitrary output words.
Main definitions #
Cslib.Crypto.Pseudoentropy.HashPair.wordInverter: the functional saved-coin reduction.Cslib.Crypto.Pseudoentropy.HashPair.fixedPredictor: one finite deterministic predictor.
Main results #
Cslib.Crypto.Pseudoentropy.HashPair.isPPT_wordInverter: strict uniform PPT.Cslib.Crypto.Pseudoentropy.HashPair.wordInverter_eval: the exact finite/list law.Cslib.Crypto.Pseudoentropy.HashPair.word_prediction_entropy_le: the complete reduction bound.
References #
- T. Holenstein, Pseudorandom Generators from One-Way Functions: A Simple Construction for
Any Hardness, Section 4, Lemma 4.
HashReductionsupplies the finite bound for our public matrix family and enlarged dyadic range. This module implements its inverter using the word and saved-coin interfaces.
Adapted from Crypto/Computational/Pseudoentropy/WordReduction.lean on the cslib crypto branch
at 5ff69ca93402e7c947208dc56396d6d86203ccd8, using typed saved seeds and the tidy TM calculus.
One polynomial tape budget covers all digest lengths and parity queries for an image.
Instances For
The shared tape budget is efficient in the parameter and image length.
Captured public fields and coins use their ordinary efficiency certificates. The typed callback has a uniformly polynomial bound on every supplied input, not only sampled words.
The complete inverter is one strict PPT program for every parameter and image.
The tape budget covers every well-formed public observation at this dimension.
A common finite tape turns the word evaluator into a deterministic matrix predictor. The finite image type is represented injectively when relating its inversion experiment.
Instances For
Padding the saved tape to the common budget preserves every individual prediction law.
The word inverter agrees exactly with the finite inverter after encoding its output. Only the image representation and its fixed width enter this statement.
The complete prediction game agrees with the finite experiment with one independent saved tape. Moving that tape outside the experiment does not change the predictor's distribution.
The word one-wayness game is the finite inversion experiment under the same image encoding. Success still means finding any preimage.
Holenstein's entropy-versus-prediction bound for the executable word games. Every sampled
bit and decoder query is included in the inverter certified by isPPT_wordInverter.