Skip to main content
QUICK REVIEW

[Paper Review] Braid is undecidable

Linus Hamilton|arXiv (Cornell University)|Dec 2, 2014
Artificial Intelligence in GamesComputer Science6 references4 citations
TL;DR

This paper proves that Braid, a 2008 puzzle video game, is formally undecidable by demonstrating it can simulate a counter machine with three counters—known to be Turing-complete—using game mechanics like levers, monstars, and time-rewinding. The key insight is that the game’s ability to spawn unbounded enemies and permanently remove them via time manipulation enables universal computation, placing Braid beyond PSPACE and into the realm of undecidability.

ABSTRACT

Braid is a 2008 puzzle game centered around the ability to reverse time. We show that Braid can simulate an arbitrary computation. Our construction makes no use of Braid's unique time mechanics, and therefore may apply to many other video games. We also show that a plausible "bounded" variant of Braid lies within 2-EXPSPACE. Our proof relies on a technical lemma about Turing machines which may be of independent interest. Namely, define a braidlike Turing machine to be a Turing machine that, when it writes to the tape, deletes all data on the tape to the right of the head. We prove that deciding the behavior of such a machine lies in EXPSPACE.

Motivation & Objective

  • To establish that Braid is computationally undecidable, meaning no algorithm can always determine whether a level is solvable.
  • To demonstrate that video games with unbounded object spawning and selective deletion (e.g., via time manipulation) can simulate universal computation.
  • To show that the undecidability of Braid does not rely on its time-rewind mechanic per se, but on the ability to simulate irreversible state changes via persistent removal of entities.
  • To analyze the complexity of a bounded variant of Braid, conjecturing it lies within 2-EXPSPACE.
  • To prove that the halting problem for braidlike Turing machines—defined as machines that erase tape to the right of the head—is in EXPSPACE, a result of independent theoretical interest.

Proposed method

  • Simulate a counter machine using stacks of overlapping monstars to represent counters, where each monstar stack's height encodes a counter value.
  • Use levers as program instructions: pulling a lever triggers either an 'add' (increase stack height) or 'subtract and branch' (decrease stack height or skip to a new program line if zero).
  • Implement program loops via level geometry that route Tim back to earlier parts of the course, enabling conditional branching and goto operations.
  • Leverage time-rewind mechanics to permanently delete monstars (by killing them before rewinding), simulating irreversible tape modifications.
  • Model the game’s state evolution as a nondeterministic computation, where each 'tour guide' (a conceptual entity tracking possible future behaviors) represents a possible path of execution.
  • Apply Savitch’s Theorem to bound the space complexity of simulating nondeterministic braidlike Turing machines, showing the problem lies in 2-EXPSPACE for bounded Braid.

Experimental results

Research questions

  • RQ1Can Braid simulate a universal computational model, such as a counter machine, using only its in-game mechanics?
  • RQ2Does the undecidability of Braid stem from its time-rewind mechanic, or is it a consequence of more general features like unbounded spawning and selective deletion?
  • RQ3What is the computational complexity of a bounded version of Braid, where the number of enemies and time steps are limited?
  • RQ4Is the halting problem for braidlike Turing machines—machines that erase tape to the right of the head—decidable, and if so, what is its complexity?
  • RQ5Which other video games with similar mechanics (e.g., unbounded entity spawning and selective removal) might also be undecidable?

Key findings

  • Braid is formally undecidable because it can simulate a three-counter counter machine, which is known to be Turing-complete.
  • The undecidability arises not from time manipulation per se, but from the ability to permanently delete entities (e.g., monstars) via rewinding, enabling irreversible state transitions.
  • A bounded variant of Braid is shown to lie within 2-EXPSPACE, suggesting it may be complete for that complexity class.
  • The halting problem for braidlike Turing machines—defined as machines that erase all data to the right of the head upon writing—is proven to be in EXPSPACE.
  • The proof relies on a technical lemma showing that simulating a nondeterministic braidlike Turing machine requires only 2^{poly(N)} space, which by Savitch’s Theorem implies containment in 2-EXPSPACE.
  • The construction demonstrates that video games with unbounded spawning and selective deletion (e.g., via time-rewind or similar mechanics) may be undecidable, extending beyond Braid to a broader class of games.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.