arXiv:2611.03313cs.FLNov 2026

Manuscript Offprint

arXiv:2611.03313

Regular Separability for Bidirected VASS

Łukasz Orlikowski, Georg Zetzsche

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The regular separability problem asks, given two languages, whether there exists a regular language that contains one of them and is disjoint from the other. We study regular separability for bidirected VASS. We first show that the problem remains Ackermann-complete when the input consists of two languages recognised by bidirected VASS. To find a subclass of VASS in which the problem has lower complexity we define alphabetically bidirected VASS as ones where bidirectedness is also visible in the input letters. Our main result establishes that regular separability for alphabetically bidirected VASS is EXPSPACE-complete. The key to this result is that, in this setting, regular separability coincides with disjointness.

As a first ingredient in this equivalence, we also show that for alphabetically bidirected Z-VASS, regular separability and disjointness are equivalent. Consequently, regular separability for these systems is in polynomial-time. In fact, it is log-space inter-reducible with non-solvability of integer linear Diophantine equation systems.

Finally, we observe that the picture changes dramatically in the presence of a zero test, namely, we show that regular separability for alphabetically bidirected one-counter automata is undecidable.

2012 ACM Subject Classification Theory of computation → Parallel computing models

Keywords and phrases vector addition systems, Petri nets, bidirected systems, languages, regular separability

Digital Object Identifier 10.4230/LIPIcs...

Funding Funded by the European Union (ERC, FINABIS, 101077902). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them. In addition, the first author was supported by the European Research Council (ERC) grant POLARIS, agreement no. 101231447.

Acknowledgements We are grateful to Wojciech Czerwinski for the idea to study regular separability for bidirected systems.

AI Disclosure No AI tools were used in this work.

Figure

CC

© Łukasz Orlikowski and Georg Zetzsche;

licensed under Creative Commons License CC-BY 4.0

Leibniz International Proceedings in Informatics

LIPICS Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany

XX:2 Regular Separability for Bidirected VASS

1 Introduction

Regular separability is a decision problem for two given languages L1,L2⊆Σ∗L_1, L_2 \subseteq \Sigma^*, and it asks whether they are regularly separable, i.e. whether there is a regular language S⊆Σ∗S \subseteq \Sigma^* such that L1⊆SL_1 \subseteq S and L2∩S=∅L_2 \cap S = \emptyset. Regular separability has received a significant amount of attention. After some discouraging undecidability results on context-free languages in the 1970s [29, 17], regular separability has been studied intensively over the last decade for vector addition systems with states (VASS), which have finite many control states with access to counters that can be incremented and decremented, but not zero-tested. Moreover, the counters have to stay negative during the run. Regular separability has been studied for integer VASS [4, 7], combination of VASS and subclasses [10], Büchi VASS [1], and VASS coverability languages (more generally, well-structured transition systems) [9, 11], VASS reachability sets [5], and one-dimensional VASS [8]. This culminated in the celebrated decidability result for regular separability of general VASS [19].

Remaining challenges Currently, three challenges remain in connection with regular separability. First, decidability is not known in the “CFL vs. VASS” setting, i.e. when one input language is context-free and the other is a VASS (reachability) language. Note that this significantly generalizes the “VASS vs. VASS” setting, because any two VASS languages L1,L2⊆Σ∗L_1, L_2 \subseteq \Sigma^* are regularly separable if and only if the (linear) context-free language E={w#wrev∣w∈Σ∗}E = \{w \# w^{\text{rev}} \mid w \in \Sigma^*\} is regularly separable from the VASS language K=L1#L2revK = L_1 \# L_2^{\text{rev}} (in each case, .rev denotes string reversal).

The second challenge concerns the mysterious relationship between regular separability and the intersection problem, which asks whether two given languages intersect. As of now, almost all existing results on decidability and complexity of regular separability are in agreement with the corresponding intersection problem: In other words, in almost all settings, deciding regular separability of L1,L2L_1, L_2 has the same complexity as deciding whether L1∩L2=∅L_1 \cap L_2 = \emptyset. The only exceptions to this are artificially constructed language classes that show that each problem can be decidable without the other [30, Thms. 4.1&5.2]. However, for all natural classes of infinite-state systems, the two problems agree in their decidability and complexity. In fact, under mild assumptions, if L1,L2L_1, L_2 are accepted by well-structured transition systems (WSTS), then regular separability is even equivalent to disjointness [9]. This close agreement across infinite-state systems raises the question of whether there is a deeper connection, perhaps even a reduction technique, between regular separability and intersection. Note that the aforementioned setting “CFL vs. VASS” is a special case of this: It is known the intersection between CFL and VASS languages is decidable (it is equivalent to reachability in pushdown VASS [15]), but regular separability remains unknown.

The third challenge is to identify subclasses of VASS where the complexity of regular separability is lower than the general Ackermann-complete setting [19, Thm. 3.1].

Bidirected VASS In this work, we make progress on the second and third challenge above, by studying regular separability for the subclass of bidirected VASS. These are VASS where for every transition, there is another transition with opposite effect. Bidirectedness is a restriction that has been studied across recent decades for various types of infinite-state systems. This is because some types of static analysis directly correspond to reachability in bidirected (counter or pushdown) systems [27], but also because bidirectedness enables efficient algorithms for pushdown systems [2], VASS [23, 21, 20, 22], pushdown VASS [12] and other kinds of systems [13] (see [25] for an overview).

XX:3

Contributions We study regular separability for bidirected VASS. We first note that it is not obvious to find the right definition: If we only assume that we are given bidirected VASS for input languages L1L_1 and L2L_2, then we show that it is still Ackermann-complete to decide whether L1L_1 and L2L_2 are regularly separable. However, a slightly different perspective will indeed yield lower complexity. We define alphabetically bidirected VASS as ones where bidirectedness is also visible in the input letters: The input alphabet Σ\Sigma consists of two parts Σ1\Sigma_1 and Σˉ1\bar{\Sigma}_1, where Σˉ1={aˉ∣a∈Σ1}\bar{\Sigma}_1 = \{\bar{a} \mid a \in \Sigma_1\} are considered opposite to Σ1\Sigma_1. And crucially, the opposite of a transition also carries the opposite label.

For alphabetically bidirected VASS, we show that the complexity of regular separability indeed drops significantly. Our main result is that for alphabetically bidirected VASS, regular separability is EXPSPACE-complete. As mentioned above, this contrasts with Ackermann-completeness for general VASS. To this end, we show that for alphabetically bidirected VASS, regular separability coincides with disjointness.

As a first ingredient in this equivalence, we also show that for alphabetically bidirected Z\mathbb{Z}-VASS (i.e. VASS where counters can drop below zero), regular separability and disjointness coincide. This yields a result of independent interest: Regular separability for alphabetically bidirected Z\mathbb{Z}-VASS is in polynomial time (in fact, inter-reducible with non-solvability of integer linear Diophantine equation systems). Again, this is in contrast to coNP-completeness for general Z\mathbb{Z}-VASS [7, Thm. 3.6].

However, in our second main result, we show that for one-counter automata (i.e. VASS with one zero-testable counter), regular separability in the alphabetically bidirected setting is undecidable, just like for unrestricted one-counter automata [8, Thm. 2].

Lower complexity and connection to disjointness This means, with the alphabetically bidirected setting, we identify two subclasses of VASS with lower complexity of regular separability, and thus contribute to the third challenge above. In addition, we make progress on the second challenge: This is because our algorithms for VASS and Z\mathbb{Z}-VASS rely on the equivalence between regular separability and disjointness. In other words, they enjoy the same property as most languages of WSTS [9].

Key insights Our proofs rely on several new insights. As mentioned above, the first ingredient is that in alphabetically bidirected Z\mathbb{Z}-VASS, regular separability and disjointness are equivalent. To this end, we work with a characterization [7, Thm. 4.6] of regular inseparability of Z\mathbb{Z}-VASS in terms of solvability of a linear equation system associated with the Z\mathbb{Z}-VASS. These solutions correspond to integer linear combinations of cycles, i.e. where some cycles can occur with negative multiplicity. Roughly speaking, we observe that in bidirected systems, such solutions can be converted into proper runs, by replacing negative-multiplicity cycles π\pi with positive multiples of their opposite cycle πˉ\bar{\pi}.

Then for (non-integer) VASS, our proof consists of several steps. First, we consider the case that all counters of the input VASS are simultaneously unbounded (i.e. in a product of the input VASS, there are runs that make all counters arbitrarily large at the same time). In this case, we consider three overapproximations: (i) the forward coverability language, (ii) the backward coverability language, and (iii) the words accepted in Z\mathbb{Z}-semantics (i.e. where counter can drop below zero). By relying on the equivalence of regular separability and disjointness for coverability VASS [11] (in the case of (i)&(ii)) and alphabetically bidirected Z\mathbb{Z}-VASS (for (iii)), we then know that if any of those overapproximations yield empty intersection, we have regular separability. However, if each pair of overapproximations intersects, simultaneous unboundedness allows us to construct a word in the intersection.

arxiv

XX:4 Regular Separability for Bidirected VASS

If the counters are not all simultaneously unbounded, we rely on a result about bidirected VASS [13, Lemma 6.2], which says that all unbounded counters in a bidirected VASS are even simultaneously unbounded. This means, there must be one counter that is bounded in the product construction. Roughly speaking, this allows us to eliminate that counter and argue by induction on the total number of counters.

In our undecidability proof for alphabetically bidirected OCA, we follow the same strategy as in the undecidability for general OCA [8]. However, the latter crucially relies on the fact that in a two-counter machine that terminates after tt steps, if RiR_i denotes the set of runs ignoring counter ii, then R1R_1 and R2R_2 can agree on a prefix of length at most tt. However, if we attempt to translate this into a bidirected setting by adding backward edges, then we introduce arbitrary-length common prefixes. Therefore, we rely on a result of Morita [24] that shows Turing-completeness of reversible (i.e. backward deterministic) two-counter machines. We observe that here, even with added backward edges, a regular language can differentiate prefixes of R1R_1 from R2R_2, even though they may agree on arbitrary-length prefixes.

Structure of the paper After introducing basic notions in Section 2, we discuss the aforementioned naive notion of regular separability in bidirected VASS in Section 3. In Section 4, we prove the equivalence between regular separability and disjointness in alphabetically bidirected Z\mathbb{Z}-VASS. Section 5 then shows out main result: equivalence of regular separability and disjointness in alphabetically bidirected VASS. Finally, Section 6 proves undecidability of regular separability of alphabetically bidirected OCA.