<!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>Persistency and Nonviolence Decision Problems in P/T-nets with Step Semantics?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Kamila Barylska kamila.barylska@mat.umk.pl</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty of Mathematics and Computer Science, Nicolaus Copernicus University</institution>
          ,
          <addr-line>Chopina 12/18, 87-100 Toruń</addr-line>
          ,
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <fpage>325</fpage>
      <lpage>330</lpage>
      <abstract>
        <p>Persistency is one of the notions widely investigated due to its application in concurrent systems. The classical notion refers to nets with a standard sequential semantics. We will present two approaches to the issue (nonviolence and persistency). The classes of different types of nonviolence and persistency will be defined for nets with step semantics. We will prove that decision problem concerning all the defined types are decidable.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        The notion of persistency has been extensively studied for past 40 years, as
a highly desirable property of concurrent systems. A system is persistent (in
a classical meaning) when none of its components can be prevented from being
executed by other components. This property is often needed during the
implementation of systems in hardware [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. The classical notion can be split into two
notions: persistency (no action is disabled by another one) and nonviolence (no
action disables another one).
      </p>
      <p>The standard approach to Petri nets provides a sequential semantics - only
single actions can be executed at a time. We choose a different semantics (real
concurrency), in which a step, that is a set of actions, can be executed
simultaneously as a unique atom of a computation.</p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] different types of persistency and nonviolence notions for p/t-nets with
step semantics were presented. In [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] levels of persistency were introduced for
nets with sequential semantics. In this paper we combine both approaches and
define classes (not only enabling-oriented but also life-oriented) of nonviolence
and persistency of different types for nets with step semantics. We prove that all
defined kinds of nonviolence and persistency are decidable for place/transition
nets.
? This research was supported by the National Science Center under the grant
      </p>
      <p>No.2013/09/D/ST6/03928.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Basic definitions and denotations</title>
      <p>We assume that basic notions concerning Petri Nets are known to the reader.
Their definitions are omitted here due to the page limit, and can be found in
any monograph or survey about Petri Nets.</p>
      <p>
        Classical p/t-nets provide a sequential semantics of action’s executions. It means
that only one action can be executed as a single atom of a computation. In this
paper we assume a different semantics: subset of actions called steps can be
enabled and executed as an atomic operation of a net. Basic definitions concerning
p/t-nets adapted to nets with step semantics can be found in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. All the
definitions and facts required in the paper are presented in its longer version and
posted on the author’s website1.
      </p>
      <p>
        The Monoid Nk
See [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] for definitions and facts concerning the monoid Nk, rational subsets of Nk,
!-vectors, sets of all minimal/maximal members of X (M in(X)/M ax(X)), and
closures, convex sets, bottom and cover.
      </p>
    </sec>
    <sec id="sec-3">
      <title>Levels of persistency and nonviolence</title>
      <p>
        In [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] one can find definitions of three classes of persistency for nets with
sequential semantics: the first one (corresponding to the classical notion): "no action
can disable another one", and two ways of generalization of this notion: "no
action can kill another one" and "no action can kill another enabled one".
In [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] a thorough analysis of persistent nets with step semantics was conducted.
It was pointed out there that the existing concept of persistency [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] can be
separated into two concepts, namely nonviolence (previously called persistency in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ])
and persistency (or robust persistency).
      </p>
      <p>
        It is shown there that one can consider three classes of nonviolence and
persistency steps: A - where after the execution of one step we take into consideration
only the remaining part of the other step, B - if two steps do not have any
common action, then after the execution of one of them we consider the whole
second step, and C - after the execution of one step we take into account the
whole second step. As it is proved in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], the notions of A and B persistency
(nonviolence, respectively) steps coincide, in the remaining we will only consider
the classes of A and C steps.
3
4
1 www.mat.umk.pl/~khama/Barylska-PersistencyAndNonviolenceDecisionProblems.pdf
Let us define classes of both types persistency and nonviolence with step
semantics.
      </p>
      <p>Definition 1. Let S = (P, T, W, M0) be a place/transition net. For M 2 [M0i
and steps ↵, ✓ T , such that ↵ 6= , the step ↵ in M is:
– A-e/e-nonviolent iff M ↵ ^ M ) M ↵ ( \ ↵ )
– A-l/l-nonviolent iff M ↵ ^ (9 u)M u ) (9 v)M ↵v ( \ ↵ ), where u, v 2 (2T )⇤
– A-e/l-nonviolent iff M ↵ ^ M ) (9 v)M ↵v ( \ ↵ ), where v 2 (2T )⇤
– A-e/e-persistent iff M ↵ ^ M ) M (↵ \ )
– A-l/l-persistent iff (9 u)M u↵ ^ M ) (9 v)M v (↵ \ ), where u, v 2 (2T )⇤
– A-e/l-persistent iff M ↵ ^ M ) (9 v)M v (↵ \ ), where v 2 (2T )⇤
– C-e/e-nonviolent iff M ↵ ^ M ) M ↵
– C-l/l-nonviolent iff M ↵ ^ (9 u)M u ) (9 v)M ↵v , where u, v 2 (2T )⇤
– C-e/l-nonviolent iff M ↵ ^ M ) (9 v)M ↵v , where v 2 (2T )⇤
– C-e/e-persistent iff M ↵ ^ M ) M ↵
– C-l/l-persistent iff (9 u)M u↵ ^ M ) (9 v)M v↵ , where u, v 2 (2T )⇤
– C-e/l-persistent iff M ↵ ^ M ) (9 v)M v↵ , where v 2 (2T )⇤
Let S = (P, T, W, M0) be a place/transition net and M 2 [M0i.</p>
      <p>We say that a marking M is [A/C]-[(e/e)/(l/l)/(e/l)]-[persistent/nonviolent] iff
the step ↵ in M is [A/C]-[(e/e)/(l/l)/(e/l)]-[persistent/nonviolent] for every
enabled ↵ ✓ T .</p>
      <p>We say that the net S is [A/C]-[(e/e)/(l/l)/(e/l)]-[persistent/nonviolent] iff every
reachable marking M 2 [M0i is [A/C]-[(e/e)/(l/l)/(e/l)]-[persistent/nonviolent].
The classes of [A/C]-[(e/e)/(l/l)/(e/l)]-[persistent/nonviolent] p/t-nets will by
denoted by P[A/C] [(e/e)/(l/l)/(e/l)] [p/n].
5</p>
    </sec>
    <sec id="sec-4">
      <title>Decision Problems</title>
      <p>
        Let us recall the famous decidable (Mayr [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], Kosaraju [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]) problem called
Marking Reachability Problem:
      </p>
      <p>Instance: A p/t-net S = (P, T, W, M0), and a marking M 2 N|P |.</p>
      <p>Question: Is M reachable in S?
Let us formulate a more general Set Reachability Problem</p>
      <p>Instance: A p/t-net S = (P, T, W, M0), and a set X ✓ N|P |.</p>
      <p>
        Question: Is there a marking M 2 X, reachable in S?
Theorem 1 ([
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]). If X ✓ Nk is a rational convex set, then the X-Reachability
Problem is decidable in the class of p/t-nets.
      </p>
      <p>In order to formulate precisely decision problems concerning classes of
nonviolence and persistency types described in definition 1, let us define the following
sets of markings (for a given steps ↵ and ):
E↵ = {M 2 Nk | M↵ } E = {M 2 Nk | M }
E↵ = {M 2 Nk | M↵ } E↵ = {M 2 Nk | M ↵ }
E↵ ( \↵ ) = {M 2 Nk | M↵ ( \ ↵ )} E (↵ \ ) = {M 2 Nk | M (↵ \ )}
E..↵ = {M 2 Nk | (9 w 2 (2T)⇤ )Mw↵ } E.. = {M 2 Nk | (9 w 2 (2T)⇤ )Mw }
E..(↵ \ ) = {M 2 Nk | (9 w 2 (2T)⇤ )Mw(↵ \ )}
E..( \↵ ) = {M 2 Nk | (9 w 2 (2T)⇤ )Mw( \ ↵ )}
E↵.. = {M 2 Nk | (9 w 2 (2T)⇤ )M↵w }
E..↵ = {M 2 Nk | (9 w 2 (2T)⇤ )M w↵ }
E↵.. ( \↵ ) = {M 2 Nk | (9 w 2 (2T)⇤ )M↵w ( \ ↵ )}
E.. (↵ \ ) = {M 2 Nk | (9 w 2 (2T)⇤ )M w (↵ \ )}
Remark:
Let us note the following equalities:
E↵ = en↵ + Nk
E = en + Nk
E↵ = max(en↵, en↵ ex↵ + en ) + Nk
E↵ = max(en, en ex + en↵ ) + Nk
E↵ ( \↵ ) = max(en↵, en↵ ex↵ + en( \ ↵ )) + Nk
E (↵ \ ) = max(en, en ex + en(↵ \ )) + Nk</p>
      <p>where en↵ and ex↵ are vectors of entries and exits of ↵ .</p>
      <p>Thanks to the equalities it is easy to find a rational expressions for the listed
sets. It is much more difficult to find rational expressions for the rest of the
markings listed above.</p>
      <p>Let us notice that a step is not nonviolent/persistent in a distinct sense when
a certain "unwanted" marking is reachable in a given net. It is easy to see, that
we can connect the above sets of markings with classes of nonviolent/persistent
steps. The table below shows the connections.</p>
      <p>Z=Nonviolence</p>
      <p>Z=Persistency
X Y EX Y Z X Y EX Y Z
A EE E↵ \ E \ (Nk \ E↵ ( \↵ ) A EE E↵ \ E \ (Nk \ E (↵ \ )
A LL E↵ \ E.. \ (Nk \ E↵.. ( \↵ ) A LL E..↵ \ E \ (Nk \ E.. (↵ \ )
A EL E↵ \ E \ (Nk \ E↵.. ( \↵ ) A LL E↵ \ E \ (Nk \ E.. (↵ \ )
C EE E↵ \ E \ (Nk \ E↵ ) C EE E↵ \ E \ (Nk \ E↵ )
C LL E↵ \ E.. \ (Nk \ E↵.. ) C LL E..↵ \ E \ (Nk \ E..↵ )
C EL E↵ \ E \ (Nk \ E↵.. ) C LL E↵ \ E \ (Nk \ E..↵ )
Denotation: US = {E{X Y X} | X 2 { A, C}, Y 2 { EE, LL, EL}, Z 2 { N/P}}2
- the set of undesirable sets.
2 where N=Nonviolence and P=Persistency
Now we are ready to formulate the decision problems. Let us notice that a
particular decision problem is decidable when we can settle whether any marking
from the undesirable set associated to the problem is reachable.</p>
      <p>X-Y-Z Problem: (for X 2 { A, C}, Y 2 { EE, LL, EL}, Z 2 { N/P})
Instance: A p/t-net S = (P, T, W, M0), and steps ↵, ✓ T .</p>
      <p>Question: Is the set EX Y Z reachable in S?
Informally, if any marking from the set EX Y Z is reachable in S, some
"unwanted" situation takes place, for example whenX Y Z = A EL P, then
it means that a subset (↵ \ ) of an enabled ↵ is killed by the execution of . Such
a situation is depicted in Fig.1 with ↵ = {a, c}, = {a, b}, and (↵ \ ) = {c}.
One can easily see, that M ↵ and M . Let M 0 = M , then the step (↵ \ ) is
dead in M 0.</p>
      <p>Fig. 1. Not A-EL-P p/t-net.</p>
      <p>Theorem 2. The Decision Problems described above are decidable in the class
of p/t-nets.</p>
      <p>
        Sketch of the proof:
1. We put into work the theory of residual sets of Valk/Jantzen [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and thanks
to their results we show that Bottoms (the set of all minimal members) of
the sets E..↵ , E.. , E..(↵ \ ), E..( \↵ ), E↵.. , E..↵ , E↵.. ( \↵ ), E.. (↵ \ ) are
effectively computable.
2. We obtain rational expressions for the sets as follows:
      </p>
      <p>
        EX = Bottom(EX ) + Nk, where X 2 { ..↵ , .. , ..(↵ \ ), ..( \ ↵ ), ↵.. , ..↵ ,
↵.. ( \ ↵ ), .. (↵ \ )}.
3. Using the Ginsburg/Spanier Theorem [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], which says that rational subsets
of Nk are closed under union, intersection and difference we compute rational
expressions for the undesirable sets. Let us notice that undesirable sets are
convex.
4. We check whether any marking from the undesirable set connected to a
distinct decision problem is reachable in a given net. The Theorem 1 yields
decidability of all the problems.
Let us now formulate net-oriented versions of the problems.
Of course the problems are decidable, as it is enough to check an adequate
transition oriented problem for every pair of steps.
6
      </p>
    </sec>
    <sec id="sec-5">
      <title>Plans for Further Investigations</title>
      <p>
        – In [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] inclusions between defined there kinds of nonviolence (called there
persistency) were investigated. One can examine the relationships between
the presented in definition 1 types of nonviolent and persistent nets.
– In [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] levels of e/l-k-persistency were defined. It would be useful to investigate
the notions in p/t-nets with step semantics.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Kamila</given-names>
            <surname>Barylska</surname>
          </string-name>
          and
          <string-name>
            <given-names>Edward</given-names>
            <surname>Ochmanski</surname>
          </string-name>
          .
          <article-title>Levels of persistency in place/transition nets</article-title>
          .
          <source>Fundam. Inform</source>
          ,
          <volume>93</volume>
          (
          <issue>1-3</issue>
          ):
          <fpage>33</fpage>
          -
          <lpage>43</lpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Kamila</given-names>
            <surname>Barylska</surname>
          </string-name>
          and
          <string-name>
            <given-names>Edward</given-names>
            <surname>Ochmanski</surname>
          </string-name>
          .
          <article-title>Hierarchy of persistency with respect to the length of actions disability</article-title>
          .
          <source>Proceedings of the International Workshop on Petri Nets and Software Engineering</source>
          , Hamburg, Germany, pages
          <fpage>125</fpage>
          -
          <lpage>137</lpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Johnson</given-names>
            <surname>Fernandes</surname>
          </string-name>
          , Maciej Koutny, Marta Pietkiewicz-Koutny,
          <string-name>
            <given-names>Danil</given-names>
            <surname>Sokolov</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Alex</given-names>
            <surname>Yakovlev</surname>
          </string-name>
          .
          <article-title>Step persistence in the design of gals systems</article-title>
          .
          <source>Lecture Notes in Computer Science</source>
          ,
          <volume>7927</volume>
          :
          <fpage>190</fpage>
          -
          <lpage>209</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Seymour</given-names>
            <surname>Ginsburg</surname>
          </string-name>
          and
          <string-name>
            <surname>Edwin H. Spanier</surname>
          </string-name>
          .
          <article-title>Bounded algol-like languages</article-title>
          .
          <source>TRANS AMER MATH SOC</source>
          , (
          <volume>113</volume>
          ):
          <fpage>333</fpage>
          -
          <lpage>368</lpage>
          ,
          <year>1964</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>S. Rao</given-names>
            <surname>Kosaraju</surname>
          </string-name>
          .
          <article-title>Decidability of reachability in vector addition systems (preliminary version)</article-title>
          .
          <source>In Proceedings of the Fourteenth Annual ACM Symposium on Theory of Computing</source>
          , STOC '
          <volume>82</volume>
          , pages
          <fpage>267</fpage>
          -
          <lpage>281</lpage>
          , New York, NY, USA,
          <year>1982</year>
          . ACM.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Maciej</given-names>
            <surname>Koutny</surname>
          </string-name>
          , Lukasz Mikulski, and
          <string-name>
            <surname>Marta</surname>
          </string-name>
          Pietkiewicz-Koutny.
          <article-title>A taxonomy of persistent and nonviolent steps</article-title>
          .
          <source>Lecture Notes in Computer Science</source>
          ,
          <volume>7927</volume>
          :
          <fpage>210</fpage>
          -
          <lpage>229</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Lawrence</surname>
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Landweber</surname>
          </string-name>
          and
          <string-name>
            <surname>Edward L. Robertson</surname>
          </string-name>
          .
          <article-title>Properties of conflict-free and persistent petri nets</article-title>
          .
          <source>JACM: Journal of the ACM</source>
          ,
          <volume>25</volume>
          ,
          <year>1978</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Ernst</surname>
            <given-names>W.</given-names>
          </string-name>
          <string-name>
            <surname>Mayr</surname>
          </string-name>
          .
          <article-title>An algorithm for the general petri net reachability problem</article-title>
          .
          <source>SIAM J. Comput.</source>
          ,
          <volume>13</volume>
          (
          <issue>3</issue>
          ):
          <fpage>441</fpage>
          -
          <lpage>460</lpage>
          ,
          <year>1984</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Rudiger</given-names>
            <surname>Valk</surname>
          </string-name>
          and
          <string-name>
            <given-names>Matthias</given-names>
            <surname>Jantzen</surname>
          </string-name>
          .
          <article-title>The residue of vector sets with applications to decidability problems in petri nets</article-title>
          .
          <source>ACTAINF: Acta Informatica</source>
          ,
          <volume>21</volume>
          ,
          <year>1985</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>