Documentation

CslibFrontier.Computability.Complexity.Classes.PH.Yap

Yap's theorem (coNP ⊆ NP/poly ⇒ PH = Σ₃) #

If coNP ⊆ NP/poly (equivalently NP ⊆ coNP/poly, or UNSAT ∈ NP/poly), the polynomial hierarchy collapses to its third level: PH = Σ₃, and in fact PH = Σ₃ ∩ Π₃ Yap, Bodlaender, Jansen and Kratsch, Theorem 2.

Proof overview #

First, coNP ⊆ NP/poly already places Σ₂ in NP/poly (Cslib.Complexity.SigmaP_two_subset_NPPoly_of_coNP_subset_NPPoly) and Π₂ in coNP/poly: a problem in Σ₂ projects a Π₁ = coNP predicate along words u of a fixed polynomial length p |enc a|, so all pairs (a, u) share the same encoded length 2 |enc a| + 1 + p |enc a| and can share one advice string, while the quantifier over u merges with the NP certificate.

To collapse the hierarchy at level 3, it suffices to show Π₃ ⊆ Σ₃ (Cslib.Complexity.PiP_three_subset_SigmaP_three_of_coNP_subset_NPPoly). Let A ∈ Π₃ have blocks of lengths p₁, p₂, p₃. Negating the innermost universal block gives E ∈ NP on pairs such that a ∈ A ↔ ∀ u₁ (|u₁| = p₁ n), ∃ u₂ (|u₂| = p₂ n), (a, u₁ ++ u₂) ∉ E, where every queried word s = u₁ ++ u₂ has fixed length m n = p₁ n + p₂ n and every pair (a, s) has fixed encoded length M n = 2 n + 1 + m n. Since Eᶜ ∈ coNP ⊆ NP/poly, there are polynomially bounded advice adv and a problem B ∈ NP with (a, s) ∉ E ↔ (adv (M n), (a, s)) ∈ B whenever |s| = m n.

A Σ₃ verifier for A guesses a framed advice string w in its first existential block and checks two conditions on (a, w):

Intersecting the two Π₂ conditions (Cslib.Complexity.inter_mem_PiP) and existentially quantifying w (Cslib.Complexity.mem_SigmaP_of_exists) places A in Σ₃. Any sound advice string accepted by the main check forces (a, u₁ ++ u₂) ∉ E for every u₁, while the true framed advice frame (adv (M n)) is both sound and complete.

Through Cslib.Complexity.CookLevin.UNSAT_coNPComplete and Cslib.Complexity.cnfDecoder, the hypotheses UNSAT ∈ NPPoly encCNF, SAT ∈ coNPPoly encCNF, coNP encBits ⊆ NPPoly encBits, NP encBits ⊆ coNPPoly encBits, and ∀ encB, coNP encB ⊆ NPPoly encB are all equivalent.

Main results #

References #

Σ₂ ⊆ NP/poly #

coNP ⊆ NP/poly gives Σ₂ ⊆ NP/poly Yap: a problem in Σ₂ is the projection of a Π₁ = coNP problem along words u of fixed polynomial length p |enc a|, so all pairs (a, u) share one advice length 2 |enc a| + 1 + p |enc a| and ∃ u merges with the NP certificate.

Π₃ ⊆ Σ₃ #

Yap's theorem at level 3 Yap: if coNP ⊆ NP/poly holds for the pair encoding encPair enc encBits, then PiP 3 enc ⊆ SigmaP 3 enc.

Yap's theorem at level 3 Yap: if coNP ⊆ NP/poly holds for the pair encoding encPair enc encBits, then PiP 3 enc = SigmaP 3 enc.

Equivalence of nonuniform hypotheses #

UNSAT ∈ NP/poly is equivalent to coNP ⊆ NP/poly across all encodings, through Cslib.Complexity.CookLevin.UNSAT_coNPComplete.

SAT ∈ coNP/poly is equivalent to UNSAT ∈ NP/poly.

coNP ⊆ NP/poly on bit strings transfers to every instance encoding.

NP ⊆ coNP/poly on bit strings transfers to every instance encoding.

Collapse of the polynomial hierarchy #

theorem Cslib.Complexity.PH_eq_SigmaP_three_of_coNP_subset_NPPoly {α : Type} {enc : α ↪ List Bool} (h : ∀ {β : Type} (encB : β ↪ List Bool), coNP encB ⊆ NPPoly encB) :
PH enc = SigmaP 3 enc

Yap's theorem Yap, [Bodlaender, Jansen and Kratsch, Theorem 2] [BJK14]: if coNP ⊆ NP/poly for problems with any encoding of their instances, then the polynomial hierarchy collapses to its third level, PH = Σ₃.

theorem Cslib.Complexity.PH_eq_SigmaP_three_of_NP_subset_coNPPoly {α : Type} {enc : α ↪ List Bool} (h : ∀ {β : Type} (encB : β ↪ List Bool), NP encB ⊆ coNPPoly encB) :
PH enc = SigmaP 3 enc

Yap's theorem, NP ⊆ coNP/poly ⇒ PH = Σ₃ Yap, Bodlaender, Jansen and Kratsch, Theorem 2.

Yap's theorem from UNSAT ∈ NP/poly Yap.

Yap's theorem from SAT ∈ coNP/poly Yap.

Yap's theorem from coNP ⊆ NP/poly on bit strings Yap.

Yap's theorem from NP ⊆ coNP/poly on bit strings Yap.

theorem Cslib.Complexity.PH_eq_SigmaP_three_inter_PiP_three_of_coNP_subset_NPPoly {α : Type} {enc : α ↪ List Bool} (h : ∀ {β : Type} (encB : β ↪ List Bool), coNP encB ⊆ NPPoly encB) :
PH enc = SigmaP 3 enc ∩ PiP 3 enc

Yap's theorem (PH = Σ₃ ∩ Π₃) Yap: if coNP ⊆ NP/poly for problems with any encoding of their instances, then PH = Σ₃ ∩ Π₃.