Generalized Geography #
Generalized Geography, in the version of Sipser, Section 8.3, is played on a
directed graph (Cslib.Complexity.Graph: declared vertices and arcs) with a token on a start
vertex. Two players alternately move the token along an arc to a declared vertex that the token has
not visited yet, the start vertex counting as visited; the player who cannot move loses. This is
the vertex version of the game, whose PSPACE-completeness is due to Lichtenstein and Sipser
[LS80]; in Schaefer's original Generalized Geography the players may not reuse an
arc instead [Sch78a].
Every move visits a new declared vertex, so the game is finite, and the winner is determined by
backward induction: with the token at v and the vertices vis visited, the player to move wins
(Cslib.Complexity.Graph.GeographyWins) exactly when some arc from v leads to an unvisited
declared vertex w from which the other player, now to move, does not win. This is the existence
of a winning strategy for the player to move. GeneralizedGeography is the set of graphs with a
start vertex on which the first player wins.
Boundary cases: arcs to undeclared vertices are never used; the start vertex need not be declared, and it is never revisited; a start vertex without usable arcs is a loss for the first player.
Main definitions #
Cslib.Complexity.Graph.GeographyWins: the player to move wins.Cslib.Complexity.GeneralizedGeographyInstance: instance(graph, start)of Generalized Geography.Cslib.Complexity.encGeneralizedGeography: polynomial-time encoding ofGeneralizedGeographyInstance.Cslib.Complexity.GeneralizedGeography: the first player wins.
Main results #
Cslib.Complexity.Graph.geographyWins_iff: the backward induction.Cslib.Complexity.Graph.geographyWins_congr: only the set of visited vertices matters.Cslib.Complexity.Graph.card_sdiff_cons_lt: every move visits a new declared vertex.Cslib.Complexity.Graph.not_geographyWins_iff: the player to move loses when every move leads to a position won by the other player.Cslib.Complexity.notMem_GeneralizedGeography_of_nil: on a graph without arcs the first player loses.
References #
Generalized Geography: with the token at v and the vertices vis visited, the player
to move wins when some arc from v leads to an unvisited declared vertex w from which the other
player, to move with w visited, does not win.
Encoding of GeneralizedGeographyInstance as a pair (graph, start).
The tuple of the fields of encGeneralizedGeography.
Generalized Geography, vertex version Sipser, Section 8.3 [LS80]: the graphs with a start vertex on which the first player wins, moving first with the token on the start vertex, when no vertex may be visited twice.