Abstract
This paper investigates the "safety" of evolving logic-based ontologies by studying conservative extensions for existential rules (TGDs). The authors reveal a surprising complexity landscape: deciding if a new set of rules preserves the query answers of an old set is undecidable for simple "linear" and "guarded" rules, but remains decidable for "frontier-one" rules.
Introduction
In knowledge representation, existential rules (also known as Tuple-Generating Dependencies or TGDs) are used to add logical layers to databases. As these systems grow, modular management becomes critical. A central question arises: if an old set of rules ($T_1$) is replaced with a new set ($T_2$), will the answers to existing queries remain unchanged?
This is the problem of conservative extensions. If $T_2$ is a conservative extension of $T_1$, it ensures that $T_2$ does not alter the logical consequences regarding the original vocabulary. The authors examine two primary forms:
- CQ-conservativity: Do Conjunctive Queries (standard join queries) return identical results?
- Hom-conservativity: Is there a structural mapping (homomorphism) between the logical models produced by both rule sets?
Additionally, the paper explores triviality: whether a set of rules provides any information at all regarding a specific set of data and queries.
Methodology
The research is purely theoretical, utilizing advanced techniques from mathematical logic and computer science to establish a decidability boundary.
Reductions from Conway Functions
To establish undecidability, the authors map the problem to the halting behavior of Conway functions. They employ a metaphorical "Pyramus and Thisbe" construction to simulate two entities communicating through a "crack in a wall" (a shared channel). This demonstrates that even simple linear rules can simulate complex, unpredictable computations.
Tree Automata and Treewidth
For decidable cases, specifically frontier-one TGDs, the authors utilize "tree-like" database constructions. They prove that if a counter-example to conservativity exists, one must exist with a bounded "treewidth." This allows the construction of 2-way alternating tree automata (2ATAs) to decide the problem.
The Chase Procedure
The authors rely on the "chase," a standard algorithm that exhaustively applies rules to a database to derive all logical consequences. The complexity of these reductions is illustrated by the intricate graph structures required to simulate functional behavior.
Key Insights and Results
The study establishes a sharp boundary for the decidability of conservative extensions across different rule fragments.
The Linear Surprise
Linear TGDs are typically considered computationally simpler. However, this research proves that for conservative extensions, they are undecidable. This indicates that comparing two ontologies is fundamentally more difficult than querying a single one.
Frontier-One as a "Sweet Spot"
Frontier-one TGDs (where only one variable is shared between the body and head of a rule) are shown to be decidable. These rules are expressive enough to generalize many Description Logics used in the Semantic Web.
Summary of Complexity Results
| Rule Fragment | CQ/Hom-Conservativity | Triviality |
|---|---|---|
| Linear TGDs | Undecidable | Decidable (PSPACE-complete) |
| Guarded TGDs | Undecidable | Undecidable |
| Frontier-one TGDs | Decidable (3EXPTIME) | Decidable (3EXPTIME) |
Conclusion and Future Work
While the paper provides a comprehensive map of decidability, several areas remain for future exploration. For frontier-one TGDs, a gap exists between the 2EXPTIME lower bound and the 3EXPTIME upper bound. Future research could examine other "tame" fragments like acyclic or sticky TGDs. Finally, while 3EXPTIME is high, many logic problems with high worst-case complexity perform well on real-world data, suggesting that practical optimizations are a valuable next step.
Summary updated