<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Soundness of Workflow Nets with an Unbounded Resource is Decidable</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Vladimir</forename><forename type="middle">A</forename><surname>Bashkin</surname></persName>
							<email>v_bashkin@mail.ru</email>
							<affiliation key="aff0">
								<orgName type="institution">Yaroslavl State University</orgName>
								<address>
									<postCode>150000</postCode>
									<settlement>Yaroslavl</settlement>
									<country key="RU">Russia</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Irina</forename><forename type="middle">A</forename><surname>Lomazova</surname></persName>
							<email>i_lomazova@mail.ru</email>
							<affiliation key="aff1">
								<orgName type="institution">National Research University Higher School of Economics</orgName>
								<address>
									<postCode>101000</postCode>
									<settlement>Moscow</settlement>
									<country key="RU">Russia</country>
								</address>
							</affiliation>
							<affiliation key="aff2">
								<orgName type="department">Program Systems Institute of the Russian Academy of Science</orgName>
								<address>
									<addrLine>Pereslavl-Zalessky</addrLine>
									<postCode>152020</postCode>
									<country key="RU">Russia</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Soundness of Workflow Nets with an Unbounded Resource is Decidable</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">1646228BE74AA2F5EAF5DB0C90E5933E</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-23T23:37+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>In this work we consider modeling of workflow systems with Petri nets. A resource workflow net (RWF-net) is a workflow net, supplied with an additional set of initially marked resource places. Resources can be consumed and/or produced by transitions. We do not constrain neither the intermediate nor final resource markings, hence a net can have an infinite number of different reachable states. An initially marked RWF-net is called sound if it properly terminates and, moreover, adding any extra initial resource does not violate its proper termination. An (unmarked) RWF-net is sound if it is sound for some initial resource. In this paper we prove the decidability of both marked and unmarked soundness for a restricted class of RWF-nets with a single unbounded resource place (1-dim RWF-nets). We present an algorithm for computing the minimal sound resource for a given sound 1-dim RWF-net.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Petri nets constitute a popular formalism for modeling and analysis of distributed systems. In this paper we consider workflow systems, or, to be more precise, workflow processes. To model workflow processes a special subclass of Petri nets, called WF-nets <ref type="bibr" target="#b0">[1,</ref><ref type="bibr" target="#b1">2]</ref>, is used.</p><p>In the context of WF-nets a crucial correctness criterion is soundness <ref type="bibr" target="#b0">[1,</ref><ref type="bibr" target="#b2">3]</ref>. We say that a workflow case execution terminates properly, iff its firing sequence (starting from the initial marking with a single token in the initial place) terminates with a single token in the final place (i.e. there are no "garbage" tokens after the termination). A model is called sound iff a process can terminate properly starting from any reachable marking. Soundness of WF-nets is decidable <ref type="bibr" target="#b0">[1]</ref>. Moreover, a number of decidable variations of soundness are established, for example, k-soundness <ref type="bibr" target="#b8">[9]</ref>, structural soundness <ref type="bibr" target="#b13">[14]</ref> and soundness of nested models <ref type="bibr" target="#b10">[11]</ref>.</p><p>One of important aspects in workflow development concerns resource management. Resources here is a general notion for executives (people or devices), raw materials, finances, etc. To take resources into account different extensions of a base formalism where introduced, having different versions of soundness criteria.</p><p>In <ref type="bibr" target="#b4">[5,</ref><ref type="bibr" target="#b5">6]</ref> a specific class of WFR-nets with decidable soundness is studied. In <ref type="bibr" target="#b9">[10,</ref><ref type="bibr" target="#b12">13]</ref> a more general class of Resource-Constrained Workflow Nets (RCWFnets) is defined. Informally, the authors impose two constraints on resources. First, they require that all resources that are initially available are available again after terminating of all cases. Second, they also require that for any reachable marking, the number of available resources does not override the number of initially available resources.</p><p>In <ref type="bibr" target="#b9">[10]</ref> it is proven that for RCWF-nets with a single resource type soundness can be effectively checked in polynomial time. In <ref type="bibr" target="#b12">[13]</ref> it is proven that soundness is also decidable in general case (by reducing to the home-space problem). In all mentioned papers resources are assumed to be permanent, i.e. they are used (blocked) and released later on. Resources are never created, nor destroyed. Hence the process state space is explicitly bounded.</p><p>To study a more general case of arbitrary resource transformations (that can arise, for example, in open and/or adaptive workflow systems), in <ref type="bibr" target="#b7">[8]</ref> we defined a notion of WF-nets with resources (RWF-nets). RWF-nets extend RCWF-nets from <ref type="bibr" target="#b9">[10]</ref> in such a way that resources can be generated or consumed during a process execution without any restrictions (cf. <ref type="bibr" target="#b6">[7]</ref>). For RWF-nets we defined notions of resources and controlled resources and studied the problem of soundnesspreserving resource replacement (this problem is important for adaptive workflows).</p><p>Unfortunately, even sound RWF-nets are not bounded in general, hence existing soundness checking algorithms cannot be applied here. In <ref type="bibr" target="#b7">[8]</ref> the decidability of soundness for RFW-nets was declared as an open problem.</p><p>In this paper we consider a restricted case -RWF-nets with a single resource place (1-dim RWF-nets). One resource type is sufficient for many practical applications (memory or money are typical examples of such resources). Note that 1-dim RWF-nets are, generally speaking, not bounded and hence this case cannot be reduced to finite-state WF-nets with resources, such as RCWF-or WFR-nets.</p><p>In this paper we use graph-theoretic properties of RWF-net control automaton to prove decidability of soundness for marked, as well as unmarked 1-dim RWF-nets. We present also an algorithm for computing minimal sound resource for a given sound 1-dim RWF-net.</p><p>The paper is organized as follows. In Section 2 basic definitions of multisets and Petri nets are given. In Section 3 we give definitions of sound RWF-nets. In Section 4 the class of 1-dim RWF-nets is defined and studied, algorithms for checking marked soundness, soundness and finding the minimal sound resource are given. Section 5 contains some conclusions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Preliminaries</head><p>Let S be a finite set. A multiset m over a set S is a mapping m : S → Nat, where Nat is the set of natural numbers (including zero), i. e. a multiset may contain several copies of the same element.</p><p>For two multisets m, m we write m ⊆ m iff ∀s ∈ S : m(s) ≤ m (s) (the inclusion relation). The sum, the union and the subtraction of two multisets m and m are defined as usual: ∀s ∈ S :</p><formula xml:id="formula_0">(m + m )(s) = m(s) + m (s), (m ∪ m )(s) = max(m(s), m (s)), (m − m )(s) = m(s) m (s) (</formula><p>where denotes the truncated subtraction). By M(S) we denote the set of all finite multisets over S.</p><p>Non-negative integer vectors are often used to encode multisets. Actually, the set of all multisets over finite S is a homomorphic image of Nat |S| .</p><p>Let P and T be nonempty disjoint sets of places and transitions and let F : (P × T ) ∪ (T × P ) → Nat. Then N = (P, T, F ) is a Petri net. A marking in a Petri net is a function M : P → Nat, mapping each place to some natural number (possibly zero). Thus a marking may be considered as a multiset over the set of places. Pictorially, P -elements are represented by circles, T -elements by boxes, and the flow relation F by directed arcs. Places may carry tokens represented by filled circles. A current marking M is designated by putting M (p) tokens into each place p ∈ P . Tokens residing in a place are often interpreted as resources of some type consumed or produced by a transition firing. A simple example, where tokens represent molecules of hydrogen, oxygen and water respectively is shown in Fig. <ref type="figure">1</ref>.</p><formula xml:id="formula_1">¡ ¢ £ ¤ ¥ ¦ § ¨© Fig. 1. A chemical reaction.</formula><p>For a transition t ∈ T an arc (x, t) is called an input arc, and an arc (t, x)an output arc; the preset • t and the postset t • are defined as the multisets over P such that • t(p) = F (p, t) and t • (p) = F (t, p) for each p ∈ P . A transition t ∈ T is enabled in a marking M iff ∀p ∈ P M (p) ≥ F (p, t). An enabled transition t may fire yielding a new marking</p><formula xml:id="formula_2">M = def M − • t + t • , i. e. M (p) = M (p) − F (p, t) + F (t, p) for each p ∈ P (denoted M t → M , or just M → M ). We say that M is reachable from M iff there is a sequence M = M 1 → M 2 → • • • → M n = M .</formula><p>For a Petri net N by R(N, M 0 ) we denote the set of all markings reachable from its initial marking M 0 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">WF-nets with resources</head><p>In Petri nets with resources we divide Petri net places into control and resource ones.</p><p>Definition 1. A Petri net with resources is a tuple N = (P c , P r , T, F c , F r ), where -P c is a finite set of control places; -P r is a finite set of resource places,</p><formula xml:id="formula_3">P c ∩ P r = ∅; -T is a finite set of transitions, P c ∩ T = P r ∩ T = ∅; -F c : (P c × T ) ∪ (T × P c ) → Nat is a multiset of control arcs; -F r : (P r × T ) ∪ (T × P r ) → Nat is a multiset of resource arcs; -∀t ∈ T ∃p ∈ P c : F c (p, t) + F c (t, p) &gt; 0 (each transition is incident to some control place).</formula><p>Note that all transitions are necessarily linked to control places -this guarantees the absence of "uncontrolled" resource modifications.</p><p>A marking in a Petri net with resources is also divided into control and resource parts. For a multiset c + r, where c ∈ M(P c ) and r ∈ M(P r ), we write c|r.</p><p>Definition 2. For a net N a resource is a multiset over P r . A controlled resource is a multiset over P c ∪ P r .</p><p>Workflow nets (WF-nets) are a special subclass of Petri nets designed for modeling workflow processes. To study resource dependencies in workflow systems we consider WF-nets with resources. Definition 3. A Petri net with resources N is called a WF-net with resources (RWF-net) iff 1. There is one source place i ∈ P c and one sink place o ∈ P c s. t.</p><formula xml:id="formula_4">• i = o • = ∅; 2.</formula><p>Every node from P c ∪ T is on a path from i to o, and this path consists of nodes from P c ∪ T.</p><p>Fig. <ref type="figure" target="#fig_0">2</ref> represents an example of a RWF-net, where resource places r 1 and r 2 are depicted by ovals, resource arcs -by dotted arrows.</p><p>Every RWF-net N = (P c , P r , T, F c , F r ) contains its control subnet N c = (P c , T, F c ), which forms a RWF-net with the empty set of resources.</p><p>A marked net is a net together with some initial marking.</p><formula xml:id="formula_5">Definition 4. A marked RWF-net (N, c|r) is called sound iff ∀s ∈ M(P r ), ∀M ∈ R(N, c|r + s) we have: ¡ ¢ £ ¤ ¥ ¦ § ¨© Fig. 2. WF-net wth resources. 1. ∃s ∈ M(P r ) : o|s ∈ R(N, M ); 2. c |r ∈ R(N, M ) ⇒ c = o ∨ c ∩ o = ∅.</formula><p>Thus soundness for a RWF-net means that, first, this workflow net can terminate properly from any reachable state, and, additionally, adding any extra resource does not violate the proper termination property.</p><p>Note that our definition is substantially different from the definition of sound RCWF-nets (Resource-Constrained Workflow net) in <ref type="bibr" target="#b9">[10]</ref>. We do not forbid creating and spending of resources. Thus, in RWF-nets resources may be produced and consumed during a process execution. This implies the possible unboundedness of sound RWF-nets.</p><p>The following statement is analogous to Lemma 5 in <ref type="bibr" target="#b9">[10]</ref>.</p><p>Proposition 1. <ref type="bibr" target="#b6">[7]</ref> If a marked RWF-net (N, i|r) is sound, then its control subnet N c with the initial marking i is also sound.</p><p>The proof of this proposition is given in the Appendix. The converse statement is not true: there may be RWF-nets with sound control subnets, for which sound resources do not exist. An example of such a net is given in Fig. <ref type="figure">3</ref>.</p><p>Let N be a RWF-net. By C(N ) we denote the set of all control markings reachable in N c , i. e. C(N ) = R(N c , i). The proof of this proposition is given in the Appendix. ¡ ¢ Fig. <ref type="figure">3</ref>. RWF-net with a sound control subnet, which is not sound for any resource.</p><p>Further, we call a RWF-net N sound (without indicating any concrete resource) iff a marked RWF-net (N, i|r) is sound with some initial resource r.</p><p>From the second statement of Proposition 2 and the well-known Dickson's lemma we obtain the following Corollary 1. For a sound RWF-net N the set C(N ) of all its reachable control markings is finite. Note 1. Since the control subnet of a sound RWF-net N is bounded, the set C(N ) can be effectively constructed (e. g. by constructing a coverability tree). The questions of computability of mres(c) and decidability of soundness for RWF-nets remain open. In the next section positive answers to these two questions are given for a restricted case -RWF-nets with a single resource place.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Soundness of 1-dim RWF-nets</head><p>Let N = (P c , P r , T, F c , F r ) be an RWF-net with P r = {p r }, i.e. with just one resource place. By 1-dim RWF-nets we denote the subclass of RWF-nets with single resources. An example of such a net is given in Fig. <ref type="figure" target="#fig_2">4</ref>. In the following sections we consider only 1-dim RWF-nets.</p><p>If a control subnet of N is not sound, then N is also not sound. So, we suppose that the control subnet of N is sound, and hence bounded. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Control automaton</head><p>It is easy to note that a bounded control subnet can be represented as an equivalent finite automaton (a transition system). This automaton is an oriented graph with two distinguished nodes -a source node i and a sink node o.</p><p>In this control automaton states are exactly the elements of C(N ), transitions -transitions of the given net N . But now it will be more convenient to consider a transition t as a pair (c 1 , c 2 ) of control states, where c 1 t → c 2 . Every transition t of the automaton is labeled by an integer δ(t), defining a "resource effect" of transition firing. A positive δ(t) means that the firing of t increments the marking of a (single) resource place p r by δ(t), a negative δ(t) means that t is enabled in a state (c|r) iff r(p r ) ≥ |δ(t)|, and that the firing of t decrements the resource by |δ(t)|. Formally,</p><formula xml:id="formula_6">δ(t) = def −F r (p r , t) for F r (p r , t) &gt; 0; F r (t, p r ) for F r (t, p r ) &gt; 0.</formula><p>The value δ(t) is called an effect of t (denoted Eff (t)). Note that for simplicity we exclude loops, when both F r (p r , t) &gt; 0 and F r (t, p r ) &gt; 0; such loops can be simulated by two sequential transitions.</p><p>A support of t is the amount of the resource required for a firing of t. It is defined as:</p><formula xml:id="formula_7">Supp(t) = def 0, δ(t) ≥ 0; |δ(t)|, δ(t) &lt; 0.</formula><p>Thus, a 1-dim RWF-net N can be transformed into a control automaton Aut(N ), which can be considered as a one-counter net (e.g. <ref type="bibr" target="#b3">[4]</ref>) or, alternatively, a 1-dim Vector Addition System with States (VASS <ref type="bibr" target="#b11">[12]</ref>) with a specific workflow structure: one source state, one sink state, and every state is reachable from the source state, as well as the sink is reachable from every state. Note that the control automaton Aut(N ) is behaviorally equivalent to N in the branchingtime semantics.</p><p>Consider an example depicted in Fig. <ref type="figure" target="#fig_1">5</ref>. This is a control automaton for the 1-dim RWF-net from Fig. <ref type="figure" target="#fig_2">4</ref>. States are denoted by octagons, labelled with the corresponding control markings of the net. Transitions are labelled with the corresponding names and effects. A control automaton (a one-counter net) is a digraph with arcs labeled by integers. Recall some basic notion from graph theory.</p><formula xml:id="formula_8">¡ ¢ £ ¤ ¥ ¦ § ¨© ! " # $ % &amp; ' ( ) 0 1 2 3 4 5 6 7 8 9 @ A B C D E F G H I P Q R S T U V W X Y</formula><p>A walk is an alternating sequence of nodes and arcs, beginning and ending with a node, where each node is incident to both the arc that precedes it and the arc that follows it in the sequence, and where the nodes that precede and follow an arc are the head and the tail of this arc.</p><p>We consider only non-empty walks, containing at least one arc.</p><p>A walk is closed if its first and last nodes coincide.</p><p>A path is a walk where no arcs are repeated (nodes may be repeated).</p><p>A simple path is a path where no nodes are repeated.</p><p>A cycle is a closed path.</p><p>A simple cycle is a closed path where no nodes are repeated (except the first/last one).</p><p>A walk in a control automaton corresponds to some sequence of firings in 1-dim RWF-net. Now we inductively define an effect and a support of a walk. Intutively, Let t be a transition and σ a walk, such that the ending node of t is the beginning node of the first transition of σ. Let tσ denote a walk, constructed by linking t and σ. We define:</p><formula xml:id="formula_9">Eff (tσ) = def Eff (t) + Eff (σ); Supp(tσ) = def Supp(t) + (Supp(σ) Eff (t)),</formula><p>where denotes the truncated subtraction. Proof. The set of "potential deadlock" control states (nodes with only negative outgoing transitions) is finite. For a given "potential deadlock" control state the set of applicable deadlock states (natural numbers smaller than the smallest required resource for a successor transition) is also finite.</p><p>Hence, all deadlocks can be detected by checking control states with only negative outgoing transitions. Now let us consider livelocks. Proposition 6. If L ⊂ C(N )×Nat is a livelock then there is a state (c|r) ∈ L and a negative transition t ∈ T with c t → c , such that δ(t) &lt; −r.</p><p>Proof. Straightforward, since the control subnet of RWF-net N is sound. Proposition 7. The set of livelocks is finite.</p><p>Proof. First note that if (c|r), (c|r + x) ∈ L with x &gt; 0 then L is not a livelock. Indeed, in this case the transition sequence (c|r) σ → (c|r + x) corresponds to a positive cycle, that can generate an infinite number of states -a contradiction to the finiteness of livelocks. So, every control state can occur in a given livelock at most once. Now assume the converse: there are infinitely many livelocks. Then there are infinitely many livelocks with the same set of control states, which differ only in their resource value. Hence, this set includes a livelock with an arbitrarily large resource, and we can take a livelock with a resource big enough to reach the final state o. This implies that o belongs to the livelock -a contradiction with the definition of a livelock. Thus, all livelocks can be easily detected by checking finite systems of states, closed under transition firings (strongly connected components) and satisfying the property from Prop. 6.  Theorem 1. Soundness is decidable for marked 1-dim RWF-nets.</p><p>Proof. The following proof is similar to the proof of decidability of structural soundness in <ref type="bibr" target="#b13">[14]</ref>.</p><p>For a given 1-dim RWF-net N construct the modified RWF-net N by adding a new initial place i and two new transitions, as depicted in Fig. <ref type="figure" target="#fig_6">6</ref>. The original 1-dim RWF-net (N, i|r) is sound iff neither deadlocks nor livelocks are reachable in 1-dim RWF-net (N , i|r) (otherwise some large enough initial resource would produce the same undesirable situation in the given net N ).</p><p>Since the sets of deadlocks and livelocks are finite and computable, the problem of soundness of a marked 1-dim RWF-net can be reduced to a finite number of instances of a reachability problem for a 1-counter Petri net. This reachability problem is decidable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Decidability of soundness for unmarked nets</head><p>Theorem 1 gives us only a semidecision procedure for soundness of a net. One can check the soundness of a given initial marking, but if the answer is negative, it is not known whether there exists a larger sound marking. Definition 7. An unmarked RWF-net N is called sound iff (N, i|r) is sound for some resource r.</p><p>Corollary 2 gives us only a necessary condition of a deadlock, reachable from some initial marking. Now we prove a stronger theorem, which gives a sufficient and necessary condition for existence of a soundness-violating deadlock (i.e. a deadlock that is reachable from an infinite number of different initial markings). Theorem 2. An unmarked 1-dim RWF-net is not sound with deadlocks iff there exist a deadlock state (c|r), a negative generator q and a simple path q σ → c such that Eff (σ) Supp(σ) ≤ r.</p><p>Proof. (⇐) It is sufficient to show that for any (large enough) initial resource r 0 there exists a larger initial resource r 0 + x, such that a deadlock is reachable from (i|r 0 + x).</p><p>Consider an arbitrary (large enough) initial resource r 0 s.t.</p><formula xml:id="formula_10">(i|r 0 ) τ → (q|s)</formula><p>for some path τ and resource s (it is always possible to find such a resource since the control net is sound, and therefore any control state is reachable for some sufficiently large initial resource). Let θ = qc 1 . . . c j q be a simple negative cycle with generator q, i.e. Supp(θ) = −Eff (θ). Denote z = s mod Supp(θ) and consider a larger initial resource r 0 + z + Supp(σ).</p><p>We have i|r 0 + z + Supp(σ)</p><formula xml:id="formula_11">↓ τ q|s + z + Supp(σ) ↓ θ (s+z)/Supp(θ) q|Supp(σ) ↓ σ c|Eff (σ) Supp(σ)</formula><p>and hence a deadlock.</p><p>(⇒) Assume the converse: the net is unsound with a deadlock, but for any given deadlock state, it is impossible to find a negative generator that satisfies the conditions in the theorem.</p><p>The number of deadlock states is finite, hence some deadlock state (c|r) is reachable from an infinite number of different initial states (initial resource values).</p><p>Every transition sequence σ = t 1 .t 2 . . . . .t n from (i|r 0 ) to (c|r) corresponds to a walk σ in the control automaton graph. Since there are infinitely many deadlock-generating initial states, the set of corresponding walks is also infinite. Each of these walks can be decomposed into a sequence of alternating simple cycles and acyclic simple paths:</p><formula xml:id="formula_12">σ = τ 1 (θ 1 ) k1 τ 2 (θ 2 ) k2 . . . τ n−1 (θ n−1 ) kn−1 τ n .</formula><p>Note that this decomposition is not unique: ababa can be considered both as (ab) 2 a and a(ba) 2 . To fix ideas, we only consider "decomposition from the right to the left", so a(ba) 2 .</p><p>Let us show that among these walks there is a walk with a negative last cycle θ n−1 . Indeed, if the last cycle is positive (or neutral) with an effect x, we can consider a larger initial resource r 0 + x * k n−1 and a shorter walk</p><formula xml:id="formula_13">σ = τ 1 (θ 1 ) k1 τ 2 (θ 2 ) k2 . . . τ n−1 τ n ,</formula><p>having the same ending -a deadlock. Now, the new walk σ can be decomposed into simple cycles and simple paths, then the last cycle, if it is positive, can be removed by increasing the initial resource, and so on. At the end of this process we will obtain either a walk with a negative "last cycle" or a completely acyclic walk (simple path from i to c). There are only finitely many acyclic paths in the graph, but infinitely many deadlock-generating initial markings (and hence deadlock-generating walks from i to c), so we necessarily obtain a walk with a negative last cycle.</p><p>Consider such a deadlock-walk σ , ending with a suffix θ k τ, where θ is a negative cycle and τ is acyclic. Let θ = c 1 c 2 . . . c i . . . c m c 1 , where c i is a negative generator (from Lemma 2 such c i always exists). The path (c i . . . c m c 1 )τ is simple (remember that we decompose "from the right to the left" and hence θτ cannot contain cycles other than θ). Since the final state of the whole walk σ is (c|r), for any suffix φ of σ we have Eff (φ) Supp(φ) ≤ r.</p><p>It holds for (c i . . . c n c 1 )τ as well. But this is a simple path that leads from a negative generator to a deadlock control state -Q.E.D.</p><p>A result similar to Th. 2 is valid for livelocks: Theorem 3. An unmarked 1-dim RWF-net is not sound with livelocks iff there exist a livelock state (c|r), a negative generator q and a simple path q σ → c such that Eff (σ) Supp(σ) ≤ r.</p><p>Proof. Similar to Th. 2.</p><p>Corollary 3. Soundness is decidable for unmarked 1-dim RWF-nets.</p><p>Proof. All simple (negative) cycles can be found by Tarjan algorithm, deadlock and livelock states -by searching for states, satisfiyng Prop. 4 and Prop. 6 respectively. The set of simple paths is finite (and easily computable).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Computability of a minimal sound resource</head><p>Now we propose a plain (and hence, may be, not the most effective) algorithm for computing the minimal resource r such that (N, i|r) is sound: one tests soundness for incremented values of r until success. Note that this method can be applied only to sound nets, while soundness of the unmarked net can be checked with the algorithm given in Cor. 3.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Conclusion</head><p>In this paper we have investigated the soundness property for workflow nets with one (unbounded) resource place. We have proved that soundness is decidable for marked and unmarked nets, and that the minimal sound resource can be effectively computed.</p><p>Our decision algorithms use the reduction to the reachability problem for unbounded Petri nets and hence cannot be considered efficient. However, the inefficiency could be unavoidable, since RWF-nets are expressively rather close to ordinary Petri nets (VASS).</p><p>Further research will concern decidability of soundness for the general case of RWF-nets. It is also quite interesting to apply some alternative notions of soundness to our infinite-state workflow nets. The so-called relaxed soundness is of a particular interest. Relaxed soundness has been proposed as a weaker than soundness property. Some other interesting variants of soundness property are k-soundness, generalized and structural soundness <ref type="bibr" target="#b2">[3]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Appendix</head><p>Proof of Proposition 1.</p><p>The proof is by contradiction. Let (N, i|r) be a sound RWF-net and let the net (N c , i) be not sound. Then there exists a marking c ∈ R(N c , i), such that either the final marking o is not reachable from c, or o ∈ c and c = {o}.</p><p>Since for the control subnet the control marking c is reachable from the initial marking i via some sequence of firings, we can always take a resource s, sufficiently large to support the same sequence of firings for (N, i|r + s) and to reach the same control state c. If for the control subnet the final state was not reachable from c, then adding resource places can't make it reachable for the net with resources, i. e. for (N, i|r + s), in contradiction with the soundness of (N, i|r). If, otherwise, o ∈ c and c = {o}, then we also obtain a contradiction with the soundness of (N, i|r), since the control state c is reachable for (N, i|r + s).</p><p>Proof of Proposition 2.</p><p>(1) Similarly to the proof of the Proposition 1 we can always take a sufficiently large initial resource r + s.</p><p>(2) Suppose this is not true. Assume that for some c 1 , c 2 ∈ C(N ) we have c 2 = c 1 +c for some c = ∅. From the first statement of this proposition it follows that there exist resources r 1 and r 2 s. t. RWF-nets (N, c 1 |r 1 ) and (N, c 2 |r 2 ) are sound. Then nets (N, c 1 |r 1 +r 2 ) and (N, c 2 |r 1 +r 2 ) are also sound. Thus the final marking o|r is reachable from the marking c 1 |r 1 + r 2 , and (due to monotonicity property of Petri nets) the marking o + c |r is reachable from the larger marking c 2 |r 1 + r 2 -contradiction with the soundness for RWF-net (N, c 2 |r 1 + r 2 ).</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Proposition 2 .</head><label>2</label><figDesc><ref type="bibr" target="#b6">[7]</ref> If a marked RWF-net (N, i|r) is sound, then 1. for any reachable control marking c ∈ C(N ) there exists a resource r , such that (N, c|r ) is sound; 2. for any two control markings c 1 , c 2 ∈ C(N ) we have c 1 ⊂ c 2 and c 2 ⊂ c 1 .</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head>Definition 5 .</head><label>5</label><figDesc>Let N be a RWF-net, c ∈ C(N ). We define: 1. res(c) = def {r ∈ M(P r ) | (N, c|r) is sound} -the set of all sound resources for c; 2. mres(c) = def {r ∈ res(c) | ∃r ∈ res(c) : r ⊂ r} -the set of all minimal sound resources for c. Then from Dickson's Lemma we immediately obtain: Proposition 3. [7] For any sound RWF-net N and any control marking c ∈ C(N ) the set mres(c) is finite.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head>Fig. 4 .</head><label>4</label><figDesc>Fig. 4. 1-dim RWF-net N1.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_3"><head>Fig. 5 .</head><label>5</label><figDesc>Fig. 5. Control automaton for N1.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_4"><head>Proposition 4 .Corollary 2 .</head><label>42</label><figDesc>If a state (c|r) is a deadlock then for any t ∈ T s.t. c t → c we have Supp(t) &gt; r. Proof. Straightforward. Note that Prop. 4 implies δ(t) &lt; 0 and hence we can reformulate it: If a state (c|r) is a deadlock then: 1. ∀t ∈ T s.t. c t → c for some c we have δ(t) &lt; 0; 2. r &lt; min{|δ(t)| : c t → c for some c }. So deadlocks can occur (1) just for states with only negative outgoing transitions; (2) only for a finite number of different resources -when there are no enough resources for firing any of the successor transitions. Proposition 5. The set of deadlock states is finite.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_5"><head></head><label></label><figDesc>© "! # $ &amp;% (' ) 10 &amp;2 43 65 87 @9 A CB ED &amp;F HG (I QP R TS QU WV X `Y a Tb</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_6"><head>Fig. 6 .</head><label>6</label><figDesc>Fig. 6. Modified RWF-net N .</figDesc></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0">PNSE'13 -Petri Nets and Software Engineering</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_1">V. Bashkin et al.: Soundness of WF Nets with an Unbounded Resource</note>
		</body>
		<back>

			<div type="acknowledgement">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>The authors would like to thank the anonymous reviewers for their helpful comments.</p></div>
			</div>


			<div type="funding">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>This work is supported by the Basic Research Program of the National Research University Higher School of Economics, Russian Fund for Basic Research (projects 11-01-00737, 12-01-31508, 12-01-00281), and by Federal Program "Human Capital for Science and Education in Innovative Russia" (Contract No. 14.B37.21.0392).</p></div>
			</div>

			<div type="annex">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>A positive (resp., negative) walk is a walk with a positive (resp., negative) effect. Obviously, the effect of a cycle does not depend on a choice of a starting node.</p><p>A node q is called a positive generator, iff there exists a simple positive path from q to q (a simple positive cycle) with a zero support.</p><p>Lemma 1. Any simple positive cycle contains at least one generator.</p><p>Proof. Note that without loss of generality we can consider only cycles of even lengths, having alternating positive and negative arcs. Then the proof is straightforward, by induction on the length of a cycle.</p><p>A node q is called a negative generator, iff there exists a simple negative path θ from q to q (a simple negative cycle), such that Supp(θ) = −Eff (θ).</p><p>Lemma 2. Any simple negative cycle contains at least one generator.</p><p>Proof. Similar to the previous lemma.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Decidability of soundness for marked nets</head><p>Let (N, i|r 0 ) be an initially marked 1-dim RWF-net. By abuse of notation we denote by N also the control automaton of N , represented as a one-counter net. Recall that i ∈ C(N ) denotes the initial control state, r 0 ∈ Nat denotes the initial value of a counter (the single resource place), and R(N, (i|r 0 )) denotes the set of all reachable states.</p><p>Note that a marked RWF-net (N, i|r 0 ) with a sound control subnet is not sound if and only if it does not always terminate with a final control state o for some larger initial resource r 0 + s: ∃(c|r) ∈ R(N, i|r 0 + s) such that (o|s ) ∈ R(N, c|r) for any s ∈ Nat.</p><p>So we consider both two kinds of possible undesirable (not properly terminating) behaviours of a Petri net, namely, deadlocks and livelocks. A livelock state is a state that belongs to some livelock.</p><p>Note that by definition (o|r) ∈ L for any r;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. Bashkin et al.: of WF Nets with an Unbounded Resource</head></div>			</div>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">The Application of Petri Nets to Workflow Management</title>
		<author>
			<persName><forename type="first">W</forename><forename type="middle">M P</forename><surname>Van Der Aalst</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">The Journal of Circuits, Systems and Computers</title>
		<imprint>
			<biblScope unit="volume">8</biblScope>
			<biblScope unit="issue">1</biblScope>
			<biblScope unit="page" from="21" to="66" />
			<date type="published" when="1998">1998</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<monogr>
		<title level="m" type="main">Workflow Management: Models, Methods and Systems</title>
		<author>
			<persName><forename type="first">W</forename><forename type="middle">M P</forename><surname>Van Der Aalst</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><forename type="middle">M</forename><surname>Van Hee</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2002">2002</date>
			<publisher>MIT Press</publisher>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">Soundness of workflow nets: classification, decidability, and analysis</title>
		<author>
			<persName><forename type="first">W</forename><forename type="middle">M P</forename><surname>Van Der Aalst</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><forename type="middle">M</forename><surname>Van Hee</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><forename type="middle">H M</forename><surname>Hofstede</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Sidorova</surname></persName>
		</author>
		<author>
			<persName><forename type="first">H</forename><forename type="middle">M W</forename><surname>Verbeek</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Voorhoeve</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><forename type="middle">T</forename><surname>Wynn</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Formal Aspects of Computing</title>
		<imprint>
			<biblScope unit="volume">23</biblScope>
			<biblScope unit="issue">3</biblScope>
			<biblScope unit="page" from="333" to="363" />
			<date type="published" when="2011">2011</date>
			<publisher>Springer</publisher>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<analytic>
		<title level="a" type="main">Simulation is decidable for one-counter nets</title>
		<author>
			<persName><forename type="first">P</forename><forename type="middle">A</forename><surname>Abdulla</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Čerans</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proc. CONCUR&apos;98</title>
		<title level="s">Lecture Notes in Computer Science</title>
		<meeting>CONCUR&apos;98</meeting>
		<imprint>
			<publisher>Springer</publisher>
			<date type="published" when="1998">1998</date>
			<biblScope unit="volume">1466</biblScope>
			<biblScope unit="page" from="253" to="268" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Structural Analysis of Workflow Nets with Shared Resources</title>
		<author>
			<persName><forename type="first">K</forename><surname>Barkaoui</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Petrucci</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proc. Workflow Management: Net-based Concepts, Models, Techniques and Tools (WFM98)</title>
		<title level="s">of Computing Science Reports</title>
		<meeting>Workflow Management: Net-based Concepts, Models, Techniques and Tools (WFM98)</meeting>
		<imprint>
			<date type="published" when="1998">1998</date>
			<biblScope unit="volume">98</biblScope>
			<biblScope unit="page" from="82" to="95" />
		</imprint>
		<respStmt>
			<orgName>Eidhoven University of Technology</orgName>
		</respStmt>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<analytic>
		<title level="a" type="main">Workflow Soundness Verification based on Structure Theory of Petri Nets</title>
		<author>
			<persName><forename type="first">K</forename><surname>Barkaoui</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Ben Ayed</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Z</forename><surname>Sbaï</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">International Journal of Computing and Information Sciences</title>
		<imprint>
			<biblScope unit="volume">5</biblScope>
			<biblScope unit="issue">1</biblScope>
			<biblScope unit="page" from="51" to="61" />
			<date type="published" when="2007">2007</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b6">
	<analytic>
		<title level="a" type="main">Petri Nets and resource bisimulation</title>
		<author>
			<persName><forename type="first">V</forename><forename type="middle">A</forename><surname>Bashkin</surname></persName>
		</author>
		<author>
			<persName><forename type="first">I</forename><forename type="middle">A</forename><surname>Lomazova</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Fundamenta Informaticae</title>
		<imprint>
			<biblScope unit="volume">55</biblScope>
			<biblScope unit="issue">2</biblScope>
			<biblScope unit="page" from="101" to="114" />
			<date type="published" when="2003">2003</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<analytic>
		<title level="a" type="main">Resource equivalence in workflow nets</title>
		<author>
			<persName><forename type="first">V</forename><forename type="middle">A</forename><surname>Bashkin</surname></persName>
		</author>
		<author>
			<persName><forename type="first">I</forename><forename type="middle">A</forename><surname>Lomazova</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proc. Concurrency, Specification and Programming</title>
				<meeting>Concurrency, Specification and Programming<address><addrLine>Berlin, Humboldt</addrLine></address></meeting>
		<imprint>
			<date type="published" when="2006">2006. 2006</date>
			<biblScope unit="volume">1</biblScope>
			<biblScope unit="page" from="80" to="91" />
		</imprint>
		<respStmt>
			<orgName>Universitat zu Berlin</orgName>
		</respStmt>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<analytic>
		<title level="a" type="main">Generalized Soundness of Workflow Nets is Decidable</title>
		<author>
			<persName><forename type="first">K</forename><surname>Van Hee</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Sidorova</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Voorhoeve</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proc. ICATPN 2004</title>
		<title level="s">Lecture Notes in Computer Science</title>
		<meeting>ICATPN 2004</meeting>
		<imprint>
			<publisher>Springer</publisher>
			<date type="published" when="2004">2004</date>
			<biblScope unit="volume">3099</biblScope>
			<biblScope unit="page" from="197" to="216" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b9">
	<analytic>
		<title level="a" type="main">Soundness of Resource-Constrained Workflow Nets</title>
		<author>
			<persName><forename type="first">K</forename><surname>Van Hee</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Serebrenik</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Sidorova</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Voorhoeve</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">PNSE&apos;13 -Petri Nets and Software Engineering</title>
		<title level="s">Lecture Notes in Computer Science</title>
		<imprint>
			<publisher>Springer</publisher>
			<date type="published" when="2005">2005</date>
			<biblScope unit="volume">3536</biblScope>
			<biblScope unit="page" from="250" to="267" />
		</imprint>
	</monogr>
	<note>Proc. ICATPN 2005</note>
</biblStruct>

<biblStruct xml:id="b10">
	<analytic>
		<title level="a" type="main">Checking Properties of Adaptive Workflow Nets</title>
		<author>
			<persName><forename type="first">K</forename><surname>Van Hee</surname></persName>
		</author>
		<author>
			<persName><forename type="first">O</forename><surname>Oanea</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Serebrenik</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Sidorova</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Voorhoeve</surname></persName>
		</author>
		<author>
			<persName><forename type="first">I</forename><forename type="middle">A</forename><surname>Lomazova</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Fundamenta Informaticae</title>
		<imprint>
			<biblScope unit="volume">79</biblScope>
			<biblScope unit="issue">3</biblScope>
			<biblScope unit="page" from="347" to="362" />
			<date type="published" when="2007">2007</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b11">
	<analytic>
		<title level="a" type="main">On the reachability problem for 5-dimensional vector addition systems</title>
		<author>
			<persName><forename type="first">J</forename><surname>Hopcroft</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J.-J</forename><surname>Pansiot</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Theoretical Computer Science</title>
		<imprint>
			<biblScope unit="volume">8</biblScope>
			<biblScope unit="issue">2</biblScope>
			<biblScope unit="page" from="135" to="159" />
			<date type="published" when="1979">1979</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b12">
	<monogr>
		<title level="m" type="main">Soundness for Resource-Contrained Workflow Nets is Decidable</title>
		<author>
			<persName><forename type="first">N</forename><surname>Sidorova</surname></persName>
		</author>
		<author>
			<persName><forename type="first">C</forename><surname>Stahl</surname></persName>
		</author>
		<idno>BPM-12-09</idno>
		<ptr target="org" />
		<imprint>
			<date type="published" when="2012">2012</date>
			<publisher>BPMcenter</publisher>
		</imprint>
	</monogr>
	<note type="report_type">BPM Center Report</note>
</biblStruct>

<biblStruct xml:id="b13">
	<analytic>
		<title level="a" type="main">Structural soundness of workflow nets is decidable</title>
		<author>
			<persName><forename type="first">F</forename><forename type="middle">L</forename><surname>Tiplea</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><forename type="middle">C</forename><surname>Marinescu</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Information Processing Letters</title>
		<imprint>
			<biblScope unit="volume">96</biblScope>
			<biblScope unit="page" from="54" to="58" />
			<date type="published" when="2005">2005</date>
			<publisher>Elsevier</publisher>
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
