Pseudouniform Functions and Equivalence with Pseudorandom Generators #
A length-preserving polynomial-time computable function g is pseudouniform if its output on a
uniform n-bit seed is computationally indistinguishable from the uniform distribution on n-bit
strings.
This module establishes the equivalence between pseudouniform one-way functions and pseudorandom generators in the uniform Turing-machine model:
- Combining a pseudouniform one-way function with the Goldreich–Levin hard-core predicate yields a
pseudorandom generator stretching
nbits ton + 1bits (prg_of_pseudouniform_oneWay). - Truncating any pseudorandom generator to its first
noutput bits yields a function that is both pseudouniform and one-way (truncation_pseudouniform_and_oneWay).
Main definitions #
Cslib.Crypto.Pseudouniform: length-preserving polynomial-time function whose output ensemble is computationally indistinguishable from uniform.Cslib.Crypto.truncPRG: truncation of a bitstring function to the length of its input seed.
Main results #
Cslib.Crypto.prg_of_pseudouniform_oneWay: every pseudouniform one-way function yields a pseudorandom generator via the Goldreich–Levin construction.Cslib.Crypto.truncation_pseudouniform_and_oneWay: truncating a pseudorandom generator to its input length produces a pseudouniform one-way function.
A length-preserving polynomial-time computable function g : List Bool → List Bool is
pseudouniform if its output on a uniform n-bit seed is computationally indistinguishable from
the uniform distribution on n-bit strings.
This definition is novel to this library as a standalone named assumption: it isolates the
zero-stretch case (|g(v)| = |v|) of a standard pseudorandom generator. It is strictly weaker
than PseudorandomGenerator and does not imply OneWay (indeed, id and every
OneWayPermutation are unconditionally Pseudouniform, as is truncating any PRG via
truncation_pseudouniform_and_oneWay). Conjoined with OneWay, it yields a one-bit-stretch PRG
via the Goldreich–Levin hard-core bit (prg_of_pseudouniform_oneWay), so the notion is plausible
whenever one-way permutations or pseudorandom generators exist.
- polyTime : Turing.MultiTapeTM.ComputableInPolyTime g Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits
Deterministic polynomial-time computability.
Length preservation
|g(v)| = |v|.Computational indistinguishability from uniform.
Intermediate step for Goldreich–Levin PRG construction: if g is both pseudouniform and a
one-way function, then h(v, z) = (g(v), z, ⊕_i v_i z_i) (GoldreichLevin.generator g) is a
pseudorandom generator with one-bit stretch.
Truncation is polynomial-time computable whenever g is.
If g is a pseudorandom generator with seed length n and output length length n > n, then
its truncation truncPRG g to the first n output bits is both pseudouniform and one-way.