A Complete Propositional Dynamic Logic for Regular Expressions with Lookahead
Yoshiki Nakamura
TL;DR
The paper develops a complete, finite Hilbert-style axiomatization for a Propositional Dynamic Logic variant over finite linear orders that captures the logic of regular expressions with lookahead (REwLA). By introducing REwLA+ with identities-restriction operators, the authors decompose relational semantics into identity and non-identity components and reduce completeness to an identity-free PDL (PDL^−) on finite strict linear orders. They prove soundness and completeness for REwLA+ and establish matching complexity results: EXPTIME-completeness for substitution-closed equivalences and PSPACE-completeness for standard equivalences. The work also provides an embedding framework linking substitution-closed and standard equivalences to PDL theories, and outlines potential directions for direct equational axiomatizations and extensions to lookbehind or backreferences. Overall, the approach unifies regex reasoning with PDL techniques, delivering a robust semantic and axiomatic foundation for REwLA+ with tractable complexity profiles $($EXPTIME$)$ and $($PSPACE$)$ on appropriate finite-order models.
Abstract
We consider (logical) reasoning for regular expressions with lookahead (REwLA). In this paper, we give an axiomatic characterization for both the (match-)language equivalence and the largest substitution-closed equivalence that is sound for the (match-)language equivalence. To achieve this, we introduce a variant of propositional dynamic logic (PDL) on finite linear orders, extended with two operators: the restriction to the identity relation and the restriction to its complement. Our main contribution is a sound and complete Hilbert-style finite axiomatization for the logic, which captures the equivalences of REwLA. Using the extended operators, the completeness is established via a reduction into an identity-free variant of PDL on finite strict linear orders. Moreover, the extended PDL has the same computational complexity as REwLA.
