BPP is closed under polynomial-time reductions #
If A reduces to B in polynomial time and B is in BPP, then so is A
(Cslib.Complexity.PolyTimeReducible.mem_BPP): run the decider of B on the reduced instance.
The random string for an instance a of A must have a length fixed by the length of a alone,
so it is taken polynomially long enough for the reduced instance, and the decider reads only the
prefix it expects (Cslib.Complexity.exists_truncated_verifier). Every prefix is extended by the
same number of strings, so the fractions of right answers are unchanged
(Cslib.BitString.mul_two_pow_le_mul_card_filter_take).
Main results #
Cslib.Complexity.PolyTimeReducible.mem_BPP:BPPis closed under polynomial-time reductions.
References #
theorem Cslib.Complexity.PolyTimeReducible.mem_BPP {α β : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (h : PolyTimeReducible enc encB A B) (hB : B ∈ BPP encB) :
BPP is closed under polynomial-time reductions. The decider of A runs the decider of
B on the reduced instance and on the prefix of the random string that this decider expects.