4.6.28 · D5Theory of Computation

Question bank — PSPACE — Quantified Boolean Formula

1,732 words8 min readBack to topic

True or false — justify

A QBF in prenex form always evaluates to a single truth value.
True — every variable is quantified (no free variables), so there is nothing left to plug in; the formula denotes a fact, not a function.
being true is equivalent to SAT.
True — an all-existential QBF asks "is there an assignment making true?", which is exactly the SAT question. SAT is the all- slice of TQBF.
is true iff is true for at least one value of .
False — demands both and satisfy ; "at least one" is the rule, not .
If is unsatisfiable, then is false.
True — unsatisfiable means no assignment works, so certainly not all assignments work; the all- formula fails on the first bad assignment.
TQBF is in NP because you can guess an assignment for every variable.
False — you can guess the choices, but a asserts a property of all values; no single nondeterministic certificate captures that. TQBF is PSPACE-complete and not believed to be in NP.
for every .
False in general — in the choice of may depend on ; swapping forces one fixed to work for all . Example: over a domain of size is true, but is false.
.
True — like-quantifiers commute; both just say "there is a choice of the pair making true", and order among two 's carries no dependency.
The recursive evaluator EVAL needs to hold both subtrees ( and ) in memory simultaneously.
False — that is the whole trick: it recurses on the first branch, keeps only the resulting bit b0, then reuses the same memory for the second branch. Space stays where = number of quantifiers, = formula size.
Since EVAL explores a tree of about leaves, TQBF is not in PSPACE.
False — exponential time (the roughly leaves visited) does not imply exponential space. Memory is reused across branches, so space is polynomial; PSPACE bounds space, not time. See PSPACE and Polynomial Space.
Every problem in NP reduces to TQBF in polynomial time.
True — NP PSPACE and TQBF is PSPACE-complete, so every PSPACE problem (hence every NP problem) reduces to it. See NP vs PSPACE.

Spot the error

" is a correct polynomial reduction."
Logically correct but the reduction is broken: recall means " reaches in steps". Here appears twice, so ⇒ size — an exponential-size QBF, not a valid poly-time reduction. See Savitch's Theorem.
" in the folded is just extra clutter; it doesn't change the meaning."
It is the heart of the fix: the lets one copy of stand for both halves and , keeping size linear per level. Remove it and you're back to the exponential doubling.
" has a free variable, so it's a SAT instance."
Wrong — is quantified by the , so there are no free variables; it is a closed QBF that evaluates to true.
" is true: for each just pick ."
Wrong — take : then (the constant ) for every , so the inner fails. One failing -branch makes the whole formula false.
"To evaluate we must always test both and ."
Not always — is an OR; if already yields true (b0 = 1) you may stop early. (You test both only when the first branch is false.)
"PSPACE-completeness of TQBF proves PSPACE NP."
Wrong — completeness only says TQBF is a hardest PSPACE problem. Whether NP PSPACE is an open question; TQBF being complete doesn't settle it.

Why questions

Why is a QBF naturally a two-player game rather than a one-player search?
Because and alternate: the -"Prover" wants the formula true, the -"Spoiler" wants it false, and reading quantifiers left-to-right is exactly the sequence of moves. See Two-Player Games and Game Trees.
Why does a true QBF correspond to the -player having a winning strategy?
Truth requires that for every -move there still exists an -reply keeping true — precisely the definition of a strategy that wins no matter what the opponent does.
Why does the space recurrence give only polynomial space?
Here counts quantifiers (= recursion depth) and is the formula size. It unrolls to — a linear-in-depth sum, because each level adds only overhead and the memory of a finished branch is freed before the next.
Why can a "fold" two reachability halves into one in the hardness proof?
The ranges over the two required configuration-pairs and ; a single guarded formula " is one of these " checks both while writing once. This is Savitch's theorem as quantifiers. See Savitch's Theorem.
Why is quantifier order the source of TQBF's power beyond SAT?
Alternation lets later choices depend on earlier ones (a strategy), encoding an adversary. Pure SAT has no adversary — just one existential search — which is why SAT is "only" NP-complete. See Polynomial Hierarchy.
Why does the game have to be polynomial length for this to sit inside PSPACE?
The number of quantifiers recursion depth game length; polynomial depth keeps the reused memory polynomial. An exponentially long game would need exponential depth and break the bound.

Edge cases

(a single existential over the literal ): true or false?
True — pick (the constant true), giving value . A lone needs just one satisfying value.
: true or false?
False — makes the body the constant , and requires all values to work, so one failure suffices to kill it.
A QBF with zero quantifiers, e.g. the closed expression : is it a valid QBF, and what does EVAL do?
Valid — it's the base case with no variables left; EVAL just computes the Boolean value directly (, since is true), in polynomial space.
— same variable quantified twice: what happens?
In prenex QBF each variable is bound once; re-quantifying is malformed. If forced by shadowing rules, the inner rebinds and the outer becomes vacuous — a degenerate case to avoid by renaming.
Does swapping two adjacent same-type quantifiers ever change truth?
No — and commute freely; dependency only arises across an boundary, where order encodes who-chooses-after-whom.
If a formula is but ignores entirely, does the matter?
No effect on truth — a over an unused variable is vacuous (both values give the same result), so it can be dropped without changing the answer.

Recall One-line self-test

Quickest single sentence capturing TQBF's status? ::: TQBF is PSPACE-complete — the "SAT of PSPACE" — because alternation encodes a polynomial-length two-player game, evaluable in reused polynomial space.