Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Complexity of transfinite 5-in-a-row and other games

Mathematical logic

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

Suppose that 5-in-a-row is played on an infinite board, and after an infinite number of moves, if no one won yet and there is an empty square, the game just continues. At limit steps, it is the first player's turn.

Question: What is the complexity of the set of finite winning positions?

I suspect that the complexity is extraordinarily high, with the set of finite winning positions outside of the minimal iterable inner model with an inaccessible limit of Woodin cardinals.

If five in a row Os did not count as a win for the second player, then (even for infinite positions) the complexity is Σ10Σ^0_1Σ10​, with the transfinite extension redundant for perfect play (see below for proof).

However, as both players can win, I suspect we can simulate an arbitrary game of the following type:

Transfinite generalized X and O: Players alternate placing 'X' and 'O' respectively on empty squares; at limit steps the first player moves. Game result (Win, Loss, Draw, Incomplete) is determined by an arbitrary arithmetic formula, with the game ending once the result is not Incomplete. ('Incomplete' is only used when there is an empty square.)

Alternative question: Under large cardinal axioms, what is the complexity of this class of games?

Notes:

  • To complement the alternative question, one can ask (and is in scope here) about which natural games, extended transfinitely, are complete for this class. Candidates include 5-in-a-row, 5-in-a-row where overlines do not win, Connect6, perhaps some variations of Hex, etc.

  • The transfinite extension creates an asymmetry between player 1 and player 2.

  • The complexity class seems robust. For example, the complexity remains the same if we allow all second order arithmetic formulas here. Access to the ordering of the moves also does not change the complexity.

Intuition for why 5-in-a-row should simulate this: The complexity of typical 5-in-a-row gameplay suggests that one can implement arbitrary computation. Using it, in the first ωωω (or more) steps, the players create a suitable grid for the remainder, with ωωω logical cells (though starting from such a grid may simplify gadgets). Then at each move before the endgame, X plays into one of the logical cells, and O replies in the same cell (O(1)O(1)O(1) choices for O suffice by using multiple moves to encode an integer). At any point, either player can claim a win/draw (a Σ11Σ^1_1Σ11​ statement), and supply an infinite string to support the claim. Then the other player picks a number, and the original player has to verify that the relevant computation halts.

Note: This should work even for O(1)O(1)O(1) board height. At the end, one player gives a claimed computation (for each step, print tape contents and other data), and the other may claim an error. Then the error check will need to verify that certain two segments in the error claim have equal length, which can be done by alternatively filling cells in the two segments (eg. XOXOX in cell 1 of segment 1, then OXOXO in cell 1 of segment 2; and repeat with cell 2, 3, ...), with an extraneous move detectable (if flagged) through a parity mismatch in filled cell numbers.

Complexity of transfinite generalized X and O, and beyond

Note: This section assumes familiarity with Woodin cardinals and determinacy.

For every countable ordinal ααα encoded by the position, we can simulate a game on integers (or reals) of length ααα, so the complexity is outside the minimal iterable inner model with ααα Woodin ordinals. On the other hand, the game must end after a countable number of steps (dependent on the play), and these are games with continuously coded length, so a strong past a Woodin cardinal suffices for their determinacy and winning strategies.

My intuition is that the complexity (both for the first player winning, and the first player not losing) is complete for (Σ12)uB(Σ^2_1)^{\text{uB}}(Σ12​)uB of the minimal iterable inner model with a proper class of Woodin cardinals. ωωω moves correspond to a Woodin cardinal (or a high enough Turing degree), and the ability to choose the placement of X at limit steps corresponds to being unbounded. However, the second player (not being able to move at limit steps) cannot independently prevent the game from ending too soon, and instead the first player certifies existence of enough Woodin cardinals (in a resulting model) through a (Σ12)uB(Σ^2_1)^{uB}(Σ12​)uB fact.

We can (presumably) go further by, at each limit step, permitting the first player skip the first move in exchange for a reasonable compensation (example: in Connect6, moves place two stones, except that the opening move of the player moving first places one stone).

A higher complexity, beyond even games with continuously coded length, is obtained by alternating infinite time Turing machines. A potential example is the game of Go, where capturing a location cofinally often makes it empty, and the objective is modified to, for example, controlling a given area.

Other infinite games

Chess

In infinite chess, every win occurs after a finite number of moves, but because the opponent (Black) can have an infinite number of choices where to move, the game tree for a forced win can be infinite (but well-founded). For positions with infinitely many pieces (with positions encoded by real numbers or subsets of ωωω), existence of a forced win is Π11Π^1_1Π11​-complete. See the Checkmate in ω moves question and its Matthew Bolan's answer. I expect that existence of a forced win is Π11Π^1_1Π11​-complete (as a set of integers) even for positions (on the infinite board) with O(1)O(1)O(1) pieces.

However, if Black has only short-range pieces (perhaps infinitely many) and can skip moves (i.e. has a null move), then existence of a White win is Σ10Σ^0_1Σ10​, and the win can be accomplished in a bounded number of moves. The reason is that, by induction on nnn, for every mate in nnn, there is a finite subset of the board that certifies the win. After making a move, White need only consider the null response and the responses that change the pieces on the subset of the board that certifies that the null response is a loss; and by the same argument, mate in ωωω moves is some mate in nnn.

Games with compound moves: In some games, a move consists of a potentially unbounded number of submoves, which can be infinite in infinite positions. For example, in checkers a move can have an arbitrarily long chain of captures, and for an infinite chain, we can specify that the capturing piece is removed as well. For such games, even with all wins having a finite number of moves, the game tree for a forced win may need an uncountable ordinal rank. The complexity can now go beyond second order arithmetic, but the set of winning positions is still Σ1(Lδ(R),∈,R)Σ_1^{(L_δ(ℝ), ∈, ℝ)}Σ1(Lδ​(R),∈,R)​, where δδδ is the least ordinal admissible to the reals.

5-in-a-row without O wins / Maker-Breaker games: In 5-in-a-row, all marks are permanent, so we can naturally speak of the position after an infinite number of moves. However, if five-in-a-row Os do not count as a win for the second player, then it is a Maker-Breaker game with finitely sized sets to make. In such games, all Maker wins (allowing transfinite wins) can be made finite, and certified by a finite subset of the board. By induction on finite nnn, a win in nnn moves is certified by a finite set. Next, existence of a win in a finite number moves implies a win in a bounded number of moves (one need only consider responses in a region that certifies that skipping the turn would be a loss). Finally, if at a limit ordinal time, a finite region SSS certifies a win in nnn, then since the position on SSS was unchanged from an earlier time, the first player missed an earlier win. (Also, for a win in nnn moves (2n2n2n plies), SSS need only have <22n< 2^{2^n}<22n unfilled points, and in a metric where the sets to make have diameter O(1)O(1)O(1), it only needs O(2n)O(2^n)O(2n) diameter.)

Non-transfinite 5-in-a-row: Existence of a win should be Π11Π^1_1Π11​-complete for infinite positions, and plausibly Π11Π^1_1Π11​-complete for finite positions as well. A possible construction for finite positions is that at certain points O is forced to play far from the main 'computer' (as its only potentially saving threat), and X is forced to play near the O, and then the distance to the O X is measured, and the numbers from the measurements are used to test whether the chosen relation is well-founded.

Statement and context adapted from MathOverflow · Dmytro Taranovsky

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Cardinal and countability
A cardinal measures the size of a set. A countably infinite set can be listed using the positive integers; an uncountable set is larger. The symbols ℵ₀, ℵ₁, … distinguish infinite sizes.
Ordinal / order type
An ordinal describes the shape of a well-ordered set, rather than only its size. Infinite sets of equal cardinality can have different order types.

Topics : set-theory · lo.logic · descriptive-set-theory · determinacy · infinite-games

Authors listed by the source : Dmytro Taranovsky

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : March 1, 2024

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni