{{Short description|Mathematical modeling language}}

A '''vector addition system''' ('''VAS''') is one of several mathematical modeling languages for the description of [[distributed systems]]. Vector addition systems were introduced by [[Richard M. Karp]] and Raymond E. Miller in 1969,<ref>{{cite journal|last1=Karp|first1=Richard M.|last2=Miller|first2=Raymond E.|title=Parallel program schemata|journal=Journal of Computer and System Sciences|date=May 1969|volume=3|issue=2|pages=147–195|doi=10.1016/S0022-0000(69)80011-5|doi-access=free}}</ref> and generalized to '''vector addition systems with states''' ('''VASS''') by [[John Hopcroft|John E. Hopcroft]] and Jean-Jacques Pansiot in 1979.<ref>{{cite journal|last1=Hopcroft|first1=John E.|last2=Pansiot|first2=Jean-Jacques|title=On the reachability problem for 5-dimensional vector addition systems|journal=Theoretical Computer Science|date=1979|volume=8|issue=2|pages=135–159|doi=10.1016/0304-3975(79)90041-0|hdl=1813/6102|hdl-access=free}}</ref> Both VAS and VASS are equivalent in many ways to [[Petri net]]s introduced earlier by [[Carl Adam Petri]]. [[File:Vector addition with states.svg|thumb|Example of a vector addition with states. In this VASS, e.g., q(1,2) can be reached from p(0,0), but q(0,0) cannot be reached from p(0,0).]]

== Informal definition ==

A ''vector addition system'' consists of a finite set of [[integer]] [[row vector|vectors]] with all vectors having the same length. An initial vector is seen as the initial values of multiple counters, and the vectors of the VAS are seen as updates. These counters may never drop below zero. More precisely, given an initial vector with non negative values, the vectors of the VAS can be added componentwise, given that every intermediate vector has non negative values. A ''vector addition system with states'' is a VAS equipped with control states. More precisely, it is a finite [[directed graph]] with [[Directed graph#Basic terminology|arcs]] labelled by [[integer]] vectors. VASS have the same restriction that the counter values should never drop below zero.

Vector addition systems can be seen as a weak [[counter machine]], which is unable to test that a counter is zero (but it can verify that a counter is positive, by trying to decrement it. If the test fails, execution terminates).

== Formal definitions and basic terminology ==

* A ''VAS'' is a finite set <math>V \subseteq \mathbb{Z}^d</math> for some <math>d \geq 1</math>. * A ''VASS'' is a finite [[directed graph]] <math>(Q, T)</math> such that <math>T \subseteq Q \times \mathbb{Z}^d \times Q</math> for some <math>d > 0</math>.

=== Transitions ===

* Let <math>V \subseteq \mathbb{Z}^d</math> be a VAS. Given a vector <math>u \in \mathbb{N}^d</math>, the vector <math>u + v</math> can be ''reached'', in one transition, if <math>v \in V</math> and <math>u + v \in \mathbb{N}^d</math>. * Let <math>(Q, T)</math> be a VASS. Given a ''configuration'' <math>(p, u) \in Q \times \mathbb{N}^d</math>, the configuration <math>(q, u + v)</math> can be ''reached'', in one transition, if <math>(p, v, q) \in T</math> and <math>u + v \in \mathbb{N}^d</math>.

== VASS and VAS == A VAS is obviously a special case of VASS. On the other hand, a VASS of dimension ''n'' can be simulated by a VAS of dimension ''n''+3, as shown by [[John Hopcroft|Hopcroft]] and [[Jean-Jacques Pansiot|Pansiot]].<ref>{{cite journal |last1= Hopcroft|first1=John |last2= Pansiot|first2= Jean-Jacques|date= |title= On the reachability problem for 5-dimensional vector addition systems|url= |journal= Theoretical Computer Science|volume= 8|issue= 2|publisher= Elsevier|pages= 135-159|doi= |access-date=}}</ref> In this system, the additional three coordinates encode the state. Each transition of the VASS is simulated by a sequence of three VAS transitions, where the first two just manipulate the state-encoding coordinates.

== VASS and Petri Nets == A [[Petri net]] can be seen as a VASS: consider a Petri net <math>(S,T,W)</math>, where * <math>S=\{1,\dots,n\}</math> is a [[finite set]] of ''places'' * ''T'' is a finite set of ''transitions'' * <math>W: (S \times T) \cup (T \times S) \to \mathbb{N}</math> specifies the number of tokens that a transition consumes and produces. Then a marking of the net can be seen as a vector in <math>\mathbb{N}^d</math>, where <math>d=|S|</math>, and a transition ''t'' as a pair of VASS transitions <math>(p, v, q), (q, v', p)</math> where ''q'' is an auxiliary control state, <math>v_i = -W(i,t)</math> and <math>v'_j = W(t,j)</math>. Similarly, a VAS can be formulated as a Petri net.

== Properties of VAS(S) and Decision Procedures ==

=== Reachability === The [[reachability problem]] for Petri nets is to decide, given a A VAS(S) and a state (a vector in the case of VAS, a vector and a control state in the case of VASS) whether another given state is reachable from it by a any finite sequence of transitions.

This problem was shown to be [[EXPSPACE]]-hard<ref name="Lip76">{{cite journal | last = Lipton | first = R. |authorlink = Richard Lipton| url = http://citeseer.ist.psu.edu/contextsummary/115623/0 | title = The Reachability Problem Requires Exponential Space | journal = Technical Report 62 | date = 1976 |publisher=Yale University |pages=305–329}}</ref> years before it was shown to be decidable at all.<ref>{{cite journal |last1= Mayr|first1= Ernst W.|title= An Algorithm for the General Petri Net Reachability Problem|url= |journal= SIAM Journal on Computing|volume=13 |issue= 3|publisher=SIAM |pages= 441-460|doi= }}</ref> In 2021, this problem was shown to be [[Ackermann function|Ackermann-complete]] (thus not [[Primitive recursive function|primitive recursive]]), independently by Jerome Leroux<ref>{{cite conference |last1=Leroux |first1=Jérôme |title=The Reachability Problem for Petri Nets is Not Primitive Recursive | date=2021 | conference=2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS) | arxiv=2104.12695}}</ref> and by Wojciech Czerwiński and Łukasz Orlikowski.<ref>{{cite conference |last1=Czerwiński |first1=Wojciech |last2=Orlikowski |first2=Łukasz |title=Reachability in Vector Addition Systems is Ackermann-complete | date=2021 | conference=2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS) | arxiv=2104.13866}}</ref> The Ackermannian upper bound is due to Leroux and Schmitz<ref>{{cite conference |last1= Leroux|first1= Jérôme|last2= Schmitz|first2= Sylvain |date= |title= Reachability in vector addition systems is primitive-recursive in fixed dimension|url= |work= |book-title= 34th Annual ACM/IEEE Symposium on Logic in Computer Scienc|conference= LICS|location= |publisher= IEEE|access-date=}}</ref> whose algorithm admits a [[primitive recursive function|primitive-recursive]] upper bound when the dimension is a constant.

The '''mutual reachability problem''' (aka reversible reachability) asks for two states, ''x'' and ''y'', whether ''x'' is reachable from ''y'' and vice versa. This problem is much easier than unidirectional reachability, and was proved to be EXPSPACE-complete.<ref>{{cite journal |last1= Leroux|first1= Jérôme|date= 2013|title= Vector addition system reversible reachability problem|url=https://doi.org/10.2168/LMCS-9(1:5)2013 |journal= Logical Methods in Computer Science|volume= 9|issue=1 |publisher= |pages= |doi= 10.2168/LMCS-9(1:5)2013|access-date=|arxiv= 1301.4874}}</ref>

=== Coverability === Given two states of a VAS, ''x'' and ''y'', the coverability question asks whether there is a sequence of transitions that takes the initial state ''x'' into a state <math>x'</math> such that <math>x'\ge y</math> (comparison is element-wise). In a VASS, one also specifies the control states, and the problem is equivalent to the (superficially) simpler problem of asking whether a given control state, ''q'', is reachable from initial state <math>(p,x)</math>. The coverability problem is EXPSPACE-complete.<ref name="Lip76"/>

=== Boundedness === The boundedness problem for a VASS is: given initial state <math>(p,x)</math>, is the set of states reachable from <math>(p,x)</math> finite? This decision problem is also EXPSPACE-complete.<ref>{{cite journal |last1= Rackoff|first1= Charles|date= |title=The covering and boundedness problems for vector addition systems |url= |journal= Theoretical Computer Science|volume= 6|issue= 2|publisher=Elsevier |pages= 223-23|doi= |access-date=}}</ref>

== See also == * [[Petri net]] * [[Finite-state machine]] * [[Communicating finite-state machine]] * [[Kahn process networks]] * [[Process calculus]] * [[Actor model]] * [[Trace theory]]

== References == {{reflist}}

{{DEFAULTSORT:Vector addition system}} [[Category:Formal specification languages]] [[Category:Models of computation]] [[Category:Concurrency (computer science)]] [[Category:Diagrams]] [[Category:Petri nets| ]] [[Category:Software modeling language]]