Algebras for Deterministic Computation Are Inherently Incomplete
Balder ten Cate, Tobias Kappé
TL;DR
The paper proves that the deterministic fragment of Kleene Algebra with Tests (KAT) cannot be generated by any finite set of regular control-flow operations, extending classical results on control-flow expressivity. It develops a detailed automata-theoretic framework to model deterministic KAT programs, introduces composition operations that mirror regular-control-flow constructs, and uses the L_k family of languages to show that finite compositions cannot capture all deterministic guarded languages. A key positive result shows that an infinitary family of regular-control-flow operations is expressively complete for the deterministic KAT fragment, while also establishing that determinism checking is coNP-complete (polynomial-time for fixed test alphabets). The findings reinforce that compositional, finite-primitives languages like GKAT inherently miss some deterministic behaviors, motivating broader automata-based approaches and informing future work on non-local control flow and related algebraic systems. Overall, the work deepens our understanding of the boundaries between deterministic control flow, regular operations, and algebraic reasoning in program analysis.
Abstract
Kleene Algebra with Tests (KAT) provides an elegant algebraic framework for describing non-deterministic finite-state computations. Using a small finite set of non-deterministic programming constructs (sequencing, non-deterministic choice, and iteration) it is able to express all non-deterministic finite state control flow over a finite set of primitives. It is natural to ask whether there exists a similar finite set of constructs that can capture all deterministic computation. We show that this is not the case. More precisely, the deterministic fragment of KAT is not generated by any finite set of regular control flow operations. This generalizes earlier results about the expressivity of the traditional control flow operations, i.e., sequential composition, if-then-else and while.
