Derivatives on Graphs for the Positive Calculus of Relations with Transitive Closure
Yoshiki Nakamura
TL;DR
<3-5 sentence high-level summary> This paper proves that the equational theory of the positive calculus of relations with transitive closure (PCoR*) is decidable and EXPSPACE-complete, and it further remains EXPSPACE-complete when extended with tests and nominals (hybrid logic). The authors introduce derivatives on graphs, extending Brzozowski/Antimirov derivatives from strings to graph structures, and leverage a linearly bounded pathwidth model property to build a finite automata construction via path decompositions. A central Decomposition Theorem shows derivatives decompose along gluing operations, enabling a reduction to two-way alternating finite automata (2AFA) containment problems, which yields the EXPSPACE upper bound and EXPSPACE-hardness via reductions from regular-expression universality. The work also provides encodings for top, converse, tests, and nominals within this automata framework, and establishes a PSPACE bound for certain intersection-bounded fragments, highlighting the boundary between tractable and intractable cases. Overall, the approach connects graph-language characterizations, automata theory, and structural graph decompositions to achieve a robust decision procedure for a broad relational-calculus setting with transitive closure.
Abstract
We prove that the equational theory of the positive calculus of relations with transitive closure (PCoR*) is EXPSPACE-complete. Here, PCoR* terms consist of the following standard operators on binary relations: identity, empty, universality, union, intersection, composition, converse, and reflexive transitive closure (so, PCoR* terms subsume Kleene algebra and allegory terms as fragments). Additionally, we show that the equational theory of PCoR* extended with tests and nominals (in hybrid logic) is still EXPSPACE-complete; moreover, it is PSPACE-complete for its intersection-free fragment. To this end, we design derivatives on graphs by extending derivatives on words for regular expressions. The derivatives give a finite automata construction on path decompositions, like those on words. Because the equational theory has a linearly bounded pathwidth model property, we can decide the equational theory of PCoR* using these automata.
