Encoding Logic and Algebra into Geometric Gadgets

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 124 papers30 conceptsfrozen 2026-10-04

In computational geometry, we often ask simple questions: Can this shape fit inside that one? How many guards are needed to see every corner of a room? Can we find the best way to overlap two polygons? While these problems feel physical and intuitive, their underlying complexity is often far deeper than the discrete logic of NP-completeness.

Recent research has revealed that these geometric problems are actually "real-algebraic" in nature. They are equivalent to solving systems of polynomial equations over real numbers. To prove this, researchers use a technique called geometric gadgetry, where physical shapes are constructed to act as logic gates, arithmetic operators, and variables.

The Geometry of Equations

The core insight of this field is that spatial constraints—like two lines intersecting or a point lying inside a circle—can be used to "program" mathematical relationships.

In A Universality Theorem for Nested Polytopes, Michael Gene Dobbins, Andreas F. Holmsen, and Tillmann Miltzow demonstrate that the problem of nesting one polytope inside another is "universal." This means that for any system of polynomial equations you can write down, there exists a pair of polytopes whose valid nesting positions exactly correspond to the solutions of those equations.

This is achieved by building gadgets: specific configurations of vertices and facets that enforce addition or multiplication. For example, a gadget might be designed such that a vertex can only move along a line, and its distance from the origin represents a variable $x$. By placing other geometric constraints, researchers can force $x + y = z$, effectively turning a geometry problem into a computer that solves algebra.

The Existential Theory of the Reals

Most computer science students are familiar with NP-completeness, which characterizes problems like Sudoku or the Traveling Salesperson. However, many geometric problems fall into a more difficult class: the Existential Theory of the Reals ($\exists\mathbb{R}$).

A problem is $\exists\mathbb{R}$-complete if it is as hard as deciding whether a system of polynomial equations has a real-valued solution. This class is significant because:

  1. Irrationality: Solutions may require coordinates that are irrational numbers, which cannot be easily represented in standard discrete complexity classes.
  2. Algebraic Complexity: It captures the continuous nature of space.

Arnaud de Mesmay and Tillmann Miltzow applied this to matroids in Representing Matroids over the Reals is ∃ℝ-complete, showing that the combinatorial structure of points and lines is inextricably linked to high-level algebraic solvability. Similarly, Christoph Hertrich and colleagues proved in Training Fully Connected Neural Networks is ∃R-Complete that even simple ReLU neural networks inherit this complexity, as their activation boundaries act as geometric constraints that encode polynomial systems.

Visibility as Logic

Gadgetry isn't limited to coordinates; it can also be built out of "sight lines." In The Parameterized Hardness of the Art Gallery Problem, Tillmann Miltzow and Edouard Bonnet use the boundary of a polygon to simulate Boolean logic.

By placing "pockets" and "windows" in the polygon's walls, they ensure that a guard can only see a specific area if they are standing in a location that represents a "True" value for a logical variable. This turns the problem of guarding a room into a problem of satisfying a logical formula.

Degrees of Freedom and Hardness

The complexity of these problems often scales with the "degrees of freedom" allowed. In Polygon Placement Revisited, André Nusser and Marvin Künnemann show that every new way a polygon can move (translation, rotation, scaling) adds a layer of computational difficulty. They use "pronged gadgets" to link these movements to the $k$SUM problem, a benchmark for fine-grained complexity.

When problems involve multiple actors or "moves," the complexity climbs even higher. Lucas Meijer and Arnaud de Mesmay introduced the class $Q\mathbb{R}$ (Quantified Reals) in Devil's Games and Qℝ. This class describes geometric games where players take turns placing objects. By building modular geometric structures that simulate addition and inversion, they show that these "Devil's Games" are the continuous equivalent of PSPACE-complete games like Chess or Go.

Bridging the Gap to Algorithms

While much of this work focuses on proving how hard problems are, the same geometric insights lead to faster algorithms. By understanding the "alphabet" of geometric arrangements, researchers can process chunks of data more efficiently.

For instance, Pankaj K. Agarwal and Haim Kaplan broke a long-standing barrier in Computing the Discrete Fréchet Distance in Subquadratic Time. They encoded geometric constraints into a deterministic finite automaton (DFA), allowing them to process spatial relationships symbolically rather than checking every pair of points individually.

Whether proving that a problem is "devilishly" difficult or finding a subquadratic shortcut, the underlying principle remains the same: geometry is a powerful language for encoding the complexity of the real world.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_encoding_logic_and_algebra_into_geometri_6762eb72,
  title = {Encoding Logic and Algebra into Geometric Gadgets},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/encoding-logic-and-algebra-into-geometric-gadgets/rdr_6762eb72dfd643be8b8da5903ffc77f9},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-01},
}

This exact version (version 1, frozen text):

@misc{lacuna_encoding_logic_and_algebra_into_geometri_6762eb72_v1,
  title = {Encoding Logic and Algebra into Geometric Gadgets},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/encoding-logic-and-algebra-into-geometric-gadgets/rdr_6762eb72dfd643be8b8da5903ffc77f9/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-01},
}