NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Descriptive Complexity and the Logic of Polynomial Time

This direction is split into other directions: order-independent logical characterization, descriptive complexity gap. Its last version stays readable and citable here.

Version 1 of 130 papers42 conceptsfrozen 2026-10-04

In traditional computational complexity, we measure the difficulty of a problem by counting the resources—time, memory, or gates—a machine needs to solve it. Descriptive complexity offers a radical alternative: it measures the difficulty of a problem by the complexity of the logical language required to define it.

Instead of asking "How many steps does a Turing machine take to recognize this graph property?", we ask "What kind of quantifiers and predicates do I need to write a formula that is true if and only if the graph has this property?" This shift from machines to formulas, pioneered by figures like Boris Abramovich Trakhtenbrot, reveals that the boundaries of what we can compute are often identical to the boundaries of what we can express.

The Intuition: Expressive Power as Computational Resource

The core insight of descriptive complexity is that logical constraints mirror physical constraints. For example, if a logic can only use a limited number of variables, it behaves like a machine with limited memory. If a logic allows for inductive definitions (recursion), it behaves like a machine that can run for many steps.

The landmark achievement in this field is Fagin’s Theorem, which proves that the complexity class NP is exactly equivalent to Existential Second-Order Logic ($ESO$). If you can write a formula that says "there exists a set of edges such that..." (a second-order statement), you are effectively describing a non-deterministic search, which is the hallmark of NP. Recent work by Guillermo Badia, Manfred Droste, and others has extended this "Fagin-style" equivalence to quantitative settings, such as Semiring Turing Machines, showing that logic can also capture counting and probabilistic complexity.

The Problem of Unordered Structures

The most significant hurdle in this field—often called the "Holy Grail" of finite model theory—is finding a logic that perfectly captures Polynomial Time (P) on unordered structures.

On a standard computer, data is always ordered (e.g., as a string in memory). This order allows an algorithm to say "take the first element, then the second." However, pure logic views structures like graphs as sets of vertices without an inherent sequence. Without a "successor" relation to tell the logic which element comes next, it becomes incredibly difficult to simulate basic algorithms like Breadth-First Search.

As Martin Grohe has explored, if we provide the logic with a linear order, we can capture P using Fixed-Point Logic. But on unordered graphs, Fixed-Point Logic falls short; it cannot express certain properties that are easily computable in polynomial time, such as the size of a set being even (counting). This gap between definability and tractability remains a central mystery.

Mapping the Landscape of Complexity

Researchers have successfully "supercharged" first-order logic with various operators to map out other complexity classes:

  • LOGCFL: Clemens Lautemann, Pierre McKenzie, Heribert Vollmer, and Thomas Schwentick characterized this class (problems reducible to context-free languages) by adding groupoidal quantifiers to first-order logic.
  • LOGSPACE: To capture logarithmic space, researchers like André Hernich introduced L-Recursion (LREC), a limited form of recursion that prevents the logic from "remembering" too much information at once.
  • Circuit Classes: For small-depth circuits ($NC^1, AC^1$), Arnaud Durand and Heribert Vollmer utilized Guarded Predicative Recursion to bridge the gap between descriptive complexity and arithmetic circuit theory.

Why This Matters: From Theory to Databases

This isn't just a theoretical exercise. In database theory, a query is essentially a logical formula. Understanding the descriptive complexity of a logic tells us the inherent cost of running queries written in that language. Michel de Rougemont demonstrated that constructive second-order proofs in logical databases are fundamentally linked to polynomial-time computability.

Furthermore, the study of isomorphism-invariant logics connects descriptive complexity to the Graph Isomorphism problem. If we can find a logic that captures P, we would essentially have a universal language for describing every property that can be efficiently computed, regardless of how the data is presented.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_descriptive_complexity_and_the_logic_of__e138287f,
  title = {Descriptive Complexity and the Logic of Polynomial Time},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/descriptive-complexity-and-the-logic-of-polynomial-time/rdr_e138287f165245e9a8f3dd1f981ec8fe},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-28},
}

This exact version (version 1, frozen text):

@misc{lacuna_descriptive_complexity_and_the_logic_of__e138287f_v1,
  title = {Descriptive Complexity and the Logic of Polynomial Time},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/descriptive-complexity-and-the-logic-of-polynomial-time/rdr_e138287f165245e9a8f3dd1f981ec8fe/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-28},
}