Alphabeta Math
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

✓ 14 results · all verified · 11 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 3 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Space Complexity, Savitch's Theorem, and TQBF

1 · Prerequisites

2 · Summary

This page isolates the space-bounded side of complexity theory. The first block turns a local reachability recursion on finite digraphs into Savitch's theorem, making explicit that the recursion reuses workspace instead of materializing the whole configuration graph. The immediate corollary is the collapse PSPACE=NPSPACE together with deterministic closure under complement.

The second block moves from reachability to quantified formulas. It proves that TQBF can be evaluated in polynomial space, then builds the reachability formula used for PSPACE-hardness and keeps its size polynomial by reusing one recursive subformula. The page closes by interpreting quantified formulas as games and using that semantics to connect unlimited alternation with PSPACE via AP=PSPACE.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

The classes PSPACE and NPSPACE

Definition

The class PSPACE is the union of all deterministic polynomial-space classes:

PSPACE:=⋃p polynomialDSPACE(p(n)).

The class NPSPACE is the union of all nondeterministic polynomial-space classes:

NPSPACE:=⋃p polynomialNSPACE(p(n)).

Equivalently, a language L lies in PSPACE when there is a deterministic multitape Turing machine deciding L using at most O(nc) space for some constant c, and similarly L lies in NPSPACE when there is such a nondeterministic decider. The meanings of DSPACE(s(n)) and NSPACE(s(n)) are those of The classes DTIME, NTIME, DSPACE, and NSPACE.

Remarks

  • The page uses polynomial space rather than a single fixed bound because closure and completeness statements are stated for the whole class.
  • No closure under complement is built into the definition of NPSPACE; that is a later theorem.
LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12Open item page →

A machine using space s(n) has at most exponentially many configurations

Statement

Let M be a fixed k-tape deterministic or nondeterministic Turing machine, and fix an input x of length n. Then there is a constant cM>0 such that if every branch of M on x visits at most s(n)≥1 tape cells, then the number of configurations that can arise on input x is at most 2cMs(n).

Facts & Assumptions

Given: a fixed k-tape machine M, an input x of length n, and a bound s:=s(n)≥1 on the number of visited cells.

[L1]

A multitape machine has a finite state set, finitely many tape alphabets, and one head position on each tape (Multitape and nondeterministic Turing machine variants).

[L2]

Worst-case space is the total number of tape cells ever visited during a halting computation (Worst-case time and space complexity of a machine).

Proof

technique · direct
1.1L1L2given

By [L1], once the input x is fixed a configuration of M is determined by the current state, the k head positions, and the symbols on the cells that have been visited so far: every unvisited work-tape cell is still blank, and every unvisited input-tape cell still carries its fixed symbol from x. By [L2], at most s tape cells are ever visited in total.

2.1step 1.1algebra

Let Q be the finite state set and let Γ be a common finite upper bound for the tape alphabets. Step 1.1 gives at most ∣Q∣ choices for the state, at most (s+1)k choices for the head positions, and at most ∣Γ∣s choices for the symbols on the visited cells. Hence the total number of configurations that can arise on input x is at most ∣Q∣(s+1)k∣Γ∣s.

3.1step 2.1algebra∎

Because M is fixed, the constants ∣Q∣, k, and ∣Γ∣ are fixed. For s≥1 there is therefore a constant cM with ∣Q∣(s+1)k∣Γ∣s≤2cMs. This proves the claimed exponential bound.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

The bounded reachability recursion for directed paths of length at most 2^i

Definition

Let G=(V,A) be a finite digraph in the sense of Multigraphs, loops and directed graphs as variants distinct from the default finite simple graph, let u,v∈V, and let i∈N. Define the predicate Reach⁡iG(u,v) recursively by

Reach⁡0G(u,v)  ⟺  (u=v or (u,v)∈A),

and, for i≥1,

Reach⁡iG(u,v)  ⟺  ∃z∈V (Reach⁡i−1G(u,z)∧Reach⁡i−1G(z,v)).

This is the bounded reachability recursion. Its intended meaning is that Reach⁡iG(u,v) asks whether there is a directed path from u to v of length at most 2i.

Remarks

  • The level i=0 allows equality as well as one legal arc, so it captures paths of lengths 0 and 1 exactly.
  • The recursive step halves the permitted path-length scale.
LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

The bounded reachability recursion is correct

Statement

Let G=(V,A) be a finite digraph, let u,v∈V, and let i∈N. Then Reach⁡iG(u,v) holds if and only if G contains a directed path from u to v of length at most 2i.

Facts & Assumptions

Given: a finite digraph G=(V,A), vertices u,v∈V, and a natural number i.

[L1]

The definition of Reach⁡0G(u,v) says exactly that u=v or (u,v)∈A, and the definition of Reach⁡iG for i≥1 says that some midpoint z makes both Reach⁡i−1G(u,z) and Reach⁡i−1G(z,v) hold (The bounded reachability recursion for directed paths of length at most 2^i).

Proof

technique · induction
1.1L1base

For i=0, [L1] says Reach⁡0G(u,v) holds exactly when u=v or there is an arc u→v. These are precisely the directed paths from u to v of lengths 0 and 1, hence of length at most 20.

1.2L1ihconstruct

Assume the claim for i−1 with i≥1. If Reach⁡iG(u,v) holds, [L1] gives a midpoint z with Reach⁡i−1G(u,z) and Reach⁡i−1G(z,v). By the induction hypothesis there are directed paths from u to z and from z to v, each of length at most 2i−1, and concatenating them gives a path from u to v of length at most 2i.

1.3L1ihchoosealgebra

Conversely, suppose there is a directed path u=v0→v1→⋯→vℓ=v with ℓ≤2i. Put m:=min⁡(2i−1,ℓ) and choose z:=vm. Then the initial segment from u to z has length at most 2i−1, and the remaining segment from z to v has length ℓ−m≤2i−1. The induction hypothesis gives Reach⁡i−1G(u,z) and Reach⁡i−1G(z,v), so [L1] yields Reach⁡iG(u,v).

2.1step 1.1step 1.2step 1.3discharge-induction∎

Steps 1.1, 1.2, and 1.3 prove the equivalence for every i.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

The bounded reachability recursion uses logarithmic recursion depth

Statement

Let G be a finite digraph with N≥1 vertices, numbered by {0,…,N−1}. To decide whether a directed path exists from u to v, it is enough to evaluate Reach⁡iG(u,v) with i=0 when N=1 and i=⌈log⁡2(N−1)⌉ when N≥2. This recursion has depth at most i+1=O(log⁡N), each stack frame stores O(log⁡N) bits, and the whole deterministic search therefore uses O(log⁡2N) space. In particular, if N≤2cs(n) for some constant c, then the search uses O(s(n)2) space.

Facts & Assumptions

Given: a finite digraph G with N≥1 numbered vertices.

[L1]

Reach⁡iG(u,v) is intended to decide existence of a path of length at most 2i, and its recursive definition decreases i by one at each call (The bounded reachability recursion for directed paths of length at most 2^i).

[L2]

A space-s(n) machine has at most 2O(s(n)) configurations (A machine using space s(n) has at most exponentially many configurations).

Proof

technique · direct
1.1L1givenalgebra

If N=1, the only possible path question is settled by Reach⁡0G. Suppose now that N≥2. Any directed path with repeated vertices can be shortened by deleting a directed cycle, so if u reaches v at all then u reaches v by a simple directed path. A simple directed path in an N-vertex digraph has length at most N−1, and 2⌈log⁡2(N−1)⌉≥N−1.

2.1L1step 1.1

By [L1], every recursive call decreases the index i by one, so starting from that initial i yields recursion depth at most i+1=O(log⁡N).

3.1step 2.1algebra

One stack frame stores the current vertices u, v, a midpoint candidate z, and the current index i. Each of these numbers is below max⁡(N,i+1), so one frame uses O(log⁡N) bits. Multiplying by the depth from step 2.1 gives total space O(log⁡2N).

4.1L2step 3.1algebra∎

If N≤2cs(n), then log⁡N≤cs(n), and step 3.1 becomes O(s(n)2). The last sentence follows; [L2] records exactly the configuration bound that supplies such an N in Savitch's theorem.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

Savitch's theorem: NSPACE(s(n)) is contained in DSPACE(s(n)^2)

Statement

For every function s:N→N, every language in NSPACE(s(n)) also lies in DSPACE(s(n)2).

Facts & Assumptions

Given: a language L∈NSPACE(s(n)).

[L1]

By definition, L∈NSPACE(s(n)) means that some fixed nondeterministic multitape machine decides L while every branch uses O(s(n)) space (The classes DTIME, NTIME, DSPACE, and NSPACE).

[L2]

Such a machine has at most exponentially many configurations in its space bound (A machine using space s(n) has at most exponentially many configurations).

[L3]

The bounded reachability recursion is correct for paths of length at most 2i (The bounded reachability recursion is correct).

[L4]

When a digraph has N vertices, the recursion needs only O(log⁡2N) space, hence O(s(n)2) space when N≤2O(s(n)) (The bounded reachability recursion uses logarithmic recursion depth).

Proof

technique · direct
1.1L1construct

Let M be the machine from [L1], and fix an input x of length n. Form the directed configuration graph Gx: its vertices are the configurations of M on x, and there is an arc C→C′ exactly when one legal transition of M moves from C to C′. Let Cstart(x) be the start configuration. Then x∈L if and only if some accepting configuration is reachable from Cstart(x) in Gx.

2.1L2step 1.1algebra

By [L2], Gx has at most Nx≤2cs(n) vertices for some constant c depending only on M. Any directed path with repeated vertices can be shortened by deleting directed cycles, so x∈L if and only if Cstart(x) reaches some accepting configuration by a path of length at most Nx−1.

3.1L3step 2.1construct

A deterministic simulator can enumerate candidate accepting configurations C one at a time and run the bounded reachability procedure on the triple (Gx,Cstart(x),C) with an index large enough to cover Nx−1. By [L3], that test answers the reachability question correctly for each candidate C.

4.1L4step 3.1algebra

By [L4], each such reachability test uses O(s(n)2) space. The simulator never stores the whole graph: it keeps only the current input, one or two configurations, the midpoint candidate, and the recursion stack; adjacency in Gx is recomputed from the transition function of M when needed. The outer loop over candidate accepting configurations adds only O(s(n)) more space. Hence the overall deterministic decider uses O(s(n)2) space.

5.1step 4.1∎

Since the input x was arbitrary, L∈DSPACE(s(n)2). This proves NSPACE(s(n))⊆DSPACE(s(n)2).

CorollaryStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

PSPACE equals NPSPACE and is closed under complement

Statement

PSPACE=NPSPACE,

and if L∈PSPACE then its complement also lies in PSPACE.

Facts & Assumptions

Given: the classes PSPACE and NPSPACE.

[L1]

PSPACE and NPSPACE are the unions of DSPACE(p(n)) and NSPACE(p(n)) over polynomial bounds p (The classes PSPACE and NPSPACE).

[L2]

Savitch's theorem gives NSPACE(s(n))⊆DSPACE(s(n)2) for every s (Savitch's theorem: NSPACE(s(n)) is contained in DSPACE(s(n)^2)).

[L3]

A deterministic space class is defined by deterministic deciders (The classes DTIME, NTIME, DSPACE, and NSPACE).

Proof

technique · direct
1.1L1L2given

If L∈NPSPACE, then [L1] gives a polynomial p with L∈NSPACE(p(n)). By [L2], L∈DSPACE(p(n)2)⊆PSPACE, because the square of a polynomial is again a polynomial. Thus NPSPACE⊆PSPACE.

2.1L1step 1.1

The reverse inclusion PSPACE⊆NPSPACE is immediate from [L1] because every deterministic machine is a special case of a nondeterministic one. Hence PSPACE=NPSPACE.

3.1L1L3construct∎

If L∈PSPACE, choose a deterministic polynomial-space decider M for L using [L1] and [L3]. Swapping the accepting and rejecting halting states of M gives a deterministic polynomial-space decider for the complement of L. Therefore PSPACE is closed under complement.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

Quantified Boolean formulas and the language TQBF

Definition

A quantified Boolean formula is a formula of the form

Q1x1 Q2x2⋯Qmxm ψ(x1,…,xm),

where each Qi is either ∃ or ∀, and ψ is a quantifier-free Boolean formula built from the variables x1,…,xm, the constants 0,1, and the connectives ¬,∧,∨.

Such a formula is true when its usual recursive Boolean semantics evaluates to true. The language TQBF consists of all true quantified Boolean formulas under any fixed effective encoding of these strings.

Remarks

  • The page uses prenex form so that the quantifier prefix can be read from left to right.
  • TQBF is a decision problem about truth, not satisfiability of only the quantifier-free matrix.
PropositionStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

TQBF is in PSPACE

Statement

The language TQBF belongs to PSPACE.

Facts & Assumptions

Given: an input quantified Boolean formula Φ.

[L1]

TQBF is the language of true quantified Boolean formulas (Quantified Boolean formulas and the language TQBF).

[L2]

A language lies in PSPACE exactly when some deterministic machine decides it using polynomial space (The classes PSPACE and NPSPACE).

Proof

technique · direct
1.1L1given

If Φ has no quantifiers, then by [L1] one only needs to evaluate a quantifier-free Boolean formula under a fully specified truth assignment. That can be done by a deterministic left-to-right parse using space polynomial in ∣Φ∣.

1.2L1construct

Suppose Φ begins with ∃x Ψ(x). Recursively evaluate Ψ(0) and, if necessary, Ψ(1); accept exactly when at least one branch returns true. If instead Φ begins with ∀x Ψ(x), recursively evaluate both Ψ(0) and Ψ(1) and accept exactly when both are true. By [L1], this is exactly the truth definition of the quantified formula.

2.1step 1.2algebra

The recursion depth is at most the number of quantified variables, hence at most ∣Φ∣. At each level the machine stores the current parse position and the current partial assignment, both of polynomial size. So the whole depth-first evaluation uses polynomial space, even though it may take exponential time.

3.1L2step 1.1step 2.1∎

By [L2], the deterministic recursive evaluator places TQBF in PSPACE.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

The quantified formula expressing reachability between two configurations

Definition

Fix a family of vertices encoded by bit strings of length m, together with a chosen quantifier-free formula Next⁡(U,V) of size O(m) asserting that the encoded vertex V is reachable from U by one legal graph edge. In the application to PSPACE-hardness, Next⁡ is the one-step configuration predicate for a fixed machine on a fixed input length. Let Eq⁡m(U,V) be the quantifier-free formula asserting bitwise equality of the strings U and V, and abbreviate PairEq⁡m((Y,Z),(U,V)):=Eq⁡m(Y,U)∧Eq⁡m(Z,V).

For each i∈N, define an open prenex formula Θi(U,V), whose only free variables are the endpoint blocks U,V, recursively as follows:

Θ0(U,V):=Eq⁡m(U,V)∨Next⁡(U,V),

and for i≥1, first write the already prenex previous formula, after renaming all its bound variables freshly, as Θi−1(Y,Z)=Q1X1⋯QtXt ρi−1(Y,Z,X1,…,Xt), where ρi−1 is quantifier-free, and set Θi(U,V):=∃W ∀b ∃Y ∃Z Q1X1⋯QtXt (((b=0)→PairEq⁡m((Y,Z),(U,W)))∧((b=1)→PairEq⁡m((Y,Z),(W,V)))∧ρi−1(Y,Z,X1,…,Xt)).

The variable W is the midpoint candidate, the one-bit variable b chooses left or right half, and the variables Y,Z feed the single recursive copy of Θi−1.

Remarks

  • The symbols b=0, b=1, and P→Q abbreviate quantifier-free Boolean formulas built from 0,1,¬,∧,∨. Thus the displayed construction is genuinely prenex. After the endpoint blocks U,V are replaced by fixed bit strings, Θi(U,V) is a closed quantified Boolean formula in the sense of Quantified Boolean formulas and the language TQBF.
  • The naive formula ∃W(Θi−1(U,W)∧Θi−1(W,V)) duplicates the previous level. The present definition is the size-controlled version used for the PSPACE-hardness proof.
  • The intended meaning is that Θi(U,V) says that V is reachable from U by a path of length at most 2i.
LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-09-12Open item page →

Quantifier reuse keeps the reachability formulas polynomial in size

Statement

Fix the configuration length m and assume that the one-step predicate Next⁡(U,V) from The quantified formula expressing reachability between two configurations has size O(m). Then there is a constant c>0 such that the formula Θi(U,V) has size at most cm(i+1) for every i∈N. In particular, if m itself is polynomial in the input length and i=O(m), then Θi has polynomial size.

Facts & Assumptions

Given: the recursive formulas Θi(U,V) for a fixed bit-length m, with Next⁡(U,V) of size O(m).

[L1]

By definition, Θ0(U,V)=Eq⁡m(U,V)∨Next⁡(U,V), where both summands have size O(m), while Θi for i≥1 adds one midpoint block, one selector bit, two comparison blocks, and a single recursive copy of Θi−1 (The quantified formula expressing reachability between two configurations).

Proof

technique · induction
1.1L1base

By [L1], the base formula Θ0(U,V) has size O(m).

1.2L1ihalgebra

For i≥1, [L1] shows that Θi contains exactly one copy of Θi−1 plus only O(m) new symbols coming from the variables W,b,Y,Z, the two equality tests, and the Boolean guards for b=0 and b=1. So if si denotes the size of Θi, then si≤si−1+cm for some constant c.

2.1step 1.1step 1.2discharge-induction∎

Starting from the O(m) base bound in step 1.1 and iterating the recurrence from step 1.2 gives si≤cm(i+1) for a suitable constant c. If m is polynomial in the input length and i=O(m), this bound is polynomial.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

TQBF is PSPACE-complete

Statement

TQBF lies in PSPACE, and every language in PSPACE polynomial-time many-one reduces to TQBF. Therefore TQBF is PSPACE-complete.

Facts & Assumptions

Given: the language TQBF and an arbitrary language L∈PSPACE.

[L1]

TQBF belongs to PSPACE (TQBF is in PSPACE).

[L2]

For a fixed multitape machine running in space p(n), a configuration is determined by its state, finitely many head positions, and the contents of at most p(n) visited cells, so configurations admit encodings of length O(p(n)) (Multitape and nondeterministic Turing machine variants, Worst-case time and space complexity of a machine).

[L3]

A polynomial-space machine has at most exponentially many configurations (A machine using space s(n) has at most exponentially many configurations).

[L4]

The formulas Θi(U,V) are the reachability formulas of The quantified formula expressing reachability between two configurations.

[L5]

Those formulas have only polynomial size when the configuration length and the index i are polynomially bounded (Quantifier reuse keeps the reachability formulas polynomial in size).

[L6]

A polynomial-time many-one reduction is a polynomial-time computable map preserving yes and no instances exactly (Polynomial-time many-one reductions).

Proof

technique · direct
1.1L1given

The membership part is exactly [L1]. So it remains to prove PSPACE-hardness.

1.2L2construct

Because L∈PSPACE, there is a deterministic machine M deciding L in space p(n) for some polynomial p. Fix an input x of length n. By [L2], configurations of M on x can be encoded by bit strings of length m=O(p(n)). If M has more than one accepting configuration, adjoin one fresh sink vertex t and one edge from every accepting configuration to t; this changes the encoding length by at most one bit and preserves acceptance.

2.1L3L4step 1.2algebra

By [L3], the resulting graph has at most 2cp(n) vertices for some constant c. Choose k:=cp(n) large enough that 2k exceeds this number, and form the quantified Boolean formula Φx:=Θk(Cstart(x),t) using [L4].

3.1L4step 2.1induction

We claim that Φx is true if and only if M accepts x. The proof is by induction on the index used in [L4]. For i=0, Θ0(U,V) says exactly that U=V or that one legal edge joins U to V. For i≥1, the formula chooses a midpoint W and then, by the universal choice of the selector bit b, forces one recursive call to certify the left half and one to certify the right half. Hence Θi(U,V) is true exactly when there is a path from U to V of length at most 2i. With U=Cstart(x) and V=t, this means exactly that M accepts x.

4.1L5L6step 3.1

By [L5], Φx has polynomial size. Because the transition table of M is fixed and the configuration length is polynomial, the formula Φx can be written down from x in polynomial time. Step 3.1 shows x∈L  ⟺  Φx∈TQBF, so by [L6] the map x↦Φx is a polynomial-time many-one reduction from L to TQBF.

5.1step 1.1step 4.1∎

Steps 1.1 and 4.1 prove that TQBF is in PSPACE and PSPACE-hard. Therefore TQBF is PSPACE-complete.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

The quantified formula game for a quantified Boolean formula

Definition

Let

Φ=Q1x1 Q2x2⋯Qmxm ψ(x1,…,xm)

be a quantified Boolean formula. Its quantified formula game is the two-player perfect-information game in which:

  • whenever Qi=∃, Player E chooses the value of xi;
  • whenever Qi=∀, Player A chooses the value of xi.

After all variables are assigned, the quantifier-free matrix ψ is evaluated. Player E wins if ψ is true under the chosen assignment, and Player A wins otherwise.

Remarks

  • The existential player tries to force truth of the formula.
  • The universal player tries to force falsity.
TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

A quantified Boolean formula is true if and only if the existential player has a winning strategy in its game

Statement

Let Φ be a quantified Boolean formula. Then Φ is true if and only if the existential player has a winning strategy in the quantified formula game of Φ.

Facts & Assumptions

Given: a quantified Boolean formula Φ.

[L1]

Truth of a quantified Boolean formula is defined recursively from its quantifier prefix and quantifier-free matrix (Quantified Boolean formulas and the language TQBF).

[L2]

In the quantified formula game, the existential player chooses the existentially quantified variables and the universal player chooses the universally quantified ones; the existential player wins exactly when the final matrix evaluates to true (The quantified formula game for a quantified Boolean formula).

Proof

technique · induction
1.1L1L2base

If Φ has no quantifiers, then [L1] says that Φ is true exactly when its quantifier-free matrix is true, and [L2] says that this is exactly the condition for the existential player to win the zero-move game.

1.2L1L2ihchoose

Suppose Φ=∃x Ψ(x). By [L1], Φ is true if and only if at least one of Ψ(0) or Ψ(1) is true. By the induction hypothesis, that happens exactly when the existential player has a winning strategy for at least one of the two suffix games, and then the existential player wins the whole game by choosing that first move. Conversely, any winning strategy for the whole game determines such a first move.

1.3L1L2ih

Suppose instead Φ=∀x Ψ(x). By [L1], Φ is true if and only if both Ψ(0) and Ψ(1) are true. By the induction hypothesis, that is equivalent to the existential player having a winning strategy after either first move of the universal player, which is exactly what [L2] means for the whole game.

2.1step 1.1step 1.2step 1.3discharge-induction∎

Steps 1.1, 1.2, and 1.3 prove both directions of the equivalence.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

Alternating polynomial time and the class AP

Definition

An alternating Turing machine is a nondeterministic Turing machine whose nonhalting states are partitioned into existential and universal states.

Acceptance is defined recursively on the computation tree:

  • an accepting halting configuration accepts;
  • a rejecting halting configuration rejects;
  • an existential configuration accepts when at least one legal successor accepts;
  • a universal configuration accepts when every legal successor accepts.

The class AP is the set of languages decided by alternating Turing machines whose every computation branch halts within polynomial time.

Remarks

  • Deterministic polynomial time is the special case with only one successor at every step.
  • Alternation differs from ordinary nondeterminism only at universal states, where all continuations must accept.
TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

AP equals PSPACE

Statement

AP=PSPACE.

Facts & Assumptions

Given: the classes AP and PSPACE.

[L1]

AP is defined by polynomial-time alternating machines (Alternating polynomial time and the class AP).

[L2]

TQBF is PSPACE-complete (TQBF is PSPACE-complete).

[L3]

A quantified Boolean formula is true exactly when the existential player has a winning strategy in its game (A quantified Boolean formula is true if and only if the existential player has a winning strategy in its game).

Proof

technique · direct
1.1L2L3construct

To prove PSPACE⊆AP, it is enough by [L2] to show that TQBF lies in AP. On input a quantified Boolean formula, an alternating machine reads the quantifier prefix from left to right: at an existential quantifier it enters an existential state and chooses the bit, and at a universal quantifier it enters a universal state and branches over both bits. After the prefix is exhausted, it deterministically evaluates the matrix. By [L3], this machine accepts exactly the true formulas, so TQBF is in AP.

1.2L1construct

For the reverse inclusion, let L∈AP and choose an alternating machine M for L running in time p(n). On input x, a deterministic procedure evaluates the acceptance of the computation tree depth-first: at an accepting or rejecting leaf it returns the corresponding truth value; at an existential configuration it ORs the recursive values of the children; at a universal configuration it ANDs them. This exactly matches the acceptance rule in [L1].

2.1L1L2step 1.1

Now let L∈PSPACE. By [L2], there is a polynomial-time reduction f from L to TQBF. An alternating machine for L first computes f(x) deterministically and then runs the TQBF machine from step 1.1 on f(x). This still uses only polynomial time, so [L1] gives L∈AP. Thus PSPACE⊆AP.

2.2step 1.2algebra

The recursion depth is at most p(∣x∣) because every branch halts within that many steps. One stack frame stores the current configuration and the remaining depth counter, both of polynomial size, so the whole depth-first evaluation uses polynomial space. Therefore L∈PSPACE.

3.1step 2.1step 2.2∎

Steps 2.1 and 2.2 prove both containments, so AP=PSPACE.

False statementConstruction: AI-adaptedVerification: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

FALSE: Savitch's algorithm stores the whole configuration graph

Statement

Savitch's algorithm stores the whole configuration graph.

Facts & Assumptions

Given: Savitch's recursive reachability procedure.

[L1]

The recursive definition reduces one reachability query to two shorter subqueries through one midpoint candidate at a time (The bounded reachability recursion for directed paths of length at most 2^i).

[L2]

A direct implementation keeps only the current endpoints, the current midpoint candidate, and the recursion stack, so the full search uses only O(log⁡2N) space on an N-vertex graph (The bounded reachability recursion uses logarithmic recursion depth).

Refutation

technique · direct
1.1L1given

By [L1], Savitch's recursion examines one midpoint candidate and one shorter subproblem at a time, rather than materializing all candidates or all adjacency data at once.

2.1L2step 1.1algebra∎

By [L2], the whole recursion uses only polylogarithmic space in the number of configurations. An explicit storage of the whole configuration graph would require at least enough space to name all of its vertices, which is much larger than that bound in general. So the statement is false.

5 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

A four-vertex digraph where the bounded reachability recursion finds a path via a midpoint

Example

Let G have vertices {s,a,b,t} and arcs s→a, a→b, and b→t. Then Reach⁡1G(s,t) is false but Reach⁡2G(s,t) is true, witnessed by the midpoint b.

Facts & Assumptions

Given: the digraph G above.

[L1]

The recursion Reach⁡iG is defined by splitting at a midpoint (The bounded reachability recursion for directed paths of length at most 2^i).

[L2]

Reach⁡iG(u,v) holds exactly when there is a path of length at most 2i from u to v (The bounded reachability recursion is correct).

Verification

technique · direct
1.1L2given

The only directed path from s to t is s→a→b→t, which has length 3. Therefore [L2] gives Reach⁡1G(s,t) false, because 21=2<3.

2.1L1L2step 1.1

Using midpoint b, [L1] reduces Reach⁡2G(s,t) to Reach⁡1G(s,b) and Reach⁡1G(b,t). By [L2], the first holds because s→a→b has length 2, and the second holds because b→t has length 1. Hence Reach⁡2G(s,t) is true.

3.1step 2.1∎

This makes the divide-and-conquer structure concrete: one midpoint splits the length-3 path into two shorter subproblems, exactly as the recursion predicts.

ExampleConstruction: AI-generatedVerification: AI-generatedprecheck passaudited 2026-09-12Open item page →

An alternating machine for a quantified Boolean formula

Example

For the formula

Φ:=∃x ∀y (x∨y),

the existential player has a winning strategy, and the corresponding alternating machine accepts by choosing x=1 at its first existential state.

Facts & Assumptions

Given: the formula Φ=∃x ∀y (x∨y).

[L1]

The quantified formula game lets the existential player choose existential variables and the universal player choose universal variables (The quantified formula game for a quantified Boolean formula).

[L2]

Truth of the formula is equivalent to existence of a winning strategy for the existential player (A quantified Boolean formula is true if and only if the existential player has a winning strategy in its game).

[L3]

AP equals PSPACE, and the AP side is realized by alternating choices along the quantifier prefix (AP equals PSPACE).

Verification

technique · direct
1.1L1given

In the game of [L1], if Player E chooses x=1 on the first move, then the matrix x∨y is true regardless of whether Player A later chooses y=0 or y=1. So Player E has a winning strategy.

2.1L2L3step 1.1

By [L2], step 1.1 implies that Φ is true. The corresponding alternating machine from [L3] uses an existential state to choose x and a universal state to branch over the two values of y; after the choice x=1, both universal branches accept.

3.1L3step 2.1∎

This is the smallest nontrivial picture behind the inclusion PSPACE⊆AP in AP equals PSPACE.

CounterexampleConstruction: AI-generatedVerification: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-09-12Open item page →

A Savitch recursion that never materializes the full configuration graph

Statement refuted

Savitch's algorithm stores the whole configuration graph.

Facts & Assumptions

Given: a Savitch reachability search on a graph with many midpoint candidates.

[L1]

The false statement being refuted is exactly the claim above (FALSE: Savitch's algorithm stores the whole configuration graph).

Counterexample

technique · direct
1.1L1given

Take a graph with start vertex s, target vertex t, and many possible midpoints z1,…,zm, but suppose only z7 actually lies on a short path from s to t. This is a legitimate instance of the claim in [L1].

2.1step 1.1algebra∎

Savitch's recursion tests the midpoint candidates one by one. At any moment it stores only the current pair of endpoints, the current candidate zj, and the recursion stack for the shorter subproblems. When the test for zj fails, that local data is discarded before zj+1 is tried. Hence no stage materializes the whole graph at once, even though the algorithm still eventually finds the successful midpoint z7.

Sources