Games of polynomially many moves reduce to TQBF #
A game of 2 * w alternate single-bit moves, the existential first, whose winning condition is
computed by a polynomial-time machine, is a closed quantified Boolean formula: rounds of
quantifiers ∃ x, ∀ y over the moves (Cslib.Logic.PL.QBF.rounds,
Cslib.Logic.PL.QBF.eval_rounds_eq_true_iff), followed by the Cook–Levin tableau of the machine
on the instance and the moves, its certificate bits linked to the variables of the moves and all
its other variables quantified existentially. The variables of the moves are the blocks of level
0 of the reduction of CslibFrontier.Computability.Complexity.Classes.Space.TQBF.Reduction, and
the tableau is its formula of level 0 (Cslib.Complexity.TQBF.baseFormula), so the formula of a
game (Cslib.Complexity.TQBF.gameFormula) holds exactly when the existential player wins the game
in which the tableau has a satisfying assignment with the moves as certificate
(Cslib.Complexity.TQBF.eval_gameFormula).
For a polynomial-time game verifier, the formula of the game on an instance
(Cslib.Complexity.TQBF.gameReduce) is computed in polynomial time and is a true closed formula
exactly when the instance is accepted (Cslib.Complexity.TQBF.gameReduce_mem_TQBF_iff). Since
TQBF is in PSPACE and PSPACE is closed under polynomial-time reductions, every problem with a
polynomial-time game verifier is in PSPACE (Cslib.Complexity.IsGameVerifier.mem_PSPACE), and
in particular every problem in AP (Cslib.Complexity.AP_subset_PSPACE): the inclusion
AP ⊆ PSPACE Chandra, Kozen and Stockmeyer
Sipser, Section 10.3.
Main definitions #
Cslib.Logic.PL.QBF.rounds: rounds of quantifiers∃ x, ∀ y.Cslib.Logic.PL.QBF.updates: an assignment updated along a list of variables.Cslib.Complexity.TQBF.gameFormula: the formula of a game on a tableau.Cslib.Complexity.TQBF.gameReduce: the reduction of a game verifier toTQBF.
Main results #
Cslib.Logic.PL.QBF.eval_rounds_eq_true_iff: rounds of quantifiers are a game of moves.Cslib.Logic.PL.QBF.rounds_append,Cslib.Logic.PL.QBF.eval_rounds_congr,Cslib.Logic.PL.QBF.eval_exs_congr: rounds and blocks of quantifiers.Cslib.Logic.PL.QBF.eval_rounds_map_pair: universal quantifiers over a variable that does not occur are vacuous.Cslib.Logic.PL.QBF.length_roundVars,Cslib.Logic.PL.QBF.closed_rounds_ofCNF_iff: the variables of rounds, and closed formulas in alternating prenex conjunctive normal form.Cslib.Complexity.TQBF.eval_gameFormula,Cslib.Complexity.TQBF.closed_gameFormula: the formula of a game.Cslib.Complexity.TQBF.gameReduce_mem_TQBF_iff,Cslib.Complexity.TQBF.computableInPolyTime_gameReduce: the reduction is correct and polynomial-time.Cslib.Complexity.IsGameVerifier.mem_PSPACE: games of polynomially many moves with a polynomial-time winning condition are decided in polynomial space.Cslib.Complexity.AP_subset_PSPACE:AP ⊆ PSPACE.
References #
Rounds of quantifiers #
Rounds of quantifiers are a game of alternate single-bit moves, the existential first: the formula holds exactly when the existential player wins the game in which the moves set the variables of the rounds, in order.
Vacuous universal quantifiers: the rounds ∃ v, ∀ d for the variables v of a list, over
a variable d that is not free in the body, are existential quantifiers over the list.
A formula in alternating prenex conjunctive normal form is closed exactly when all the variables of its clauses are quantified.
The formula of a game #
The variables of the moves are those of the blocks of level 0.
The formula of a game on a tableau: rounds of quantifiers over the blocks of level 0,
then the tableau as the formula of level 0.
The formula of a game holds exactly when the existential player wins the game of 2 * w
moves in which the tableau has a satisfying assignment with the moves as its first 2 * w
certificate bits.
The formula of a game is closed.
The reduction #
The reduction of a game to TQBF: the formula of the game of 2 * p (enc a).length moves
on the Cook–Levin tableau of a machine tmV, on the input frame (enc a) and the moves, unrolled
for cV * (2 * (enc a).length + 2 * p (enc a).length + 2) ^ dV steps.
The reduction of a game is correct. If tmV computes the winning condition V tidily
within time cV * (n + 1) ^ dV, then the formula of the game on a is a true closed formula
exactly when the existential player wins the game of 2 * p (enc a).length moves with winning
condition V (a, ·).
The tokens of a round of the game.
The tokens of a round, from the width and the round in unary.
The formula of a game is polynomial-time in the tableau and the number of rounds in unary.
The reduction of a game is polynomial-time.
Games of polynomially many moves are decided in polynomial space: a problem with a
polynomial-time game verifier is in PSPACE.
AP ⊆ PSPACE Chandra, Kozen and Stockmeyer
Sipser, Section 10.3: a problem decided by an alternating machine within polynomial
time is a game of polynomially many moves with a polynomial-time winning condition, which reduces
to TQBF.