Polynomial hierarchy
TheoremIf P = NP then the polynomial hierarchy collapses to P#●ready to prove
MetaMathlibExt.Complexity.KeyTheorems.PHCollapse.ph_collapses
If the complexity classes P and NP are equal, then the polynomial hierarchy PH, the union of the classes \(\Sigma_k^p\) over all natural numbers \(k\), is equal to P.
public theorem_wanted ph_collapses :
MetaMathlibExt.ComplexityTheory.P = MetaMathlibExt.ComplexityTheory.NP →
PH = MetaMathlibExt.ComplexityTheory.P
def P : DecisionComplexityClass :=
{ L | IsPolyTime L }
MathlibExt/Computability/Complexity.lean:194
def NP : DecisionComplexityClass :=
{ L | ∃ (p : Polynomial ℕ), ∃ R : (List Bool × List Bool) → Bool,
IsPolyTime R ∧
∀ x, L x ↔ ∃ w : List Bool, w.length ≤ p.eval x.length ∧ R (x, w) }
MathlibExt/Computability/Complexity.lean:200
def PH : DecisionComplexityClass := ⋃ k, SigmaK k
CSLibExt/Computability/Complexity/Classes.lean:323
Sources
Sources
- S. Arora and B. Barak, Computational Complexity: A Modern Approach, 2009 (PH collapses to P if P = NP); L. J. Stockmeyer, "The polynomial-time hierarchy", Theoretical Computer Science 3 (1977), 1-22.
Uses 4
Statement usesThe polynomial hierarchy · Complexity classes · The complexity class NP · The complexity class P
TheoremThe polynomial hierarchy is contained in PSPACE#●ready to prove
MetaMathlibExt.Complexity.KeyTheorems.PHSubsetPSPACE.ph_subset_pspace
Every decision problem in the polynomial hierarchy PH belongs to PSPACE.
public theorem_wanted ph_subset_pspace :
PH ⊆ PSPACE
def PH : DecisionComplexityClass := ⋃ k, SigmaK k
CSLibExt/Computability/Complexity/Classes.lean:323
def PSPACE : DecisionComplexityClass :=
{L | langOf L ∈ Cslib.Turing.MultiTapeTM.Classes.PSPACE}
CSLibExt/Computability/Complexity/Classes.lean:117
Sources
Sources
- L. J. Stockmeyer, "The polynomial-time hierarchy", Theoretical Computer Science 3 (1977), 1-22; S. Arora and B. Barak, Computational Complexity: A Modern Approach, 2009, Theorem 5.4.
Uses 4
2 ready to prove
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.