The uniform Goldreich–Levin inverter #
One functional program samples a sign, a saved predictor seed and independent mask bits, then runs the certified word decoder. Its saved evaluator is typed: it receives the parameter and auxiliary word directly and returns a Boolean. No raw output decoding is exposed to the caller.
The same seed is reused for every query at a given image. Its length accounts for the actual
pair encoding: an n-bit query appended to the image has encoded input length
3 * n + image.length + 1. Images may have arbitrary lengths. Every fixed precision degree
selects one uniform PPT inverter across all security parameters.
Main definitions #
coinBudget: the predictor tape length for an arbitrary image and ann-bit query.parityPredictionGame: predict a uniform inner product given an image and a mask.wordInverter: the functional randomized inversion program.
Main results #
isPPT_wordInverter: the complete inverter is uniformly PPT.wordInverter_eval,eval_parityPredictionGame: exact finite-game correspondences.word_prediction_advantage_le: the concrete reduction loss.negligible_parityPrediction: one-wayness implies negligible prediction bias.
References #
- O. Goldreich, L. Levin, A Hard-Core Predicate for All One-Way Functions
- L. Trevisan, CS276 Lecture 12: Goldreich–Levin
Adapted from Crypto/Computational/GoldreichLevin/WordReduction.lean on the cslib crypto branch
at 5ff69ca93402e7c947208dc56396d6d86203ccd8, using typed saved seeds and the tidy TM calculus.
The saved tape covers the unary parameter, the whole image and an n-bit query.
Instances For
Predict a uniform inner product from an image and an independent uniform query.
Instances For
The prediction experiment composes sampling, the adversary and Boolean word operations.
Every fixed degree gives one strict PPT inverter for all parameters and images.
At every image length, the program realizes exactly the finite seeded inverter.
Saved-seed evaluation has the right prediction law for images of any length.
The prediction game is exactly the finite experiment with an image-dependent saved seed.
The standard any-preimage game agrees with the finite inversion experiment.
Prediction bias is at most the precision error plus eight times inversion success.
No uniform PPT adversary predicts a masked inner product of a one-way input with nonnegligible bias. Each precision degree selects one inverter for all lengths.
One efficient typed evaluator witnesses the concrete reduction at every precision degree.
When f is efficient, isPPT_wordInverter certifies each resulting inverter.