Mahaney's theorem

DefinitionSparse decision problems#✓fully proved

A decision problem \(L\) is sparse when there is a polynomial \(p\) with natural-number coefficients such that, for every natural number \(n\), the set of bitstrings of length at most \(n\) accepted by \(L\) is finite and has at most \(p(n)\) elements.

def Sparse (L : MetaMathlibExt.ComplexityTheory.DecisionProblem) : Prop :=
  ∃ p : Polynomial ℕ, ∀ n,
    Set.Finite {x : List Bool | x.length ≤ n ∧ L x = true} ∧
    Set.ncard {x : List Bool | x.length ≤ n ∧ L x = true} ≤ p.eval n
Uses 1 · Used by 1

DefinitionNP-complete decision problems#✓fully proved

A decision problem \(L\) is NP-complete when \(L\) is in NP and every decision problem in NP has a polynomial-time many-one reduction to \(L\).

def NPComplete (L : MetaMathlibExt.ComplexityTheory.DecisionProblem) : Prop :=
  L ∈ MetaMathlibExt.ComplexityTheory.NP ∧
    ∀ L' : MetaMathlibExt.ComplexityTheory.DecisionProblem,
      L' ∈ MetaMathlibExt.ComplexityTheory.NP →
      Cslib.CookLevin.PolyManyOneRed L' L
Uses 4 · Used by 1

TheoremMahaney's theorem: sparse NP-complete sets imply P = NP#●ready to prove

If some decision problem is both sparse and NP-complete, then the complexity classes \(\mathsf{P}\) and \(\mathsf{NP}\) are equal.

public theorem_wanted mahaney :
    (∃ L : MetaMathlibExt.ComplexityTheory.DecisionProblem, Sparse L ∧ NPComplete L) →
      MetaMathlibExt.ComplexityTheory.P = MetaMathlibExt.ComplexityTheory.NP
Sources
  • S. R. Mahaney, "Sparse complete sets for NP: solution of a conjecture of Berman and Hartmanis", Journal of Computer and System Sciences 25 (1982), 130-143.
Uses 6
2 fully proved1 ready to prove

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.