Documentation

CslibFrontier.Computability.Complexity.Classes.PH.Collapse

Collapses of the polynomial hierarchy #

If Πₖ ⊆ Σₖ for some k ≥ 1, for problems with any encoding of their instances, then the polynomial hierarchy collapses to its level k: PH = Σₖ (Cslib.Complexity.PH_eq_SigmaP_of_PiP_subset_SigmaP) Arora and Barak, Theorem 5.4, Stockmeyer. Consequently NP = coNP collapses the hierarchy to NP (Cslib.Complexity.PH_eq_NP_of_coNP_subset_NP) and P = NP collapses it to P (Cslib.Complexity.PH_eq_P_of_NP_subset_P).

The collapse goes one level at a time (Cslib.Complexity.SigmaP_succ_subset_SigmaP). A problem A in Σₖ₊₁ is the projection of a problem B in Πₖ on pairs (a, w₁) of an instance and a first certificate (Cslib.Complexity.exists_mem_PiP_of_mem_SigmaP_succ). Then B is in Σₖ, and the existential quantifier over w₁ merges with the first quantifier of B, whose block lengths are polynomials in the length of the encoded pair (a, w₁), hence in the length of enc a.

Every problem in Σₖ or Πₖ on an explicit encoding enc is the preimage enc ⁻¹' B of a raw-word language B in Σₖ or Πₖ on encBits, obtained by extending its polynomial-time verifier to all bit words (Cslib.Complexity.exists_mem_SigmaP_encBits_preimage, Cslib.Complexity.exists_mem_PiP_encBits_preimage). Consequently, the fixed-domain bit-language hypotheses PiP k encBits = SigmaP k encBits, SigmaP (k + 1) encBits = SigmaP k encBits, NP encBits = coNP encBits and P encBits = NP encBits transfer to every instance encoding and collapse PH (Cslib.Complexity.PH_eq_SigmaP_of_PiP_encBits_eq_SigmaP, Cslib.Complexity.PH_eq_P_of_P_encBits_eq_NP) Arora and Barak, Theorem 5.6, Goldreich, Proposition 3.10. Conversely, PH = Σₖ forces Σₖ₊₁ = Σₖ and Πₖ = Σₖ (Cslib.Complexity.SigmaP_succ_eq_SigmaP_of_PH_eq_SigmaP, Cslib.Complexity.PiP_eq_SigmaP_of_PH_eq_SigmaP).

Main results #

References #

One level of the collapse #

theorem Cslib.Complexity.mem_SigmaP_of_exists {α : Type} {enc : α ↪ List Bool} {k : ℕ} (hk : 1 ≤ k) {B : Set (α × List Bool)} (hB : B ∈ SigmaP k (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits)) (p : Polynomial ℕ) :
{a : α | ∃ (w : List Bool), w.length = Polynomial.eval (enc a).length p ∧ (a, w) ∈ B} ∈ SigmaP k enc

Σₖ is closed under polynomially bounded existential quantification, for k ≥ 1: if B ∈ Σₖ as a problem on pairs of an instance and a word, then so is its projection along words of length p |enc a|. The new quantifier merges with the first quantifier of B, whose block lengths are polynomials in the length of the encoded pair, hence in |enc a|.

theorem Cslib.Complexity.mem_SigmaP_succ_iff {α : Type} {enc : α ↪ List Bool} {k : ℕ} {A : Set α} :
A ∈ SigmaP (k + 1) enc ↔ ∃ (p : Polynomial ℕ), ∃ B ∈ PiP k (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits), A = {a : α | ∃ (w : List Bool), w.length = Polynomial.eval (enc a).length p ∧ (a, w) ∈ B}

Σₖ₊₁ consists of the projections of Πₖ: the problems {a | ∃ w, |w| = p |enc a| ∧ (a, w) ∈ B} for a polynomial p and a problem B in Πₖ on pairs of an instance and a word.

One level of the collapse. If Πₖ ⊆ Σₖ for problems on pairs of an instance and a word, for some k ≥ 1, then Σₖ₊₁ ⊆ Σₖ: the pairs (a, w₁) from which the last k quantifiers accept form a problem in Πₖ, hence in Σₖ, and the quantifier over w₁ merges with its first quantifier (Cslib.Complexity.mem_SigmaP_of_exists).

The collapses #

theorem Cslib.Complexity.PH_eq_SigmaP_of_PiP_subset_SigmaP {α : Type} {enc : α ↪ List Bool} {k : ℕ} (hk : 1 ≤ k) (h : ∀ {β : Type} (encB : β ↪ List Bool), PiP k encB ⊆ SigmaP k encB) :
PH enc = SigmaP k enc

Πₖ ⊆ Σₖ collapses the polynomial hierarchy to Σₖ, for k ≥ 1 Arora and Barak, Theorem 5.4: if Πₖ ⊆ Σₖ for problems with any encoding of their instances, then PH = Σₖ.

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

NP = coNP collapses the polynomial hierarchy to NP [Arora and Barak, Theorem 5.4] [AB09].

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

P = NP collapses the polynomial hierarchy to P [Arora and Barak, Theorem 5.4] [AB09]: then coNP ⊆ NP, since P is closed under complement.

theorem Cslib.Complexity.PH_eq_SigmaP_of_SigmaP_succ_subset_SigmaP {α : Type} {enc : α ↪ List Bool} {k : ℕ} (h : ∀ {β : Type} (encB : β ↪ List Bool), SigmaP (k + 1) encB ⊆ SigmaP k encB) :
PH enc = SigmaP k enc

Σₖ₊₁ ⊆ Σₖ collapses the polynomial hierarchy to Σₖ, for every k: then Πₖ ⊆ Σₖ₊₁ ⊆ Σₖ, and for k = 0 the hypothesis is NP ⊆ P.

Raw-word transfer and fixed-domain collapses #

theorem Cslib.Complexity.preimage_enc_mem_SigmaP {α : Type} {enc : α ↪ List Bool} {k : ℕ} {B : Set (List Bool)} (hB : B ∈ SigmaP k Turing.MultiTapeTM.encBits) :
⇑enc ⁻¹' B ∈ SigmaP k enc

Pulling a raw-word Σₖ language on encBits back along enc gives a Σₖ problem on enc.

theorem Cslib.Complexity.preimage_enc_mem_PiP {α : Type} {enc : α ↪ List Bool} {k : ℕ} {B : Set (List Bool)} (hB : B ∈ PiP k Turing.MultiTapeTM.encBits) :
⇑enc ⁻¹' B ∈ PiP k enc

Pulling a raw-word Πₖ language on encBits back along enc gives a Πₖ problem on enc.

theorem Cslib.Complexity.exists_mem_SigmaP_encBits_preimage {α : Type} {enc : α ↪ List Bool} {k : ℕ} {A : Set α} (hA : A ∈ SigmaP k enc) :
∃ B ∈ SigmaP k Turing.MultiTapeTM.encBits, ⇑enc ⁻¹' B = A

Raw-word preimage representation for Σₖ: every A ∈ SigmaP k enc is enc ⁻¹' B for a raw-word language B ∈ SigmaP k encBits.

theorem Cslib.Complexity.exists_mem_PiP_encBits_preimage {α : Type} {enc : α ↪ List Bool} {k : ℕ} {A : Set α} (hA : A ∈ PiP k enc) :
∃ B ∈ PiP k Turing.MultiTapeTM.encBits, ⇑enc ⁻¹' B = A

Raw-word preimage representation for Πₖ: every A ∈ PiP k enc is enc ⁻¹' B for a raw-word language B ∈ PiP k encBits.

theorem Cslib.Complexity.mem_SigmaP_iff_exists_encBits {α : Type} {enc : α ↪ List Bool} {k : ℕ} {A : Set α} :
A ∈ SigmaP k enc ↔ ∃ B ∈ SigmaP k Turing.MultiTapeTM.encBits, ⇑enc ⁻¹' B = A

A ∈ SigmaP k enc iff A is the preimage along enc of a language in SigmaP k encBits.

theorem Cslib.Complexity.mem_PiP_iff_exists_encBits {α : Type} {enc : α ↪ List Bool} {k : ℕ} {A : Set α} :
A ∈ PiP k enc ↔ ∃ B ∈ PiP k Turing.MultiTapeTM.encBits, ⇑enc ⁻¹' B = A

A ∈ PiP k enc iff A is the preimage along enc of a language in PiP k encBits.

theorem Cslib.Complexity.mem_PH_iff_exists_encBits {α : Type} {enc : α ↪ List Bool} {A : Set α} :
A ∈ PH enc ↔ ∃ B ∈ PH Turing.MultiTapeTM.encBits, ⇑enc ⁻¹' B = A

A ∈ PH enc iff A is the preimage along enc of a language in PH encBits.

Πₖ ⊆ Σₖ on bit strings transfers to every instance encoding.

Πₖ = Σₖ on bit strings transfers to every instance encoding.

Σₖ₊₁ ⊆ Σₖ on bit strings transfers to every instance encoding.

Σₖ₊₁ = Σₖ on bit strings transfers to every instance encoding.

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

NP = coNP on bit strings transfers to every instance encoding.

NP ⊆ P on bit strings transfers to every instance encoding.

P = NP on bit strings transfers to every instance encoding.

Arora–Barak Theorem 5.6 / Goldreich Proposition 3.10 (fixed-domain inclusion form): if Πₖ ⊆ Σₖ for bit-string languages (encBits), with 1 ≤ k, then PH = Σₖ for every instance encoding.

Arora–Barak Theorem 5.6 / Goldreich Proposition 3.10 (fixed-domain equality form): if Πₖ = Σₖ for bit-string languages (encBits), with 1 ≤ k, then PH = Σₖ for every instance encoding.

Goldreich Proposition 3.10 (fixed-domain consecutive-level inclusion form): if Σₖ₊₁ ⊆ Σₖ for bit-string languages (encBits), then PH = Σₖ for every instance encoding.

Goldreich Proposition 3.10 (fixed-domain consecutive-level equality form): if Σₖ₊₁ = Σₖ for bit-string languages (encBits), then PH = Σₖ for every instance encoding.

coNP ⊆ NP on bit strings collapses PH to NP at every encoding.

NP = coNP on bit strings collapses PH to NP at every encoding Arora and Barak, Theorem 5.6.

NP ⊆ P on bit strings collapses PH to P at every encoding.

P = NP on bit strings collapses PH to P at every encoding Arora and Barak, Theorem 5.6.

Converse and equivalences (Goldreich Proposition 3.10) #

theorem Cslib.Complexity.SigmaP_succ_eq_SigmaP_of_PH_eq_SigmaP {α : Type} {enc : α ↪ List Bool} {k : ℕ} (h : PH enc = SigmaP k enc) :
SigmaP (k + 1) enc = SigmaP k enc

Goldreich Proposition 3.10 (converse for Σₖ₊₁): if PH = Σₖ, then Σₖ₊₁ = Σₖ.

theorem Cslib.Complexity.PiP_eq_SigmaP_of_PH_eq_SigmaP {α : Type} {enc : α ↪ List Bool} {k : ℕ} (h : PH enc = SigmaP k enc) :
PiP k enc = SigmaP k enc

Goldreich Proposition 3.10 (converse for Πₖ): if PH = Σₖ, then Πₖ = Σₖ.

PH = Σₖ on bit strings transfers to every instance encoding.

Goldreich Proposition 3.10: PH = Σₖ at every encoding iff Σₖ₊₁ = Σₖ on bit strings.

Goldreich Proposition 3.10: for 1 ≤ k, PH = Σₖ at every encoding iff Πₖ = Σₖ on bit strings.

Goldreich Proposition 3.10 (fixed-domain encBits equivalence for Σₖ₊₁): PH encBits = SigmaP k encBits ↔ SigmaP (k + 1) encBits = SigmaP k encBits.

Goldreich Proposition 3.10 (fixed-domain encBits equivalence for Πₖ): for 1 ≤ k, PH encBits = SigmaP k encBits ↔ PiP k encBits = SigmaP k encBits.

PH = P at every encoding iff P = NP on bit strings.