Pseudorandom generators against circuits derandomize BPP #
Arora and Barak Arora and Barak, Theorem 10.17 (draft of 2007-01-08, printed page
201, PDF page 217): if for every c > 1 there is a pseudorandom generator that is secure against
circuits of size n ^ c, then BPP ⊆ ⋂_{ε > 0} DTIME (2 ^ (n ^ ε)). Goldreich
Goldreich, Theorem 8.13 (draft r4, printed page 334): if there exist
non-uniformly strong pseudorandom generators, then BPP ⊆ ⋂_{ε > 0} DTIME (2 ^ (n ^ ε)).
This file proves the conclusion first under a polynomial-stretch hypothesis: for every c > 1, a
generator fooling circuits of size k ^ c with output length at least k ^ c
(Cslib.Complexity.BPP_subset_DTIME_two_pow_rpow_of_polyStretch_circuitSecurePRG). Goldreich's
Theorem 8.13 follows (Cslib.Complexity.BPP_subset_DTIME_two_pow_rpow_of_nonuniformPRG): a
non-uniformly strong generator (Cslib.Crypto.NonuniformPRG) of any stretch is amplified to every
polynomial stretch by the library's Cslib.Crypto.NonuniformPRG.amplify, and every such generator
fools circuits of every polynomial size (Cslib.Crypto.NonuniformPRG.circuitSecurePRG).
Arora and Barak's Theorem 10.17 itself is not proved. Its c-th generator need only have output
length m(n) > n and fool circuits of the fixed size n ^ c. Amplifying the stretch by the hybrid
argument produces distinguishers that also evaluate the generator, and the generator's circuits
need not have size at most n ^ c. So the available fixed-size premise does not justify the
amplification. NonuniformPRG.amplify applies only to generators secure against every polynomial
size.
Their pseudorandom generators are those of Arora and Barak, Definition 10.11
(printed pages 193–194): a polynomial-time computable family g_n : {0,1}^n → {0,1}^{m(n)} with
m(n) > n such that, for every c', for all large n no test of the admitted class distinguishes
g_n(U_n) from U_{m(n)} with advantage more than 1 / n ^ c'. Definition 10.11 admits uniform
probabilistic algorithms running in time s(n); Theorem 10.17 asks for security against circuits
of size n ^ c instead, which this file reads as security against every nonuniform family of De
Morgan circuits with at most s(n) gates. That is Cslib.Complexity.CircuitSecurePRG G ℓ s: the
generator is a polynomial-time map on words with output length ℓ k on seeds of k bits, and its
restriction to seeds of k bits (Cslib.Crypto.PRG.wordFamily) is secure in the sense
of Cslib.Crypto.PRG.Generator.Secure against the tests computed by De Morgan circuits with at
most s k gates (Cslib.Crypto.PRG.IsCircuitTest).
The proof enumerates seeds (Cslib.Complexity.seedDecider). For a verifier V reading p(n)
random bits on instances of length n, seeds of k ≈ n ^ (1 / d) bits are stretched to at least
k ^ c ≥ p(n) bits, and V runs on the instance and the first p(n) of them. The verifier with
its instance hardwired is a circuit of polynomial size in n
(Cslib.Circuits.Boolean.PPoly.exists_of_polyTime,
Cslib.Circuits.Boolean.complexity_le_of_append_take), hence of size at most k ^ c for a
suitable c, and the generator for that c fools it within 1 / k < 1 / 6. The majority over the
2 ^ k seeds is then correct (Cslib.Complexity.seedDecider_eq_true_iff), and it runs within
time 2 ^ O(k) times a polynomial (Cslib.Complexity.exists_computableInO_seedDecider), which is
eventually below 2 ^ (n ^ ε). Seeds of k = ⌊n ^ (1 / d)⌋ + K bits, for a constant K beyond
the point where security holds, make the security hypothesis apply on every instance, so no
finitely many instances need to be patched.
Main definitions #
Cslib.Complexity.CircuitSecurePRG: Arora and Barak's pseudorandom generators, with circuits of a given size as the tests.
Main results #
Cslib.Complexity.BPP_subset_DTIME_two_pow_rpow_of_polyStretch_circuitSecurePRG: the conclusion of Theorem 10.17 of Arora and Barak, from generators of polynomial stretch; not Theorem 10.17 itself.Cslib.Crypto.NonuniformPRG.circuitSecurePRG: non-uniformly strong generators fool circuits of every polynomial size.Cslib.Complexity.BPP_subset_DTIME_two_pow_rpow_of_nonuniformPRG: Theorem 8.13 of Goldreich.Cslib.Complexity.exists_rootSeed_DTIME_subset: seeds of⌊n ^ (1 / d)⌋ + Kbits give time2 ^ ⌈n ^ ε⌉, shared with Arora and Barak's Corollary 16.6 (3).
References #
Pseudorandom generators secure against circuits of size s, after
Arora and Barak, Definition 10.11 (printed pages 193–194) with De Morgan circuits
of at most s k gates as the tests. G is a polynomial-time map on words whose outputs on seeds
of k bits have ℓ k > k bits, and for every c, for all large k, no circuit with at most
s k gates distinguishes G on a uniform seed of k bits from a uniform string of ℓ k bits
with advantage more than 1 / k ^ c.
The tests are nonuniform: the threshold k₀ past which every circuit with at most s k gates
has advantage at most 1 / k ^ c is uniform over all circuits of each size. This is security
against every nonuniform family of circuits of size s, quantified "for every family, for all
large k": a family choosing a circuit of largest advantage at each length is one such family, so
the two orders of quantifiers agree. It is not Definition 10.11's security against uniform
probabilistic algorithms, for which this exchange of quantifiers is not available. No generator
satisfying this record is known to exist unconditionally; the record is a hypothesis.
- polyTime : Turing.MultiTapeTM.ComputableInPolyTime G Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits
One deterministic polynomial-time machine evaluates the generator.
The output length depends only on the seed length.
Every seed length is strictly expanded.
- secure (c : ℕ) : ∀ᶠ (k : ℕ) in Filter.atTop, (Crypto.PRG.wordFamily G ℓ k).Secure (Crypto.PRG.IsCircuitTest (s k)) (↑k ^ c)⁻¹
For every
c, eventually every circuit with at mosts kgates has advantage at most1 / k ^ c.
Seeds of ⌊n ^ (1 / d)⌋ + K bits give time 2 ^ ⌈n ^ ε⌉. For every ε > 0 there are
d ≥ 1 and a seed length r n = ⌊n ^ (1 / d)⌋, computable in unary in polynomial time, with
n + 1 ≤ (r n + 1) ^ d, such that for all constants C, D and K the time bound
C 2 ^ (D (r n + K)) (n + 1) ^ D of seed enumeration is within DTIME (2 ^ ⌈n ^ ε⌉).
Seed enumeration with a generator fooling the verifier #
A polynomial-time verifier with its instance hardwired is a small circuit. For a
polynomial-time verifier V and a polynomial p, there are constants c and a such that, on
every instance x with n = |enc x|, both p(n) and the circuit complexity of the test
y ↦ V (x, (first p(n) bits of y)) on strings of any length L ≥ p(n) are at most
c (n + 1) ^ a (Cslib.Circuits.Boolean.PPoly.exists_of_polyTime,
Cslib.Circuits.Boolean.complexity_le_of_append_take).
Seed enumeration is correct for a generator that fools the verifier. Let V answer whether
x ∈ A with bounded error on random strings of m bits, and let the generator G have output
length ℓ k on seeds of k bits, with m ≤ ℓ (seed x). If G on seeds of seed x bits fools
the test y ↦ V (x, (first m bits of y)) with advantage below 1 / 6, then the seed decider that
runs V on the first m bits of the generated strings answers correctly on x.
Not Arora–Barak Theorem 10.17: its conclusion under an extra stretch hypothesis. If for
every c > 1 there is a pseudorandom generator secure against circuits of size k ^ c on seeds of
k bits (Cslib.Complexity.CircuitSecurePRG) and with output length at least k ^ c for all
large k, then for every ε > 0 every problem in BPP enc is in DTIME enc (2 ^ ⌈n ^ ε⌉), for
every encoding enc of instances.
Arora and Barak, Theorem 10.17 (draft of 2007-01-08, printed page 201) assumes only
the output length m(n) > n of Definition 10.11; its proof stretches seeds of n ^ ε bits to
n ^ k bits, which needs stretch amplification. The library's Cslib.Crypto.NonuniformPRG.amplify
needs security against every polynomial size, while the c-th generator here fools only circuits
of size k ^ c, and the hybrid distinguishers also evaluate the generator. Goldreich's Theorem
8.13, with that stronger security, is BPP_subset_DTIME_two_pow_rpow_of_nonuniformPRG. The bound
2 ^ ⌈n ^ ε⌉ is the draft's 2 ^ (n ^ ε), rounded up to a natural exponent.
Nonuniform pseudorandom generators fool circuits #
Nonuniform pseudorandom generators are circuit-secure. A generator secure against
polynomial-time tests with polynomially bounded advice (Cslib.Crypto.NonuniformPRG) is secure,
for every c, against De Morgan circuits with k ^ c gates in the sense of
Cslib.Complexity.CircuitSecurePRG. Suppose circuits with k ^ c gates had advantage above
1 / k ^ c' for infinitely many k. At each such k, choose one violating circuit and give its
certificate (Cslib.Circuits.Boolean.certificate) as advice. The advised test reads the
certificate back (Cslib.Circuits.Boolean.readCertificate) and evaluates it on the challenge
(Cslib.Circuits.Boolean.evalOutput) in polynomial time, so it has the circuit's advantage at
those k, which contradicts negligibility.
Goldreich, Theorem 8.13 Goldreich, Theorem 8.13 (draft r4, printed
page 334, PDF page 70): if there exist non-uniformly strong pseudorandom generators, then
BPP ⊆ ⋂_{ε > 0} DTIME (2 ^ (n ^ ε)), for every encoding enc of instances.
The non-uniformly strong generators of Definition 8.12 are Cslib.Crypto.NonuniformPRG, whose
tests are polynomial-time machines with polynomially bounded advice in place of polynomial-size
circuit families (the model of that record; compare Cslib.Circuits.Boolean.PPoly_eq_PAdvice).
Any stretch ℓ k > k suffices: truncating to one bit of stretch (NonuniformPRG.truncate) and
amplifying (NonuniformPRG.amplify) gives, for every c, a generator of stretch k ^ c + k + 1,
which fools circuits of size k ^ c (Cslib.Crypto.NonuniformPRG.circuitSecurePRG), and
Cslib.Complexity.BPP_subset_DTIME_two_pow_rpow_of_polyStretch_circuitSecurePRG concludes. The
bound 2 ^ ⌈n ^ ε⌉ is the source's 2 ^ (n ^ ε), rounded up to a natural exponent.