Skip to content
DAH

The polynomial hierarchy and formula minimization

Complexity classes above NP built by alternating 'there exists' and 'for all' quantifiers; Σ₂ᵖ is the home of problems such as minimizing a Boolean formula.

On this page15 sections
Why other work relies on it

Many conditional results are phrased as 'unless the polynomial hierarchy collapses', and the exact complexity of minimization problems (logic synthesis, formula size) is classified by its levels.

A ladder of ever-harder problem classes, built by stacking 'there is a choice such that, for all cases' questions.

  1. 1NP: guess an answer, check it fast
  2. 2Add a layer: guess, then check all cases
  3. 3Stack layers: the polynomial hierarchy
  4. 4Shortening a formula needs two layers
  5. 5Complete for the second rung (Turing reductions)

Recap of NP. A yes/no problem is in NP\mathsf{NP} if every yes-answer has a short certificate that a computer can check quickly (in polynomial time, meaning the number of steps grows like a power of the input length). In logic notation: xx is a yes-instance exactly when ∃y R(x,y)\exists y\,R(x,y), where yy is short and RR is fast to evaluate. Read ∃\exists as 'there exists'. Its partner is ∀\forall, 'for all'. Problems of the form ∀y R(x,y)\forall y\,R(x,y) form coNP\mathsf{coNP}.

Adding a layer. The class Σ2p\Sigma_2^p (read 'sigma two') holds problems of the form ∃y ∀z R(x,y,z)\exists y\,\forall z\,R(x,y,z): guess a short object yy, then show that a fast check succeeds for every short zz. The class Σ3p\Sigma_3^p adds another alternation, and so on. The union of all these is the polynomial hierarchy. Each class is contained in the next, and all are contained in PSPACE\mathsf{PSPACE} (problems solvable with a polynomial amount of memory).

What is open. If P=NP\mathsf{P}=\mathsf{NP}, every level collapses down to P\mathsf{P}. If any level equals the one above it, the hierarchy stops there. Most experts believe all levels differ, but this is unproved, and it is a close relative of the P versus NP problem (see computational complexity). Many results say 'if this problem were easy, the hierarchy would collapse', which is treated as evidence the problem is hard.

Completeness and two kinds of reduction. A problem is complete for a class if it is in the class and every problem in the class can be translated into it. A many-one reduction translates each instance into one instance of the target problem with the same yes/no answer. A Turing reduction is more flexible: the translating program may ask the target problem several questions and combine the answers. A many-one reduction is also a Turing reduction, so many-one completeness is the stronger claim.

Example: shortening a formula. A propositional formula combines true/false variables with 'and', 'or' and 'not'. The Minimum Equivalent Expression problem (MEE) asks: given a formula φ\varphi and a number kk, is there a formula using at most kk variable occurrences that gives the same truth value as φ\varphi on every assignment? To decide this, guess the short formula ψ\psi (∃\exists), then check that φ\varphi and ψ\psi agree on all assignments (∀\forall). That is exactly the Σ2p\Sigma_2^p pattern, so MEE is in Σ2p\Sigma_2^p. Buchfuhrer and Umans proved in 2008 that it is complete for Σ2p\Sigma_2^p under Turing reductions. A 2026 arXiv preprint claims the many-one version; it is not refereed.

Why it matters. Chip designers and logic-synthesis tools shrink formulas and circuits to save area and power. Completeness results explain why they use heuristics: an exact, always-fast minimizer would collapse the hierarchy.

Go deeper

The full technical text.

From NP to alternating quantifiers

A problem is in NP\mathsf{NP} when a yes-answer has a short certificate: x∈L  ⟺  ∃y R(x,y)x\in L \iff \exists y\,R(x,y) for a polynomial-time predicate RR and yy of polynomial length. The class coNP\mathsf{coNP} swaps the quantifier: ∀y R(x,y)\forall y\,R(x,y). The polynomial hierarchy (Meyer and Stockmeyer, 1972; Stockmeyer, 1976) stacks alternations. Σ2p\Sigma_2^p is the class of languages of the form ∃y ∀z R(x,y,z)\exists y\,\forall z\,R(x,y,z), and Π2p\Pi_2^p its complement. Equivalently, Σ2p=NPNP\Sigma_2^p=\mathsf{NP}^{\mathsf{NP}}: a nondeterministic polynomial-time machine with an NP\mathsf{NP} oracle. Higher levels Σkp\Sigma_k^p add more alternations, and PH=⋃kΣkp⊆PSPACE\mathsf{PH}=\bigcup_k\Sigma_k^p\subseteq\mathsf{PSPACE}.

Nobody knows whether the levels are distinct. If P=NP\mathsf{P}=\mathsf{NP} the whole hierarchy collapses to P\mathsf{P}; and if some level equals the next, everything above it collapses to that level. Most experts believe the hierarchy is infinite, which is why a result like "problem XX is not NP\mathsf{NP}-hard unless the hierarchy collapses" is taken as strong evidence that XX is not NP\mathsf{NP}-hard.

Complete problems

A problem is complete for a class if it lies in the class and every problem in the class reduces to it. The standard complete problem for Σkp\Sigma_k^p is satisfiability of quantified Boolean formulas with kk alternating blocks (starting with ∃\exists). Completeness depends on the kind of reduction: a many-one (Karp) reduction maps each instance to a single instance with the same answer; a Turing (Cook) reduction may call a solver for the target several times and combine the answers, so many-one completeness is the stronger statement.

Minimization as a Σ2p\Sigma_2^p problem

Given a Boolean formula φ\varphi and a bound kk, the Minimum Equivalent Expression problem (MEE) asks whether some formula ψ\psi with at most kk variable occurrences is equivalent to φ\varphi. Membership in Σ2p\Sigma_2^p is direct: guess ψ\psi (∃\exists), then check that φ\varphi and ψ\psi agree on every assignment (∀\forall). Logic-synthesis tools approximate this kind of minimization in practice, and its complexity is one reason exact minimization is believed to be out of reach in general.

Buchfuhrer and Umans (ICALP 2008) proved that MEE, and its depth-kk versions for every k≥3k\ge3, are Σ2p\Sigma_2^p-complete under polynomial-time Turing reductions; the problem had been listed as open in Garey and Johnson (1979). Whether the many-one version holds has been listed as open; a 2026 preprint claims it (see the open problem on this entry), and that claim is not refereed.

The hierarchy generalizes the P versus NP question; see Computational complexity theory.

Words on this page (12)
Words on this page
polynomial hierarchy
A tower of complexity classes above NP, each level adding one more alternation between 'there exists' and 'for all' quantifiers.
NP
Yes/no problems whose yes-answers have a short certificate that a computer can check in polynomial time.
coNP
Problems whose no-answers have a short certificate; equivalently, problems of the form 'for all y, R holds'.
polynomial time
A running time bounded by a power of the input length, such as n squared; the usual meaning of 'fast' in complexity theory.
quantifier
The logical words 'there exists' and 'for all' that bind a variable in a statement.
complexity class
A set of problems that can be solved within some limit on a resource, such as time or memory.
reduction
An efficient translation of instances of one problem into instances of another that preserves the answers.
many-one reduction
A reduction that turns each instance into a single instance of the target problem with the same yes/no answer.
Turing reduction
A reduction that may query a solver for the target problem many times and combine the answers; weaker than many-one.
complete problem
A problem in a class that every problem in the class reduces to, so it is among the hardest in that class.
propositional formula
An expression built from true/false variables with 'and', 'or' and 'not'.
logical equivalence
Two formulas are equivalent if they give the same truth value for every assignment of the variables.
New to this? Read first (3)
New to this? Read first
AI-reviewedAn AI drafted this explanation. Check it against the technical text.

Understanding map

map of the whole wiki →

What to read before The polynomial hierarchy and formula minimization (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.

  1. Start with
  2. Step 2
  3. Step 3
  4. Then

Open problems & questions

Progress timeline

  1. Oct 25, 2026
    Preprint claims many-one completeness
    Related to: Is Minimum Equivalent Expression Σ₂ᵖ-complete under many-one reductions?

    Jaakkola's arXiv note claims a proof that MEE is Σ₂ᵖ-complete under polynomial-time many-one reductions; its abstract says the proof was discovered by GPT-Sol-6.1. Not refereed.

    source
  2. Oct 25, 2026
    Preprint claims many-one completeness

    Jaakkola posted a note on arXiv presenting a proof, which the abstract says was discovered by GPT-Sol-6.1, that MEE is Σ₂ᵖ-complete under many-one reductions. It is not refereed.

    source
  3. Jan 1, 2008
    MEE shown Σ₂ᵖ-complete under Turing reductions

    Buchfuhrer and Umans showed at ICALP 2008 that Minimum Equivalent Expression is Σ₂ᵖ-complete under polynomial-time Turing reductions (year only; dated to the first of the year).

    source