Documentation

CslibFrontier.Computability.Complexity.Classes.NP.Advice

NP with polynomial advice #

A problem is in NP/poly when it is verified in nondeterministic polynomial time with the help of an advice string that depends only on the length of the instance and has polynomial length Karp and Lipton. As for Cslib.Circuits.Boolean.PAdvice, the advice is paired with the instance: A ∈ NPPoly enc when there are advice adv : ℕ → List Bool of polynomial length and a problem B ∈ NP of pairs, for the encoding frame u ++ enc a of (u, a), such that a ∈ A exactly when (adv (enc a).length, a) ∈ B. coNP/poly consists of the complements (Cslib.Complexity.coNPPoly).

NP ⊆ NP/poly with empty advice (Cslib.Complexity.NP_subset_NPPoly), and P/poly ⊆ NP/poly ∩ coNP/poly (Cslib.Complexity.PPolyOn_subset_NPPoly, Cslib.Complexity.PPolyOn_subset_coNPPoly): P/poly is P with polynomial advice (Cslib.Circuits.Boolean.PPoly_subset_PAdvice), and it is closed under complement. NP/poly is closed under polynomial-time reductions (Cslib.Complexity.PolyTimeReducible.mem_NPPoly): the advice for instances of length n lists the advice of the target problem for every length up to a polynomial bound on the length of the reduced instances, and the verifier selects the entry for the length of the reduced instance. In particular, if one coNP-complete problem is in NP/poly, then so is every problem in coNP (Cslib.Complexity.coNP_subset_NPPoly_of_coNPComplete), and coNP ⊆ NP/poly exactly when NP ⊆ coNP/poly (Cslib.Complexity.coNP_subset_NPPoly_iff).

coNP ⊆ NP/poly is the conclusion of the theorem of Fortnow and Santhanam on OR-distillations (CslibFrontier.Computability.Complexity.Parameterized.Distillation), and the hypothesis of Yap's theorem that it collapses the polynomial hierarchy to its third level Yap (Cslib.Complexity.PH_eq_SigmaP_three_of_coNP_subset_NPPoly, in CslibFrontier.Computability.Complexity.Classes.PH.Yap).

Main definitions #

Main results #

References #

def Cslib.Complexity.NPPoly {α : Type} (enc : α ↪ List Bool) :
Set (Set α)

NP with polynomial advice Karp and Lipton: the problems A with advice adv of polynomial length and a problem B ∈ NP of pairs, for the encoding frame u ++ enc a of (u, a), such that a ∈ A exactly when (adv (enc a).length, a) ∈ B.

def Cslib.Complexity.coNPPoly {α : Type} (enc : α ↪ List Bool) :
Set (Set α)

The problems whose complements are in NP/poly.

theorem Cslib.Complexity.mem_coNPPoly {α : Type} {enc : α ↪ List Bool} {A : Set α} :
theorem Cslib.Complexity.NP_subset_NPPoly {α : Type} {enc : α ↪ List Bool} :
NP enc ⊆ NPPoly enc

NP ⊆ NP/poly: an NP verifier ignores empty advice.

theorem Cslib.Complexity.coNP_subset_coNPPoly {α : Type} {enc : α ↪ List Bool} :
coNP enc ⊆ coNPPoly enc

coNP ⊆ coNP/poly.

P/poly ⊆ NP/poly: a language in P/poly is decided in polynomial time with polynomial advice (Cslib.Circuits.Boolean.PPoly_subset_PAdvice). Reading the encoded instance in place of the word gives a pair problem in P, hence in NP, with the same advice.

P/poly ⊆ coNP/poly: P/poly is closed under complement.

theorem Cslib.Complexity.PolyTimeReducible.mem_NPPoly {α β : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (h : PolyTimeReducible enc encB A B) (hB : B ∈ NPPoly encB) :
A ∈ NPPoly enc

NP/poly is closed under polynomial-time reductions. The advice for instances of length n lists the advice of the target problem for every length up to a polynomial bound on the length of the reduced instances; the verifier decodes this list and selects the entry for the length of the reduced instance.

theorem Cslib.Complexity.PolyTimeReducible.mem_coNPPoly {α β : Type} {enc : α ↪ List Bool} {encB : β ↪ List Bool} {A : Set α} {B : Set β} (h : PolyTimeReducible enc encB A B) (hB : B ∈ coNPPoly encB) :

coNP/poly is closed under polynomial-time reductions.

theorem Cslib.Complexity.coNP_subset_NPPoly_of_coNPComplete {β : Type} {encB : β ↪ List Bool} {B : Set β} (hB : coNPComplete encB B) (hBP : B ∈ NPPoly encB) {γ : Type} (encC : γ ↪ List Bool) :
coNP encC ⊆ NPPoly encC

If a coNP-complete problem is in NP/poly, then so is every problem in coNP, for every encoding of its instances.

theorem Cslib.Complexity.coNP_subset_NPPoly_iff {α : Type} {enc : α ↪ List Bool} :
coNP enc ⊆ NPPoly enc ↔ NP enc ⊆ coNPPoly enc

coNP ⊆ NP/poly exactly when NP ⊆ coNP/poly, for any encoding: both say that the complement of every problem in NP is in NP/poly.