Context-Free-Language Reachability for Almost-Commuting Transition Systems
Open Access
- 8 January 2026
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 10 (POPL) , 1270-1295
Abstract
We extend the scope of context-free-language (CFL) reachability to a new class of infinite-state systems. Parikh’s Theorem is a useful tool for solving CFL-reachability problems for transition systems that consist of commuting transition relations. It implies that the image of a context-free language under a homomorphism into a commutative monoid is semi-linear, and that there is a linear-time algorithm for constructing a Presburger arithmetic formula that represents it. However, for many transition systems of interest, transitions do not commute. In this paper, we introduce almost-commuting transition systems, which pair finite-state control with commutative components, but which are in general not commutative. We extend Parikh’s theorem to show that the image of a context-free language under a homomorphism into an almost-commuting monoid is semi-linear and that there is a polynomial-time algorithm for constructing a Presburger arithmetic formula that represents it. This result yields a general framework for solving CFL-reachability problems over almost-commuting transition systems . We describe several examples of systems within this class. Finally, we examine closure properties of almost-commuting monoids that can be used to modularly compose almost-commuting transition systems while remaining in the class.Keywords
This publication has 25 references indexed in Scilit:
- Semi-linear VASR for Over-Approximate Semi-linear Transition System Reachability2024
- An Incremental Points-to Analysis with CFL-Reachability2013
- Existential Label Flow Inference Via CFL ReachabilityLecture Notes in Computer Science, 2006
- Weighted pushdown systems and their application to interprocedural dataflow analysisScience of Computer Programming, 2005
- How to Compose Presburger-Accelerations: Applications to Broadcast Protocols2002
- Efficient Algorithms for Model Checking Pushdown Systems2000
- Reachability analysis of pushdown automata: Application to model-checking1997
- Parallel program schemataJournal of Computer and System Sciences, 1969
- Semantics of context-free languagesTheory of Computing Systems, 1968
- On certain formal properties of grammarsInformation and Control, 1959