Complexity Classifications via Algebraic Logic

Reijo Jaakkola, Antti Kuusisto

Introduction

First-Order Logic (FO) serves as a fundamental pillar of computer science and mathematics. However, its inherent undecidability—the inability to algorithmically determine the validity of any given formula—presents a significant hurdle for automated reasoning. To circumvent this, researchers have historically identified various "decidable fragments" of FO, such as Two-Variable Logic ($FO^2$) and the Guarded Fragment (GF). While these fragments are well-studied, they are often analyzed in isolation using disparate techniques. This paper, presented at CSL 2023, introduces a unified framework to systematically classify logical complexity by translating FO into algebraic operators.

General Relation Algebra (GRA)

The authors propose General Relation Algebra (GRA) as a means to capture the full expressive power of First-Order Logic through a finite set of seven algebraic operators. Unlike standard FO, which relies on an infinite supply of variables ($x, y, z, \dots$), GRA manipulates "AD-relations" (relations associated with a specific arity). This algebraic shift allows for a clearer view of the structural "building blocks" that contribute to computational complexity.

The seven core operators of GRA are:

  1. Equality ($e$): A constant representing the equality relation.
  2. Cyclic Permutation ($p$): Rotates the elements within a tuple (e.g., $(a, b, c) \to (c, a, b)$).
  3. Swap ($s$): Exchanges the positions of the final two elements in a tuple.
  4. Substitution ($I$): Identifies and eliminates duplicate coordinates.
  5. Negation ($\neg$): Represents the standard set complement.
  6. Join ($J$): Concatenates tuples from two distinct relations.
  7. Projection ($\exists$): Removes the final element of a tuple.

By proving that GRA is equiexpressive to FO, the authors establish a foundation for "ablation studies"—systematically removing or modifying these operators to observe the resulting impact on decidability and complexity.

Methodology and Taxonomy

The research utilizes equiexpressivity proofs to link GRA subsystems to known logical fragments. By employing techniques from automata theory and tiling problems, the authors provide a "periodic table" of logical complexity. A key insight is the identification of the Suffix Intersection ($\dot{\cap}$) operator, which facilitates the intersection of relations based on their trailing coordinates. This operator is central to the algebraic characterization of many decidable logics.

Furthermore, the framework reveals that the Guarded Fragment and Two-Variable Logic are algebraically similar. Their differences primarily stem from the specific permutations allowed and the arity of the relations involved, rather than fundamental syntactic differences.

Key Complexity Results

The paper provides several significant classifications within the GRA framework:

  • Full GRA: Equivalent to FO and thus undecidable.
  • Guarded Fragment (GF): Confirmed as 2ExpTime-complete through a new polynomial-time algebraic translation.
  • Two-Variable Logic ($FO^2$): Characterized as NexpTime-complete over binary relations.
  • GRA without Substitution ($I$): Found to be NP-complete, representing a surprisingly low complexity for a logic supporting an arbitrary number of variables.
  • GRA without Projection ($\exists$): Also NP-complete.
  • GRA without Join ($J$): Decidable via finite automata.
  • GRA without Equality ($e$) or Swap ($s$): Remains undecidable ($\Pi^0_1$-hard), suggesting that even minimal tuple manipulation can lead to undecidability.

Conclusion and Future Directions

This algebraic approach provides a systematic taxonomy for logical fragments, replacing ad-hoc analysis with a unified structural framework. While the paper successfully maps much of the complexity landscape, some gaps remain, such as the specific complexity of GRA when the cyclic permutation operator ($p$) is removed while the swap operator ($s$) is retained. Future work may extend this methodology to more expressive systems, including Fixed-Point Logic and Second-Order Logic, to further refine our understanding of the boundaries of decidability.

Summary updated

BibTeX
@inproceedings{jaakkola2023complexity,
  author = {Reijo Jaakkola and Antti Kuusisto},
  title = {{Complexity Classifications via Algebraic Logic}},
  booktitle = {CSL},
  year = {2023},
  doi = {10.4230/lipics.csl.2023.27},
}
Figure