Documentation

CslibFrontier.Computability.Complexity.Classes.PH.KarpLipton

The Karp–Lipton theorem #

If SAT has circuits of polynomial size, the polynomial hierarchy collapses to its second level Karp and Lipton, Arora and Barak, Theorem 6.19. The hypothesis is that some language L ∈ P/poly contains exactly the encodings encCNF φ of the satisfiable formulas; it follows from NP ⊆ P/poly, for problems with any encoding of their instances.

The proof shows Π₂ ⊆ Σ₂ (Cslib.Complexity.PiP_two_subset_SigmaP_two_of_SAT). Let a ∈ A ↔ ∀ u, ∃ v, V (a, u ++ v). The pairs (a, u) for which some v is accepted form a problem in NP by the witness API (Cslib.Complexity.mem_NP_setOf_exists_append), which the Cook–Levin reduction f maps to SAT. A Σ₂ verifier guesses circuits for SAT on all the lengths the self-reduction (Cslib.Complexity.SAT.search) of a formula f (a, u) asks about, then checks, for every u, that the self-reduction answered by the guessed circuits finds a satisfying assignment of f (a, u). A satisfying assignment proves (a, u) in the problem whatever circuits were guessed, and correct circuits always find one when there is one. Since Π₂ ⊆ Σ₂ holds for every encoding of instances, the hierarchy collapses to Σ₂ (Cslib.Complexity.PH_eq_SigmaP_of_PiP_subset_SigmaP).

The guessed circuits are listed in an advice string (Cslib.Circuits.Boolean.familyAdvice, Cslib.Circuits.Boolean.PPoly.exists_evalAdvice): the circuits C 0, …, C N, each in the certificate format of Cslib.Circuits.Boolean.readCertificate, padded to a common length. The circuit for an input x is read from the block at position x.length and evaluated on x (Cslib.Circuits.Boolean.evalAdvice), in polynomial time.

The same advice-string mechanism eliminates alternating quantifiers nonuniformly under NP ⊆ P/poly. CslibFrontier.Computability.Circuit.Boolean.PPoly.Closure proves this (Cslib.Complexity.PPolyOn.exists_of_computableInPolyTime_length) together with closure of P/poly preimages under polynomial-time many-one reductions (Cslib.Complexity.PolyTimeReducible.mem_PPolyOn). This module re-exports that file. Together with closure of P/poly under complement (Cslib.Circuits.Boolean.PPolyOn.compl) and P ⊆ P/poly (Cslib.Circuits.Boolean.P_subset_PPolyOn), induction on k gives Σₖ ⊆ P/poly, Πₖ ⊆ P/poly, and PH ⊆ P/poly (Cslib.Complexity.SigmaP_subset_PPolyOn_of_NP_subset_PPoly, Cslib.Complexity.PiP_subset_PPolyOn_of_NP_subset_PPoly, Cslib.Complexity.PH_subset_PPolyOn_of_NP_subset_PPoly) Karp and Lipton, Section 3, Arora and Barak, Section 6.4. With closure under reductions, NP encBits ⊆ PPolyOn encBits is equivalent to SAT ∈ PPolyOn encCNF (Cslib.Complexity.NP_subset_PPolyOn_iff_SAT).

Main results #

References #

The Karp–Lipton verifier #

Π₂ ⊆ Σ₂ #

Karp–Lipton, Π₂ ⊆ Σ₂. If some language in P/poly contains exactly the encodings of the satisfiable formulas, then Π₂ ⊆ Σ₂, for every encoding of instances.

Karp–Lipton, Π₂ = Σ₂. If some language in P/poly contains exactly the encodings of the satisfiable formulas, then Π₂ = Σ₂, for every encoding of instances.

The collapse #

The Karp–Lipton theorem. If some language in P/poly contains exactly the encodings of the satisfiable formulas, then the polynomial hierarchy collapses to its second level: PH = Σ₂, for every encoding of instances.

theorem Cslib.Complexity.PH_eq_SigmaP_two_of_NP_subset_PPoly {α : Type} {enc : α ↪ List Bool} (h : ∀ {β : Type} (encB : β ↪ List Bool), NP encB ⊆ Circuits.Boolean.PPolyOn encB) :
PH enc = SigmaP 2 enc

The Karp–Lipton theorem, NP ⊆ P/poly ⇒ PH = Σ₂. If every problem in NP, with any encoding of its instances, is the preimage of a language in P/poly, then PH = Σ₂, for every encoding of instances.

PH ⊆ P/poly under NP ⊆ P/poly #

Karp–Lipton, NP ⊆ P/poly ⇒ Σₖ ⊆ P/poly. If NP ⊆ P/poly over bitstrings, then every level Σₖ of the polynomial hierarchy, with any encoding of its instances, is in P/poly Karp and Lipton, Section 3, Arora and Barak, Section 6.4.

Karp–Lipton, NP ⊆ P/poly ⇒ Πₖ ⊆ P/poly. If NP ⊆ P/poly over bitstrings, then every level Πₖ of the polynomial hierarchy, with any encoding of its instances, is in P/poly.

Karp–Lipton, NP ⊆ P/poly ⇒ PH ⊆ P/poly. If NP ⊆ P/poly over bitstrings, then the entire polynomial hierarchy, with any encoding of its instances, is in P/poly Karp and Lipton, Section 3, Arora and Barak, Section 6.4.

Equivalence of NP ⊆ P/poly over bitstrings and SAT ∈ P/poly. Having polynomial-size circuits for every problem in NP encBits is equivalent to SAT having circuits of polynomial size.