Documentation

CslibFrontier.Computability.Circuit.Boolean.PPoly.Closure

Closure properties of P/poly #

This module proves closure properties of PPolyOn enc that go beyond its Boolean operations (Cslib.Circuits.Boolean.PPolyOn.compl, Cslib.Circuits.Boolean.PPolyOn.sup, Cslib.Circuits.Boolean.PPolyOn.inf). These are the facts that circuit lower-bound and magnification arguments need to take from the Karp–Lipton theorem without importing its proof.

Preimages of P/poly are closed under polynomial-time many-one reductions (Cslib.Complexity.PolyTimeReducible.mem_PPolyOn). The proof evaluates the circuits for the target language from an advice string (Cslib.Circuits.Boolean.PPoly.exists_evalAdvice) and then hardwires that string (Cslib.Circuits.Boolean.PPoly.of_advice).

The same advice-string mechanism eliminates quantifiers nonuniformly. Suppose M ∈ P/poly, and replace M by an advice string listing its circuits up to length 2 |x| + 1 + p |x|. This turns the existential quantifier over w of length p |x| in frame x ++ w ∈ M into a language in NP. Hence the existential projection remains in P/poly when NP ⊆ P/poly (Cslib.Complexity.mem_PPoly_of_exists_frame_append) Karp and Lipton, Section 3. Combined with closure under reductions and complement, this gives existential and universal quantifier elimination over polynomial-length witnesses for any instance encoding.

Main results #

References #

Polynomial-time predicates are in P/poly. If f is computable in polynomial time, then the set of instances on which f is true is in PPolyOn enc.

theorem Cslib.Circuits.Boolean.PPolyOn.imp {α : Type} {enc : α ↪ List Bool} {P Q : α → Prop} (hP : {a : α | P a} ∈ PPolyOn enc) (hQ : {a : α | Q a} ∈ PPolyOn enc) :
{a : α | P a → Q a} ∈ PPolyOn enc

PPolyOn is closed under implication.

theorem Cslib.Complexity.PolyTimeReducible.mem_PPolyOn {α : Type} {enc : α ↪ List Bool} {β : Type} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (hAB : PolyTimeReducible enc encB A B) (hB : B ∈ Circuits.Boolean.PPolyOn encB) :

Preimages of P/poly are closed under polynomial-time reductions. If A reduces to B in polynomial time and B is the preimage under encB of a language in P/poly, then A is the preimage under enc of a language in P/poly: evaluating the circuits for B up to the polynomial output-length bound of the reduction from an advice string is polynomial-time, and hardwiring the advice string (PPoly.of_advice) gives circuits of polynomial size.

Nonuniform quantifier elimination. If every language in NP over Bool is in P/poly and M is in P/poly, then the language of words x for which frame x ++ w ∈ M for some w of length p |x| is in P/poly: replacing M by an advice string listing its circuits up to length 2 |x| + 1 + p |x| turns the existential quantifier over w into a language in NP, and hardwiring the advice string (Cslib.Circuits.Boolean.PPoly.of_advice) gives circuits of polynomial size Karp and Lipton, Section 3.

Nonuniform existential quantifier elimination in PPolyOn. Under NP ⊆ P/poly, if a relation P : α → List Bool → Prop is in PPolyOn (encPair enc encBits) and the witness length N : α → ℕ is computable in polynomial time in unary, then {a | ∃ u, u.length = N a ∧ P a u} is in PPolyOn enc.

Nonuniform universal quantifier elimination in PPolyOn. Under NP ⊆ P/poly, if a relation P : α → List Bool → Prop is in PPolyOn (encPair enc encBits) and the bound N : α → ℕ is computable in polynomial time in unary, then {a | ∀ u, u.length = N a → P a u} is in PPolyOn enc.