ArticlePDF Available

Separability of Reachability Sets of Vector Addition Systems

Authors:

Abstract

Given two families of sets F\mathcal{F} and G\mathcal{G}, the F\mathcal{F} separability problem for G\mathcal{G} asks whether for two given sets U,VGU, V \in \mathcal{G} there exists a set SFS \in \mathcal{F}, such that U is included in S and V is disjoint with S. We consider two families of sets F\mathcal{F}: modular sets SNdS \subseteq \mathbb{N}^d, defined as unions of equivalence classes modulo some natural number nNn \in \mathbb{N}, and unary sets. Our main result is decidability of modular and unary separability for the class G\mathcal{G} of reachability sets of Vector Addition Systems, Petri Nets, Vector Addition Systems with States, and for sections thereof.
arXiv:1609.00214v1 [cs.FL] 1 Sep 2016
Separability of Reachability Sets of Vector
Addition Systems
Lorenzo Clemente1, Wojciech Czerwi´nski1, S lawomir Lasota1, and Charles
Paperman2
1University of Warsaw
2University of T¨ubingen
Abstract. Given two families of sets Fand G, the Fseparability prob-
lem for Gasks whether for two given sets U, V ∈ G there exists a set
S∈ F, such that Uis included in Sand Vis disjoint with S. We con-
sider two families of sets F: modular sets SNd, defined as unions of
equivalence classes modulo some natural number nN, and unary sets.
Our main result is decidability of modular and unary separability for
the class Gof reachability sets of Vector Addition Systems, Petri Nets,
Vector Addition Systems with States, and for sections thereof.
1 Introduction
In this paper we mainly investigate separability problems for sets of vectors
from Nd. We say that a set Uis separated from set Vby a set Sif USand
VS=. For two families of sets Fand G, the F-separability problem for G
asks for two given sets U, V ∈ G whether Uis separated from Vby some set
from F. Concretely, we consider Fto be modular sets or unary sets, and Gto
be reachability set of Vector Addition Systems, or generalizations thereof.
Motivation. The separability problem is a classical problem in theoretical com-
puter science. It was investigated most extensively in the area of formal lan-
guages, for Gbeing the family of all regular word languages. Since regular lan-
guages are effectively closed under complement, the F-separability problem is
a generalization of the F-characterization problem, which asks whether a given
language belongs to F. Indeed, L∈ F if and only if Lis separated from its
complement by some language from F. Separability problems for regular lan-
guages attracted recently a lot of attention, which resulted in establishing the
decidability of F-separability for the family Fof separators being the piecewise
testable languages [2,22] (recently generalized to finite ranked trees [5]), the lo-
cally and locally threshold testable languages [21], the languages definable in
first order logic [24], and the languages of certain higher levels of the first order
hierarchy [23], among others.
Separability of nonregular languages attracted little attention till now. The
reasons for this are twofold. First, for regular languages one can use standard al-
gebraic tools, like syntactic monoids, and indeed most of the results have been ob-
tained with the help of such techniques. Second, some strong intractability results
have been known already since 70’s, when Szymanski and Williams proved that
regular separability of context-free languages is undecidable [25]. Later Hunt [10]
generalized this result: he showed that F-separability of context-free languages
is undecidable for every class Fwhich is closed under finite boolean combina-
tions and contains all languages of the form wΣfor wΣ. This is a very
weak condition, so it seemed that nothing nontrivial can be done outside regular
languages with respect to separability problems. Furthermore, Kopczy´nski has
recently shown that regular separability is undecidable even for languages of vis-
ibly pushdown automata [12], thus strengthening the result by Szymanski and
Williams. On the positive side, piecewise testable separability has been shown
decidable for context-free languages, languages of Vector Addition Systems (VAS
languages), and some other classes of languages [3]. This inspired us to start a
quest for decidable cases beyond regular languages.
To the best of our knowledge, beside [3], separability problems for VAS lan-
guages have not been investigated before.
Our contribution. In this paper, we make a substantial step towards solving
regular separability of VAS languages. Instead of VAS languages themselves
(i.e., subsets of Σ), in this paper we investigate their commutative closures,
or, alternatively, subsets of Ndrepresented as reachability sets of VASes, VASes
with states, or Petri nets. A VAS reachability set is just the set of configurations
of a VAS which can be reached from a specified initial configurations. Towards a
unified treatment, instead of considering separately VASes, VASes with states,
and Petri nets, we consider sections of VAS reachability sets (abbreviated as VAS
sections below), which turn out to be expressive enough to represent sections
of VASes with states and Petri nets, and thus being a convenient subsuming
formalism. A section of a set of vectors XNdis the set obtained by first fixing
a value for certain coordinates, and then projecting the result to the remaining
coordinates. For example, if Xis the set of pairs {(x, y)N2|xdivides y},
then the section of Xobtained by fixing the first coordinate to 3 is the set
{0,3,6,...}. It can be easily shown that VAS sections are strictly more general
than VAS reachability sets themselves, and they are equiexpressive with sections
of VASes with states and Petri nets.
We study the separability problem of VAS sections by simpler classes, namely,
modular and unary sets. A set XNdis modular if there exists a modulus nN
s.t. Xis closed under the congruence modulo non every coordinate, and it is
unary if there exists a threshold nNs.t. it is closed under the congruence
modulo nabove the threshold non every coordinate. Clearly, VAS sections are
more general than both unary and modular sets, and unary sets are more general
than modular sets. Moreover, unary sets are tightly connected with commutative
regular languages, in the sense that the Parikh image3of a commutative regular
language is a unary set, and vice versa, the inverse Parikh image of a unary set is
a commutative regular language. As our main result, we show that the modular
3The Parikh image of a language of words L⊆ {a1,...,ak}is the subset of Nk
obtained by counting occurrences of letters in L.
2
and unary separability problems are decidable for VAS sections (and thus for
sections of VASes with states and Petri nets). Both proofs use similar techniques,
and invoke two semi-decision procedures: the first one (positive) enumerates
witnesses of separability, and the second one (negative) enumerates witnesses
of nonseparability. A separability witness is just a modular (or unary) set, and
verifying that it is indeed a separator easily reduces to the VAS reachability
problem. Thus, the hard part of the proof is to invent a finite and decidable
witness of nonseparability, i.e., a finite ob ject whose existence proves that none
of infinitely many modular (resp. unary) sets is a separator. Our main technical
observation is that two nonseparable VAS reachability sets always admit two
linear subsets thereof that are already nonseparable.
From our result, thanks to the tight connection between unary sets and com-
mutative regular languages mentioned above, we can immediately deduce decid-
ability of regular separability for commutative closures of VAS languages, and
commutative regular separability for VAS languages. This constitutes a first step
towards determining the status of regular separability for languages of VASes.
Related research. Choffrut and Grigorieff have shown decidability of separability
of rational relations by recognizable relations in Σ×Nd[1]. Rational subsets
of Ndare precisely the semilinear sets, and recognizable (by morphism into a
monoid) subsets of Ndare precisely the unary sets. Thus, by ignoring the Σ
component, one obtains a very special case of our result, namely decidability
of the unary separability problem for semilinear sets. Moreover, since modular
sets are subsets of Ndwhich are recognizable by a morphism into a monoid
which happens to be a group, we also obtain a new result, namely, decidability
of separability of rational subsets of Ndby subsets of Ndrecognized by a group.
From a quite different angle, our research seems to be closely related to
the VAS reachability problem. Leroux [15] has shown a highly nontrivial re-
sult: the reachability sets of two VASes are disjoint if, and only if, they can be
separated by a semilinear set. In other words, semilinear separability for VAS
reachability sets is equivalent to the VAS (non-)reachability problem. This con-
nection suggests that modular and unary separability are interesting problems
in themselves, enriching our understanding of VASes. Finally, we show that VAS
reachability reduces to unary separability, thus the problem does not become
easier by considering the simpler class of unary sets as opposed to semilinear
sets. For modular separability we have a weaker complexity lower bound, i.e.
ExpSpace-hardness, by a reduction from control state reachability for VASSes.
2 Preliminaries
Vectors. By Nand Zwe denote the set of natural and integer numbers, respec-
tively. For a vector u= (u1,...,ud)Zdand for a coordinate i∈ {1,...,d}, we
denote by u[i] its i-th component ui. The zero vector is denoted by 0. The order
and the sum operation + naturally extend to vectors pointwise. Moreover,
if nZ, then nu is the vector (nu1,...,nud). These operations extend to sets
3
element-wise in the natural way: For two sets of vectors U, V Zdwe denote by
U+Vits Minkowski sum {u+v|uU, v V}. For a (possibly infinite) set of
vectors SZd, let Lin(S) and Lin0(S) be the set of linear combinations and
non-negative linear combinations of vectors from S, respectively, i.e.,
Lin(S) = {a1v1+...+akvk|v1,...,vkS, a1,...,akZ},and
Lin0(S) = {a1v1+...+akvk|v1,...,vkS, a1,...,akN}.
When the set S={v1,...,vk}is finite, we alternatively write Lin(v1,...,vk)
instead of Lin({v1,...,vk}), and similarly for Lin0(v1,...,vk).
Modular, unary, linear, and semilinear sets. Two vectors x, y Zdare n-modular
equivalent, written xny, if, for all i∈ {1,...,d}, we have x[i]y[i] mod n.
Moreover, two non-negative vectors x, y Ndare n-unary equivalent, written
x
=ny, if xnyand x[i]ny[i]nfor all i∈ {1,...,d}. A d-
dimensional set SNdis modular if there exists a number nN, s.t. Sis a
union of n-modular equivalence classes. Unary sets SNdare defined similarly
w.r.t. n-unary equivalence classes.
A set SNdis linear if it is of the form S={b}+Lin0(p1,...,pk) for
some base bNdand some periods p1,...,pkNd. A set is semilinear if it
is a finite union of linear sets. Note that a modular set is also unary (since
=n
is finer than n), and that unary set is in turn a semilinear set, which can be
presented as a finite union of linear sets in which all the periods are parallel to
the coordinate axes, i.e., they have exactly one non-zero entry.
Separability. For S, U, V Nd, we say that Sseparates Ufrom Vif US
and VS=. The set Sis also called a separator of U, V . For a family Fof
sets, we say that Uis Fseparable from Vif Uis separated from Vby a set
S∈ F. In this paper, the set of separators Fwill be the modular sets and the
unary ones. Since both classes are closed under complement, the notion of F
separability is symmetric: Uis Fseparable from Viff Vis Fseparable from U.
Thus we use also a symmetric notation, in particular we say that Uand Vare
Fseparable instead of saying that Uis Fseparable from V. For two families
of sets Fand G, the Fseparability problem for Gasks whether two given sets
U, V ∈ G are Fseparable. In this paper we mainly consider two instances of F,
namely modular sets and unary sets, and thus we speak of modular separability
and unary separability problems, respectively.
Vector Addition Systems. Ad-dimensional Vector Addition System (VAS) is a
pair V= (s, T ), where sNdis the source configuration and Tfin Zdis the
set of finitely many transitions. A partial run ρof a VAS V= (s, T ) is a sequence
(v0, t0, v1),(v1, t1, v2),...,(vn1, tn1, vn)Nd×T×Nd
such that for all i∈ {0,...,n1}we have vi+ti=vi+1. The source of this partial
run is the configuration v0and the target of this partial run is the configuration
4
vn, we write source(ρ) = v0,target(ρ) = vn. The labeling of ρis the sequence
t0...tn1T, we write label(ρ) = t0...tn1. For a sequence αTand a
partial run ρsuch that label(ρ) = α,source(ρ) = uand target(ρ) = vwe
write uα
vto denote this unique partial run. A partial run ρof (s, T ) with
source(ρ) = sis called a run. The set of all runs of a VAS Vis denoted as
Runs(V). The reachability set Reach(V) of a VAS Vis the set of targets of
all its runs; the sets Reach(V) we call VAS reachability sets in the sequel. The
family of all VAS reachability sets we denote as Reach(VAS).
Example 1. Consider a VAS V= (s, T ), for a source configuration s= (1,0,0)
and a set of transitions T={(1,2,1),(2,1,1)}. One easily proves that
Reach(V) = {(a, b, c)N2|a+b=c+ 1 ab1 mod 3}.
Vector Addition Systems with states. Ad-dimensional VAS with states (VASS)
is a triple V= (s, T , Q), where Qis a finite set of states,sQ×Ndis the source
configuration and Tfin Q×Zd×Qis a finite set of transitions. Similarly as
in case of VASes, a run ρof a VASS V= (s, T, Q) is a sequence
(q0, v0, s0, q1, v1),...,(qn1, vn1, sn1, qn, vn)Q×Nd×Zd×Q×Nd
such that (q0, v0) = sand for all i∈ {0,...,n1}we have (qi, si, qi+1)Tand
vi+si=vi+1. We write target(ρ) = (qn, vn). The reachability set of a VASS
Vin state qis
Reachq(V) = {vNd|(q, v) = target(ρ) for some run ρ}.
The family of all such reachability sets of all VASSes we denote as Reach(VASS).
Example 2 (cf. [8]). Let Vbe a 3-dimensional VASS with two states, pand p,
the source configuration (p, (1,0,0)), and four transitions:
(p, (1,1,0), p),(p, (0,0,0), p),(p,(2,1,0), p),(p,(0,0,1), p).
Then Reachp(V) = {(a, b, c)N3|1a+b2c}.
3 Sections
VAS reachability sets are central for this paper. However, in order to make this
family of sets more robust, we prefer to consider the slightly larger family of
sections of VAS reachability sets. The intuition about a section is that we fix
values on a subset of coordinates in vectors, and collect all the values that can
occur on the other coordinates. For a vector uNdand a subset I⊆ {1,...,d}
of coordinates, by πI(u)N|I|we denote the I-projection of u, i.e., the vector
obtained from uby removing coordinates not belonging to I. The projection
extends element-wise to sets of vectors SNd, denoted πI(S). For a set of
5
vectors SNd, a subset I⊆ {1,...,d}, and a vector uNd−|I|, the section of
Sw.r.t. Iand uis the set
secI,u (S) := πI({vS|π{1,...,d}\I(v) = u})N|I|.
We denote by SecReach(VAS) the family of all sections of VAS reachability
sets, which we abbreviate as VAS sections below. Similarly, the family of all
sections of VASS-reachability sets we denote by SecReach(VASS).
Example 3. Consider the VAS Vfrom Example 1. For I={1,2}and u= 7 N1
we have
secI,u (Reach(V)) = {(0,8),(3,5),(6,2)}.
Note that in a special case of I={1,...,d}, when uis necessarily the empty
vector, secI,u (S) = S. Thus Reach(VAS) is a subfamily of SecReach(VAS),
and likewise for VASSes. We argue that VAS sections are a more robust class
than VAS reachability sets. Indeed, as shown below VAS sections are closed
under positive boolean combinations, which is not the case for VAS reachability
sets.
Reachability sets of VASes are a strict subfamily of reachability sets of VASes
with states, which in turn are a strict subfamily of sections of reachability sets
of VASes. However, when sections of reachability set are compared, there is
no difference between VASes and VASes with states, which motivates consider-
ing sections in this paper. These observations are summarized in the following
propositions:
Proposition 4. Reach(VAS) (Reach(VASS) (SecReach(VAS).
Proof. In order to prove strictness of the first inclusion, consider the VASS V
from Example 2. The reachability set Reachp(V) is not semilinear; on the other
hand the reachability sets of of 3-dimensional VASes are always semilinear [8].
Now we turn to the second inclusion. It is folklore that for a d-dimensional
VASS Vwith nstates and mtransitions one can construct a (d+n+m)-
dimensional VAS Vsimulating V. Among the new coordinates, ncorrespond
to states and mto transitions. For a transition t= (q, v, q) of Vthere are two
transitions in V: the first one subtracts 1 on the coordinate corresponding to
state qand adds 1 on the coordinate corresponding to t; the second one subtracts
1 on the coordinate corresponding to t, adds 1 on the coordinate corresponding
to q, and adds von the original dcoordinates. Finally, if (q0, v0) is the initial
configuration of V, then the initial configuration of Vis a copy of v0on the
original ddimensions, equals 1 on the coordinate corresponding to q0, and equals
0 on the rest of the new coordinates. Then the reachability set Reachq(V) equals
the section of Reach(V) obtained by fixing the coordinate corresponding to q
to 1 and all other new coordinates to 0.
For strictness of the second inclusion, apply the above-mentioned transfor-
mation to the VASS Vfrom Example 2, in order to obtain a 9-dimensional VAS
V. The section of Reach(V) that fixes the second original coordinate to 0, the
coordinate corresponding to state pto 1, and all the other new coordinates to
6
0 is S:= {(a, b)N2|0a2b}. This 2-dimensional set is not semilinear,
while reachability sets of 2-dimensional VASSes are always semilinear [8]. Thus
Sis not a 2-dimensional VAS reachability set.
Proposition 5. SecReach(VAS) = SecReach(VASS).
Proof. One inclusion is obvious, since VASSes are more general than VASes,
and the same holds when taking sections. For the other directions, consider a
VASS Vand a section thereof S:= secI ,v (Reachq(V)). Reconsider the folk-
lore construction of a VAS Vthat simulates V(cf. the proof of the previous
Proposition 5). The section of the reachability set of Reach(V) that fixes the
coordinate corresponding to qto 1, all the other new coordinates to 0, and all
the original coordinates not belonging to the set Ias in vector v, equals S.
Remark 6. In the similar vein one shows that reachability sets of Petri nets
include Reach(VAS) and are included in Reach(VASS). Therefore, as long as
sections are considered, there is no difference between VASes, Petri nets, and
VASSes. In consequence, our results apply not only to VASes, but to all the
three models.
We conclude this section by proving a closure property of VAS sections.
Proposition 7. The family of VAS sections is closed under positive boolean
combinations.
Proof. We only sketch the proof. For closure under union, we just use nondeter-
minism to guess which VAS to run. Dealing with sections is straightforward since
1) we can assume w.l.o.g. that sections are done w.r.t. the 0 vector, 2) by padding
coordinates we can assume that the two input VASes have the same dimension,
and 3) by reordering coordinates we can guarantee that the coordinates that are
projected away appear all together on the right (the same simplifying assump-
tions will be made in Sections 6 and 7; cf. the details just before Lemma 27).
For closure under intersection, we proceed under similar assumptions, and the
intuition is to run the first VAS forward in two identical copies, and then to run
backward the second VAS only in the second copy, using a section to make sure
that the second VAS is accepting, and then project away the second copy.
4 Results
As our main technical contribution, we prove decidability of the modular and
unary separability problems for the class of sections of VAS reachability sets.
Theorem 8. The modular separability problem for VAS sections is decidable.
Theorem 9. The unary separability problem for VAS sections is decidable.
7
The proofs are postponed to Sections 5–7. Furthermore, as a corollary of Theo-
rem 9 we derive decidability of two commutative variants of the regular separa-
bility of VAS languages (formulated in Theorems 10 and 11 below).
To consider languages instead of reachability sets, we need to assume that
transitions of a VAS are labeled by elements of an alphabet Σ, and thus every
run is labeled by a word over Σobtained by concatenating labels of consecutive
transitions of a run. We allow for silent transitions labeled by ε, i.e., transitions
that do not contribute to the labeling of a run. The language L(V) of a VAS V
contains labels of those runs of Vthat end in an accepting configuration. Our
results work for several variants of acceptance; for instance, for a given fixed
configuration v0,
we may consider a configuration vaccepting if vv0(this choice yields so
called coverability languages); or
we may consider a configuration vaccepting if v=v0(this choice yields
reachability languages).
The Parikh image of a word wΣ, for a fixed total ordering a1< . . . < ad
of Σ, is a vector in Ndwhose ith coordinate stores the number of occurrences
of aiin w. We lift the operation element-wise to languages, thus the Parikh
image of a language L, denoted pi(L), is a subset of Nd. Two words w, v over Σ
are commutative equivalent if their Parikh images are equal. The commutative
closure of a language LΣ, denoted cc(L), is the language containing all
words wΣcommutative equivalent to some word vL. A language Lis
commutative if it is invariant under commutative equivalence, i.e., L=cc(L).
Unary sets of vectors are exactly the Parikh images of commutative regular
languages; reciprocally, commutative regular languages are exactly the inverse
Parikh images of unary sets. Note that a commutative language is uniquely
determined by its Parikh image.
As a corollary of Theorem 9 we deduce decidability of the following two
commutative variants of the regular separability of VAS languages:
commutative regular separability of VAS languages: given two VASes V, V ,
decide whether there is a commutative regular language Rthat includes
L(V) and is disjoint from L(V);
regular separability for commutative closures of VAS languages: given two
VASes V, V , decide whether there is a regular language Rthat includes
cc(L(V)) and is disjoint from cc(L(V)).
Theorem 10. Commutative regular separability is decidable for VAS languages.
Indeed, given two VASes V, W one easy constructs another two VASes V, W
s.t. pi(L(V)) is a section of Reach(V), and similarly for W. By the tight cor-
respondence between commutative regular languages and unary sets, we observe
that L(V) and L(W) are separated by a commutative regular language if, and
only if, their Parikh images pi(L(V)) and pi(L(W)) are separated by a unary
set, which is is decidable by Theorem 9.
8
Theorem 11. Regular separability is decidable for commutative closures of VAS
languages.
Similarly as above, we reduce to unary separability of VAS reachability sets
(which is decidable once again by Theorem 9), which is immediate once one
proves the following crucial observation.
Lemma 12. Two commutative languages L, K Σare regular separable if,
and only if, their Parikh images are unary separable.
Proof. We start with the “if direction. Let pi(K) and pi(L) be separable by
some unary set UNd. Let S={wΣ|pi(w)U}. It is easy to see that S
is (commutative) regular since Uis unary, and that Sseparates Kand L.
Now we turn to the “only if” direction. Let Kand Lbe separable by a regular
language S, say KSand SL=. Let Mbe the syntactic monoid of Sand
ωbe its idempotent power, i.e., a number such that for every mMit holds
mω=m2ω. In particular, for every word uΣwe have
uvωwLuv2ωwS; (1)
in other words, one can substitute vωby v2ωand vice versa in every context. Let
Σ={a1,...,ad}. For u= (u1,...,ud)Nddefine a word wu=au1
1···aud
d. For
every u, v Ndsuch that u
=ωv, by repetitive application of (1) we get wuS
iff wvS. As Kis commutative and KS, we have wuSfor all upi(K);
similarly, we have wv6∈ Sfor all vpi(L). Therefore for all upi(K), vpi(L)
we have u6
=ωv. Let U={xNd| ∃ypi(K)x
=ωy}. The set Useparates pi(K)
and pi(L) and, being a union of
=ωequivalence classes, it is unary.
5 Modular and unary separability of linear sets
The rest of the paper is devoted to the proofs of Theorems 8 and 9. In this section
we prove that modular separability of linear sets is decidable4, and provide a
condition on linear sets that makes modular separability equivalent to unary
separability. The two results, stated in Lemmas 16 and 19 below, respectively,
are used in Sections 6 and 7, where the proofs of Theorems 8 and 9 are completed.
Linear combinations modulo n.We start with some preliminary results from lin-
ear algebra. For nN, let Lin0
n(v1,...,vk) be the closure of Lin0(v1,...,vk)
modulo n, i.e.,
Lin0
n(v1,...,vk) = {vNd| ∃uLin0(v1,...,vk)vnu}.
Similarly one defines Linn(v1,...,vk) be the closure of Lin(v1,...,vk) modulo
n. Observe however that Linn(v1,...,vk) = Lin0
n(v1,...,vk). Indeed, if vn
l1v1+...+lkvkfor l1,...,lkZthen vn(l1+Nn)v1+...+ (lk+N n)vkfor
any NN.
4While decidability follows from [1] and is thus not a new result, we provide here
another simple proof to make the paper self-contained.
9
Lemma 13. Lin(v1,...,vk) = Tn>0Lin0
n(v1,...,vk).
Proof. The left-to-right inclusion is immediate: for any nNwe have
Lin(v1,...,vk)Linn(v1,...,vk) = Lin0
n(v1,...,vk).
For the right-to-left inclusion we take an algebraic perspective, and treat
S:= Lin(v1, . . . , vk) as a subgroup of Zdgenerated by F={v1,...,vk}. Let I
be the set of all dunit vectors in Zd. For every nN0, let nZddenote the
subgroup of Zdgenerated by nI, and let Snbe the subgroup of Zdgenerated by
F(nI). In algebraic terms, our obligation is to show that
\
nN0
SnS. (2)
Let G:= Zd/S be the quotient group and consider the quotient group ho-
momorphism h:ZdG. It is legal, as every subgroup of an abelian group
is normal, thus we can consider a quotient with respect to it. We have thus
ker(h) = {xZd|h(x) = 0G}=S, where 0Gis the zero element of G. Now (2)
is equivalent to
h\
nN0
Sn={0G},
which will immediately follow, once we manage to show
\
nN0
h(Sn) = {0G}.
Observe that h(Sn) = h(nZd), for every nN0, and hence we may equally
well demonstrate:
\
nN0
h(nZd) = {0G}.(3)
The group G, being a finitely generated abelian group, is isomorphic to the direct
product of a finite group G1(let lbe its order, i.e., the number of its elements)
and G2=Zk, for some kN(see for instance Theorem 2.2, p. 76, in [9]). For
showing (3), consider an element gGwhich belongs to h(nZd) for all nN0,
and its two projections g1and g2in G1and G2, respectively. As gh(lZd), then
necessarily g1=l·gfor some gG1, and since the order of every element
divides the order of the group l, we have g1= 0G1. Similarly, we deduce that
g2= 0G2; indeed, this is implied by the fact that for every nN0,g2=ng
for some gG2. Thus g= 0Gas required.
Modular separability. In the rest of the paper, we heavily rely on the following
straightforward characterization of modular separability:
10
Proposition 14. Two sets U, V Ndare modular separable if, and only if,
there exists nNsuch that for all uU,vVwe have u6≡nv.
Proof. If U, V are separable by some n-modular set, then for all uU, v V
we have u6≡nv. On the other hand, if for all uU, v Vwe have u6≡nv, then
the modular set S={sNd| ∃uUsnu}separates Uand V.
Lemma 15. Two linear sets {b}+Lin0(P)and {c}+Lin0(Q)are not mod-
ular separable if, and only if, bcLin(PQ).
Proof. Let L={b}+Lin0(P) and M={c}+Lin0(Q), with P={p1,...,pm}
and Q={q1, . . . , qn}. First we show the “if” direction. By Proposition 14, it is
enough to show that, for every nN, there exist two vectors uLand vM
s.t. unv. Fix an nN. By assumption, we have bcLin(PQ), and thus
cbLin(PQ) = Lin(P∪ −Q). By Lemma 13, cbLin0
n(P∪ −Q), i.e.,
there exist δLin0(P) and γLin0(Q) such that cbnδγ. Thus, if
we take u=b+δand v=c+γwe clearly have uv= (bc) + (δγ)n
(bc) + (cb) = 0, and thus unv.
For the “only if” direction, assume that Land Mas above are not modular
separable. By Proposition 14, for every n0 there exist vectors unLand
vnMs.t. unnvn. By definition, un=b+δnand vn=c+γn, for some
δnLin0(P) and γnLin0(Q). Since unnvn, we have bcnγnδn
Lin(PQ), and thus bcLin0
n(PQ). Since nwas arbitrary, by Lemma 13
we have bcLin(PQ), as required.
Since the condition in the lemma above is effectively testable being an instance
of solvability of systems of linear Diophantine equations, we get the following
corollary:
Corollary 16. Modular separability of linear sets is decidable.
Remark 17. Since linear Diophantine equations are solvable in polynomial time,
we obtain the same complexity for modular separability of linear sets. This
observation however will not be useful in the sequel.
Unary separability. We start with a characterization of unary separability, which
is the same as Proposition 14, with unary equivalence
=nin place of modular
equivalence n. (Recall that unary equivalence is modular equivalence “above a
threshold”, i.e., u
=nvholds for two vectors u, v Ndif, for every component
1id, either u[i] = v[i]n, or u[i], v[i]nand u[i]nv[i].)
Proposition 18. Two sets U, V Ndare unary separable if, and only if, there
exists nNsuch that, for all uUand vV, we have u6
=nv.
We say that a set of vectors UNdis diagonal if, for every threshold xN,
there exists a vector uUwhich is strictly larger than xin every component. Let
I⊆ {1,...,d}be a set of coordinates. Two set of vectors U, V Ndare I-linked
if there exists a sectioning vector uNd−|I|s.t. π{1,...,d}\I(U) = π{1,...,d}\I(V) =
{u}and πI(U), πI(V) are diagonal. The sets U, V are linked if they are I-linked
for some I⊆ {1,...,d}.
11
Lemma 19. Let U, V Ndbe two linked linear sets. Then, Uand Vare unary
separable if, and only if, they are modular separable.
Proof. Let Uand Vbe two linked linear sets. One direction is obvious since
modular separability implies unary separability. For the other direction, let U
and Vbe modular nonseparable, and we show that they are unary nonsep-
arable either. By Lemma 14, there exists a sequence of vectors unUand
vnVs.t. unnvn. We construct a new sequence u
nUand v
nV
s.t. u
n
=nv
n, which will then show that Uand Vare not unary separa-
ble by Lemma 18. Since Uand Vare linked, there exist a set of coordinates
I⊆ {1,...,d}and a sectioning vector for the remaining coordinates uNd−|I|
s.t. 1) π{1,...,d}\I(U) = π{1,...,d}\I(V) = {u}and 2) πI(U), πI(V) are diagonal. In
particular, by 1) the two sequences unand vnproject to uon the complement
of I, i.e., π{1,...,d}\I(un) = π{1,...,d}\I(vn) = {u}. Moreover, for any nN, since
πI(un)πI(U), and the latter set is diagonal by 2), there exists an increment
δnN|I|s.t. πI(un)πI(un) + δnπI(U). Moreover, since Uis a linear set,
δncan be chosen to have its components multiple of n. Let u
nbe πI(un) + δnon
coordinates I, and uon the remaining ones. By the choice of δn,u
nnun, and,
moreover, u
nis larger than non coordinates I. The vector v
ncan be constructed
similarly from vn. We thus have u
n
=nv
n, since on coordinates Iboth u
nand
v
nare above n, and on the remaining coordinates they are equal to u.
Remark 20. The unary separability problem is decidable for linear sets, as shown
in [1], but we will not need this fact in the sequel. Moreover, it will follow from
our stronger decidability result about the more general VAS reachability sets
stated in Theorem 9 (since linear sets are included in VAS reachability sets).
6 Modular separability of VAS sections
In this section we prove Theorem 8, and thus provide an algorithm to decide
modular separability for VAS reachability sets. Given two VAS sections Uand V,
the algorithm runs in parallel two semi-decision procedures: one (positive) which
looks for a witness of separability, and another one (negative) which looks for a
witness of nonseparability. Directly from the characterization of Proposition 14,
the positive semi-decision procedure simply enumerates all candidate moduli
nNand checks whether u6≡nvfor all uUand vV. The latter condition
can be decided by reduction to the VAS (non)reachability problem [20,17].
Lemma 21. For two VAS sections Uand Vand a modulus nN, it is decidable
whether there exist uUand vVs.t. unv.
Proof. Recall that Uis obtained from the reachability set of a VAS by fixing
values ¯uon some coordinates, and projecting to the remaining coordinates; and
likewise Vis obtained, by fixing values ¯von some coordinates. We modify the
two VASes by allowing each non-fixed coordinate to be decremented by n, and
we check whether the two thus modified VASes admit a pair of reachable vectors
u, v that agree on fixed coordinates with ¯uand ¯v, respectively, and on all the
non-fixed coordinates are equal and smaller than n.
12
It remains to design the negative semi-decision procedure, which is the non-
trivial part. In Lemma 27, we show that if two VAS reachability sets are not
modular separable, then in fact they already contain two linear subsets which
are not modular separable. In order to construct such linear witnesses of non-
separablity, we use the theory of well quasi orders and some elementary results
in algebra, which we present next.
The order on runs. A quasi order (X, 4) is a well quasi order (wqo) if for every
infinite sequence x0, x1,...Xthere exist indices i, j N, i < j, such that xi4
xj. It is folklore that if (X, 4) is a wqo, then in every infinite sequence x0, x1,...
Xthere even exists an infinite monotonically non-decreasing subsequence xi14
xi24.... We will use Dickson’s and Higman’s Lemmas to define new wqo’s on
pairs and sequences. For two quasi orders (X, X) and (Y, Y), let the product
(X×Y, X×Y) be ordered componentwise by (x, y)X×Y(x, y) if xXx
and yYy. By Dickson’s Lemma [4], if both (X , X) and (Y, Y) are wqos,
then (X×Y, X×Y) is a wqo too. As a corollary of Dickson’s Lemma, if two
quasi orders (X, 1) and (X, 2) on the same domain are wqos, then the quasi
order defined as the conjunction of 1and 2is a wqo too. For a quasi order
(X, ), let (X,) be quasi ordered by the subsequence order , defined as
x1x2···xky1y2...ymif there exist 1 i1< . . . < ikmsuch that xjyij
for all j∈ {1, . . . , k}. By Higman’s Lemma [7], if (X, ) is a wqo then (X,)
is a wqo too.
By considering the finite set of transitions Twell quasi ordered by equality,
we define the order 1on triples Nd×T×Ndcomponentwise as (u, s, u)1
(v, t, v) if uv,s=t, and uv, which is a wqo by Dickson’s Lemma. We
further extend 1to an order Eon runs by defining, for two runs ρand σin
(Nd×T×Nd),ρEσif ρ1
σand target(ρ)target(σ).5Here, 1
is
the extension of 1to sequences, and thus a wqo by Higman’s Lemma, which
implies that Eis itself a wqo by the corollary of Dickson’s Lemma.
Proposition 22. Eis a well quasi order.
Lemma 23. Let ρ,ρ1, and ρ2be runs of a VAS s.t. ρEρ1, ρ2. There exists a
run ρs.t. ρEρand target(ρ)target(ρ) = (target(ρ1)target(ρ)) +
(target(ρ2)target(ρ)).
Proof. The proof is almost identical to the proof of Proposition 5.1. in [18]. Let
the VAS be (s, T ), and let ρ=v0
t0
v1
t1
· · · tn1
vn, where v0=s. Then ρi,
for i∈ {1,2}is of the form
ρi=v0
ρi
0
v0+δi
0
t0
v1+δi
0
ρi
1
v1+δi
1
t1
v1+δi
2
ρi
2
· · ·
ρi
n1
vn1+δi
n1
tn1
vn+δi
n1
ρi
n
vn+δi
n,
5A weaker version of this order not considering target configurations was defined
in [11].
13
where for all i∈ {1,2}and j∈ {0,...,n}we have δi
j0. Thus by letting ρ:=
ρ1
0ρ2
0t0ρ1
1ρ2
1t1ρ1
2ρ2
2···ρ1
n1ρ2
n1tn1ρ1
nρ2
nwe clearly have a run v0
ρ
vn+δ1
n+δ2
n
which indeed looks like
v0
ρ1
0
v0+δ1
0
ρ2
0
v0+δ1
0+δ2
0
t0
v1+δ1
0+δ2
0
ρ1
1
v1+δ1
1+δ2
0
ρ2
1
v1+δ1
1+δ2
1
t1
v2+δ1
1+δ2
1
ρ1
2
· · · tn1
vn+δ1
n1+δ2
n1
ρ1
n
vn+δ1
n+δ2
n1
ρ2
n
vn+δ1
n+δ2
n.
This finishes the proof of Lemma 23.
We formulate an immediate but useful corollary:
Corollary 24. Let ρ0, ρ1,...,ρkbe runs of a VAS s.t., for all i∈ {1,...,k},
ρ0Eρi, and let δi:= target(ρi)target(ρ0)0. For any δLin0(δ1,...,δk),
there exists a run ρs.t. ρ0Eρand δ=target(ρ)target(ρ0).
We conclude this part by showing that any (possibly infinite) subset of Zd
can be overapproximated by taking linear combinations of a finite subset thereof.
This will be important below in order to construct linear sets as witnesses of
nonseparability.
Lemma 25. For every (possibly infinite) set of vectors SZd, there exist
finitely many vectors v1,...,vkSs.t. SLin(v1,...,vk).
Proof. Treat Zdas a freely finitely generated abelian group, and consider the
subgroup Lin(S) of Zdgenerated by S, i.e., the subgroup containing all linear
combinations of finitely many elements of S. We use the following result in
algebra: every subgroup of a finitely generated abelian group is finitely generated
(see for instance Corollary 1.7, p. 74, in [9]). By this result applied to Lin(S) we
get a finite set of generators FLin(S) s.t. Lin(F) = Lin(S). Every element
of Fis a linear combination of finitely many elements of S. Thus let v1,...,vk
be all the elements of Sappearing as a linear combination of some element
from F. Then clearly FLin(v1,...,vk), and thus SLin(S) = Lin(F)
Lin(Lin(v1,...,vk)) = Lin(v1,...,vk), as required.
Remark 26. In fact one can show that the generating set Fhas at most dele-
ments. However, no upper bound on kfollows, and even for d= 1 the number of
vectors kcan be arbitrarily large. Indeed, let p1,...,pkbe different prime num-
bers, let ui= (p1·...·pk)/piand S={u1,...,uk}. Then for every i∈ {1,...,k},
the number uiis not a linear combination of numbers uj,j6=i, as uiis not di-
visible by pi, while all the others are. Therefore we need all the elements of Sin
the set {v1,...,vk}.
14
Modular nonseparability witness. We now concentrate on the negative semi-
decision procedure. Let U, V Ndbe two VAS sections:
U=secI, ¯u(RU)Ndand V=secJ,¯v(RV)Nd,
where RUNdUand RVNdVare the reachability sets of the two VASes
WUand WV, and I⊆ {1,...,dU}and J⊆ {1,...,dV}with |I|=|J|=dare
projecting coordinates, and ¯uNdUd,¯vNdVdare two sectioning vectors.
Observe that by padding coordinates we can assume w.l.o.g. that the two
input VASes have the same dimension d=dU=dV. Furthermore, we can also
assume w.l.o.g. that ¯u= ¯v= 0. Indeed, one can add an additional coordinate,
such that for performing any transition it is necessary that this coordinate is
nonzero and a special, final transition, which causes the additional coordinate
to be equal zero and subtracts ¯u(or ¯v) from the other coordinates. The result of
adding this gadget is that now we can assume ¯u= ¯v= 0, but the section itself
does not change.
Finally, by reordering coordinates we can guarantee that the coordinates that
are projected away appear on the same positions in both VASes, i.e., I=J. With
these assumptions, we observe that modular separability of sets U, V Ndis
equivalent to modular separability of sets U, V Nd, defined as U, V but
without projecting onto the subset Iof coordinates:
U={vRU|π{1,...,d}\I(v) = 0}V={vRV|π{1,...,d}\I(v) = 0}.
We call the set U(resp. V) the expansion of U(resp. V).
We say that a linear set L={b}+Lin0(p1,...,pk)Ndis a U-witness if
WUadmits runs ρ, ρ1,...,ρksuch that
b=target(ρ)U
b+pi=target(ρi)Ufor i∈ {1,...,k}
ρEρifor i∈ {1,...,k}.
(4)
Analogously one defines V-witnesses, but with respect to WV.
Lemma 27. For two VAS sections U, V Nd, the following conditions are
equivalent:
1. U, V are not modular separable;
2. the expansions U, V of U, V are not modular separable;
3. there exist linear subsets LU,MVthat are not modular separable;
4. there exist a U-witness Land a V-witness Mthat are not modular separable.
Proof. Equivalence of points 1 and 2 follows by the definition of expansion.
Point 4 implies 3, as a U-witness is necessarily a subset of the expansion U
by Corollary 24. Point 3 implies 2, since if two sets are separable, also subsets
thereof are separable (moreover, the separator remains the same). It remains to
show that 2 implies 4.
15
Let U, V Ndbe the expansions of two VAS sections U, V Nd, as above,
and assume that they are not modular separable. We construct two linear sets
L, M Ndconstituting a U-witness and a V-witness, respectively. By Propo-
sition 14, there exists an infinite sequence of pairs of reachable configurations
(u0, v0),(u1, v1),... U×Vs.t. unnvnfor all nN. By taking an ap-
propriate infinite subsequence we can ensure that even unn!vnfor all nN.
Let us fix for every nNruns ρnand σnsuch that un=target(ρn) and
vn=target(σn). Since Eis a wqo by Proposition 22, we can extract a mono-
tone non-decreasing subsequence, and thus we can ensure that even ρ0Eρ1E···
and σ0Eσ1E· · · . Here we use the fact that unn!vnin the original sequence,
and thus univnfor every i∈ {1,...,n}, consequently the new subsequence
still has unnvnfor all nN. For all nN, let δn:= unu0and γn:= vnv0,
and consider the set of corresponding differences Sinf := {δnγn|nN}. By
Lemma 25, there exists a finite subset thereof S:= {δi1γi1,...,δikγik}such
that Sinf Lin(S), and thus there exist two finite subsets P:= {δi1,...,δik}
and Q:= {γi1, . . . , γik}such that
Sinf Lin(PQ)Lin(P)Lin(Q)Lin0
n(P)Lin0
n(Q),(5)
where the last inclusion follows from Lemma 13. Let the two linear sets Land
Mbe defined as
L:= {u0}+Lin0(P),and
M:= {v0}+Lin0(Q).
By the construction, Lis a U-witness and MaV-witness. It thus only remains
to show that Land Mare not modular separable. For any n, by Eq. 5 we have
δnγnnδ
nγ
nfor some δ
nLin0(P) and γ
nLin0(Q). Consider now
the two new infinite sequences u
1, u
2,· · · Land v
1, v
2,· · · Mdefined, for
every n1, as u
n:= u0+δ
nand v
n:= v0+γ
n. Then,
u
nv
n= (u0+δ
n)(v0+γ
n)
= (u0v0) + (δ
nγ
n) (by def. of δ
n, γ
n)
n(u0v0) + (δnγn)
= (u0+δn)(v0+γn)
=unvnn0 (by def. of un, vn),
and thus u
nnv
n. This, thanks to the characterization of Proposition 14,
implies that Land Mare not modular separable.
Remark 28. Note that a modular nonseparability witness exists even in the case
when the two reachability sets U, V have nonempty intersection. In this case,
it is enough to consider two runs ρ0and σ0ending up in the same configura-
tion target(ρ0) = target(σ0), and considering the linear sets L:= M:=
{target(ρ0)}.
16
Using the characterization of Lemma 27, the negative semi-decision proce-
dure enumerates all pairs L, M , where Lis a U-witness and Mis a V-witness
and checks whether Land Mare modular separable, which is decidable due to
Lemma 15. Note that enumerating U-witnesses (and V-witnesses) amounts of
enumerating finite sets of runs {ρ, ρ1,...,ρk}satisfying (4).
Remark 29. It is also possible to design another negative semi-decision procedure
using Lemma 27. This one enumerates all linear sets Land M(not necessarily
only those in the special form of U- or V- witnesses) and checks whether they are
modular separable and included in Uand V, respectively. While this procedure
is conceptually simpler than the one we presented, we now need the two extra
inclusion checks LUand MV. Indeed, U- and V-witnesses were designed in
such a way that the two inclusions above hold by construction and do not have
to be checked. The problem whether a given linear set is included in a given
VAS reachability is decidable [14], however we chose to present the previous
semi-decision procedure in order to be self contained.
7 Unary separability of VAS sections
We now embark on the proof of Theorem 9. It goes along the lines of the proof of
Theorem 8, but with some details more complicated, thus we only concentrate
on explaining the necessary adjustments. As before, the positive semi-decision
procedure enumerates all nNand checks whether the
=n-closures of the two
reachability sets are disjoint, which is effective thanks to the following fact:
Lemma 30. For two VAS sections Uand Vand nN, it is decidable whether
there exist uUand vVsuch that u
=nv.
This can be proved in a way similar to Lemma 21, with the adjustment that we
allow on every coordinate a decrement by nonly if the value is above 2n.
The negative semi-decision procedure enumerates nonseparability witnesses,
along the same lines as in the case of modular separability. The following crucial
lemma is an exact copy of Lemma 27, except that “modular” is replaced by
“unary”:
Lemma 31. For two VAS sections U, V Nd, the following conditions are
equivalent:
1. U, V are not unary separable;
2. the expansions U, V of U, V are not unary separable;
3. there exist linear subsets LU,MVthat are not unary separable;
4. there exist a U-witness Land a V-witness Mthat are not unary separable.
Proof. We only concentrate on showing that 2 implies 4. Assume that the expan-
sions Uand Vare not unary separable, for two sections Uand Vrepresented
as (recall the simplifying assumptions about VAS sections from Section 6)
U=secI,0(RU)Ndand V=secI ,0(RV)Nd,
17
where RU, RVNdare the reachability sets of two VASes and I⊆ {1,...,d}
with |I|=dare projecting coordinates. Since Uand Vare not unary separable,
by Proposition 18, there exists an infinite sequence of pairs of reachable config-
urations (u0, v0),(u1, v1),... U×Vs.t. un
=nvnfor all nN. It means
that for every nNthere exist runs ρnand σnin the two VASes ending up in
reachable configurations un:= target(ρn)RUand vn:= target(σn)RV.
Define δn:= unu0and γn:= vnv0for all nN. Since Eis a wqo, by
reasoning as in the proof of Lemma 27, we can assume w.l.o.g. that ρ0Eρ1E···,
and similarly for the σi’s.
Since un
=nvn, the two sequences u0u1 · · · and v0v1 · · · are
unbounded on the same set of coordinates. Let F⊆ {1,...,d}be this set; note
that FI. By eliminating a sufficiently long prefix of these two sequences,
we can further assume that bounded coordinates are in fact constant, and again
from un
=nvnit follows that this constant is the same vector for both sequences.
Consequently,
π{1,...,d}\F(u0) = π{1,...,d}\F(v0),and (6)
nNπ{1,...,d}\F(δn) = π{1,...,d}\F(γn) = 0.(7)
By proceding as in the proof of Lemma 27, there exist two finite sets P:=
{δi1,...,δik}and Q:= {γi1,...,δik}such that the linear sets L:= {u0}+
Lin0(P)Uis a U-witness, the linear set M:= {v0}+Lin0(Q)Vis a
V-witness, and L, M are not modular separable. It remains to show that Land
Mare not unary separable either. While unary nonseparability is a stronger
property than modular nonseparability in general, by Lemma 19 the two condi-
tions are in fact equivalent when the two sets are linked. We make use of the set
Fas chosen before, and we show that Land Mare F-linked. Indeed, if jF
then w.l.o.g. we may assume that the two sequences πj(u0)< πj(u1)< . . .
and πj(v0)< πj(v1)< . . . are strictly increasing. Thus, πj(δn), πj(γn)> n
for every nN, which implies that πF(L) and πF(M) are diagonal. On the
other hand, if j∈ {1,...,d} \ F, from properties (6) and (7) above, we have
π{1,...,d}\F(L) = π{1,...,d}\F(M) = {π{1,...,d}\F(u0)}. Thus Land Mare indeed
F-linked.
8 Final remarks
We have shown decidability of modular and unary separability for sections of
VAS reachability sets, which include (sections of) reachability sets of VASes with
states and Petri nets. As a corollary, we have derived decidability of regular
separability of commutative closures of VAS languages, and of commutative
regular separability of VAS languages. The decidability status of the regular
separability problem for VAS languages remains an intriguing open problem.
Complexity. Most of the problems shown decidable in this paper are easily shown
to be at least as hard as the VAS reachability problem. In particular, this applies
18
to unary separability of VAS reachability sets, and to regular separability of
commutative closures of VAS languages. Indeed, for unary separability, it suffices
to notice that a configuration ucannot reach a configuration vif, and only if,
the set reachable from ucan be unary separated from the singleton set {v}, also
a VAS reachability set. When the separator exists, it can be taken to be the
complement of {v}itself, which is unary.
While the problem of modular separability is ExpSpace-hard, we do not
know whether it is as hard as the VAS reachability problem. The hardness can be
shown by reduction from the control state reachability problem in VASSes, which
is ExpSpace-hard [19]. For a VASS Vand a target control state qthereof, we
construct two new VASSes V0and V1, which are copies of Vwith one additional
coordinate, which at the beginning is zero for V0and one for V1. We also add one
new transition from control state q, which allows V1to decrease the additional
coordinate by one. One can easily verify that the two VASS reachability sets
definable by V0and V1are modular separable if, and only if, the control state q
is not reachable in V, which finishes the proof of ExpSpace-hardness.
The unarity and modularity characterization problems. Closely related problems
to separability are the modularity and unarity characterization problems: is a
given section of a VAS reachability set modular, resp., unary? We focus here
on the unarity problem, but the other one can be dealt in the same way. De-
cidability of the unarity problem would follow immediately from Theorem 9,
if sections of VAS reachability sets were (effectively) closed under complement.
This is however not the case. Indeed, if the complement of a VAS reachability
set is a section of another VAS reachability set, then both sets are necessarily a
section of a Presburger invariant [15], hence semilinear. But we know that VAS
reachability sets can be non-semilinear, and thus they are not closed under com-
plement. However, the unarity problem can be shown to be decidable directly,
at least for VAS reachability sets, by using the following two facts: first, it is
decidable if a given VAS reachability set Uis semilinear (see the unpublished
works [6,13]); second, when a VAS reachability set is semilinar, a concrete rep-
resentation thereof as a semilinear set is effectively computable [16]. Indeed, if a
given Uis not semilinear, it is not unary either; otherwise, compute a semilinear
representation, and check if it is unary. The latter can be checked directly, or
can be reduced to unary separability of semilinear sets (since semilinear sets are
closed under complement, as discussed above).
Acknowledgements We thank Maria Donten-Bury for providing us elegant proofs
of Lemmas 13 and 25.
References
1. Christian Choffrut and Serge Grigorieff. Separability of rational relations in A×
Nmby recognizable relations is decidable. Inf. Process. Lett., 99(1):27–32, 2006.
19
2. Wojciech Czerwi´nski, Wim Martens, and Tom´as Masopust. Efficient separability
of regular languages by subsequences and suffixes. In ICALP’13, pages 150–161,
2013.
3. Wojciech Czerwi´nski, Wim Martens, Lorijn van Rooijen, and Marc Zeitoun. A
note on decidable separability by piecewise testable languages. In FCT’15, pages
173–185, 2015.
4. L.E. Dickson. Finiteness of the odd perfect and primitive abundant numbers with
n distinct prime factors. American Journal of Mathematics, 35((4)):413422, 1913.
5. Jean Goubault-Larrecq and Sylvain Schmitz. Deciding piecewise testable separa-
bility for regular tree languages. To appear in Proc. of ICALP’16, 2016.
6. D. Hauschildt. Semilinearity of the reachability set is decidable for Petri nets. PhD
thesis, University of Hamburg, 1990.
7. G. Higman. Ordering by divisibility in abstract algebras. Proc. London Mathe-
matical Society, 3((2)):326–336, 1952.
8. John E. Hopcroft and Jean-Jacques Pansiot. On the reachability problem for 5-
dimensional vector addition systems. Theor. Comput. Sci., 8:135–159, 1979.
9. Thomas W. Hungerford. Algebra, volume 73 of Graduate Texts in Mathematics.
Springer, 1974.
10. Harry B. Hunt III. On the decidability of grammar problems. Journal of the ACM,
29(2):429–447, 1982.
11. Petr Janˇcar. Decidability of a temporal logic problem for Petri nets. Theor.
Comput. Sci., 74(1):71–93, 1990.
12. Eryk Kopczy´nski. Invisible pushdown languages. CoRR, abs/1511.00289, 2015.
13. J.L. Lambert. Vector addition systems and semi-linearity. SIAM J. Comp., 1994.
Accepted for publication.
14. J. Leroux. Presburger vector addition systems. In In Proc. of LICS’13, pages
23–32, June 2013.
15. erˆome Leroux. The general vector addition system reachability problem by Pres-
burger inductive invariants. In LICS’09, pages 4–13, 2009.
16. erˆome Leroux. Presburger vector addition systems. In Proc. LICS’13, pages
23–32, 2013.
17. erˆome Leroux and Sylvain Schmitz. Demystifying reachability in vector addition
systems. In LICS’15, pages 56–67, 2015.
18. erˆome Leroux and Sylvain Schmitz. Reachability in vector addition systems de-
mystified. Technical report, 2015.
19. Richard J. Lipton. The reachability problem requires exponential space. Technical
report, Yale University, 1976.
20. Ernst W. Mayr. An algorithm for the general Petri net reachability problem. In
STOC’81, pages 238–246, 1981.
21. Thomas Place, Lorijn van Rooijen, and Marc Zeitoun. Separating regular languages
by locally testable and locally threshold testable languages. In FSTTCS’13, pages
363–375, 2013.
22. Thomas Place, Lorijn van Rooijen, and Marc Zeitoun. Separating regular languages
by piecewise testable and unambiguous languages. In MFCS’13, pages 729–740,
2013.
23. Thomas Place and Marc Zeitoun. Going higher in the first-order quantifier alter-
nation hierarchy on words. In ICALP’14, pages 342–353, 2014.
24. Thomas Place and Marc Zeitoun. Separating regular languages with first-order
logic. Logical Methods in Computer Science, 12(1), 2016.
25. Thomas G. Szymanski and John H. Williams. Noncanonical extensions of bottom-
up parsing techniques. SIAM Journal on Computing, 5(2):231–250, 1976.
20
... In this section, we prove our first main result, Theorem 3.1. The existing algorithms [13,15] for recognizable separability of linear sets L 1 , L 2 ⊆ N k rely on a procedure that successively eliminates "bounded components": If, say, L 1 is bounded in component j by some B ∈ N, then one can observe that ...
... Therefore, the algorithms of [13,15] recursively checks separability of ...
... Separating by modular constraints As observed in [13,15], if all coordinates of two linear sets L 1 , L 2 are unbounded, then separability holds if and only if the two sets can be separated by modulo constraints. This relies on the well-known fact that finitely generated abelian groups are subgroup separable, i.e. that for every element u ∈ Z m that does not belong to a subgroup A ⊆ Z m , there exists a homomorphism φ : Z m → F into a finite group F such that (i) A is included in the kernel of φ and (ii) φ(u) ̸ = 0. We include a short proof of this. ...
Preprint
Full-text available
In a separability problem, we are given two sets K and L from a class C\mathcal{C}, and we want to decide whether there exists a set S from a class S\mathcal{S} such that KSK\subseteq S and SL=S\cap L=\emptyset. In this case, we speak of separability of sets in C\mathcal{C} by sets in S\mathcal{S}. We study two types of separability problems. First, we consider separability of semilinear sets by sets definable by quantifier-free monadic Presburger formulas (or equivalently, the recognizable subsets of Nd\mathbb{N}^d). Here, a formula is monadic if each atom uses at most one variable. Second, we consider separability of languages of Parikh automata by regular languages. A Parikh automaton is a machine with access to counters that can only be incremented, and have to meet a semilinear constraint at the end of the run. Both of these separability problems are known to be decidable with elementary complexity. Our main results are that both problems are coNP-complete. In the case of semilinear sets, coNP-completeness holds regardless of whether the input sets are specified by existential Presburger formulas, quantifier-free formulas, or semilinear representations. Our results imply that recognizable separability of rational subsets of Σ×Nd\Sigma^*\times\mathbb{N}^d (shown decidable by Choffrut and Grigorieff) is coNP-complete as well. Another application is that regularity of deterministic Parikh automata (where the target set is specified using a quantifier-free Presburger formula) is coNP-complete as well.
... With the recent contribution by Keskin and Meyer [17] (together with earlier decidability results for subclasses and variants [2,5,6,[8][9][10][11]), proving regular separability decidable for (finite-word) VASS, the decidability status of regular separability has largely been settled. However, concerning complexity, regular separability is far from understood, with few results: So far, the only exact complexity results are PSPACE-completeness for (succintly represented) one-dimensional VASS [9], EXPSPACE-completeness for VASS coverability languages [10], and Ackermann-completeness for VASS reachability languages [17]. ...
... If -is r(i)-bounded, then Lemma 6.2 provides another (i + 1)-inseparability flower (cf .σ ′ , ′ ) with |σ ′ | + | ′ | ≤ (2 |V| · |Q| · r(i)) O((d+n) 6 ) = (2 |V| · f (i)) O((d+n) 6 ) . This satisfies the bound stated in the lemma. ...
... It remains to solve the recurrence. Let a = 2 |V| and b = O((d + n) 6 ). We have ...
Preprint
Full-text available
The omega-regular separability problem for B\"uchi VASS coverability languages has recently been shown to be decidable, but with an EXPSPACE lower and a non-primitive recursive upper bound -- the exact complexity remained open. We close this gap and show that the problem is EXPSPACE-complete. A careful analysis of our complexity bounds additionally yields a PSPACE procedure in the case of fixed dimension >= 1, which matches a pre-established lower bound of PSPACE for one dimensional B\"uchi VASS. Our algorithm is a non-deterministic search for a witness whose size, as we show, can be suitably bounded. Part of the procedure is to decide the existence of runs in VASS that satisfy certain non-linear properties. Therefore, a key technical ingredient is to analyze a class of systems of inequalities where one variable may occur in non-linear (polynomial) expressions. These so-called singly non-linear systems (SNLS) take the form A(x).y >= b(x), where A(x) and b(x) are a matrix resp. a vector whose entries are polynomials in x, and y ranges over vectors in the rationals. Our main contribution on SNLS is an exponential upper bound on the size of rational solutions to singly non-linear systems. The proof consists of three steps. First, we give a tailor-made quantifier elimination to characterize all real solutions to x. Second, using the root separation theorem about the distance of real roots of polynomials, we show that if a rational solution exists, then there is one with at most polynomially many bits. Third, we insert the solution for x into the SNLS, making it linear and allowing us to invoke standard solution bounds from convex geometry. Finally, we combine the results about SNLS with several techniques from the area of VASS to devise an EXPSPACE decision procedure for omega-regular separability of B\"uchi VASS.
... Currently the smallest dimension d for which an ExpSpace-hardness was published for d-VASSes is d = 14 [4]. Therefore for any d ∈ [3,13] the problem can be in PSpace and is not known to be elementary. For some of those dimensions one can expect to get ExpSpace-hardness, but we conjecture that for 3-VASSes and 4-VASSes the reachability problem actually is elementary and the challenge is to find this algorithm. ...
... All the subsequent considerations can be analogously applied in the case when i 1 = 1, but i k does not necessarily equal k, which enforces that src(ρ) ⪯ src(ρ ′ ). The following claim is a folklore, for a proof see Proposition 19 in [3]. ...
... The order ⊴ has a nice property that runs bigger than a fixed one are additive in a certain sense. The following claim is also a folklore, for a proof see Lemma 23 in [2] (arXiv version of [3]). ...
Preprint
Full-text available
Despite a very recent progress which settled the complexity of the reachability problem for Vector Addition Systems with States (VASSes) to be Ackermann-complete we still lack of lot of understanding for that problem. A striking example is the reachability problem for three-dimensional VASSes (3-VASSes): it is only known to be PSpace-hard and not known to be elementary. One possible approach which turned out to be successful for many VASS subclasses is to prove that to check reachability it suffices to inspect only runs of some bounded length. This approach however has its limitations, it is usually hard to design an algorithm substantially faster than the possible size of finite reachability sets in that VASS subclass. In 2010 Leroux has proven that non-reachability between two configurations implies separability of the source from target by some semilinear set, which is an inductive invariant. There can be a reasonable hope that it suffices to look for separators of bounded size, which would deliver an efficient algorithm for VASS reachability. In the paper we show that in VASSes fulfilling certain conditions existence of only long runs between some configurations implies existence of only big separators between some other configurations (and in a slightly modified VASS). Additionally we prove that a few known examples of hard VASSes fulfil the mentioned conditions. Therefore improving the complexity of the reachability problem (for any subclass) using the separators approach can meet serious obstacles.
... Such problems are important for two reasons. The first concerns separability problems, which have attracted attention in recent years [5,10, 25, 43, 44]. Here, instead of deciding whether two languages are disjoint, we are looking for a (typically finite-state) certificate for disjointness, namely a set that includes one language and is disjoint from the other. ...
... In [14] it is shown that separability of VAS languages by piecewise testable languages (a subclass of regular languages) is decidable. Decidability of separability of VAS languages by regular languages is still open, but it is known for several subclasses of VAS languages [9,10,12]. In [13] it is shown that any two disjoint VAS coverability languages are separable by a regular language. ...
... Then, every set of the form π [1,n]\I (S ∩ π −1 I (x)) for some I ⊆ [1, n] and x ∈ N |I| is called a section of S ⊆ N n . Thus, the following result by Clemente et al. [10] allows us to decide separability by BRL. Theorem 4.6 ([10]). ...
Article
Full-text available
A vector addition system (VAS) with an initial and a final marking and transition labels induces a language. In part because the reachability problem in VAS remains far from being well-understood, it is difficult to devise decision procedures for such languages. This is especially true for checking properties that state the existence of infinitely many words of a particular shape. Informally, we call these \emph{unboundedness properties}. We present a simple set of axioms for predicates that can express unboundedness properties. Our main result is that such a predicate is decidable for VAS languages as soon as it is decidable for regular languages. Among other results, this allows us to show decidability of (i)~separability by bounded regular languages, (ii)~unboundedness of occurring factors from a language K with mild conditions on K, and (iii)~universality of the set of factors.
... We show that our notion of amalgamation systems both (i) permits extremely simple decidability arguments for the unboundedness problems mentioned above, but also (ii) applies to a wide variety of infinite-state systems. In particular, while run amalgamation has been used for concrete types of systems to prove structural properties [24,48] or in specialised subroutines of complex procedures [13,18], we identify amalgamation as a powerful algorithmic tool that is often sufficient on its own for solving prominent problems. Let us elaborate on (i) and (ii). ...
Preprint
Full-text available
Well-structured transition systems (WSTS) are an abstract family of systems that encompasses a vast landscape of infinite-state systems. By requiring a well-quasi-ordering (wqo) on the set of states, a WSTS enables generic algorithms for classic verification tasks such as coverability and termination. However, even for systems that are WSTS like vector addition systems (VAS), the framework is notoriously ill-equipped to analyse reachability (as opposed to coverability). Moreover, some important types of infinite-state systems fall out of WSTS' scope entirely, such as pushdown systems (PDS). Inspired by recent algorithmic techniques on VAS, we propose an abstract notion of systems where the set of runs is equipped with a wqo and supports amalgamation of runs. We show that it subsumes a large class of infinite-state systems, including (reachability languages of) VAS and PDS, and even all systems from the abstract framework of valence systems, except for those already known to be Turing-complete. Moreover, this abstract setting enables simple and general algorithmic solutions to unboundedness problems, which have received much attention in recent years. We present algorithms for the (i) simultaneous unboundedness problem (which implies computability of downward closures and decidability of separability by piecewise testable languages), (ii) computing priority downward closures, (iii) deciding whether a language is bounded, meaning included in w1wkw_1^*\cdots w_k^* for some words w1,,wkw_1,\ldots,w_k, and (iv)~effective regularity of unary languages. This leads to either drastically simpler proofs or new decidability results for a rich variety of systems.
... One reason is that standard algorithms rarely apply to separability problems, but these problems tend to call for new approaches. With the basic separator technique [18], Czerwinski and Zetzsche have shown that there is hope for general methods that apply to a range of separability problems [10,11,15]. With the closure of inductive invariants under converging sequences, we hope to also have contributed a versatile tool. ...
Preprint
Full-text available
There is a recent structural result for the languages of well-structured transition systems (WSTS) that is of surprising generality: disjoint WSTS languages are always separated by a regular language. The result assumes that one of the languages is accepted by a deterministic WSTS, and it is not known whether this assumption is needed. There are two ways to get rid of the assumption, none of which has led to conclusions so far: (i) show that WSTS can be determinized or (ii) generalize the separability result to non-deterministic WSTS languages. Our contribution is to show that (i) does not work but (ii) does. As for (i), we give a non-deterministic WSTS language that we prove cannot be accepted by a deterministic WSTS. As for(ii), we show how to find finitely represented inductive invariants without having the tool of ideal decompositions at hand. Our results hold for upward and downward compatible WSTS.
... Assume π is an M -conform play as in (12). If it is not strictly monotonic, then π ∈ W and we are done. ...
Preprint
Full-text available
We study a generalisation of B\"uchi-Landweber games to the timed setting. The winning condition is specified by a non-deterministic timed automaton with epsilon transitions and only Player I can elapse time. We show that for fixed number of clocks and maximal numerical constant available to Player II, it is decidable whether she has a winning timed controller using these resources. More interestingly, we also show that the problem remains decidable even when the maximal numerical constant is not specified in advance, which is an important technical novelty not present in previous literature on timed games. We complement these two decidability result by showing undecidability when the number of clocks available to Player II is not fixed. As an application of timed games, and our main motivation to study them, we show that they can be used to solve the deterministic separability problem for nondeterministic timed automata with epsilon transitions. This is a novel decision problem about timed automata which has not been studied before. We show that separability is decidable when the number of clocks of the separating automaton is fixed and the maximal constant is not. The problem whether separability is decidable without bounding the number of clocks of the separator remains an interesting open problem.
Conference Paper
Full-text available
We study regular separators of vector addition systems (VASS, for short) with coverability semantics. A regular language R is a regular separator of languages K and L if K ⊆ R and L ∩ R = ∅. It was shown by Czerwiński, Lasota, Meyer, Muskalla, Kumar, and Saivasan (CONCUR 2018) that it is decidable whether, for two given VASS, there exists a regular separator. In fact, they show that a regular separator exists if and only if the two VASS languages are disjoint. However, they provide a triply exponential upper bound and a doubly exponential lower bound for the size of such separators and leave open which bound is tight. We show that if two VASS have disjoint languages, then there exists a regular separator with at most doubly exponential size. Moreover, we provide tight size bounds for separators in the case of fixed dimensions and unary/binary encodings of updates and NFA/DFA separators. In particular, we settle the aforementioned question. The key ingredient in the upper bound is a structural analysis of separating automata based on the concept of basic separators, which was recently introduced by Czerwiński and the second author. This allows us to determinize (and thus complement) without the powerset construction and avoid one exponential blowup.
Article
The separability problem for word languages of a class C\mathcal{C} by languages of a class S\mathcal{S} asks, for two given languages I and E from C\mathcal{C}, whether there exists a language S from S\mathcal{S} that includes I and excludes E, that is, ISI \subseteq S and SE=S\cap E = \emptyset. In this work, we assume some mild closure properties for C\mathcal{C} and study for which such classes separability by a piecewise testable language (PTL) is decidable. We characterize these classes in terms of decidability of (two variants of) an unboundedness problem. From this, we deduce that separability by PTL is decidable for a number of language classes, such as the context-free languages and languages of labeled vector addition systems. Furthermore, it follows that separability by PTL is decidable if and only if one can compute for any language of the class its downward closure wrt. the scattered substring ordering (i.e., if the set of scattered substrings of any language of the class is effectively regular). The obtained decidability results contrast some undecidability results. In fact, for all (non-regular) language classes that we present as examples with decidable separability, it is undecidable whether a given language is a PTL itself. Our characterization involves a result of independent interest, which states that for any kind of languages I and E, non-separability by PTL is equivalent to the existence of common patterns in I and E.
Conference Paper
Context-free languages allow one to express data with hierarchical structure, at the cost of losing some of the useful properties of languages recognized by finite automata on words. However, it is possible to restore some of these properties by making the structure of the tree visible, such as is done by visibly pushdown languages, or finite automata on trees. In this paper, we show that the structure given by such approaches remains invisible when it is read by a finite automaton (on word). In particular, we show that separability with a regular language is undecidable for visibly pushdown languages, just as it is undecidable for general context-free languages.
Article
A separator for two languages is a third language containing the first one and disjoint from the second one. We investigate the following decision problem: given two regular input languages, decide whether there exists a locally testable (resp. a locally threshold testable) separator. In both cases, we design a decision procedure based on the occurrence of special patterns in automata accepting the input languages. We prove that the problem is computationally harder than deciding membership. The correctness proof of the algorithm yields a stronger result, namely a description of a possible separator. Finally, we discuss the same problem for context-free input languages.
Article
More than 30 years after their inception, the decidability proofs for reachability in vector addition systems (VAS) still retain much of their mystery. These proofs rely crucially on a decomposition of runs successively refined by Mayr, Kosaraju, and Lambert, which appears rather magical, and for which no complexity upper bound is known. We first offer a justification for this decomposition technique, by showing that it emerges naturally in the study of the ideals of a well quasi ordering of VAS runs. In a second part, we apply recent results on the complexity of termination thanks to well quasi orders and well orders to obtain fast-growing complexity upper bounds for the decomposition algorithms, thus providing the first known upper bounds for general VAS reachability.
Conference Paper
The reach ability problem for Vector Addition Systems (VAS) is a central problem of net theory. The problem is known to be decidable by inductive invariants definable in the Presburger arithmetic. When the reach ability set is definable in the Presburger arithmetic, the existence of such an inductive invariant is immediate. However, in this case, the computation of a Presburger formula denoting the reach ability set is an open problem. In this paper we close this problem by proving that if the reach ability set of a VAS is definable in the Presburger arithmetic, then the VAS is flatable, i.e. its reach ability set can be obtained by runs labeled by words in a bounded language. As a direct consequence, classical algorithms based on acceleration techniques effectively compute a formula in the Presburger arithmetic denoting the reach ability set.
Conference Paper
We investigate the quantifier alternation hierarchy in first-order logic on finite words. Levels in this hierarchy are defined by counting the number of quantifier alternations in formulas. We prove that one can decide membership of a regular language to the levels BΣ2\mathcal{B}\Sigma_2 (boolean combination of formulas having only 1 alternation) and Σ3\Sigma_3 (formulas having only 2 alternations beginning with an existential block). Our proof works by considering a deeper problem, called separation, which, once solved for lower levels, allows us to solve membership for higher levels.
Article
Given two languages, a separator is a third language that contains the first one and is disjoint from the second one. We investigate the following decision problem: given two regular input languages of finite words, decide whether there exists a first-order definable separator. We prove that in order to answer this question, sufficient information can be extracted from semigroups recognizing the input languages, using a fixpoint computation. This yields an EXPTIME algorithm for checking first-order separability. Moreover, the correctness proof of this algorithm yields a stronger result, namely a description of a possible separator. Finally, we generalize this technique to answer the same question for regular languages of infinite words.