4.6.28 · D1Theory of Computation

Foundations — PSPACE — Quantified Boolean Formula

1,768 words8 min readBack to topic

Before you can read a single line of the parent note the TQBF topic, you need a pile of small symbols. This page defines every one of them from nothing — plain words, a picture, and the reason the topic needs it. Read top to bottom; each block uses only what came before it.


1. A Boolean variable — the atom

Picture it. A light switch. Up = , down = . Nothing in between.

Figure — PSPACE — Quantified Boolean Formula

Why the topic needs it. Every formula in this chapter is built out of these switches. When the parent note says "assignment," it means choosing an up/down position for every switch. With switches there are possible arrangements — that explosion is the whole reason the topic cares about time vs. space.


2. The connectives — wiring the switches together

Picture it. Think of water pipes with valves.

  • = two valves in series: water flows only if both are open.
  • = two valves in parallel: water flows if either is open.
Figure — PSPACE — Quantified Boolean Formula

Why the topic needs it. The inner formula in a QBF is just switches wired with these three operations. The recursive evaluator in the parent note leans on one fact you can now see in the picture: for OR, one open valve already lets water through (so can stop early); for AND, one closed valve blocks everything (so can fail early).


3. A Boolean formula and the arrow

Two more shorthands the parent uses:

  • (" implies ") is false only when and ; it equals .
  • (" iff ") is when and are equal.

Why the topic needs it. The worked examples in the parent (, , ) are exactly these tiny 's. And SAT is nothing but the question "can we make some equal ?"


4. Free vs. bound variables — why a QBF has no inputs left

Picture it. still has a blank ; you can't say if it's "true" until someone fills it. That is free.

Why the topic needs it. A QBF puts a quantifier in front of every variable, so no blanks remain. That is why the parent can say a QBF "is either true or false" — there is nothing left to plug in. Keep this: quantified = no free variables = a definite truth value.


5. The quantifiers and — the two players

Here means "the formula with every replaced by ."

Picture it as players. Read left to right as turns in a game:

  • at an , the Prover chooses to help make true;
  • at a , the Spoiler chooses to try to break it.
Figure — PSPACE — Quantified Boolean Formula

Why the topic needs it. This is the whole subject. Alternating is what separates TQBF from SAT (all-), and it is the bridge to game trees and the polynomial hierarchy (which counts alternations).


6. Prenex form and the string

Picture it. A line of players queued up ( moves first), each grabbing one switch , and only at the very end does the wired circuit light up or stay dark.

Why the topic needs it. Reading the queue left-to-right is the recursive algorithm: peel off , branch on its two switch values, recurse on the rest.


7. The set-builder and the language TQBF

Why the topic needs it. "Is ?" is the precise yes/no problem the whole chapter solves. Phrasing it as a language is what lets us compare it to SAT and place it in a complexity class.


8. Complexity classes: SPACE, PSPACE, and

Figure — PSPACE — Quantified Boolean Formula

Why the topic needs it. "TQBF is PSPACE-complete" means (a) it lives in this class and (b) every PSPACE problem reduces to it. The reused-memory recursion gives (a); Savitch's theorem's -folding gives (b). Where NP sits relative to all this is its own open question.


Prerequisite map

Boolean variable 0 or 1

Connectives AND OR NOT

Boolean formula phi

Free vs bound variables

Quantifiers exists and forall

Prenex QBF Q1 x1 ... Qn xn phi

Language TQBF

SAT all-exists case

Two-player game view

SPACE and PSPACE

TQBF is PSPACE-complete


Equipment checklist

Test yourself — cover the right side and answer before revealing.

A Boolean variable can hold how many values, and what do we write them as?
Exactly two: (true) and (false).
When is true?
Only when both and are (valves in series).
When is true?
When at least one of is (valves in parallel).
What does compute?
when and are equal, else .
What is a free variable, and why does a QBF have none?
A variable with no assigned value (a blank); a QBF quantifies every variable, so no blanks remain → definite truth value.
Rewrite using a connective over both values of .
(a giant OR).
Rewrite using a connective.
(a giant AND).
Why do and differ?
Quantifier order is move order; in the choice of may depend on .
What does mean in words?
The set of string encodings of formulas such that is true.
Define PSPACE in one line.
Problems solvable using polynomial work-tape memory (), regardless of running time.
Why can a -leaf game tree fit in polynomial space?
Memory is reusable — recurse one branch, keep only a bit, reuse the same cells for the next branch.