Devil's Games and Qℝ: Continuous Games complete for the First-Order Theory of the Reals

Lucas Meijer, Arnaud de Mesmay, Tillmann Miltzow, Marcus Schaefer, Jack StadearXiv 2025 · DOI

Introduction

Theoretical computer science has long categorized the difficulty of discrete combinatorial games like Chess or Go, often finding them to be PSPACE-complete. However, many real-world geometric problems involve a continuum of choices—such as the precise placement of objects in space. While the class $\exists\mathbb{R}$ (Existential Theory of the Reals) describes "one-shot" geometric existence problems, it fails to capture the complexity of alternating-turn games played over real-numbered coordinates. This paper introduces $Q\mathbb{R}$ (Quantified Reals), the game-theoretic counterpart to $\exists\mathbb{R}$, and identifies the first natural geometric problems complete for this class.

The "Devil's Game" framework: a conceptual model for alternating-turn games with continuous move spaces.

Defining the Qℝ Complexity Class

The class $Q\mathbb{R}$ is defined based on the First-Order Theory of the Reals. It represents problems that can be decided by a Real RAM—a machine model capable of exact arithmetic on real numbers—within polynomial time, or equivalently, problems expressible as first-order formulas with alternating quantifiers ($\forall, \exists$) over the real field.

A key insight of this work is that $Q\mathbb{R}$ is a robust class that captures the "unconditional hardness" of continuous games. Unlike the P vs. NP conjecture, it is mathematically proven that the First-Order Theory of the Reals requires exponential time, placing $Q\mathbb{R}$-complete problems in a category of provable difficulty beyond standard PSPACE-complete discrete games.

Methodology: From Logic to Geometry

To bridge the gap between abstract logic and physical geometric games, the authors developed a Formula Compactification framework. Standard logical formulas can involve variables of any magnitude. However, physical games typically occur within a bounded "container." The authors' method transforms any first-order formula into a compact version where all variables are restricted to a closed interval (e.g., $[1/2, 2]$).

This compact logic is then reduced to geometric games using "gadgets"—mechanical-like structures built from polygons or graph edges that simulate logical constraints like addition ($x+y=z$) and inversion ($xy=1$). A critical technical challenge addressed was "smoothing" the logic: ensuring that the solution space is "thick" enough so that the infinitesimal precision required by pure logic doesn't make the physical game impossible to play or reduce.

Key Results: Qℝ-Complete Geometric Games

The paper identifies four primary $Q\mathbb{R}$-complete problems, demonstrating the versatility of the $Q\mathbb{R}$ class:

  1. FOTRINV: A restricted logical problem involving only addition and inversion, serving as a technical bridge.
  2. The Packing Game: Players alternate placing polygons into a fixed container; the first unable to move loses.
  3. The Planar Extension Game: Players build a planar graph by placing vertices and straight-line edges without crossings.
  4. The Order Type Game: Players place points to satisfy a specific map of clockwise/counter-clockwise triples.
The Planar Extension Game (left) and the Packing Game (right) are among the first natural geometric problems proven to be Qℝ-complete.

Conclusion and Future Work

This research establishes $Q\mathbb{R}$ as the standard complexity class for continuous, alternating-turn games. Future work remains in exploring "oblivious" versions of these games—where the order of pieces is not fixed—and investigating the complexity of games restricted to "simple" order types (where no three points are collinear). Additionally, the techniques developed here provide a foundation for exploring specific levels of the real polynomial hierarchy, potentially identifying games that must end in exactly $k$ moves.

Summary updated

BibTeX
@misc{meijer2025devil,
  author = {Lucas Meijer and Arnaud de Mesmay and Tillmann Miltzow and Marcus Schaefer and Jack Stade},
  title = {{Devil's Games and Qℝ: Continuous Games complete for the First-Order Theory of the Reals}},
  year = {2025},
  eprint = {2512.02779},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.02779},
}
Figure