Soundness of reset workflow nets Michael Blondin, Alain Finkel, Piotr Hofman, Filip Mazowiecki, Philip Offtermatt Abstract . Workflow nets are a well-established variant of Petri nets for the modeling of process activities such as business processes. The standard correctness notion of workflow nets is soundness, which comes in several variants. Their decidability was shown decades ago, but their complexity was only identified recently. In this work, we are primarily interested in two popular variants: 1 1 -soundness and generalised soundness. Workflow nets have been extended with resets to model workflows that can, e.g., cancel actions. It has been known for a while that, for this extension, all variants of soundness, except possibly generalised soundness, are undecidable. We complete the picture by showing that generalised soundness is also undecidable for reset workflow nets. We then blur this undecidability landscape by identifying a property, coined “ 1 1 -in-between soundness”, which lies between 1 1 -soundness and generalised soundness. It reveals an unusual non-monotonic complexity behaviour: a decidable soundness property is in between two undecidable ones. This can be valuable in the algorithmic analysis of reset workflow nets, as our procedure yields an output of the form “ 1 1 -sound” or “not generalised sound” which is always correct. Conference: 39th Annual ACM/IEEE Symposium on Logic in Computer Science; July 8–11, 2024; Tallinn, Estonia 39th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS ’24), July 8–11, 2024, Tallinn, Estonia DOI: 10.1145/3661814.3662086 ISBN: 979-8-4007-0660-8/24/07 CCS: Theory of computation Automata over infinite objects CCS: Theory of computation Computational complexity and cryptography 1. Introduction Workflow nets are a well-established formalism for the modeling of process activities such as business processes ( van der Aalst, 1997 ) . For example, they can be used as the formal representation of workflow procedures in business process management systems (see e.g. ( van der Aalst, 1998 , Section 4) and ( van der Aalst, 1997 , Section 3) for details on modeling procedures). Workflow nets enable the algorithmic formal analysis of their behaviour. This is relevant, e.g., for organizations that seek to manage complex business processes. For example, according to a survey ( van der Aalst et al., 2011 ) , over 20% instances from the SAP reference model have been detected to be flawed (due to deadlocks, livelocks, etc.) A workflow net \mathcal{W} is essentially a Petri net — a prominent model of concurrency — that satisfies extra properties. In particular, \mathcal{W} has two designated places i and f respectively called initial and final . Initially, \mathcal{W} starts with k tokens in place i that can evolve according to the transitions of \mathcal{W} , which can consume and create tokens. Informally, a token that reaches f indicates that some activity has been completed. 1.1. Soundness The standard correctness notion of workflow nets is soundness. Various definitions have been considered in the literature. Most prominently, k -soundness requires that, starting from k tokens in the initial place, no matter what transitions are taken, it is always possible to complete properly, i.e. to end up with k tokens in the final place, and no token elsewhere. Generalised soundness requires a net to be k -sound for all k>0 , while structural soundness requires k -soundness for some k>0 . Classical soundness requires 1 -soundness and each transition to be fireable in at least one execution. The decidability of soundness was established some two decades ago ( van der Aalst, 1997 ; van Hee et al., 2004 ; Ţiplea and Marinescu, 2005 ; van Hee et al., 2006 ) (see ( van der Aalst et al., 2011 ) for a survey). The underlying algorithms relied on Petri net reachability, which was recently shown to be non-primitive recursive ( Leroux and Schmitz, 2019a ; Leroux, 2021 ; Czerwinski and Orlikowski, 2021 ) . Until recently, no better bound was known. At LICS’22 ( Blondin et al., 2022 ) , the computational complexity of all variants of soundness was established: generalised soundness is PSPACE-complete, while the other variants are EXPSPACE-complete. One shortcoming of workflow nets is that they lack useful features like cancellation. As mentioned in ( van der Aalst et al., 2008 ) , “[m]any practical languages have a cancelation feature, e.g., Staffware has a withdraw construct, YAWL has a cancelation region, BPMN has cancel, compensate, and error events, etc.” Thus, workflow nets have been extended with resets that instantly remove all tokens from a region of the net upon taking a transition (e.g. see ( van der Aalst et al., 2009 ) ). Around fifteen years ago, it was shown that, for reset workflow nets, [… of] the many soundness notions described in [the] literature only generalised soundness may be decidable (this is still an open problem). All other notions are shown to be undecidable. ( van der Aalst et al., 2008 ) So, while all studied variants such as 1 -soundness, k -soundness, structural soundness and classical soundness are undecidable for reset workflow nets, the decidability of generalised soundness has remained open. The recent results of ( Blondin et al., 2022 ) shows that in the absence of resets, generalised soundness is computationally easier than other soundness variants. This was an indication that generalised soundness could remain decidable in the presence of resets. 1.2. Our contribution In this work, we first show that such a conjecture is false: generalised soundness for reset workflow nets is undecidable. The undecidability of the various types of soundness in reset workflow nets indicates the necessity for a new approach. Consequently, we embarked on the journey of exploring potential methods for “approximating” soundness. We propose a precise definition of an acceptable approximation. More precisely, we say that a property \mathcal{P} of reset workflow nets is a 1 -in-between soundness property if it meets the following criteria: all generalised sound reset workflow nets satisfy \mathcal{P} , and every reset workflow net satisfying \mathcal{P} is 1 -sound. Remarkably, we have discovered such a property, denoted as \mathcal{P}_{1} , which is decidable. Thus, we have \text{Generalised sound nets}\subseteq\mathcal{P}_{1}\text{ nets}\subseteq\text{$1$-sound nets}, where generalised soundness and 1 -soundness are undecidable, but \mathcal{P}_{1} is decidable. This reveals a non-monotonic complexity behaviour. By this, we mean three properties A , B and C such that A~\text{(hard)}\subseteq B~\text{(easy)}\subseteq C~\text{(hard)}. This phenomenon can be regarded as unnatural and is rarely actively exploited. We present two other such examples. First, consider the setting where we are given two graphs, each with a designated initial node and with directed edges labelled from a common finite alphabet (so, finite automata whose states are all accepting). These inclusions hold: \text{Isomorphism}\subseteq\text{Bisimilarity}\subseteq\text{Trace(-language) equivalence}, The first property is known to be checkable in quasi-polynomial time (a survey on current advances can be found in ( Grohe and Schweitzer, 2020 ) ), the second is checkable in polynomial time ( Paige and Tarjan, 1987 ) , and the third one is well known to be PSPACE-complete. Now, consider the setting where we are given two one-counter nets (OCN), where an OCN is an automaton with a single counter over the naturals that can be incremented and decremented (but not zero-tested). These inclusions hold: \displaystyle\text{Weak bisimulation~\cite[citep]{(\@@bibref{AuthorsPhrase1Year}{DBLP:conf/icalp/Mayr03}{\@@citephrase{, }}{})}}\subseteq{} \displaystyle\text{Weak simulation in both directions~\cite[citep]{(\@@bibref{AuthorsPhrase1Year}{DBLP:journals/corr/HofmanLMT16}{\@@citephrase{, }}{})}}\subseteq{} \displaystyle\text{Language equivalence~\cite[citep]{(\@@bibref{AuthorsPhrase1Year}{DBLP:phd/ethos/Valiant73}{\@@citephrase{, }}{})}}, The first and the last properties are undecidable, while the middle one is PSPACE-complete. Our property \mathcal{P}_{1} can be valuable in the analysis of reset workflow nets. For example, we provide an algorithm that, on any reset workflow net which is not 1 -sound, classifies it as not generalised sound, and on any generalised sound reset workflow net, guarantees at least 1 -soundness. For reset workflow nets that are 1 -sound but not generalised sound, the algorithm provides the correct description of either not being generalised sound or being 1 -sound. It is worth noting that all these answers accurately characterize the given reset workflow net. However, the computational complexity of verifying \mathcal{P}_{1} is non-primitive recursive in the worst case, which hinders immediate applications. Nevertheless, we cannot rule out the existence of similar predicates with better computational complexity, or of implementations performing faster on real-world instances. This area requires further investigation. The definition of \mathcal{P}_{1} is exceedingly technical, making it challenging to convey basic intuitions concisely. We actually define a decidable family of properties \{\mathcal{P}_{k}\}_{k>0} . In our final result, we prove a connection with another notion of soundness found in the literature, namely up-to- k soundness ( van der Toorn, 2004 ) . Specifically, we demonstrate that for every reset workflow net \mathcal{W} , there is a computable but substantially large value K such that, for every k>K , \mathcal{W} is up-to- k sound if and only if it satisfies the property \mathcal{P}_{k} . 1.3. Further related work A significant portion of the work that relates to reset workflow nets consists of results on reset Petri nets, in particular, on • The theory of well-structured transition systems and results for the general class of reset Petri nets ( Finkel et al., 2004 ; Dufourd et al., 1998 ) ; • Results on restricted subclasses, such as those with a limited number of places that can be reset ( Finkel et al., 2018 ) , acyclic reset Petri nets and workflow nets ( Chistikov et al., 2023 ) , or Petri nets with hierarchical reset arcs ( Akshay et al., 2017 ) ; • More practically oriented results on relaxations of the reachability relation like the integer relaxation ( Haase and Halfon, 2014 ) . An important branch of soundness-related research includes work on reduction rules that preserve (un)soundness while reducing the size and structure of the workflow net. Rules specific to reset workflow nets are explored in ( Wynn et al., 2009b ; Wynn et al., 2009a ) . Another line of research lies in the field of process discovery, e.g. the discovery of cancellation regions within process mining techniques ( Kalenkova and Lomazova, 2014 ) . 1.4. Paper organization The paper is organized as follows. In Section 2 , we introduce preliminary definitions such as Petri nets, workflow nets and notions of soundness. In Section 3 , we establish the undecidability of generalised soundness for reset workflow nets. Section 4 shows the existence of the k -in-between soundness property \mathcal{P}_{k} , and relates it with another notion of soundness. In particular, Section 4.1 introduces the intermediate notion of “nonredundancy”, and Section 4.2 introduces the intermediate notion of “skeleton” workflow nets. 2. Preliminaries Let \mathbb{N}\coloneqq\{0,1,\ldots\} and \mathbb{N}_{>0}\coloneqq\mathbb{N}\setminus\{0\} . For every a,b\in\mathbb{N} such that a\leq b , we define [a..b]\coloneqq\{a,a+1,\ldots,b\} . Given a set X , we denote its cardinality by |X| . Let \bm{m},\bm{m}^{\prime}\colon P\to\mathbb{N} where P is a finite set. We see \bm{m} and \bm{m}^{\prime} as both unordered vectors and multisets. For example, we have \bm{m}=\bm{0} if \bm{m}(p)=0 for every p\in P , and we have \bm{m}^{\prime}=\{p\colon 1,q\colon 3\} if \bm{m}^{\prime}(p)=1 , \bm{m}^{\prime}(q)=3 and \bm{m}^{\prime}(r)=0 for every r\in P\setminus\{p,q\} . We write \bm{m}\leq\bm{m}^{\prime} iff \bm{m}(p)\leq\bm{m}^{\prime}(p) for every p\in P . We write \bm{m}<\bm{m}^{\prime} if \bm{m}\leq\bm{m}^{\prime} and \bm{m}\neq\bm{m}^{\prime} . We define \bm{m}+\bm{m}^{\prime} as the mapping satisfying (\bm{m}+\bm{m}^{\prime})(p)=\bm{m}(p)+\bm{m}^{\prime}(p) for every p\in P . The mapping \bm{m}-\bm{m}^{\prime} is defined similarly, provided that \bm{m}\geq\bm{m}^{\prime} . For every Q\subseteq P , we define \bm{m}(Q)\coloneqq\sum_{q\in Q}\bm{m}(q) . 2.1. Ackermannian complexity In the upcoming sections, we prove theorems about the existence of some numbers bounded by functions on the size of the input. To do this rigorously, we should refer to these individual bounds and precisely track dependencies between them. However, some of the bounds we use are based on the Ackermann function (which is non-primitive recursive), and tracking them precisely is tedious. Moreover, keeping all the constants in mind would be troublesome for the reader. That is why we choose to simply state that some number is of “Ackermannian size” or”Ackermannianly bounded”. In our reasoning, we use the following rules: • The maximum, sum and product of Ackermannianly bounded constants yields Ackermannianly bounded constants; • The application of a function within the Ackermannian class of functions to a bound of Ackermannian size yields an Ackermannianly bounded constant. Since we will make a constant number of such manipulations, the Ackermannian bounds will be preserved. For an introduction to high computational complexity classes (from the fast-growing hierarchy), we refer the reader to ( Löb and Wainer, 1970 ; Schmitz, 2016 ) . 2.2. Petri nets A reset Petri net \mathcal{N} is a tuple (P,T,F,R) where • P is a finite set of elements called places , • T is a finite set, disjoint from P , of elements called transitions , • F\subseteq(P\times T)\cup(T\times P) is a set of elements called arcs , • R\subseteq(P\times T) is a set of elements called reset arcs . A (standard) Petri net is a reset Petri net with no reset arc ( R=\emptyset ). Example 2.1. Figure 1 depicts a reset Petri net \mathcal{N}=(P,T,F,R) where P=\{p_{1},p_{2},p_{3},p_{4}\} (circles), T=\{t_{1},t_{2},t_{3}\} (boxes), each arc (u,v)\in F is depicted by a directed edge, and the only reset arc is depicted by a dotted directed edge. ∎ Given a transition t\in T , we define {{}^{\bullet}}{t}\coloneqq\{p\in P:(p,t)\in F\} and {{t}^{\bullet}}\coloneqq\{p\in P:(t,p)\in F\} . Both of these sets will often be interpreted implicitly as mappings from P to \{0,1\} . For example, we can write either “ p\in{{t}^{\bullet}} ” or “ {{t}^{\bullet}}(p)=1 ”. In Figure 1 , we have, e.g., {{}^{\bullet}}{t_{1}}=\{p_{1}\} , {{t_{1}}^{\bullet}}=\{p_{2},p_{3}\} and {{}^{\bullet}}{t_{3}}=\{p_{2}\} . Given a place p\in P , we define {{}^{\bullet}}{p}\coloneqq\{t\in T:(t,p)\in F\} and {{p}^{\bullet}}\coloneqq\{t\in T:(p,t)\in F\} . p_{1} t_{1} p_{2} t_{2} p_{3} t_{3} p_{4} Figure 1. Example of a reset Petri net where circles are places, boxes are transitions, solid edges are arcs, and dotted edges are reset arcs. The small filled circle depicts a token. A marking is a mapping \bm{m}\colon P\to\mathbb{N} that indicates the number of tokens in each place. Given a marking \bm{m} and a transition t , we let Reset_{t}(\bm{m}) denote the marking obtained from \bm{m} by emptying all places that are reset by t . Formally, Reset_{t}(\bm{m})\coloneqq 0 if (p,t)\in R , and \bm{m}(p) otherwise. We say that a transition t\in T is enabled in marking \bm{m} if \bm{m}\geq{{}^{\bullet}}{t} , i.e. if each place of {{}^{\bullet}}{t} contains at least one token. If t is enabled in \bm{m} , then it can be fired . In words, upon firing t , a token is consumed from each place of {{}^{\bullet}}{t} ; then, all places of \{p:(p,t)\in R\} are emptied; and, finally, a token is produced in each place of {{t}^{\bullet}} . More formally, firing t leads to the marking \bm{m}^{\prime} defined as follows, for every p\in P : \bm{m}^{\prime}(p)=\begin{cases}\bm{m}(p)-{{}^{\bullet}}{t}(p)+{{t}^{\bullet}}(p)&\text{if }(p,t)\notin R,\\ {{t}^{\bullet}}(p)&\text{otherwise}.\end{cases} Equivalently, and more succinctly, \bm{m}^{\prime}=Reset_{t}(\bm{m}-{{}^{\bullet}}{t})+{{t}^{\bullet}} . We write \bm{m}\xrightarrow{}^{t}\bm{m}^{\prime} whenever t is enabled in \bm{m} and firing t from \bm{m} leads to \bm{m}^{\prime} . We write \bm{m}\xrightarrow{}\bm{m}^{\prime} if \bm{m}\xrightarrow{}^{t}\bm{m}^{\prime} holds for some t\in T . We write {\xrightarrow{}^{*}} to denote the reflexive-transitive closure of {\xrightarrow{}} . Given a subset X of markings, we write \bm{m}\xrightarrow{}^{*}X to denote that there exists \bm{m}^{\prime}\in X such that \bm{m}\xrightarrow{}^{*}\bm{m}^{\prime} . Given a sequence of transitions \pi=t_{1}t_{2}\cdots t_{n} and a transition s , we define |\pi|\coloneqq n and |\pi|_{s}=|\{i\in[1..n]:t_{i}=s\}| . Example 2.2. Reconsider the reset Petri net of Figure 1 . For the sake of brevity, let us write a marking \{p_{1}\colon a,p_{2}\colon b,p_{3}\colon c,p_{4}\colon d\} as (a,b,c,d) . From marking (1,0,0,0) , we can only fire t_{1} . Firing t_{1} leads to (0,1,1,0) . From the latter, we can fire either t_{2} or t_{3} . Firing t_{2} leads to (1,0,1,0) . From there, we can only fire t_{1} , which leads to (0,1,2,0) . From the latter, we can fire either t_{2} or t_{3} . Firing t_{3} leads to (0,0,0,1) , from which no transition is enabled. The described sequence can be written as (1,0,0,0)\xrightarrow{}^{t_{1}}(0,1,1,0)\xrightarrow{}^{t_{2}}(1,0,1,0)\\ \xrightarrow{}^{t_{1}}(0,1,2,0)\xrightarrow{}^{t_{3}}(0,0,0,1). Thus, we have (1,0,0,0)\xrightarrow{}^{t_{1}\,t_{2}\,t_{1}\,t_{3}}(0,0,0,1) , or more succinctly (1,0,0,0)\xrightarrow{}^{*}(0,0,0,1) . ∎ 2.3. Upward and downward closed sets The set of markings \mathbb{N}^{P} is partially ordered by {\leq} . The latter is a well-quasi-order, which means that it neither contains infinite antichains nor infinite (strictly) decreasing sequences. A set of markings X\subseteq\mathbb{N}^{P} is upward closed if for every \bm{m}\in X and every other marking \bm{m}^{\prime}\in\mathbb{N}^{P} , it is the case that \bm{m}\leq\bm{m}^{\prime} implies \bm{m}^{\prime}\in X . The upward closure of Y\subseteq\mathbb{N}^{P} is defined as the smallest upward closed set, denoted {\uparrow\!Y} , such that Y\subseteq{\uparrow\!Y} . Similarly, a subset X\subseteq\mathbb{N}^{P} is downward closed if for every \bm{m}\in X and every other marking \bm{m}^{\prime}\in\mathbb{N}^{P} , we have \bm{m}^{\prime}\leq\bm{m}\implies\bm{m}^{\prime}\in X . The downward closure of Y\subseteq\mathbb{N}^{P} , denoted {\downarrow\!Y} , is the smallest downward closed set such that Y\subseteq{\downarrow\!Y} . We extend upward and downward closures to individual markings, i.e. {\uparrow\!\bm{m}}\coloneqq{\uparrow\!\{\bm{m}\}} and {\downarrow\!\bm{m}}\coloneqq{\downarrow\!\{\bm{m}\}} . It is worth noting that every upward closed set is characterized by the set of its minimal elements. Since such a set is an antichain, it must be finite, resulting in a finite representation for each upward closed set. Similarly, every downward closed set can be finitely represented by a finite representation of its complement, which is an upward closed set. Given a reset Petri net \mathcal{N} , we say that from a marking \bm{m} , it is possible to cover a marking \bm{m}^{\prime} if there exists a marking \bm{m}^{\prime\prime}\geq\bm{m}^{\prime} such that \bm{m}\xrightarrow{}^{*}\bm{m}^{\prime\prime} holds in \mathcal{N} . Let C_{\bm{m}^{\prime}} be the set of all markings \bm{m} from which it is possible to cover a marking \bm{m}^{\prime} . Observe that C_{\bm{m}^{\prime}} is upward closed. An important result is that, for any given marking \bm{m}^{\prime} , it is possible to compute the minimal elements of the set C_{\bm{m}^{\prime}} . This computation can be achieved using the so-called “backward coverability algorithm” ( Finkel and Schnoebelen, 2001 ) . Additionally, it is crucial to note the following lemma. Lemma 2.3 ( ( Figueira et al., 2011 ) ). If it is possible to cover \bm{m}^{\prime} from \bm{m} , then it can be done with a run whose length is Ackermannianly bounded in the size of the Petri net and \bm{m}^{\prime} . Throughout the paper we will often use Lemma 2.3 without referring to it. We will even use a stronger property that the set of minimal elements of C_{\bm{m}^{\prime}} can be computed in Ackermannian time. This follows from ( Lazić and Schmitz, 2021 ) , where it is proved that the backward coverability algorithm works in Ackermannian time. 2.4. Workflow nets and soundness A reset workflow net is a tuple (P,T,F,R,i,f) where • \mathcal{N}=(P,T,F,R) is a reset Petri net, • i\in P is a place called initial that satisfies {{}^{\bullet}}{i}=\emptyset , • f\in P is a place called final that satisfies {{f}^{\bullet}}=\emptyset , and (f,t)\notin R for all t\in T (no transition resets f ), • each element of P\cup T is on some path from i to f in the underlying graph of \mathcal{N} without considering reset arcs, i.e. in the graph G\coloneqq(V,E) with vertices V\coloneqq P\cup T and directed edges E\coloneqq\{(u,v)\in V\times V:(u,v)\in F\} . A (standard) workflow net is a reset workflow net with no reset arc, i.e. with R=\emptyset . For example, Figure 2 depicts a reset workflow net. Given k\in\mathbb{N}_{>0} , we say that a reset workflow net \mathcal{W} is k -sound if for every marking \bm{m} such that \{i\colon k\}\xrightarrow{}^{*}\bm{m} , it is the case that \bm{m}\xrightarrow{}^{*}\{f\colon k\} . In other words, \mathcal{W} is k -sound if, from k tokens in the initial place, no matter what is fired, it is always possible to end up with k tokens in the final place (and no token elsewhere). We say that a reset workflow net \mathcal{W} is generalised sound if it is k -sound for all k\in\mathbb{N}_{>0} . A marking \bm{m} is a witness of k -unsoundness if \{i\colon k\}\xrightarrow{}^{*}\bm{m} and \bm{m}\not\xrightarrow{}^{*}\{f\colon k\} . A marking \bm{m} is a witness of unsoundness if it is a witness of k -unsoundness for some k\in\mathbb{N}_{>0} . Example 2.4. Reconsider the reset Petri net of Figure 1 . Taking i\coloneqq p_{1} and f\coloneqq p_{4} does not yield a reset workflow net for the two following reasons: • we have: {{}^{\bullet}}{p_{1}}=\{t_{2}\}\neq\emptyset , and • there is no path from p_{3} to p_{4} (along solid edges). Figure 2 depicts a reset workflow net \mathcal{W} . The set of markings reachable from \{i\colon 1\} in \mathcal{W} is depicted in Figure 3 . It is readily seen that any reachable marking \bm{m} can reach \{f\colon 1\} . Thus, \mathcal{W} is 1 -sound. However, \mathcal{W} is not 2 -sound and hence not generalised sound. Indeed, we have \{i\colon 2\}\xrightarrow{}^{ss}\{p_{1}\colon 2,p_{2}\colon 2\}\xrightarrow{}^{t_{2}}{}\\ \{p_{1}\colon 2,p_{2}\colon 1,q_{2}\colon 1,q_{3}\colon 1\}\xrightarrow{}^{u_{2}}\{f\colon 1\}. As \{f\colon 1\} cannot reach any other marking, it cannot reach \{f\colon 2\} as required. So, \{f\colon 1\} is a witness of 2 -unsoundness, and hence of unsoundness. ∎ i s p_{1} p_{2} t_{1} t_{2} q_{1} q_{2} q_{3} u_{1} u_{2} f Figure 2. Example of a reset workflow net. Reset arcs are depicted implicitly by colored patterns, rather than explicitly by dotted directed edges. In words, transition u_{1} resets place q_{2} , and transition u_{2} resets all places from \{p_{1},p_{2},q_{1},q_{2},q_{3}\} . Formally, R=\{(q_{2},u_{1})\}\cup\{(r,u_{2}):r\in\{p_{1},p_{2},q_{1},q_{2},q_{3}\}\} . The two filled circles within place i represent two tokens. \{i\colon 1\} \{p_{1}\colon 1,p_{2}\colon 1\} \{q_{1}\colon 1,p_{2}\colon 1\} \{p_{1}\colon 1,q_{2}\colon 1,q_{3}\colon 1\} \{q_{1}\colon 1,q_{2}\colon 1,q_{3}\colon 1\} \{f\colon 1\} s t_{1} t_{2} t_{2} t_{1} u_{1},u_{2} u_{2} Figure 3. The set of markings reachable from \{i\colon 1\} in the reset workflow net of Figure 2 . Each edge \bm{m}\xrightarrow{}^{t}\bm{m}^{\prime} indicates that firing transition t in marking \bm{m} leads to marking \bm{m}^{\prime} . 2.5. Subnets Let \mathcal{W}=(P,T,F,R,i,f) be a reset workflow net, let Q\subseteq P and let S\subseteq T . The reset Petri net obtained from \mathcal{W} by removing places Q and transitions S is the reset Petri net (P,T,F,R) from which we remove Q , S and any remaining isolated node (i.e. with no incoming and outgoing arc.) More formally, it is the reset Petri net \mathcal{N}\coloneqq(P^{\prime},T^{\prime},F^{\prime},R^{\prime}) where \displaystyle P^{\prime} \displaystyle\coloneqq\{p\in P\setminus Q:({{}^{\bullet}}{p}\cup{{p}^{\bullet}})\not\subseteq S\} \displaystyle T^{\prime} \displaystyle\coloneqq\{t\in T\setminus S:({{}^{\bullet}}{t}\cup{{t}^{\bullet}})\not\subseteq Q\}, \displaystyle F^{\prime} \displaystyle\coloneqq\{(p,t)\in F:p\in P^{\prime},t\in T^{\prime}\}\cup\{(t,p)\in F:p\in P^{\prime},t\in T^{\prime}\}, \displaystyle R^{\prime} \displaystyle\coloneqq\{(p,t)\in R:p\in P^{\prime},t\in T^{\prime}\}. By definition, \mathcal{N} has no isolated node, i.e. with no incoming or outgoing arc. This holds even if we only remove places ( S=\emptyset ) or only remove transitions ( Q=\emptyset ). Indeed, since \mathcal{W} is a reset workflow net, each place p\in P and each transition t\in T has at least one incoming arc or one outgoing arc in \mathcal{W} . 3. Generalised soundness is undecidable In this section, we prove the following result. Theorem 3.1. The generalised soundness problem for reset workflow nets is undecidable. We will give a reduction from the reachability problem in Minksy machines. A (two-counter) Minsky machine is a finite automaton with two counters that can be incremented, decremented and zero-tested. More formally, it is a pair (Q,\Delta) where Q is a finite set of elements called control states , and where \Delta\subseteq Q\times\{\texttt{x}_{i}\texttt{\scriptsize++},\texttt{x}_{i}\texttt{\scriptsize-{}-},\texttt{x}_{i}\texttt{\,=\,0?}:i\in\{1,2\}\}\times Q is a set of elements called transitions . A configuration of such a machine is a triple (p,a,b)\in Q\times\mathbb{N}\times\mathbb{N} which we will write more concisely as p(\bm{v}) where \bm{v}=(a,b) . For the following definition, let \neg i denote 3-i , i.e. the index of the other counter. A transition (p,\mathtt{oper},q) allows to update a current configuration in control state p into a configuration in control state q with the expected semantic of \mathtt{oper} : \displaystyle q(\bm{v}) \displaystyle\xrightarrow{}^{\mathmakebox[40pt][l]{(q,\texttt{x}_{i}\texttt{\scriptsize++},q^{\prime})}}q^{\prime}(\bm{v}^{\prime})\ \displaystyle\text{ if }\bm{v}^{\prime}(i)=\bm{v}(i)+1 \displaystyle\text{ and }(*), \displaystyle q(\bm{v}) \displaystyle\xrightarrow{}^{\mathmakebox[40pt][l]{(q,\texttt{x}_{i}\texttt{\scriptsize-{}-},q^{\prime})}}q^{\prime}(\bm{v}^{\prime})\ \displaystyle\text{ if }\bm{v}^{\prime}(i)=\bm{v}(i)-1\geq 0 \displaystyle\text{ and }(*), \displaystyle q(\bm{v}) \displaystyle\xrightarrow{}^{\mathmakebox[40pt][l]{(q,\texttt{x}_{i}\texttt{\,=\,0?},q^{\prime})}}q^{\prime}(\bm{v}^{\prime})\ \displaystyle\text{ if }\bm{v}^{\prime}(i)=\bm{v}(i)=0 \displaystyle\text{ and }(*), where “ (*) ” stands for “ \bm{v}^{\prime}(\neg i)=\bm{v}(\neg i) ”. We write q(\bm{v})\xrightarrow{}q^{\prime}(\bm{v}^{\prime}) if q(\bm{v})\xrightarrow{}^{t}q^{\prime}(\bm{v}^{\prime}) for some t\in\Delta . We write \xrightarrow{}^{*} to denote the reflexive-transitive closure of \xrightarrow{} . The (control-state) reachability problem asks, given p,q\in Q , whether p(\bm{0})\xrightarrow{}^{*}q(\bm{0}) . It is well known that this problem is undecidable. Let q(\bm{v})\xrightarrow{}_{k}q^{\prime}(\bm{v}^{\prime}) denote the fact that q(\bm{v})\xrightarrow{}q^{\prime}(\bm{v}^{\prime}) and 0\leq\bm{v}(i),\bm{v}^{\prime}(i)\leq k for both i\in\{1,2\} . Let \xrightarrow{}^{*}_{k} denote the reflexive-transitive closure of \xrightarrow{}_{k} . In words, \xrightarrow{}^{*}_{k} is the reachability relation where counters remain within [0..k] . Clearly, p(\bm{u})\xrightarrow{}^{*}q(\bm{v}) holds iff there exists k\in\mathbb{N} such that p(\bm{u})\xrightarrow{}^{*}_{k}q(\bm{v}) holds. Proposition 3.2. Given a Minsky machine \mathcal{M}=(Q,\Delta) and control states q_{\text{src}},q_{\text{tgt}}\in Q , one can construct, in polynomial time, a reset Petri net \mathcal{N} with places P\coloneqq Q\cup\{x_{1},x_{2},\overline{x_{1}},\overline{x_{2}} } such that the following holds for every p,q\in Q and k\in\mathbb{N} : • p(\bm{0})\xrightarrow{}^{*}_{k}q(\bm{0}) holds in \mathcal{M} iff \{p\colon 1,\overline{x_{1}}\colon k,\overline{x_{2}}\colon k\}\xrightarrow{}^{*}\{q\colon 1,\allowbreak\overline{x_{1}}\colon k,\allowbreak\overline{x_{2}}\colon k\} holds in \mathcal{N} ; • \{p\colon 1,\overline{x_{1}}\colon k,\overline{x_{2}}\colon k\}\xrightarrow{}^{*}\bm{m} in \mathcal{N} implies \bm{m}(Q)=1 and \bm{m}(x_{i})+\bm{m}(\overline{x_{i}})\leq k for all i\in\{1,2\} ; • Each node of \mathcal{N} is on some path from q_{\text{src}} to q_{\text{tgt}} . Proof. We use classical notions: budget places and weak simulation of zero-tests. More precisely, each counter x_{i} of \mathcal{M} is represented by two places in \mathcal{N} : x_{i} and \overline{x_{i}} . Initially, x_{i} is empty and \overline{x_{i}} contains k tokens. Whenever x_{i} is incremented, \overline{x_{i}} is decremented, and vice versa. This forces x_{i} to remain within [0..k] . Each zero-test of \mathcal{M} is simulated by a reset of x_{i} . If a reset occurs whenver x_{i} is empty, then nothing happens. However, if \mathcal{N} “cheats” and resets x_{i} whenever it is non empty, then \{x_{i},\overline{x_{i}}\} now contains less than k tokens and it will never be possible to increase that number back. More formally, let us define \mathcal{N}=(P,T,F,R) . We set P\coloneqq Q\cup\{x_{1},x_{2},\overline{x_{1}},\overline{x_{2}} } and T\coloneqq\Delta . For each transition t=(p,\mathtt{oper},q)\in\Delta , we add the following arcs to \mathcal{N} . • Case \mathtt{oper}=\texttt{x}_{i}\texttt{\scriptsize++} . We move the token from p to q , increment x_{i} and decrement its dual: p t q \overline{x_{i}} x_{i} • Case \mathtt{oper}=\texttt{x}_{i}\texttt{\scriptsize-{}-} . We move the token from p to q , decrement x_{i} and increment its dual: p t q \overline{x_{i}} x_{i} • Case \mathtt{oper}=\texttt{x}_{i}\texttt{\,=\,0?} . We move the token from p to q , reset x_{i} and leave \overline{x_{i}} unchanged: p t q \overline{x_{i}} x_{i} It is readily seen that starting from marking \{q_{\text{src}}\colon 1,\allowbreak\overline{x_{1}}\colon k,\allowbreak\overline{x_{2}}\colon k\} there is always exactly one token in Q . Moreover, the two first types of transitions leave the number of tokens in \{x_{i},\overline{x_{i}}\} unchanged, while the third type of transitions may decreases the number of tokens in \{x_{i},\overline{x_{i}}\} . So, the second item of the proposition holds. Let us explain why the first item holds. \Rightarrow ) Assume p(\bm{0})\xrightarrow{}^{\pi}_{k}q(\bm{0}) holds in \mathcal{M} . We claim that \{p\colon 1,\overline{x_{1}}\colon k,\overline{x_{2}}\colon k\}\xrightarrow{}^{\pi}\{q\colon 1,\overline{x_{1}}\colon k,\overline{x_{2}}\colon k\}\text{ holds in }\mathcal{N}. Indeed, (i) resets only occur on empty places, which maintains the invariant that \{x_{i},\overline{x_{i}}\} contains exactly k tokens; (ii) no increment or decrement is ever blocked in \mathcal{N} since we know that counters never exceed k in \mathcal{M} . \Leftarrow ) Assume that \{p\colon 1,\overline{x_{1}}\colon k,\overline{x_{2}}\colon k\}\xrightarrow{}^{\pi}\{q\colon 1,\overline{x_{1}}\colon k,\overline{x_{2}}\colon k\}\text{ holds in }\mathcal{N}. As each \overline{x_{i}} starts and ends with k tokens, this means that each reset that occured in \pi did not consume any token. Thus, zero-tests were simulated faithfully. Consequently, p(\bm{0})\xrightarrow{}^{\pi}_{k}q(\bm{0}) holds in \mathcal{M} . It remains to prove the last item of the proposition, namely that each node of \mathcal{N} is on some path from q_{\text{src}} to q_{\text{tgt}} . We preprocess \mathcal{M} as follows: (1) each control state unreachable from q_{\text{src}} in the underlying graph is removed from \mathcal{M} ; (2) each control state that cannot reach q_{\text{tgt}} in the underlying graph is removed from \mathcal{M} ; (3) We add two new control states q_{\text{src}}^{\prime} and r to \mathcal{M} , and these transitions: q_{\text{src}}^{\prime} r q_{\text{src}} \texttt{x}_{1}\texttt{\scriptsize++} \texttt{x}_{1}\texttt{\scriptsize-{}-} \texttt{x}_{2}\texttt{\scriptsize++} \texttt{x}_{2}\texttt{\scriptsize-{}-} \texttt{x}_{1}\texttt{\,=\,0?} \texttt{x}_{2}\texttt{\,=\,0?} The resulting machine \mathcal{M}^{\prime} is clearly equivalent, i.e. q_{\text{src}}(\bm{0})\xrightarrow{}^{*}_{k}q_{\text{tgt}}(\bm{0}) holds in \mathcal{M} iff q_{\text{src}}^{\prime}(\bm{0})\xrightarrow{}^{*}_{k}q_{\text{tgt}}(\bm{0}) holds in \mathcal{M}^{\prime} . By the definition of the Petri net \mathcal{N}^{\prime} obtained from \mathcal{M}^{\prime} , each place of Q is on some path from q_{\text{src}}^{\prime} to q_{\text{tgt}} due to ( 1 ) and ( 2 ), and each place of \{x_{1},x_{2},\overline{x_{1}},\overline{x_{2}}\} as well since they can all reach q_{\text{src}} in this fragment of \mathcal{N}^{\prime} due to ( 3 ): q_{\text{src}}^{\prime} r q_{\text{src}} x_{2} \overline{x_{2}} x_{1} \overline{x_{1}} ∎ The following proposition establishes Theorem 3.1 . Proposition 3.3. Given a Minsky machine \mathcal{M}=(Q,\Delta) and control states q_{\text{src}},q_{\text{tgt}}\in Q , one can construct, in polynomial time, a reset workflow net \mathcal{W} such that \mathcal{W} is generalised sound iff q_{\text{src}}(\bm{0})\not\xrightarrow{}^{*}q_{\text{tgt}}(\bm{0}) holds in \mathcal{M} . Proof. We first sketch the reset workflow net \mathcal{W} , describe the construction, and show that it is indeed a reset workflow net. Let \mathcal{N} be the reset Petri net given by Proposition 3.2 from \mathcal{M} . The reset workflow net \mathcal{W} consists of \mathcal{N} together with the extra places \{i,r,f\} and transitions \{t_{1},t_{2},t_{3}\} . Figure 4 depicts \mathcal{W} where the solid red part corresponds to \mathcal{N} . Places i and f are respectively the initial and final places of \mathcal{W} . When either of t_{1} , t_{2} or t_{3} is fired, all places from the corresponding colored area is reset. By Proposition 3.2 , each node of \mathcal{W} is on some path from i to f . i t_{1} \overline{x_{1}} \overline{x_{2}} x_{1} x_{2} q_{\text{src}} q_{\text{tgt}} r t_{3} t_{2} f (all other places of \mathcal{N} in this area) \mathcal{N} Figure 4. The reset workflow net \mathcal{W} . The bidirectional arc between q_{\text{tgt}} and t_{3} represents two arcs: one in each direction. Each transition t_{i} resets the places within the part of the corresponding pattern and color. More precisely, t_{1} resets all places of \mathcal{N} except for \{\overline{x_{1}},\overline{x_{2}}\} ; t_{2} resets all places of \mathcal{N} ; and t_{3} resets \{x_{1},x_{2}\} . Let us now show that there exists k\in\mathbb{N} such that q_{\text{src}}(\bm{0})\xrightarrow{}^{*}_{k}q_{\text{tgt}}(\bm{0}) in \mathcal{M} iff \mathcal{W} is not generalised sound. \Rightarrow ) Let k\in\mathbb{N} be such that q_{\text{src}}(\bm{0})\xrightarrow{}^{*}_{k}q_{\text{tgt}}(\bm{0}) in \mathcal{M} . By Proposition 3.2 , we have \{q_{\text{src}}\colon 1,\overline{x_{1}}\colon k,\overline{x_{2}}\colon k\}\xrightarrow{}^{\pi}\{q_{\text{tgt}}\colon 1,\overline{x_{1}}\colon k,\overline{x_{2}}\colon k\}\text{ in }\mathcal{N}. Thus, the following holds in \mathcal{W} : \displaystyle\{i\colon k\} \displaystyle\xrightarrow{}^{t_{1}^{k}}\{q_{\text{src}}\colon 1,\overline{x_{1}}\colon k,\overline{x_{2}}\colon k,r\colon k\} \displaystyle\xrightarrow{}^{\pi}\{q_{\text{tgt}}\colon 1,\overline{x_{1}}\colon k,\overline{x_{2}}\colon k,r\colon k\} \displaystyle\xrightarrow{}^{t_{3}^{k}}\{q_{\text{tgt}}\colon 1,f\colon k\}. The latter marking witnesses k -unsoundness of \mathcal{W} . Indeed, by Proposition 3.2 , the subset Q of places of \mathcal{N} , that corresponds to the control states of \mathcal{M} , cannot be emptied. \Leftarrow ) Let \{i\colon k\}\xrightarrow{}^{\pi}\bm{m} witness k -unsoundness of \mathcal{W} , where k\in\mathbb{N}_{>0} . First, we show that \bm{m}(f)=k . Note that in any marking \bm{m}^{\prime} reachable from \{i\colon k\} , we have \bm{m}^{\prime}(i)+\bm{m}^{\prime}(r)+\bm{m}^{\prime}(f)=k . Thus, \bm{m}(f)\leq k . For the sake of contradiction, suppose that \bm{m}(f)0 . The following holds in \mathcal{W} : \bm{m}\xrightarrow{}^{t_{1}^{k_{i}}\ t_{2}^{k_{i}+k_{r}}}\{f\colon k\}. Indeed, as k_{i}+k_{r}>0 , transition t_{2} is fired at least once and hence \mathcal{N} is emptied (the solid red area of Figure 4 ). This contradicts the assumption that \bm{m} witnesses k -unsoundness. We have established that \bm{m}(f)=k , which implies that \bm{m}(i)=0 and \bm{m}(r)=0 . Without loss of generality we can assume that k is minimal i.e. \mathcal{W} is \ell -sound for every \ell0 as otherwise \bm{m}=\{f\colon k\} , which is obviously not a witness of k -unsoundness. From this and \bm{m}(r)=0 , we conclude that \bm{m}_{1}(r)=0 . This means that all places, except possibly i and f , are empty in \bm{m}_{1} . Since \bm{m}(f)=k and |\pi_{2}|_{t_{1}}=|\pi_{2}|_{t_{3}}>0 , the marking \bm{m}_{1} is of the form \bm{m}_{1}=\{i\colon k-\ell,f\colon\ell\} where 0<\ell0 such that • \bm{m}_{3}=\{i\colon k-a,r\colon a,q_{\text{src}}\colon 1,\overline{x_{1}}\colon a,\overline{x_{2}}\colon a\} , and • \bm{m}_{4}=\{i\colon k-a,r\colon a,q_{\text{tgt}}\colon 1,\overline{x_{1}}\colon a,\overline{x_{2}}\colon a\} . This implies that \bm{m}_{3}\xrightarrow{}^{\pi_{4}}\bm{m}_{4} induces a run q_{\text{src}}(\bm{0})\xrightarrow{}^{*}_{a}q_{\text{tgt}}(\bm{0}) of Minsky machine \mathcal{M} . ∎ 4. In between soundness We start this section by discussing properties that reset workflow nets can satisfy. So far, we mostly discussed generalised soundness and 1 -soundness, or more generally, k -soundness for any k\in\mathbb{N}_{>0} . We say that a reset workflow net is up-to- k -sound ( van der Toorn, 2004 , Definition 24) if it is j -sound for all j\in[1..k] . Observe that up-to- 1 -soundness is equivalent to 1 -soundness. By definition, a reset workflow net which is generalised soundness is also up-to- k sound (for any k\in\mathbb{N}_{>0} ). All reset workflow nets generalised sound reset workflow nets k -in-between sound reset workflow nets up-to- k -sound reset workflow nets Figure 5. Classes of reset workflow nets: generalised sound, up-to- k -sound, k -in-between sound and all reset workflow nets. Properties with lighter colors also satisfy darker colored properties. For example, the class of generalised sound reset workflow nets is the most restrictive and it is contained in all other classes. Note that “ k -in-between sound” is a class of properties, not a single one. So, in the figure, one should think of each horizontal line as one of these properties. We say that a property \mathcal{P} , of reset workflow nets, is k -in-between sound if: all generalised sound workflow nets satisfy \mathcal{P} ; and every workflow net that satisfies \mathcal{P} is up-to- k -sound. Figure 5 depicts all of the aforementioned classes. Our first main result is as follows. Theorem 4.1. For every k\in\mathbb{N}_{>0} , there exists a decidable k -in-between sound property \mathcal{P}_{k} of reset workflow nets. More precisely: given as input k\in\mathbb{N}_{>0} and a reset workflow net, there is an algorithm deciding \mathcal{P}_{k} running in Ackermannian time. Remark 1. In particular, given a reset workflow net \mathcal{W} and k\in\mathbb{N}_{>0} , there is an algorithm that correctly outputs: either that \mathcal{W} is up-to- k -sound; or that \mathcal{W} is not generalised sound. More precisely, if \mathcal{W} is not up-to- k -sound, then it outputs that \mathcal{W} is not generalised sound; if \mathcal{W} is generalised sound, then it outputs that it is up-to- k -sound; otherwise, it can output either of the two properties (both hold). We deliberately postpone the formal definition of property \mathcal{P}_{k} as it is technical. Instead, we give intuition on where it comes from. First observe that soundness is a conjunction of three simpler informal properties: (i) It is impossible to strictly cover the final marking; (ii) It is impossible to reach markings with tokens only in the final place, but with insufficiently many of them; and (iii) It is impossible to reach a marking that has tokens in places other than f and from which it is impossible to produce more tokens in f . Now, on the one hand, to decide 1 -soundness for (i) we can check if it is impossible to strictly cover \{f\colon 1\} as coverability is decidable. Property (ii) holds as the workflow net cannot be emptied, indeed, firing any transition always produces tokens. So, the reason for undecidability of 1 -soundness is the hardness of property (iii) . On the other hand, for generalised soundness, it can be proven that property (ii) is decidable, and, assuming that (i) holds (iii) is decidable, so the essential reason of the undecidability of the generalised soundness is (i) . The idea behind \mathcal{P}_{k} is to exploit the decidable parts, which intuitively cover all three parts of soundness. A bit more precisely, we combine the test for (ii) for generalised soundness, the test for (i) for k -soundness, and (iii) for generalised soundness assuming that (i) holds. This mixture of decidable properties gives rise to a relation that is k -in-between. Surprisingly, the property \mathcal{P}_{k} defined in this way for sufficiently large k coincides with to up-to- k soundness. More formally: Theorem 4.2. Given a nonredundant reset workflow net \mathcal{W} , there is a computable number k^{\prime}\in\mathbb{N}_{>0} (Ackermannian in the size of \mathcal{W} ) such that, for all k\geq k^{\prime} , \mathcal{W} satisfies \mathcal{P}_{k} iff \mathcal{W} is up-to- k sound. The rest of the section is organized as follows. First, in Section 4.1 , we introduce the notion of “nonredundancy”, which allows us to identify unimportant places and transitions. Next, in Section 4.2 , we define the “skeleton” of a reset workflow net, which is a crucial object in deciding property {\it(ii)} for generalised soundness. In Section 4.3 , we show that the skeleton of a nonredundant reset workflow net is a workflow net (without resets). In Section 4.4 , we show that if a nonredundant reset workflow net is generalised sound, then its skeleton is also generalised sound. This last property implies property {\it(ii)} for generalised soundness. Finally, Section 4.5 makes use of these results to prove Theorems 4.1 and 4.2 ; Here, in particular, we show how property {\it(iii)} can be tested assuming that {\it(i)} holds, although it is not given explicitly to keep the argument shorter. 4.1. Nonredundancy We provide a technical definition of redundancy, following similar definitions for workflow nets (without resets) ( van Hee et al., 2004 ) . Intuitively, it allows to ignore useless places and transitions from the net without changing its set of reachable markings. Formally, given a reset workflow net \mathcal{W} , we say that (1) a place p is nonredundant if there exist k\in\mathbb{N} and a marking \bm{m} such that \{i\colon k\}\xrightarrow{}^{*}\bm{m} and \bm{m}(p)\geq 1 ; (2) a transition t is nonredundant if there exist k\in\mathbb{N} and a marking \bm{m} such that \{i\colon k\}\xrightarrow{}^{*}\bm{m} and t is enabled in \bm{m} . If Item 1 does not hold for a place p , then we say that p is redundant , and likewise for a transition t . Proposition 4.3. Given a reset workflow net \mathcal{W} , one can compute its set of redundant places and transitions. The procedure works in Ackermannian time. Further, for every nonredundant transition t and place p , there are numbers k_{t},k_{p}\in\mathbb{N} bounded Ackermannianly and runs of length at most Ackermannian such that \{i\colon k_{t}\}\xrightarrow{}^{*}{\uparrow\!({{}^{\bullet}}{t})} and \{i\colon k_{p}\}\xrightarrow{}^{*}{\uparrow\!\{p\colon 1\}} . Proof. Let us show how to compute the set of nonredundant places and transitions. Recall that C_{\bm{m}^{\prime}} is the upward closed set of all markings \bm{m} from which it is possible to cover the marking \bm{m}^{\prime} ; one may compute the set of minimal elements of C_{\bm{m}^{\prime}} with the backward coverability algorithm. As mentioned in the preliminaries, every upward closed subset of \mathbb{N}^{P} is equal to a finite union of elements {\uparrow\!\bm{x}_{i}} with \bm{x}_{i}\in\mathbb{N}^{P} . From the definition of nonredundancy, a place p is nonredundant iff there exists some k_{p} such that \{i\colon k_{p}\} is in C_{\{p\colon 1\}} ; this is decidable, using the backwards coverability algorithm ( Lazić and Schmitz, 2021 ) , and one may compute such a k_{p} . Similarly, a transition t is nonredundant iff there exists k_{t} such that \{i\colon k_{t}\} is in C_{{{}^{\bullet}}{t}} , and this is also decidable and k_{t} is still computable. Now, let K be the sum of all k_{p} and k_{t} for p\in P and t\in T . Observe that, for all markings \bm{m}\in\bigcup_{p\in P,t\in T}\{\{p\colon 1\}+{{}^{\bullet}}{t}\} , there is a run, from the initial marking \{i\colon K\} , that covers \bm{m} . The Ackermannian bounds follow from the bounds on the coverability problem ( Figueira et al., 2011 ) . ∎ We make the following observation on nonredundant transitions. Claim 3. Let \mathcal{W} be a reset workflow net which is generalised sound. Nonredundant transitions cannot reset either i or f . Moreover, this claim still holds if we relax the requirement of \mathcal{W} being generalised sound to a weaker one, namely to “ \mathcal{W} is up-to- K sound”, where number K is at most Ackermannian. Proof: For the final place f , the claim follows by definition. Let us consider the case of the initial place i . Towards a contradiction, suppose that \mathcal{W} has a nonredundant transition t such that t resets place i . By Proposition 4.3 , there exists a number k\in\mathbb{N}_{>0} which is at most Ackermannian such that \{i\colon k\}\xrightarrow{}^{\pi}\bm{m}^{\prime}\xrightarrow{}^{t}\bm{m}, for some run \pi that does not use transition t , and some markings \bm{m}^{\prime} and \bm{m} . As k is Ackermannian, we can safely assume that kk : \{i\colon K\}\xrightarrow{}^{\pi}\bm{m}^{\prime}+\{i\colon x\}\xrightarrow{}^{t}\bm{m}, for x\geq K-k>0 . Note that t resets place i , and that k is defined in such a way that at least one token is lost. By generalised soundness, or up-to- K soundness of \mathcal{W} , we have \bm{m}\xrightarrow{}^{*}\{f\colon k\} and \bm{m}\xrightarrow{}^{*}\{f\colon K\} . This contradicts generalised soundness of \mathcal{W} and up-to- K soundness. \blacksquare 4.2. Skeletons of reset workflow nets In this subsection, we consider a relaxation of generalised soundness. Given a reset workflow net \mathcal{W} , we will define a workflow net \mathcal{W}^{s} obtained by removing redundancy and resetable places. Intuitively, generalised soundness of \mathcal{W} should imply generalised soundness of \mathcal{W}^{s} . As we shall see, this requires some work. We start by introducing the notation. Let \mathcal{W}=(P,T,F,R,i,f) be a reset workflow net. We say that place p\in P is resetable if there exists a nonredundant transition t\in T such that (p,t)\in R . The skeleton of a reset workflow net \mathcal{W} is the Petri net obtained by removing redundant places, redundant transitions and resetable places, and next removing isolated transitions (as defined in Section 2.5 of the preliminaries). We denote this Petri net by \mathcal{W}^{s}=(P^{s},T^{s},F^{s}) . If there are well-defined initial and final places i^{s},f^{s} such that (P^{s},T^{s},F^{s},i^{s},f^{s}) is a workflow net, then, slightly abusing the notation, we write that \mathcal{W}^{s}=(P^{s},T^{s},F^{s},i^{s},f^{s}) is a workflow net. We will devote the forthcoming Sections 4.3 and 4.4 to proving the following. Proposition 4.4. Let \mathcal{W} be a reset workflow net which is generalised sound. It is the case that (1) the skeleton \mathcal{W}^{s} is a workflow net; (2) \mathcal{W}^{s} is also generalised sound. Moreover, this claim still holds if we relax the requirement of \mathcal{W} being generalised sound to a weaker one, namely to “ \mathcal{W} is up-to- K sound”, where number K is at most Ackermannian. Note that generalised soundness for workflow nets (without resets) is decidable ( van Hee et al., 2004 ) , and belongs to PSPACE ( Blondin et al., 2022 ) . So, Proposition 4.4 implies that generalised soundness for the skeleton workflow net is a decidable relaxation of generalised soundness for \mathcal{W} . Before we prove Proposition 4.4 , we need a definition that allows us to associate markings in \mathcal{W} with markings in \mathcal{W}^{s} . The function Reset\colon\mathbb{N}^{P}\to\mathbb{N}^{P} is defined by Reset({\bm{x}})(p)=\begin{cases}\bm{x}(p)&\text{if }p\in P^{s},\\ 0&\text{otherwise}.\end{cases} Note that Reset({\bm{x}}) is equal to applying Reset_{t}(\cdot) to \bm{x} for each nonredundant transition t (in any order). Lemma 4.6 will provide some intuition on why Reset({\bm{x}}) corresponds to a marking in \mathcal{W}^{s} . As we often consider runs in the reset workflow \mathcal{W} , as well as runs in its skeleton \mathcal{W}^{s} , we introduce the notation {\xrightarrow{}_{s}} to denote runs specifically in \mathcal{W}^{s} . Lemma 4.5. Let \mathcal{W} be a reset workflow net which is generalised sound. There exist z\in\mathbb{N} and a run \{i\colon z\}\xrightarrow{}^{\zeta}\{f\colon z\} , where \zeta contains each nonredundant transition of \mathcal{W} . Moreover, z and |\zeta| are at most Ackermannian. Further, the claim still holds if we relax the assumption of \mathcal{W} being generalised sound to a weaker one, namely to “ \mathcal{W} is up-to- K sound”, where K is at most Ackermannian (the same as the bound on z ). Proof. For every nonredundant transition t of \mathcal{W} , there is a run firing t , i.e. \{i\colon z_{t}\}\xrightarrow{}^{\rho_{t}t}\bm{m}_{t} for some z_{t}\in\mathbb{N} and some marking \bm{m}_{t} . We define z\coloneqq\sum_{t\in T}z_{t} . Let \rho be the concatenation (in any order) of runs \rho_{t}t . Since \mathcal{W} is up-to- K sound, by Claim 3 , the initial place i cannot be reset by any nonredundant transition of \mathcal{W} . Thus, \{i\colon z\}\xrightarrow{}^{\rho}\bm{m}^{\prime} for some marking \bm{m}^{\prime} . Since \mathcal{W} is generalised sound (or up-to- z -sound, as z\leq K ), there is a run \delta such that \bm{m}^{\prime}\xrightarrow{}^{\delta}\{f\colon z\} . We conclude by taking \zeta\coloneqq\rho\delta . The Ackermannian bounds on \rho follow from Proposition 4.3 . The Ackermannian bounds on \delta follow from a bound on the maximal length of the coverability run in the reset Petri net ( Lemma 2.3 with target marking \{f\colon z\} ). Thus, |\zeta|=|\rho\delta| is at most Ackermannian. ∎ Remark 2. From the proof of Lemma 4.5 , we can see that if the initial place of \mathcal{W} cannot be reset, then there exist z\in\mathbb{N} and \{i\colon z\}\xrightarrow{}^{\zeta}\bm{m} , for some marking \bm{m} , that contains each nonredundant transition. We say that a marking \bm{m}\in\mathbb{N}^{P} of \mathcal{W} is reachable if there exists k\in\mathbb{N}_{>0} such that \{i\colon k\}\xrightarrow{}^{*}\bm{m} . Lemma 4.6. Let \zeta be as in Lemma 4.5 , and let \bm{m} be a reachable marking of \mathcal{W} . It is the case that \{i\colon z\}+\bm{m}\xrightarrow{}^{\zeta}\{f\colon z\}+Reset({\bm{m}}) . Proof. We have \{i\colon z\}+\bm{m}\xrightarrow{}^{\zeta}\bm{n} for some marking \bm{n} . We need to prove that \bm{n}=\{f\colon z\}+Reset({\bm{m}}) . It is easy to see that \bm{n}(p)=(\{f\colon z\}+Reset({\bm{m}}))(p) for all p\in P^{s} as these places are not resetable, and the effect on them is the sum of effects on all transitions in \zeta . Thus, we need to prove that \bm{n}(p)=0 for all p\notin P^{s} . Let p\notin P^{s} . If p is redundant, then \bm{n}(p)=\bm{m}(p)=0 since p is not marked in any reachable marking. Further, f cannot be reset by Claim 3 , and p\neq f as f is nonredundant by generalised soundness (or up-to- K soundness) of \mathcal{W} . Thus, we may assume that p is a nonredundant place, which is reset by a nonredundant transition t . By definition, we can decompose \zeta as \zeta=\rho_{1}t\rho_{2} . Let \{i\colon z\}\xrightarrow{}^{\rho_{1}t}\bm{n}_{1} and \{i\colon z\}+\bm{m}\xrightarrow{}^{\rho_{1}t}\bm{n}_{2} . We know that \bm{n}_{1}(p)=\bm{n}_{2}(p)=0 . Consider two runs, with the same sequence of transitions: \rho_{2} , but different starting points: \bm{n}_{1} and \bm{n}_{2} . By induction, one can prove that the markings in both runs will always have the same value in p . Indeed, they are the same initially, and the same sequence of transitions are applied afterwards. Thus, in the end \bm{n}(p)=(\{f\colon z\}+Reset({\bm{m}}))(p)=0 as required. ∎ The next two subsections are devoted to proving the two items of Proposition 4.4 . 4.3. Skeletons are workflow nets In this subsection, we prove the first item of Proposition 4.4 . We fix a reset workflow net \mathcal{W}=(P,T,F,R,i,f) as in the statement of Proposition 4.4 and its skeleton (P^{s},T^{s},F^{s}) . Overall, our aim is to prove that \mathcal{W}^{s}=(P^{s},T^{s},F^{s},i,f) is a well-defined workflow net. It follows directly from Claim 3 that no nonredundant transition of \mathcal{W} resets i or f . Thus, the following holds. Lemma 4.7. It is the case that i,f\in P^{s} . The following claim is useful and trivial by definition. Claim 4. Consider a run \bm{m}\xrightarrow{}^{\rho}\bm{m}^{\prime} of \mathcal{W} . Let \bm{m}_{s} , \bm{m}^{\prime}_{s}\in\mathbb{N}^{P^{s}} be the markings obtained by projecting \bm{m} and \bm{m}^{\prime} onto P^{s} ; and let \rho_{s} be the run in \mathcal{W}^{s} obtained from \rho (i.e. transitions are restricted to P^{s} , and possibly isolated transitions are removed). It is the case that \bm{m}_{s}\xrightarrow{}^{\rho_{s}}_{s}\bm{m}^{\prime}_{s} . We do not know yet whether \mathcal{W}^{s} is a workflow net, but the definition of nonredundancy makes sense for \mathcal{W}^{s} even if it is not a workflow net. Below, we note that nonredundancy of places in \mathcal{W} easily implies nonredundancy of places in \mathcal{W}^{s} . Claim 5. For every place p\in P^{s} , there exist k\in\mathbb{N} , with k\leq K , and a run \{i\colon k\}\xrightarrow{}^{*}_{s}\bm{m}_{s} such that \bm{m}_{s}(p)>0 and \bm{m}_{s}\xrightarrow{}^{*}_{s}\{f\colon k\} . Proof: By definition of \mathcal{W}^{s} , place p is nonredundant in \mathcal{W} , and hence we have \{i\colon k\}\xrightarrow{}^{*}\bm{m} where \bm{m}(p)>0 . Since \mathcal{W} is generalised sound or up-to- k sound for k\leq K , there is a run \bm{m}\xrightarrow{}^{*}\{f\colon k\} . These two runs and Claim 4 conclude the proof. \blacksquare To show Proposition 4.4 ( 1 ), it remains to prove that all places from P^{s} and all transitions from T^{s} are on a path from i to f in \mathcal{W}^{s} . The following lemma reduces the problem to checking this property for places only. Lemma 4.8. Let t\in T^{s} . It is the case that {{}^{\bullet}}{t}\neq\emptyset and {{t}^{\bullet}}\neq\emptyset . We will need the following technical claim. Note that although its statement deals with places P^{s}\subseteq P of the skeleton, the claim deals with runs from \mathcal{W} . Claim 6. Let p\in P^{s} . There is no k\in\mathbb{N}, k\leq K such that \mathcal{W} has two runs \{i\colon k\}\xrightarrow{}^{\pi}\bm{m} and \{i\colon k\}\xrightarrow{}^{\pi^{\prime}}\bm{m}^{\prime} with \bm{m}^{\prime}\geq\bm{m}+\{p\colon 1\} . Proof: For the sake of contradiction, suppose two such runs exist. By generalised soundness or up-to- K soundness of \mathcal{W} , there is a run \bm{m}\xrightarrow{}^{\gamma}\{f\colon k\} . Since \bm{m}^{\prime}\geq\bm{m}+\{p\colon 1\} and p is not resetable, we have \{i\colon k\}\xrightarrow{}^{\pi^{\prime}\gamma}\bm{m}^{\prime\prime} for some \bm{m}^{\prime\prime}\geq\{f\colon k,p\colon 1\} . This contradicts general soundness or up-to- K soundness as \bm{m}^{\prime\prime}\not\xrightarrow{}^{*}\{f\colon k\} . \blacksquare Proof of Lemma 4.8 . Towards a contradiction, suppose there exists t\in T^{s} such that {{}^{\bullet}}{t}=\emptyset . By definition, there exists p\in{{t}^{\bullet}} for some p\in P^{s} (otherwise t would be an isolated transition in \mathcal{W}^{s} ). Let u\in T be the original nonredundant transition from which t is obtained. Let z,z_{u},\zeta, and \rho_{u} be as in the proof of Lemma 4.5 . We consider these runs of \mathcal{W} : (1) \{i\colon z_{u}\}\xrightarrow{}^{\rho_{u}}\bm{m}_{u}\xrightarrow{}^{u}\bm{m}_{u}^{\prime} (it exists by nonredundancy); (2) \{i\colon z_{u}+z\}\xrightarrow{}^{\rho_{u}}\bm{m}_{u}+\{i\colon z\}\xrightarrow{}^{\zeta}\{f\colon z\}+Reset({\bm{m}_{u}}) ; (3) \{i\colon z_{u}+z\}\xrightarrow{}^{\rho_{u}u}\bm{m}_{u}^{\prime}+\{i\colon z\}\xrightarrow{}^{\zeta}Reset({\bm{m}_{u}^{\prime}})+\{f\colon z\} . The last two runs are obtained by Lemma 4.6 . Observe that Reset({\bm{m}_{u}^{\prime}})\geq Reset({\bm{m}_{u}})+\{p\colon 1\}. Indeed: since {{}^{\bullet}}{t}=\emptyset , we have \bm{m}_{u}^{\prime}(r)\geq\bm{m}_{u}(r) for all r\in P^{s} ; and, since p\in{{t}^{\bullet}} , we also have \bm{m}_{u}^{\prime}(p)\geq\bm{m}_{u}(p)+1 . By Claim 6 , the runs ( 2 ) and ( 3 ) contradict the generalised soundness of \mathcal{W} and up-to- K soundness assuming that K>z_{u}+z . The proof of the case where there is a transition t\in T^{s} such that {{t}^{\bullet}}=\emptyset is essentially the same. ∎ To prove Proposition 4.4 ( 1 ), it remains to prove that all places in P^{s} are on a path from i to f . We need to recall some standard definitions from Petri net theory (e.g. see ( Reisig, 2013 ) ). A siphon is a subset of places S\subseteq P such that for every transition t : if {{t}^{\bullet}}\cap S\neq\emptyset then {{}^{\bullet}}{t}\cap S\neq\emptyset . Similarly, a trap is a subset of places S^{\prime} such that for every transition t : if {{}^{\bullet}}{t}\cap S^{\prime}\neq\emptyset then {{t}^{\bullet}}\cap S^{\prime}\neq\emptyset . By definition, it is readily seen that every unmarked siphon remains unmarked and every marked trap remains marked. More formally: Lemma 4.9. Let S be a siphon and let S^{\prime} be a trap of a Petri net (without resets). For every \bm{m}\xrightarrow{}^{*}\bm{m}^{\prime} , the following holds: (1) if \bm{m}(S)=0 , then \bm{m}^{\prime}(S)=0 ; (2) if \bm{m}(S^{\prime})>0 , then \bm{m}^{\prime}(S^{\prime})>0 . The next two lemmas conclude the proof of Proposition 4.4 ( 1 ). Lemma 4.10. For every p\in P^{s} , there is a path from i to p in \mathcal{W}^{s} . Proof. Let p\in P^{s} . Let X\subseteq P^{s} be the set of places from which there is a path to p in \mathcal{W}^{s} . Observe that X is a siphon in \mathcal{W}^{s} . Indeed, if {{t}^{\bullet}}\cap X\neq\emptyset then {{}^{\bullet}}{t}\subseteq X and {{}^{\bullet}}{t}\neq\emptyset because of Lemma 4.8 . Note that p\in X and, by Claim 5 , the place p can be marked in \mathcal{W}^{s} . Initially, only place i is marked. Thus, by Lemma 4.9 , it must be the case that i\in X as otherwise p could not be marked. ∎ Lemma 4.11. For every p\in P^{s} , there is a path from p to f in \mathcal{W}^{s} . Proof. Let p\in P^{s} . Let X\subseteq P^{s} be the set of places to which there is a path from p in \mathcal{W}^{s} . Observe that X is a trap in \mathcal{W}^{s} . Indeed, if {{}^{\bullet}}{t}\cap X\neq\emptyset , then {{t}^{\bullet}}\subseteq X , and {{t}^{\bullet}}\neq\emptyset because of Lemma 4.8 . By Claim 5 , there exist k\in\mathbb{N} and a marking \bm{m}_{s}\in\mathbb{N}^{P^{s}} such that \{i\colon k\}\xrightarrow{}^{*}_{s}\bm{m}_{s} , where \bm{m}_{s}(p)>0 and \bm{m}_{s}\xrightarrow{}^{*}_{s}\{f\colon k\} . Note that p\in X . Since \bm{m}_{s}\xrightarrow{}^{*}_{s}\{f\colon k\} by Lemma 4.9 , we get f\in X . ∎ 4.4. Skeletons preserve generalised soundness In this subsection, we will prove Proposition 4.4 ( 2 ), i.e. we show that if \mathcal{W} is generalised sound (or up-to- K sound for some sufficiently large k ), then its skeleton \mathcal{W}^{s} is also generalised sound. To do so, we will prove a general lemma, which will also be useful in the next section. The lemma will not need the assumption of generalised soundness, but only a weaker property. We start by defining two properties for reset workflow nets. We say that a reset workflow net \mathcal{W} has a full reset run if there exist z\in\mathbb{N} and a run \zeta such that these three conditions all hold: • \{i\colon z\}\xrightarrow{}^{\zeta}\{f\colon z\} and \zeta contains each nonredundant transition of \mathcal{W} ; • if \bm{m} is a reachable marking of \mathcal{W} , then \{i\colon z\}+\bm{m}\xrightarrow{}^{\zeta}\{f\colon z\}+Reset({\bm{m}}) ; • for every decomposition \zeta=\rho t\rho^{\prime} , where \{i\colon z\}\xrightarrow{}^{\rho}\bm{m} , we have Reset({\bm{m}})\xrightarrow{}^{*}\{f\colon z\} . We call \zeta a full reset run . Below, we note that having such a run is a weaker condition than generalised soundness. Corollary 4.12. If \mathcal{W} is generalised sound, then it has a full reset run. Furthermore, the assumption of \mathcal{W} being generalised sound can be relaxed to the weaker assumption that \mathcal{W} is up-to- K -sound for an Ackermannianly bounded number K . Proof. The first two conditions follow directly from Lemmas 4.5 and 4.6 . Let \zeta be a run fulfilling these conditions, and consider a decomposition \zeta=\rho t\rho^{\prime} with \{i\colon z\}\xrightarrow{}^{\rho}\bm{m} . We have \{i\colon 2z\}\xrightarrow{}^{\rho\zeta}Reset({\bm{m}})+\{f\colon z\} . Since \mathcal{W} is generalised sound or up-to- K sound for K\geq 2z , we get the third condition, i.e. Reset({\bm{m}})\xrightarrow{}^{*}\{f\colon z\} . ∎ Lemma 4.13. There is an algorithm that, given a reset workflow net \mathcal{W} , outputs: either that \mathcal{W} has a full reset run; or that \mathcal{W} is not generalised sound. The procedure works in Ackermannian time. Moreover, if there exists \{i\colon z\}\xrightarrow{}^{\zeta}\{f\colon z\} witnessing a full reset run, then there is also one where z is at most Ackermannian. If the algorithm outputs that \mathcal{W} is not generalised sound then it computes K\in\mathbb{N}_{>0} , which is at most Ackermannian, for which \mathcal{W} is not K -sound. Proof. If the initial place is resetable, then the algorithm outputs that \mathcal{W} is not generalised sound by Claim 3 . It also gives an Ackermannian bound for K such that \mathcal{W} is not K -sound. Otherwise, we invoke Remark 2 and obtain that from a marking \{i\colon z\} , there is a run \{i\colon z\}\xrightarrow{}^{\delta}\bm{m} that executes all nonredundant transitions of \mathcal{W} and is of length at most Ackermannian. Because \delta has a bounded length, we can find it in Ackermannian time. Next, we check if it is possible to cover \{f\colon z\} from \bm{m} , using the backward coverability algorithm running in Ackermannian time. If not, then \mathcal{W} is not up-to- z sound and not generalised sound. Otherwise, the algorithm produces a run \bm{m}\xrightarrow{}^{\delta^{\prime}}{\uparrow\!\{f\colon z\}} of Ackermannian length. We have to check whether \bm{m}\xrightarrow{}^{\delta^{\prime}}\{f\colon z\} holds. If not, then \mathcal{W} is not up-to- z sound and not generalised sound. Otherwise, we pick \zeta\coloneqq\delta\delta^{\prime} . The latter satisfies the first two conditions of a full reset run. We need to check whether it satisfies the third condition. We do this exhaustively: for any decomposition of \zeta=\rho\rho^{\prime} , we take a marking \bm{m} such that \{i\colon z\}\xrightarrow{}^{\rho}\bm{m} and check a stronger property: whether for a run Reset({\bm{m}})\xrightarrow{}^{\xi}{\uparrow\!\{{f\colon z}\}} it is the case that Reset({\bm{m}})\xrightarrow{}^{\xi}\{f\colon z\} . Note that this is not as trivial as for \delta^{\prime} since Reset({\bm{m}}) does not have to be a reachable configuration. We prove the property by contradiction. If it does not hold, then \mathcal{W} is not generalised sound and not up-to- K sound. Indeed, due to Corollary 4.12 , we know that if \mathcal{W} is up-to- K sound, then it must have a full reset run \{i\colon z^{\prime}\}\xrightarrow{}^{\zeta^{\prime}}\{f\colon z^{\prime}\} . But, then, there would be a run \{i\colon z+z^{\prime}\}\xrightarrow{}^{\rho}\bm{m}+\{i\colon z^{\prime}\}\xrightarrow{}^{\zeta^{\prime}}Reset({\bm{m}})+\{f\colon z^{\prime}\}\xrightarrow{}^{\xi}\{f\colon z+z^{\prime}\}+\bm{n} for some nonempty marking \bm{n} . This contradicts both generalised soundness and up-to- K soundness assuming K>z+z^{\prime} . To achieve this check, we use the backward coverability algorithm to find \xi , and then we execute \xi step by step. This process works in Ackermannian time. ∎ Below we discuss markings both in \mathcal{W} and its skeleton \mathcal{W}^{s} . For convenience, if \bm{m}_{s} is a marking over \mathbb{N}^{P^{s}} , then we also use it as a marking over \mathbb{N}^{P} , where \bm{m}_{s}(p)=0 for p\not\in P^{s} . Lemma 4.14. Let \mathcal{W} be a reset workflow net with a full reset run \{i\colon z\}\xrightarrow{}^{\zeta}\{f\colon z\} . Let \{i\colon l\}\xrightarrow{}^{\pi}_{s}\bm{m}_{s} be a run of the skeleton \mathcal{W}^{s} , where l\in\mathbb{N} . There exists k^{\prime}\in\mathbb{N} such that \{i\colon l+k^{\prime}\}\xrightarrow{}^{*}\bm{m}_{s}+\{f\colon k^{\prime}\} holds in \mathcal{W} . Moreover, k^{\prime}\leq 2z|\pi| . Before we prove Lemma 4.14 , we show how it implies Proposition 4.4 ( 2 ). Proof of Proposition 4.4 ( 2 ). Let \mathcal{W} and \mathcal{W}^{s} be as described in the proposition. Suppose that \mathcal{W}^{s} is not generalised sound. Because of ( Blondin et al., 2022 , Theorem 5.1) , there exists an exponentially bounded number l such that \{i\colon l\}\xrightarrow{}^{*}_{s}\bm{m}_{s} in \mathcal{W}^{s} and from \bm{m}_{s} it is not possible to reach \{f\colon l\} . Observe that if such l and \bm{m}_{s} exist then the shortest run \pi from \{i\colon l\} to \bm{m}_{s} is at most Ackermannian (due to bounds on the length of shortest runs in Petri nets). The bound on the length of the shortest run between two configurations in a Petri net is a consequence of the KLM ( Kosaraju, 1982 ) algorithm combined with the Ackermannian bound on its complexity ( Leroux and Schmitz, 2019b ) . By Lemma 4.14 and Corollary 4.12 , there exists k^{\prime}\in\mathbb{N} bounded by 2z|\pi| , i.e. Ackermannianly, such that \{i\colon l+k^{\prime}\}\xrightarrow{}^{*}\bm{m}_{s}+\{f\colon k^{\prime}\} in \mathcal{W} . Since \mathcal{W} is generalised sound or up-to- K sound for K>l+k^{\prime} , there is a run \bm{m}_{s}\xrightarrow{}^{*}\{f\colon l\} in \mathcal{W} . By Claim 4 , this yields to the contradiction with the assumption that \bm{m}_{s}\not\xrightarrow{}^{*}_{s}\{f\colon l\} in \mathcal{W}^{s} . ∎ Proof of Lemma 4.14 . We proceed by induction on the length of the run from \{i\colon k\} to \bm{m}_{s} . If the length is 0 , then the claim is trivial and k^{\prime}=0 . Suppose the induction claim holds for every marking \bm{m}_{s} reachable via a run of length at most i . Let t be a transition in \mathcal{W}^{s} and let \pi^{\prime}=\pi t be a run of length i+1 such that \{i\colon k\}\xrightarrow{}^{\pi}_{s}\bm{m}_{s}\xrightarrow{}^{t}\bm{m}_{s}^{\prime} . By the induction hypothesis, there exists k^{\prime\prime}\in\mathbb{N} such that \{i\colon k^{\prime\prime}+k\}\xrightarrow{}^{*}\bm{m}_{s}+\{f\colon k^{\prime\prime}\} . Thus, it is sufficient to prove that there exists k_{t}\in\mathbb{N} such that \{i\colon k_{t}\}+\bm{m}_{s}\xrightarrow{}^{*}\bm{m}_{s}^{\prime}+\{f\colon k_{t}\} . If we treat \bm{m}_{s} and \bm{m}_{s}^{\prime} as markings over \mathbb{N}^{P} , then Reset({\bm{m}_{s}})=\bm{m}_{s} and Reset({\bm{m}_{s}^{\prime}})=\bm{m}_{s}^{\prime} . Let \zeta be a full reset run in \mathcal{W} . Let t^{\prime} be the nonredundant transition in \mathcal{W} from which t , in the skeleton, is defined. Since \zeta has all nonredundant transitions of \mathcal{W} , t^{\prime} also occurs in it and we can decompose \zeta=\rho t^{\prime}\rho^{\prime} . We denote \{i\colon z\}\xrightarrow{}^{\rho}\bm{m}_{t}\xrightarrow{}^{t^{\prime}}\bm{m}_{t}^{\prime} . Consider the following run: \displaystyle\{i\colon 2z\}+\bm{m}_{s} \displaystyle\xrightarrow{}^{\rho}\bm{m}_{s}+\bm{m}_{t}+\{i\colon z\} \displaystyle\xrightarrow{}^{t^{\prime}}\bm{m}_{s}^{\prime}+Reset_{t^{\prime}}(\bm{m}_{t})+\bm{n}+\{i\colon z\}, where \bm{n}(p)={{t^{\prime}}^{\bullet}}(p) if p\not\in P^{s} and \bm{n}(p)=0 otherwise. The last transition splits the effect of t^{\prime} between \bm{m}_{s} and \bm{m}_{t} as follows. The places p\in P^{s} are updated by changing \bm{m}_{s} to \bm{m}_{s}^{\prime} . The remaining places are updated by changing \bm{m}_{t} to Reset_{t^{\prime}}(\bm{m}_{t})+\bm{n} . Note that Reset({\bm{m}_{t}})=Reset({Reset_{t^{\prime}}(\bm{m}_{t})+\bm{n}}) . Thus, we get \displaystyle\{i\colon z\}+\bm{m}_{s}^{\prime}+Reset_{t^{\prime}}(\bm{m}_{t})+\bm{n}\xrightarrow{}^{\zeta}\bm{m}_{s}^{\prime}+Reset({\bm{m}_{t}})+\{f\colon z\}. Finally, recall that by definition of full reset runs (third condition) Reset({\bm{m}_{t}})\xrightarrow{}^{*}\{f\colon z\} . Altogether, we get the following as required: \{i\colon 2z\}+\bm{m}_{s}\xrightarrow{}^{*}\bm{m}_{s}^{\prime}+\{f\colon 2z\}. The bound on k^{\prime} follows directly from the proof. ∎ 4.5. Proofs of Theorems 4.1 and 4.2 We may now prove Theorems 4.1 and 4.2 simultaneously. The constant k^{\prime} in Theorem 4.2 will be defined at the end of the proof. There, we will observe that if k is large enough then the characterization of \mathcal{P}_{k} in Theorem 4.2 holds. Fix k\in\mathbb{N}_{>0} . We start with the definition of property \mathcal{P}_{k} . Definition 4.15. Property \mathcal{P}_{k} is defined as the conjunction of these properties: (1) Places i and f are not resetable; (2) There is a full reset run \{i\colon z\}\xrightarrow{}^{\zeta}\{f\colon z\} in \mathcal{W} ; (3) \mathcal{W}^{s} is a workflow net which is generalised sound; (4) It is not possible to strictly cover \{f\colon k\} starting from \{i\colon k\} , where “strictly cover” means reaching some marking \bm{m}>\{f\colon k\} . We call this property coverability-clean ; (5) The last property is more complex. Consider the following set of markings: \displaystyle X\coloneqq\left\{\bm{m}\in\mathbb{N}^{P}\setminus\{\bm{0}\}:\bm{m}\not\xrightarrow{}^{*}{\uparrow\!\{f\colon 1\}}\right\}. In words, these are the nonzero markings that cannot mark place f . Let F\coloneqq\{\{f\colon\ell\}:\ell\in\mathbb{N}\} and X^{f}\coloneqq X+F , i.e., markings of X with arbitrarily many tokens added to f . Let Reset({X^{f}})\coloneqq\{Reset({\bm{m}}):\bm{m}\in X^{f}\} . The last property requires that \{i\colon j\}\not\xrightarrow{}^{*}_{s}Reset({X^{f}})\setminus F holds for all j\geq 1 . First observe that properties (1–4) are implied by generalised soundness, as well as up-to- k soundness for sufficiently large k . It is clear for (4), while properties (1–3) follow respectively from Claim 3 , Corollary 4.12 and Proposition 4.4 . To prove that \mathcal{P}_{k} is k -in-between, it suffices to show that for any workflow satisfying properties (1–4), these two claims, capturing property (5), hold: Claim 7. If \{i\colon j\}\xrightarrow{}^{*}_{s}Reset({X^{f}})\setminus F holds for some j\geq 1 , then \mathcal{W} is not generalised sound. Claim 8. If \{i\colon j\}\not\xrightarrow{}^{*}_{s}Reset({X^{f}})\setminus F holds for all j\in[1..k] , then \mathcal{W} is up-to- k sound. Before proceeding, we show the claim below, which will be helpful for proving Claim 7 and Claim 8 . Let us assume that properties (1–4) hold. Claim 9. \mathcal{W} is not k -sound if and only if \{i\colon k\}\xrightarrow{}^{*}X^{f} . Proof: \Rightarrow ) Suppose \mathcal{W} is not k -sound and let \{i\colon k\}\xrightarrow{}^{*}\bm{m} be such that \bm{m}\not\xrightarrow{}^{*}\{f\colon k\} . Let \ell be the largest number such that from \bm{m} we can cover \{f\colon\ell\} . Note that such a number exists and \ell\leq k , as otherwise we get a contradiction with Claim 4 and generalised soundness of \mathcal{W}^{s} . Let \bm{m}\xrightarrow{}^{*}\bm{m}^{\prime}+\{f\colon\ell\} , where \bm{m}^{\prime}(f)=0 . If \bm{m}^{\prime}\neq\bm{0} , then we are done as \bm{m}^{\prime}\in X . Otherwise, note that \ell\{f\colon j\} , which is a contradiction with \mathcal{W} being coverability-clean. \blacksquare To conclude the proof, it suffices to show that \mathcal{P}_{k} is decidable, i.e. that properties (1–5) can be checked. First, computing \mathcal{W}^{s} amounts to identifying the subset of nonredundant transitions of \mathcal{W} , which can be done in Ackermannian time by Proposition 4.3 . Then: (1) Property (1) is trivial; (2) Property (2) is decidable because of Lemma 4.13 ; (3) Testing whether \mathcal{W}^{s} is generalised sound can be done in PSPACE ( Blondin et al., 2022 , Theorem 5.1) ; (4) Property (4) is a coverability check, which can be done using the backward coverability algorithm ( Lazić and Schmitz, 2021 ) (or by Lemma 2.3 ); (5) Property (5) requires more effort. We explain it below. Let us show that we can determine whether \{i\colon k\}\xrightarrow{}^{*}X^{f} . We start by computing a representation of X^{f} . A representation of X_{\bm{0}} can be computed with the backwards coverability algorithm ( Lazić and Schmitz, 2021 ) . More precisely, we can compute the set X^{\prime} of all markings from which there is a run covering \{f:1\} . Then, X_{\bm{0}} is the complement of X^{\prime} . Moreover, since X^{\prime} is upward closed, the set X_{\bm{0}} is downward closed. Obviously, this yields a representation of both X and X^{f} . To simplify the notation, we also identify Reset({X^{f}}) with the set of markings over P^{s} (i.e. by dropping the places outside of P^{s} ). Recall F=\{\{f\colon\ell\}:\ell\in\mathbb{N}\} from the definition of X^{f} . It remains to show that we can decide whether there exists j\geq 1 such that: ( \star ) \displaystyle\{i\colon j\}\xrightarrow{}^{*}_{s}Reset({X^{f}})\setminus F\text{ holds in $\mathcal{W}^{s}$}. Moreover, we must prove that if such a j exists, then it is Ackermannianly bounded. This will allow to prove Theorem 4.2 . We reduce query ( ⋆ ‣ 4.5 ) to a reachability query for Petri nets (without resets). To do so, we modify \mathcal{W}^{s} into a new Petri net \mathcal{N}^{s} (whose arcs may consume or produce several tokens at once). First, we add a transition t_{i} that can always add one token in place i , this allows to produce arbitrarily many tokens in i . Second, we add a place p_{\text{all}} that keeps the sum of tokens in all places from P^{s}\setminus\{f\} (it will be needed as X forbids \bm{0} ). This can be easily achieved by adjusting all transitions on p_{\text{all}} as follows: \displaystyle{{}^{\bullet}}{t}(p_{\text{all}})\coloneqq\sum_{\mathclap{p\in P^{s}\setminus\{f\}}}{{}^{\bullet}}{t}(p) and \displaystyle{{t}^{\bullet}}(p_{\text{all}})\coloneqq\sum_{\mathclap{p\in P^{s}\setminus\{f\}}}{{t}^{\bullet}}(p). We define X^{f}_{\text{all}} as the set \big\{\bm{m}^{\prime}\in\mathbb{N}^{P^{s}\cup\{p_{\text{all}}\}}:\exists\bm{m}\in X\text{ s.t. }\bm{m}^{\prime}(p)=\bm{m}(p)\text{ for all }p\in P^{s}\\ \text{and }\bm{m}^{\prime}(p_{\text{all}})\geq\bm{m}(P^{s}\setminus\{f\})\big\}. Note that if \bm{m}^{\prime}\in X^{f}_{\text{all}} , then we have \bm{m}^{\prime}(p_{\text{all}})>0 . Note that only markings such that \bm{m}^{\prime}(p_{\text{all}})=\bm{m}(P^{s}\setminus\{f\}) make sense, but it will be convenient to allow markings to be larger in place p_{\text{all}} . Observe that query ( ⋆ ‣ 4.5 ) is equivalent to testing whether \bm{0}\xrightarrow{}^{*}X^{f}_{\text{all}} in \mathcal{N}^{s} . Indeed, transition t_{i} allows to guess the initial value j , and place p_{\text{all}} guarantees that we at least one token among places other than f . Now we analyse the set X^{f}_{\text{all}} . Let \bm{m}\in X^{f}_{\text{all}} . The following holds: • if \bm{m}^{\prime}>\bm{m} and \bm{m}^{\prime}(p)=\bm{m}(p) for p\in P^{s}\setminus\{f\} then \bm{m}^{\prime}\in X^{f}_{\text{all}} ; • if \bm{m}^{\prime}<\bm{m} and \bm{m}^{\prime}(p)=\bm{m}(p) for p\in\left\{f,p_{\text{all}}\right\} then \bm{m}^{\prime}\in X^{f}_{\text{all}} . Intuitively, X^{f}_{\text{all}} is downward closed on some places and upward closed on other places. Since \mathcal{N}^{s} is a Petri net (without resets), it is folklore that reachability queries to such sets can be performed in Ackermannian time (see e.g. ( Czerwinski and Hofman, 2022 , Lemma 7) ). Moreover, if there is such a run, then there is one of length at most Ackermannian. This concludes the proof of Theorem 4.1 . It also provides an Ackermannian bound on the minimal j satisfying query ( ⋆ ‣ 4.5 ). We briefly explain that it also proves Theorem 4.2 . Indeed, let us comment on the threshold k^{\prime} such that, for any k\geq k^{\prime} , \mathcal{P}_{k} is equivalent to up-to- k -soundness. Observe that properties (1), (2), (3) and (5) do not depend on k , so intuitively there is a k^{\prime} such that if they are satisfied for k^{\prime} , then they are satisfied for all k>k^{\prime} . So, properties (1), (2), (3) and (5) are implied by up-to- k soundness for k>k^{\prime} . Moreover, property (4) is also implied by up-to- k soundness, which means that \mathcal{P}_{k} , for k>k^{\prime} , is implied by up-to- k soundness. What remains is to show that an Ackermannianly bounded k^{\prime} suffices. Property (1) is implied by up-to- k^{\prime} soundness for an Ackermannianly bounded k^{\prime} according to Claim 3 . Similarly, property (2) is implied by up-to- k^{\prime} soundness for an Ackermannianly bounded k^{\prime} according to Lemma 4.5 . Property (3) is implied by up-to- k^{\prime} soundness for an Ackermannianly bounded k^{\prime} according to Proposition 4.4 . Thus, it remains to bound the number k^{\prime} needed for property (5). We know that, if there is a run that violates property (5), then there is one of length \ell which is at most Ackermannian. Now, because of Lemma 4.14 , we conclude that there is a run \{i\colon\ell+\ell\cdot 2z\}\xrightarrow{}^{*}X^{f} , where z is Ackermannianly bounded as in Lemma 4.14 . This, together with Claim 9 , shows that k^{\prime}>\ell+\ell\cdot 2z suffices. Altogether, an Ackermannianly bounded k^{\prime} suffices for the proof of Theorem 4.2 . Remark 3. One may think that the proof of Theorem 4.1 is contradictory with the undecidability of generalised soundness, as it might seem that, using Claim 7 and Claim 8 , we can decide generalised soundness. The reason why there is no contradiction is that, earlier, we assumed that \mathcal{W} is coverability-clean. In some sense, checking the coverability-clean property, for all k , is the source of undecidability for generalised soundness. 5. Conclusion In this paper, we studied soundness in reset workflow nets: the standard correctness notion of a well-established formalism for the modeling of process activities such as business processes. All existing variants of soundness, but generalised soundness, were known to be undecidable for reset workflow nets. In this work, we have shown that generalised soundness is also undecidable. This closes its status which had been open for over fifteen years. Given the resulting undecidable landscape, we investigated a new approach. We introduced the notion of k -in-between soundness, which lies between k -soundness and generalised soundness. We revealed an unusual complexity behaviour: a decidable soundness property is in between two undecidable ones. We think this can be valuable in the algorithmic analysis of reset workflow nets, and that it may spark a new line of research both in theory and practice. 5.1. Other future work The reachability problem for Minsky machines is already undecidable for two transitions that test counters for zero. Thus, our proof of the undecidability of generalised soundness only requires four transitions that reset some places. The question about decidability of generalised soundness for reset workflow nets with fewer than four transitions that reset some places, remains open. We conjecture decidability for reset workflow net with only one such transition. Furthermore, it would be interesting to extend the definition of soundness to more powerful models like well-structured transition systems (WSTS): the properties of resilience ( Finkel and Hilaire, 2024 ) can be seen as a first step. We may also try to adapt the efficient reductions for Petri nets ( Amat et al., 2024 ) to reset Petri nets and reset workflow nets.