Derandomizing BPP from average-case hardness #
Hardness versus randomness [NW94]: if some problem in E, decidable in time
2 ^ O(n), is average-case hard for circuits of size 2 ^ (n / c), then BPP = P
Arora and Barak, Chapter 20. Here the hardness is
Cslib.Circuits.Boolean.IsAverageCaseHard for nonuniform De Morgan circuits, with the non-strict
bound produced by Yao's XOR lemma, and the conclusion is uniform: every problem in BPP enc is in
P enc, for every encoding enc of instances (BPP_subset_P_of_isAverageCaseHard), so
P enc = BPP enc (P_eq_BPP_of_isAverageCaseHard). A hardness 2 ^ (ε n) for a real ε > 0
gives the hypothesis for every natural c ≥ 1 / ε, by
Cslib.Circuits.Boolean.IsAverageCaseHard.mono.
The deterministic algorithm is the seed-enumeration decider Cslib.Complexity.seedDecider over
the Nisan–Wigderson generator. On an instance of length N it sets
t = t₀ + e (⌊log₂ N⌋ + 1) for constants t₀ and e, and runs the verifier on the output of the
Nisan–Wigderson generator for all 2 ^ ℓ seeds of ℓ = (2 ^ (8 c + 1) + 1) t bits, taking the
majority. The generator uses the greedy design (Cslib.Crypto.PRG.NisanWigderson.Design.greedy)
with blocks of n = 4 c t positions sharing at most t - 1 of them, and the hard function on n
bits, evaluated in time 2 ^ O(n). Both 2 ^ ℓ and 2 ^ O(n) are polynomial in N, so the
algorithm runs in polynomial time (Cslib.Complexity.computableInPolyTime_seedDecider,
Cslib.Complexity.computableInPolyTime_listGenerator_greedyMasks).
For correctness, the verifier with the instance fixed is a circuit of polynomial size in its
random string (Cslib.Circuits.Boolean.PPoly.exists_of_polyTime), and t is chosen so that
2 ^ t is at least eight times the size of this circuit and the number m of random bits. The
greedy design then has at least m blocks (Cslib.Crypto.PRG.NisanWigderson.le_length_greedyMasks)
and the hardness 2 ^ (n / c) = 2 ^ (4 t) exceeds the size of the reconstructed circuits and 6 m.
By Cslib.Crypto.PRG.NisanWigderson.abs_card_div_sub_card_div_lt, the fraction of seeds on which
the verifier accepts is within 1 / 6 of the fraction of random strings on which it accepts, which
is at least 2 / 3 on members and at most 1 / 3 on other instances, so the majority is correct
(Cslib.Complexity.seedDecider_eq_true_iff).
Main results #
Cslib.Complexity.PromiseBPP_subset_PromiseP_of_isAverageCaseHard: if a problem inEhas slices average-case hard for size2 ^ (n / c)for all largen, thenPromiseBPP enc ⊆ PromiseP enc.Cslib.Complexity.BPP_subset_P_of_isAverageCaseHard: the same forBPP enc ⊆ P enc.Cslib.Complexity.P_eq_BPP_of_isAverageCaseHard: under the same hypothesis,P enc = BPP enc.
The worst-case to average-case amplification, giving the same conclusion from a problem in E
outside SIZE (2 ^ (ε n)) [IW97], and the endpoint of Babai, Fortnow, Nisan
and Wigderson from EXP ⊄ P/poly [BFNW93] are not formalized here.
References #
The main theorem #
Hardness versus randomness for promise problems: average-case hardness in E derandomizes
PromiseBPP [NW94], Arora and Barak, Chapter 20. Let L be a
problem on words in E, decidable in time O(2 ^ (k n)) for some k, and let c > 0. If for all
large n the slice of L at n is average-case hard for size 2 ^ (n / c), that is, every
Boolean function of De Morgan circuit complexity at most 2 ^ (n / c) agrees with it on at most a
1 / 2 + 2 ^ (-(n / c)) fraction of the words of length n, then every promise problem in
PromiseBPP enc is in PromiseP enc, for every encoding enc of instances.
The hardness is nonuniform and non-strict (Cslib.Circuits.Boolean.IsAverageCaseHard); the
conclusion is uniform, with the deterministic decider Cslib.Complexity.seedDecider over the
Nisan–Wigderson generator. The decider is correct on every instance where the verifier has bounded
error, which is what the promise asks.
Hardness versus randomness: average-case hardness in E derandomizes BPP
[NW94], Arora and Barak, Chapter 20: under the hypothesis of
PromiseBPP_subset_PromiseP_of_isAverageCaseHard, every problem in BPP enc is in P enc, for
every encoding enc of instances. This is the promise result for promise problems without
promise.
Hardness versus randomness: P = BPP from average-case hardness in E
[NW94], Arora and Barak, Chapter 20. If some problem in E has
slices that are average-case hard for size 2 ^ (n / c) for all large n, for some c > 0, then
P enc = BPP enc for every encoding enc of instances.