<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>On Binary Words Being Petri Net Solvable</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Kamila Barylska</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Eike Best</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Evgeny Erofeev</string-name>
          <email>evgeny.erofeevg@informatik.uni-oldenburg.de</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lukasz Mikulski</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marcin Pia</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>tkowski</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Comp. Sci.</institution>
          ,
          <addr-line>Carl von Ossietzky Univ. Oldenburg</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Faculty of Math. and Comp. Sci., Nicolaus Copernicus University Torun</institution>
          ,
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>A nite word is called Petri net solvable if it is isomorphic to the reachability graph of some unlabelled Petri net. In this paper, the class of two-letter Petri net solvable words is studied.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>Region theory [1] provides a polynomial algorithm, based on solving linear
inequations, that checks whether a given nite labelled transition system is the
reachability graph of some place/transition Petri net [5], and if it is, synthesises
one of them. Due to the size of a transition system, this algorithm may be very
time-consuming. Moreover, it may produce one out of a class of di erent nets, and
there may not be a unique simplest one. For some applications, only certain types
of labelled transition systems are relevant. This leads to the idea of investigating
properties of labelled transition systems before synthesising them, in the hope of
obtaining more e cient and possibly also more deterministic synthesis algorithms.
It may even be possible to nd exact structural characterisations, based solely
on graph-theoretical properties, such as for the class of nite labelled transition
systems which correspond to T-systems [2].</p>
      <p>This paper reports progress on a similar e ort about characterising the set of
nite words over an alphabet fa; bg which are Petri net solvable, i.e., for which
a place/transition net with an isomorphic reachability graph exists. We shall put
forward two conjectures, and describe some progress in analysing them. This
work could well be of interest in a wider context, as it might entail a nontrivial
necessary condition for the solvability of an arbitrary labelled transition system.
If the latter is solvable, then nding a PN-unsolvable word as a path in it may
have a strong impact on its structure / shape.
2</p>
      <p>Basic notations and conventions used in this paper
A nite labelled transition system with initial state is a tuple T S = (S; !; T; s0)
with nodes S (a nite set of states), edge labels T , edges ! (S T S), and
an initial state s0 2 S. A label t is enabled at s 2 S, written formally as s[ti, if
9s0 2 S : (s; t; s0) 2!. A state s0 is reachable from s through the execution of
2 T , denoted by s[ is0, if there is a directed path from s to s0 whose edges
are labelled consecutively by . The set of states reachable from s is denoted
by [si. A ( ring) sequence 2 T is allowed from a state s, denoted by s[ i,
if there is some state s0 such that s[ is0. Two lts T S1 = (S1; !1; T; s01) and
T S2 = (S2; !2; T; s02) are isomorphic if there is a bijection : S1 ! S2 with
(s01) = s02 and (s; t; s0) 2!1 , ( (s); t; (s0)) 2!2, for all s; s0 2 S1.
A word over T is a sequence w 2 T , and it is binary if jT j = 2. A word
t1t2 : : : tn of length n 2 N uniquely corresponds to a nite transition system
(f0; : : : ; ng; f(i 1; ti; i) j 0 &lt; i n ^ ti 2 T g; T; 0).</p>
      <p>An initially marked Petri net is denoted as N = (P; T; F; M0) where P is a nite
set of places, T is a nite set of transitions, F is the ow function F : ((P T ) [
(T P )) ! N specifying the arc weights, and M0 is the initial marking (where
a marking is a mapping M : P ! N, indicating the number of tokens in each
place). A side-place is a place p with p \ p 6= ;, where p = ft 2 T j F (p; t)&gt;0g
and p = ft 2 T j F (t; p)&gt;0g. N is pure or side-place free if it has no
sideplaces. A transition t 2 T is enabled at a marking M , denoted by M [ti, if
8p 2 P : M (p) F (p; t). The ring of t leads from M to M 0, denoted by M [tiM 0,
if M [ti and M 0(p) = M (p) F (p; t) + F (t; p). This can be extended, as usual, to
M [ iM 0 for sequences 2 T , and [M i denotes the set of markings reachable
from M . The reachability graph RG(N ) of a bounded (such that the number of
tokens in each place does not exceed a certain nite number) Petri net N is the
labelled transition system with the set of vertices [M0i, initial state M0, label
set T , and set of edges f(M; t; M 0) j M; M 0 2 [M0i ^ M [tiM 0g. If an lts T S is
isomorphic to the reachability graph of a Petri net N , we say that N solves T S.
3</p>
      <p>Separation problems, and an example
In region theory, a labelled transition system (S; !; T; s0) is assumed to be given
as an input. In order to synthesise (if possible) a Petri net with isomorphic
reachability graph, T is used as the set of transitions, and for the places, 12 (jSj (jSj 1))
state separation problems and up to jSj jT j event/state separation problems have
to be solved. A state separation problem consists of a set of states fs; s0g with
s 6= s0, and for each such set, one needs a place that distinguishes them. Such
problems are always solvable for words; for instance, we might introduce a
counting place which simply has j tokens in state j. An event/state separation problem
consists of a pair (s; t) 2 S T with :(s[ti). For every such problem, we need a
place p such that M (p) &lt; F (p; t) for the marking M corresponding to state s,
where F refers to the arcs of the hoped-for net.</p>
      <p>T S1</p>
      <p>w = aab
0 a 1 a 2 b
3</p>
      <p>N1
q
a
p
2</p>
      <p>b</p>
      <p>For example, in gure 1, the labelled transition systems T S1 and T S2 correspond
to the words aab and abbaa, respectively. The former is PN-solvable, since the
reachability graph of N1 is isomorphic to T S1. T S2 contains an unsolvable
event/state separation problem. The state s = 2 just between the two b's satis es
:(s[ai). We need a place q whose number of tokens in (the marking corresponding
to) state 2 is less than needed for transition a to be enabled. Such a place q has
the general form shown on the right-hand side of gure 2. It is useful to speak
of the e ect E( ) of a sequence 2 T on place q. For the letter a, the e ect is
de ned as E(a) = (a+ a ), and this can be generalised easily. Thus, for instance,
the e ect E(abbaa) is E(abbaa) = 3 (a+ a ) + 2 (b+ b ). If q prevents a at
state 2 in abbaa, then it must satisfy the following inequalities, amongst others:
a m, since a is enabled initially; a m + E(abba), since state 4 enables a;
and m + E(ab) &lt; a , or equivalently, 0 m E(ab) + a 1, expressing the
fact that q solves the event/state separation problem :(2[ai). Later, we show
that this set of inequalities cannot be solved in the natural numbers.
In a word of length n, the equation system for a single event/state separation
problem comprises n + 1 inequations. In binary words, we have n + 2 such
problems, one for every state 0; : : : ; n 1 and two for the last state. Thus, a
word w of length n is PN-solvable if and only if all those n + 2 systems, each
having n + 1 inequalities and ve unknowns a ; a+; b ; b+; m, are solvable in N.
The question dealt with in this paper is whether the set of binary words that are
PN-(un)solvable can be characterised equivalently, in a more structural way. We
shall assume, from now on, that T = fa; bg.</p>
      <p>Minimal unsolvable binary words, and some conjectures
Let a word w0 2 T be called a subword (or factor) of w 2 T if 9(u1; u2 2 T ) :
w = u1w0u2, and let #t(w) denote the number of times the letter t occurs in w.
Observe that if w is PN-solvable then all its subwords are, too. To see this, let
the Petri net solving w be executed up to the state before w0, take this as the
new initial marking, and add a pre-place with #a(w0) tokens to a and a pre-place
with #b(w0) tokens to b. Thus, if a subword of w is unsolvable, then w is. For this
reason, the notion of a minimal unsolvable word is well-de ned (namely, as an
unsolvable word all of whose subwords are solvable). A complete list of minimal
unsolvable words up to length 110 can be found in [6]. As a consequence of the
next proposition, any minimal unsolvable word either starts and ends with a or
starts and ends with b.</p>
      <sec id="sec-1-1">
        <title>Proposition 1. Solvability of aw and wb implies solvability of awb</title>
        <p>If both aw and wb are solvable, then awb is also solvable.</p>
        <p>Proof: Assume that aw and wb are PN-solvable words over fa; bg. If w = bk (for
k 2 N) then awb = abk+1 is obviuosly solvable, hence we assume that b contains
at least one a. Let N1 = (P1; fa; bg; F1; M01) and N2 = (P2; fa; bg; F2; M02) be
Petri nets such that N1 solves aw and N2 solves wb. We can assume that N1
and N2 are disjoint, except for their transitions a and b. Forming the union of
N1 and N2 gives a net which is synchronised at a and b, and which allows all
(and only) sequences allowed by both N1 and N2. We modify N1 and N2 before
forming their union, as follows:
(i) Modify N1 by adding, to each place p in b \ P1, another F1(p; b) tokens.</p>
        <p>This allows an additional b.
(ii) Modify N2 by adding, to each place q in a \ P2, another F2(q; a) tokens.</p>
        <p>This allows an additional a. Further, for each place p in a \ P2 \ b, add the
quantity F2(a; p) both to F2(p; b) and to F2(b; p). The new arc weights lead
to the same e ect of b on p, but prevent premature occurrences of b which
could have been allowed by adding the tokens in front of b in step (i).
De ne N as the union of the two nets thus modi ed, and see gure 3 for an
example. (The added tokens are drawn as hollow circles.) In general, N solves
awb in the following way: The initial a is allowed in N1 by de nition and in N2
by the additional tokens. The subsequent w is allowed in both nets, and hence in
their synchronisation. The nal b is allowed in N2 by de nition and in N1 by the
additional tokens. No premature b is allowed by the arc weight increase, and no
nal additional a is allowed because N1 does not allow it. 1
&gt;From the list [6], it can be observed that all minimal unsolvable words starting
and ending with a are of the following general form:
s0 [ (ab ) b i s [ (ba )+ i r [ a i
where</p>
        <sec id="sec-1-1-1">
          <title>2 T and s0, s, r are states (1)</title>
          <p>
            with a not being separated at s. For example, abbaa satis es (
            <xref ref-type="bibr" rid="ref1">1</xref>
            ) with = ", the
star being repeated zero times, and the plus + being repeated just once. Indeed,
it is easy to prove that such words are generally PN-unsolvable:
          </p>
        </sec>
      </sec>
      <sec id="sec-1-2">
        <title>Proposition 2. Sufficient condition for the unsolvability of a word</title>
        <p>
          If a word over fa; bg has a subword of the form (
          <xref ref-type="bibr" rid="ref1">1</xref>
          ), then it is not PN-solvable.
Proof: For a word w of the form (
          <xref ref-type="bibr" rid="ref1">1</xref>
          ), we prove that w cannot be solved (implying
the proposition in the context of the considerations above). Because ba occurs
at least once after state s, b is enabled at s, and a is not enabled at s. Suppose
that some place q as in gure 2 (r.h.s.) exists which separates a at s. Let E
be E(ab ), i.e., the e ect of ab on q, and let Eb = E(b). E(b) 1 because q
separates a at s but not at s + 1. For w, we derive the following inequalities:
(0) a
(s+1) a
        </p>
        <p>(r) a
(sep) 0
m
m + E + k Eb + Eb
m + E + k Eb + ` E
m E k Eb + a
for some xed k 0
for the same k and some xed ` &gt; 0
1 for the same k
(0) is true because at s0, a is enabled. (s+1) is true because a is enabled one
state after s. (r) is true because a is enabled at r; and ` &gt; 0 because of the +.
Finally, (sep) is true because q disables a at state s. Adding (s+1)+(sep) gives
1 Eb. Adding (0)+(sep) gives 1 E k Eb, and using also 1 Eb gives
1 E k Eb E. Adding (r)+(sep) gives 1 ` E, contradicting 1 E.
The system cannot be solved, and no place q separating a at s exists. 2</p>
      </sec>
      <sec id="sec-1-3">
        <title>Conjecture 1. A converse of proposition 2</title>
        <p>
          Suppose a word over fa; bg is non-PN-solvable and minimal with that property.
Then it is (modulo swapping a and b) of the form given in (
          <xref ref-type="bibr" rid="ref1">1</xref>
          ). Strengthened
conjecture: It is either of the form ab bj bkba bj a with j 0; k 1 or of the
|{z} |{z}
form ab (ba )`a with `
        </p>
        <p>1</p>
      </sec>
      <sec id="sec-1-4">
        <title>Proposition 3. Another sufficient condition for unsolvability</title>
        <p>Let w be of the form s0[ is[ ir[ai such that
starts with a and
starts with b.</p>
        <p>If
#a( ) #b( )</p>
        <p>#a( ) #b( )
then w is unsolvable.</p>
        <p>
          For instance, for w = abbaa,
= ab and
= ba, and (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) holds true.
        </p>
        <p>Conj. 1</p>
        <p>
          (
          <xref ref-type="bibr" rid="ref2">2</xref>
          )
Proof: If a place q separates a at s and has marking m at s0, then for E =
E( ) = #a( ) Ea + #b( ) Eb and E = E( ) = #a( ) Ea + #b( ) Eb we have:
        </p>
        <p>starts with a)</p>
        <sec id="sec-1-4-1">
          <title>1 (since :s[ai)</title>
          <p>
            Adding (0)+(sep) yields 1 E , hence (A): (#a( )Ea + #b( )Eb) 1, where
Ea and Eb denote the e ects of a and b on q, respectively. As before, Eb 1.
Adding (r)+(sep) yields 1 E , hence (B): (#a( )Ea + #b( )Eb) 1. Then,
#a( )
#a( )#a( )Ea + #a( )#b( )Eb (algebra, and by (A))
#a( )#a( )Ea + #a( )#b( )Eb (using (
            <xref ref-type="bibr" rid="ref2">2</xref>
            ) and Eb
1)
#a( )
(algebra, and by (B))
However,
tion since
#a( ) #a( ) implies #a( ) = #a( ) = 0, and this is a
contradiccontains at least one a. Thus, such a place q does not exist. 3
Words in which the letters a and b strictly alternate are easy to solve. Therefore,
it stands to reason to investigate cases in which a letter occurs twice in a row.
          </p>
        </sec>
      </sec>
      <sec id="sec-1-5">
        <title>Proposition 4. Solvable words starting with a can be prefixed by a</title>
        <p>If a word av is PN-solvable then aav is, too.</p>
        <p>Proof: Let N = (P; fa; bg; F; M0) be a net solving av. We shall construct a net
which solves aav. The idea is to obtain such a net by \un ring" a once from the
initial marking of N . Since this may lead to a non-semipositive marking which
we would like to avoid, we will rst normalise and modify the net N , obtaining
another solution N 0 of av, and then construct a solution N 00 for aav (cf. Fig. 4).
For normalisation, we assume that there are two places pb and qa; the rst prevents
b explicitly in the initial phase, and the second prevents a after the last occurrence
of a. They are de ned by M0(pb) = 1, F (a; pb) = 1, F (b; pb) = `+1 = F (pb; b),
where ` is the number of a before the rst b in av, and M0(qa) = k, F (qa; a) = 1,
where k is the number of a in av. (All other F values = 0.)
Let NUF (a) = fp 2 a j M0(p) &lt; F (a; p)g be the set of places which do not allow
the \un ring" of a at M0. Note that neither pb nor qa are in NUF (a). Note also
that for every p 2 NUF (a), F (p; a) M0(p) &lt; F (a; p) { the rst because a is
initially enabled, the second by p 2 NUF (a). That is, a has a positive e ect on p.
Without loss of generality, b has a negative e ect on p (otherwise, thanks to the
normalising place pb, p could be deleted without changing the behaviour of N ).
For every p 2 NUF (a) we add the quantity F (a; p) uniformly to M0(p), to F (p; b),
and to F (b; p), eventually obtaining N 0 = (P 0; fa; bg; F 0; M00 ), and we show that
N 0 also solves av. First, both M0[ai ^ :M0[bi and M00 [ai ^ :M00 [bi (the former
by de nition, the latter by construction). For an inductive proof, suppose that
M0[aiM1[ iM and M00 [aiM10 [ iM 0. We have M [bi i M 0[bi by construction. If
M [ai, then also M 0[ai, since M M 0. Next, suppose that :M [ai; then there is
some place q such that M (q) &lt; F (q; a). We show that, without loss of generality,
q 2= NUF (a), so that q also disables a at M 0 in N 0. If M disables the last a in av,
we can take q = qa 2= NUF (a). If M disables some a which is not the last one in
av, then q cannot be in NUF (a), since b acts negatively on such places.
Now, we construct a net N 00 = (P 0; fa; bg; F 0; M000) from N 0 by de ning M000(p) =
M00 (p) F 0(a; p) + F 0(p; a) for every place p. By construction, aav is a ring
sequence of N 00. Furthermore, M000 does not enable b because of pb. 4
p
2
2
b
N
p
2
2
2
b
N 0
a
qa
pb
p
2
b
2
2</p>
        <p>N 00
a</p>
        <p>a
qa
pb
qa</p>
        <p>pb
If a minimal non-PN-solvable word is of the form u = a a, then either
not contain the factor aa or does not contain the factor bb.
does
Proof: By contraposition. Assume that
Two cases are possible:
contains a factor aa and a factor bb.</p>
        <p>Case 1: There is a group of a's which goes after a group of b's. Let am and bn
be such groups, assume that am goes after bn and that there are no groups of a
or of b between them. Then u is of the following form
s0 [ : : : i q [ abn(ab)kam i r [ : : : i
s0 [ : : : i q [ (ab)bn 2(ba)k+1aam 2 i r [ : : : i
where n; m
2; k</p>
        <p>0. Recombine the letters in u to the following form:
Since u ends with a, (ab)bn 2(ba)k+1a is a proper subword of u. But it has the
form (abw)b (baw)+a, with w = ", which implies its unsolvability by proposition
2, contradicting the minimality of u.</p>
        <p>Case 2: All groups of a precede all groups of b. In this case u is of the form
aax0 bax1 : : : baxn by0 aby1 aby2 : : : abym a
where at least one of xi and one of yj is greater than 1. Consider ` = maxfi j
xi &gt; 1g. If ` = 0, we get a contradiction to proposition 4. Hence, ` &gt; 0. Let
t = minfj j yj &gt; 1g. Then u has the form
s0 [ a : : : i q [ bax` (ba)n `(ba)tbyt i r [ : : : a i
Recombine the letters in u to the form</p>
        <p>
          s0 [ a : : : i q [ (ba)ax` 2(ab)n `+t+1bbyt 2 i r [ : : : a i
Hence, u has a proper subword (ba)ax` 2(ab)n `+t+1b, which is of the form
(baw)a (abw)+b with w = ", implying its non-P N -solvability, due to proposition
2 with inverted a and b. This again contradicts the minimality of u. 5
For these reasons, we are particularly interested in words of the following form:
either abx1 a : : : abxn a or bx1 a : : : abxn
where xi
1 and n &gt; 1
(
          <xref ref-type="bibr" rid="ref3">3</xref>
          )
In the rst form, there are no factors aa. If factors bb are excluded and the word
starts and ends with an a, then we get words that are of the second form, except
for swapping a and b. This swapping is useful in order to understand how words
of the two forms are interrelated.
        </p>
      </sec>
      <sec id="sec-1-6">
        <title>Conjecture 2. A converse of proposition 3</title>
        <p>
          If a word is of the form w = a where starts with a and starts with b, and if
w is minimal non-PN-solvable and also of the form given in (
          <xref ref-type="bibr" rid="ref3">3</xref>
          ), then inequation
(
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) holds. A stronger variant of this conjecture: If w = a is of the form
w
= [ abx1 a : : : abxk 1 i s [ ba : : : abxn a i
| {z } | {z }
with n
3 and xi
1
then a is not separated at state s iff #a( ) #b( ) = #a( ) #b( ).
Conj. 2
5
5.1
        </p>
        <p>Some results about words of the form bx1 a : : : abxn</p>
        <p>Side-places in words of the form bx1 a : : : abxn
If a word w = bx1 a : : : abxn can be solved at all, then side-places may be necessary
to do it. However, we will show that in the worst case, only some side-place q
around a, preventing a at some state, are necessary.</p>
      </sec>
      <sec id="sec-1-7">
        <title>Lemma 1. side-place-freeness around b</title>
        <p>
          If w = bx1 a : : : abxn is solvable, then w is solvable without side-place around b.
Proof: Let w and its intermediate states be of the form1
w
= s0[bx1 is1[abx2 is2[ai : : : sn 1[abxn isn
(
          <xref ref-type="bibr" rid="ref4">4</xref>
          )
Suppose some place p prevents b at some state sk, for 1 k n 1. (The only
other state at which b must be prevented is state sn, but that can clearly be done
1 A note on convention: in the following, we use the letter s to denote states at which
b has to be prevented, and p for places doing this. Similarly, we use the letter r to
denote states at which a has to be prevented, and q for places doing this.
by a non-side-place, e.g. by an incoming place of transition b that has initially
Pin=1 xi tokens.) Note that b &gt; b+, because place p allows b to be enabled at
the state preceding sk but not at sk. Similarly, a &lt; a+, because b is not enabled
at state sk but at the immediately following state, which is reached after ring a.
&gt;From the form (
          <xref ref-type="bibr" rid="ref4">4</xref>
          ) of w, we have
b+
b+
        </p>
        <p>
          a )
m + (x1 + : : : + xn)(b+
m (x1 + : : : + xk)(b+
The rst n inequations assert the semipositivity of the marking of place p (more
precisely, its boundedness from below by b+, since p may be a side-place) at the
n states s1; : : : ; sn. In our context, if these inequalities are full lled, then the
marking is b+ at all states, as a consequence of b b+, a a+, and the
special form of the word. The last inequality comes from :(sk[bi).
We certainly have 0 b+ b m, because of b b+ as noted above, and
because b is initially enabled. If b+ = 0, then p is not a side-place around b, and
there is nothing more to prove (for p). If b+ 1, we consider the transformation
The relation 0 b0+ b0 m0 still holds for the new values. Also, all inequalities
in (
          <xref ref-type="bibr" rid="ref5">5</xref>
          ) remain true for the new values: in the rst n lines, 1 is subtracted on each
side, and on the last line, the increase in m is o set by the decrease in b . Thus,
we get a solution preventing b with a `smaller' side-place, and we can continue
until eventually b+ becomes zero.
        </p>
        <p>A side-place around b might, however, still be necessary to prevent a at some
state. We show next that such side-places are also unnecessary.</p>
        <p>Let w and its intermediate states be of the form</p>
        <p>
          [bx1 1ir1[b a bx2 1ir2[b a i : : : [ a bxk 1irk[bisk[ a i : : : [bxn 1 1irn 1[b a bxn i
Suppose some place q as on the right-hand side of gure 2 prevents a at state rk,
for 1 k n 1. Symmetrically to the previous case, we have b+ &gt; b . This
is true because, while q does not have enough tokens to enable a at state rk, it
must have enough tokens to enable a at the directly following state (which we
may continue to call sk). But we also have (w.l.o.g.) a+ &lt; a . For k 2, this
follows from the fact that if the previous a (enabled at the state sk 1 just after
rk 1) acts positively on q, then q also has su ciently many tokens to enable a at
state rk. For k = 1, it is possible to argue that a+ a is valid without loss of
generality. For suppose that q disables a only at r1 and nowhere else. (This is no
loss of generality because for the other states rk, k 2, copies of q can be used.)
Then we may consider q0 which is an exact copy of q, except that a+ = a 1 for
q0. This place q0 also disables a at state r1 (because it has the same marking as
q). Moreover, it does not disable a at any other state after r1 because it always
has a 1 tokens, and after the next b, a tokens, since b+ &gt; b .
Because of b+ b and a+ a , q also prevents a at all prior states in the
same group of b's. Moreover, in the last (i.e. n'th) group of b's, a can easily be
prevented side-place-freely. For place q with initial marking m, we have
a+
a+
The rst n 1 inequations assert the semipositivity of the marking of place q
(more precisely, its boundedness from below by a+, since q may be a side-place
of a) at the n 1 states r1; : : : ; rn 1. If these inequalities are full lled, then the
marking is a+ at all states after the rst a, as a consequence of b+ b and
the special form of the word. The last inequality asserts that place q prevents
transition a at state rk, hence e ects the event/state separation of a at rk.
If b is already zero, place q is not a side-place of b. Otherwise, we may perform
the transformation
because of b+ b as noted above. The left-hand sides of the rst n 1
inequalities in (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ) do not decrease, and neither do the right-hand sides. The same
is true for the last inequality. 1
        </p>
      </sec>
      <sec id="sec-1-8">
        <title>Lemma 2. Side-place-freeness around a, preventing b</title>
        <p>
          Suppose w = bx1 abx2 a : : : abxn . If w is solvable by a net in which some place p
separates b, then we may w.l.o.g. assume that p is not a side-place around a.
Proof: The equation system (
          <xref ref-type="bibr" rid="ref5">5</xref>
          ) is invariant under the transformation
a0+ = a+
as neither the left-hand sides nor the right-hand sides change their values.
2
If some place q prevents transition a, then a side-place q connected to a may be
present. It may not always be possible to remove such a side-place. Consider, for
instance, the word w = bbbabab. It is of the form (
          <xref ref-type="bibr" rid="ref4">4</xref>
          ), and any net solving bbbabab
necessarily contains a side-place around transition a.2 The word bbabbababab can
also not be solved without a side-place (but bbabbabab can). So far, no tight (weak)
su cient conditions for solvability, or solvability without side-places around a,
are known. However, the next lemma shows that the presence of a side-place
around a may be due to there being \many" initial b's. That is, if x1 is \small
enough", then such a side-place is not necessary.
2 The reader is invited to use [7] in order to verify this claim; we will not include a
proof in this paper for lack of space.
        </p>
      </sec>
      <sec id="sec-1-9">
        <title>Lemma 3. Side-place-freeness around a, preventing a</title>
        <p>Suppose w = bx1 abx2 a : : : abxn . If x1 minfx2; : : : ; xn 1g and if w is solvable
by a net in which some place q prevents transition a at state rk with 1 k n,
then we may w.l.o.g. assume that q is not a side-place around a.
Proof: For preventing a at state rn, we only need a place with no input and
output a (weight 1) which has n 1 tokens initially.</p>
        <p>
          Suppose q prevents a at state rk, with 1 k n 1. &gt;From previous
considerations, we know a+ &lt; a and b+ &gt; b , and we may assume, w.l.o.g., that q is
not a side-place around b, i.e., that b = 0. The initial marking m of q and the
remaining arc weights a+; a ; b+ satisfy the system of inequations (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ), except
that it is simpli ed by b = 0. If a+ = 0, then q is already of the required form.
For a+ &gt; 0, we distinguish two cases.
        </p>
        <p>
          Case 1: m &gt; 0 and a+ &gt; 0. Then consider the transformation
m0 = m
1 and a0+ = a+
By m &gt; 0 and a a+ &gt; 0, we get new values m0; a0+; a0 0. Moreover, (
          <xref ref-type="bibr" rid="ref6">6</xref>
          )
remains invariant under this transformation. So, q0 serves the same purpose as q,
and it has one incoming arc from a less than q. By repeating this procedure, we
either get a place which serves the same purpose as q, or we hit Case 2.
Case 2: m = 0 and a+ &gt; 0. In this case, we consider the transformation
m0 = m = 0 and a0+ = 0 and a0 = a
Such a transformation also guarantees m0; a0+; a0 0. Also, the last line of (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ) is
clearly satis ed with these new values, since the value of its right-hand stays the
same (for k = 1) or increases (for k &gt; 1). To see that the rst n 1 lines of (
          <xref ref-type="bibr" rid="ref6">6</xref>
          )
are also true with the new values (and with b = 0), and that we can, therefore,
replace q by q0, we may argue as follows. At any marking me reached along the
execution of w, we have the following:
me(q)
me(q0)
0
(
          <xref ref-type="bibr" rid="ref7">7</xref>
          )
These inequalities imply that the new place q0 prevents a at rk, whenever the old
one, q, does, and that, moreover, no occurrences of a are excluded by the place
q0 where they should not be prohibited.
        </p>
        <p>
          The rst of the inequalities (
          <xref ref-type="bibr" rid="ref7">7</xref>
          ) holds because it holds initially (when me = m, then
me(q) = m = m0 = me(q0)), and because the e ect of a before the transformation
is (a+ a ), and after the transformation, it is ( a ). In other words, a reduces
the token count on q0 more than it does so on q, while b has the same e ect on
q0 as on q. To see the second inequality in (
          <xref ref-type="bibr" rid="ref7">7</xref>
          ), let x = minfx2; : : : ; xn 1g. Then
a
x1 b+
        </p>
        <p>x b+
The rst inequality follows because m = 0 and q has enough tokens after the
rst x1 occurrences of b in order to enable a. The second inequality follows from
x1 x. But then, since a only removes a tokens from q0 and the subsequent
block of b's puts at least x b+ tokens back on q0, the marking on q0 is always
0, up to and including the last block of b's. 3</p>
      </sec>
      <sec id="sec-1-10">
        <title>Corollary 1. Side-place-free solvability with few initial b's</title>
        <p>If w = bx1 abx2 a : : : abxn is solvable, then side-places are necessary, at worst,
between a and q, where q is some place preventing a at one of the states rk with
1 k &lt; n 1. If w = bx1 abx2 a : : : abxn is solvable and x1 minfx2; : : : ; xn 1g,
then w is solvable side-place-freely. 1</p>
        <p>Solving words aw from words of the form w = bx1 a : : : abxn
Solving a word of the form w = bx1 a : : : abxn side-place-freely allows us to draw
some conclusion about prepending a letter a to it, as follows.</p>
      </sec>
      <sec id="sec-1-11">
        <title>Lemma 4. Preventing a in aw</title>
        <p>Suppose w = bx1 abx2 a : : : abxn is solvable side-place-freely. Then in aw, all
occurrences of a can be separated side-place-freely.</p>
        <p>
          Proof: In order to prevent a in w side-place-freely at any state rk, the system
(
          <xref ref-type="bibr" rid="ref6">6</xref>
          ) has a solution with a+ = 0 and b = 0 for any xed 1 k n 1. This
refers to a pure input place q of a, which may or may not be an output place of
b. In order to prevent a in aw side-place-freely, we need to consider the states rk
as before (but shifted to the right by one index position, still just before the last
b of the k'th group of b's) and a correspondingly modi ed system as follows:
m0 + (x1 + : : : + xi) (b0+) + (i + 1) ( a0 ) for all 0
i
n
1
m0
(x1 + : : : + xk
1) (b0+)
k ( a0 ) + a0
1
(8)
where m0, b0+ and a0 refer to a new pure place q0 preventing a at state rk in aw.
The line with i = 0 was added because m0 is required to be bounded from below
and a must be enabled initially. (In (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ), nonnegativity of m follows from the line
with i = 1 and b being the rst transition of w, which is no longer true in aw.)
Consider the transformation
m0 = m + a
        </p>
        <p>
          and b0+ = b+ and a0 = a
These values satisfy (8), provided m, b+ and a (together with a+ = 0 and
b = 0) satisfy (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ). The line with i = 0 follows from m0 = m + a 0. The
other lines corresponding to i 1 reduce to the corresponding lines in (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ), since
the additional ( a ) at the end of each line is o set by the additional (+a )
at the beginning of the line. The last line (which belongs to state rk at which
a is separated) corresponds to the last line of (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ), because the decrease by a
at the beginning of the line is o set by an increase by a in the term k ( a0 )
(compared with (k 1) ( a ) as in (
          <xref ref-type="bibr" rid="ref6">6</xref>
          )). 4
Note 1: In order to disable a at rk, q could be replaced by a place q0 obtained
by duplicating q and changing the initial marking m to m0 = m + a . Intuitively,
this means that m0 is computed from m by \un ring" a once.
        </p>
        <p>Note 2: Place q should not be removed as soon as q0 is added, because q could
also be preventing a at some other rk. In that case, a new place q00 must be
computed from q for this di erent value of k. We may forget about q only after
all the relevant indices k have been processed.</p>
        <p>Next, consider an input place p of b in a side-place-free solution of w and suppose
that p prevents b at state sk. Suppose that we want to solve aw. If p is not also
an output place of a, then it can simply be retained unchanged, and with the
same marking, prevent b at corresponding states in aw and in w. However, if p
is also an output place of a, there may be a problem, because \un ring" a in
the initial marking may lead to negative tokens on p. This is illustrated by the
example babbabb which has a side-place-free solution, as shown on the left-hand
side of gure 5.</p>
        <p>a
2
2
q1
p
q2</p>
        <p>b
solves
babbabb
a
2
2
The places q1; q2 can be treated as in the above proof (that is, by
changing their markings by \un ring" a) and yield new places q10; q20 with marking
f(q10; 3); (q20; 3)g. If we allowed negative markings, then a new place p0 with
initial marking (p0; 1) (and otherwise duplicating p) would do the job of solving
ababbabb (as in the middle of the gure). However, we shall need a more re ned
argument in order to avoid negative markings.</p>
        <p>Let p0 be a general new place which is supposed to prevent b at state sk in aw.
In order to check the general solvability of aw if w is side-place-freely solvable,
we consider a general transformation
m0 = m+
, b0+ = b+ + + , b0 = b +
, a0+ = a+ + + , a0 = a +
where m, +
new inequation system:
b+,
b , +
a+ and
a , as well as a
b0
+
0
m0 + (x1 + : : : + xi) (b0+</p>
        <p>
          b0 ) + i (a0+
m0
(x1 + : : : + xk) (b0+
b0 )
k (a0+
a0 ) for 1
a0 ) + b0
i
1
n
This system has to be compared with a restricted form of (
          <xref ref-type="bibr" rid="ref5">5</xref>
          ) (setting b+ = a = 0,
since the solution of w is pure). Doing this by line-wise comparison, we get the
following inequation system for the new value di erences:
0
+
m;
        </p>
        <p>+
+ (x1 + : : : + xi) ( +
b+;
b ;</p>
        <p>+
) + i ( +
(x1 + : : : + xk) ( +
)
k ( +
a+;</p>
        <p>a
) + a+
)
a+ +
The lines with i must be solved simultaneously for every 1 i n while the line
with k must be solved individually for every 1 k n 1, in order to get a
place preventing b at state sk. This leads to the following lemma.</p>
      </sec>
      <sec id="sec-1-12">
        <title>Lemma 5. Solving aw from w</title>
        <p>
          Suppose w = bx1 abx2 a : : : abxn is solvable side-place-freely. Then aw is solvable.
Proof: Suppose that a pure place p with parameters b (arc into b), a+ (arc
from a) and m (initial marking) is given and suppose it separates b from sk in w.
This place solves (
          <xref ref-type="bibr" rid="ref5">5</xref>
          ) for that particular k. We distinguish two cases:
Case 1: a+ m. In this case, the place p can essentially be re-used for the same
purpose in the solution (that we construct in this way) for aw, since (9) is solved
by putting
(9)
=
a+ ;
+ =
= 0 ;
+ =
= 0
Hence, a place p0 which di ers from p only by its initial marking (m0 = m
instead of m) separates b at sk in aw.
a+
Case 2: a+ &gt; m. In this case, (9) can be solved by
=
m ;
+ =
= a+
m ;
+ =
= 0
That is, we may replace p by a place p0 with zero initial marking and adding
uniformly the value a+ m to the incoming and outgoing arcs of b, creating a
side-place around b. 5
For instance, in the solution of babbabb shown on the left-hand side of gure
5, the place p from a to b satis es m=1, b =1, b+=0, a =0 and a+=2. (9) is
solved by = 1, = 2, + = 0, = 0 and + = 3. Hence with m0=m 1,
b0 =b + 2, b0+=b+, a0 =a and a0+=a+ + 3, the net shown on the right-hand
side of gure 5 is a pure solution of ababbabb. (Place p0 prevents b not only in
states s1 and s2 but also in the initial state and in the nal state.) There exist
words such as w1 = bbbabab or w2 = bbabbababab, however, which can be solved
but for which aw is not solvable. We have a converse of Lemma 5:
        </p>
      </sec>
      <sec id="sec-1-13">
        <title>Lemma 6. Solving w side-place-freely from aw</title>
        <p>If aw has a solution, then w has a side-place-free solution.
Corollary 2. Side-place-free solvability of bx1 abx2 a : : : abxn
w = bx1 abx2 a : : : abxn is solvable side-place-freely i aw is solvable.
2
6</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Concluding remarks</title>
      <p>If the characterisations of minimal Petri net solvable binary words proposed
in this paper are valid, then the usual linear solver for detecting them can be
replaced by a pattern-matching algorithm based on conjecture 1, or by a
lettercounting algorithm based on conjecture 2. We have described a variety of results
providing some insight into this class of words. There are several other facts about
them which we did not have space to describe. For example, if a word is solvable
side-place-freely, then so is the reverse word. Also, if a word is solvable, then it
is solvable by places having exactly one outgoing transition. (This property is
not shared by words with three or more letters, a counterexample being abcbaa.)
Moreover, PN-solvable words are balanced in the following sense. Referring to
w = bx1 abx2 a : : : abxn , call w balanced if there is some x such that xi 2 fx; x + 1g
for all 2 i n 1. We can prove that if w = bx1 abx2 a : : : abxn is PN-solvable,
then w is balanced, and moreover, xn x + 1. Presenting these, and other,
properties of PN-solvability must however be left to future publications.
Acknowledgements: We would like to thank Harro Wimmel and Uli Schlachter
for valuable comments, and Uli for nding weird words (amongst them, abcbaa as
mentioned in the conclusion) using [7, 3]. We thank also the anonymous reviewers
for their remarks which allowed to improve the presentation of the paper.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>E.</given-names>
            <surname>Badouel</surname>
          </string-name>
          , P. Darondeau:
          <article-title>Theory of Regions</article-title>
          . In W. Reisig, G. Rozenberg (eds):
          <source>Lectures on Petri Nets I: Basic Models. LNCS</source>
          Vol.
          <volume>1491</volume>
          ,
          <issue>529</issue>
          {
          <fpage>586</fpage>
          (
          <year>1998</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>E.</given-names>
            <surname>Best</surname>
          </string-name>
          , R. Devillers:
          <article-title>State Space Axioms for T-Systems</article-title>
          . G. Luttgen, F. Corradini (eds):
          <article-title>Special volume on the occasion of Walter Vogler's 60th birthday</article-title>
          .
          <source>Acta Informatica</source>
          , Vol.
          <volume>52</volume>
          (
          <issue>2-3</issue>
          ),
          <fpage>133</fpage>
          -
          <lpage>152</lpage>
          (
          <year>2015</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>E.</given-names>
            <surname>Best</surname>
          </string-name>
          ,
          <string-name>
            <surname>U.</surname>
          </string-name>
          <article-title>Schlachter: Analysis of Petri Nets and Transition Systems</article-title>
          . ICE'
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>B.</given-names>
            <surname>Caillaud</surname>
          </string-name>
          : http://www.irisa.fr/s4/tools/synet/
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5. T. Murata:
          <article-title>Petri Nets: Properties, Analysis and Applications</article-title>
          .
          <source>Proc. of the IEEE</source>
          , Vol.
          <volume>77</volume>
          (
          <issue>4</issue>
          ),
          <fpage>541</fpage>
          -
          <lpage>580</lpage>
          (
          <year>1989</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>M.</given-names>
            <surname>Pia</surname>
          </string-name>
          ,tkowski et al.: http://folco.mat.umk.pl/unsolvable-words (
          <year>2015</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>U.</given-names>
            <surname>Schlachter</surname>
          </string-name>
          et al.: https://github.com/CvO-Theory/apt (
          <year>2013</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>