<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Deciding weak weighted bisimulation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Marino Miculan</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marco Peressotti</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Mathematics and Computer Science, University of Southern Denmark</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Mathematics</institution>
          ,
          <addr-line>Computer Science and Physics</addr-line>
          ,
          <institution>University of Udine</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>Weighted labelled transition systems are LTSs whose transitions are given weights drawn from a commutative monoid, subsuming a wide range of systems with quantitative aspects. In this paper we extend this theory towards other behavioural equivalences, by considering semirings of weights. Taking advantage of this extra structure, we consider a general notion of weak weighted bisimulation, which coincides with the usual weak bisimulations in the cases of non-deterministic and fully-probabilistic systems. We present a general algorithm for deciding weak weighted bisimulation. The procedure relies on certain systems of linear equations over the semiring of weights hence it can be readily instantiated to a wide range of models. We prove that these systems admit a unique solution for !-continuous semirings.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Many extensions of labelled transition systems have been proposed for dealing
with quantitative notions such as execution times, probabilities and stochastic
rates; see e.g. [
        <xref ref-type="bibr" rid="ref12 ref13 ref16 ref29 ref6">6, 12, 13, 16, 29</xref>
        ] among others. This plethora of variants has
naturally pointed out the need for general theories and tools, covering uniformly
a wide range of cases. As examples of these theories we mention state-to-function
transition systems (FuTSs) [
        <xref ref-type="bibr" rid="ref10 ref19">10, 19</xref>
        ], uniform labelled transition systems (ULTraSs)
[
        <xref ref-type="bibr" rid="ref22 ref24 ref7">7, 22, 24</xref>
        ] and weighted labelled transition systems (WLTSs) [
        <xref ref-type="bibr" rid="ref15 ref17">15, 17</xref>
        ]. In particular,
in a WLTSs every transition is associated with a weight drawn from a commutative
monoid; the monoid structure defines how weights of alternative transitions
combine. As we will recall in Section 2, by suitably choosing this monoid we
can recover ordinary non-deterministic, probabilistic, and stochastic transition
systems, among others. The WLTS meta-model offer a notion of (strong) weighted
bisimulation, which can be readily instantiated to particular cases obtaining
precisely the well-known Milner’s strong bisimulation [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ], Larsen and Skou’s
strong probabilistic bisimulation [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], strong stochastic bisimulation [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], etc.
      </p>
      <p>
        However, in many situations strong bisimulations are too fine, and many other
relations have been introduced. Likely the most widely known of these equivalences
is Milner’s weak bisimulation for LTSs [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ] (see [
        <xref ref-type="bibr" rid="ref30">30</xref>
        ] for others). Weak bisimulations
focus on systems’ interactions (communications, synchronizations, etc.), ignoring
transitions associated with systems’ internal operations, hence called silent or
unobservable (and denoted by the ). Although, -labelled transitions cannot
be directly observed, their effects (delays, probability distributions) are still
observable and hence cannot be ignored. Notions of weak bisimulations for systems
of interests have recently been proven instances of a uniform and abstract notion
of coalgebraic weak bisimulation [
        <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
        ]. In order to instantiate this definition to
WLTSs and obtain weak weighted bisimulation in a principled way, we consider
systems weighted over a semiring : roughly speaking, the added multiplicative
structure on weights allows us to compositionally extend weights to multi-step
transitions and traces. In Section 3 we show that the resulting notion of weak
bisimulation coincides with the known ones in the cases of non-deterministic and
fully probabilistic systems, just by changing the underlying semiring.
      </p>
      <p>
        Then, in Section 4 we present the general algorithm for computing weak
weighted bisimulation equivalence classes, parametric in the underlying semiring.
This algorithm is a variant of Kanellakis and Smolka’s algorithm for deciding
strong non-deterministic bisimulation [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. Our solution builds on the refinement
technique used for the coarsest stable partition, but instead of “strong” transitions
in the original system we consider “weakened” ones. We prove that this algorithm
is correct, provided the semiring satisfies some mild conditions, i.e. it is !-complete
and !-continuous. Finally, we discuss also its complexity, which is comparable
with Kanellakis and Smolka’s algorithm. Thus, this algorithm can be used in the
verification of many kinds of systems, just by replacing the underlying semiring
(boolean, probabilistic, stochastic, tropical, arctic, . . . ) and taking advantage of
existing software packages for linear algebras over semirings.
      </p>
      <p>
        Some final remarks and directions for further work are in Section 5. Additional
examples can be found in the companion report [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Weighted labelled transition systems</title>
      <p>
        This section recalls the notion of labelled transition systems weighted over a
commutative monoid (WLTS) and their (strong) bisimulation called weighted
bisimulation [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ].
      </p>
      <p>A commutative (a.k.a. abelian) monoid is a set M equipped with a binary
operation + that is associative, commutative and has a unit 0. In the sequel let
(M; +; 0) be any commutative monoid. As usual, a monoidal structure will be
often denoted by its set, when the intended structure is clear from the context.
Definition 1 (M -WLTS [15, Def. 1]). A M -weighted labelled transition
system is a triple (X; ; ) where:
– X is a set of states (processes);
– is an at most countable set of labels;
– : X X ! M is a weight function, mapping each triple of X
to a weight drawn from M .</p>
      <p>X
(X; ; ) is said to be image finite (resp. countable) whenever for each x 2 X
and 2 , the fy 2 X j (x; ; y) 6= 0g is finite (resp. countable).
X (x; ; y) = X (x0; ; y).
y2C
y2C
(1)</p>
      <p>The monoidal structure was not used in Definition 1 except for the existence
of a distinguished element required by the image finiteness (resp. countability)
property. The commutative monoidal structure of weights comes into play in the
notion of weighted bisimulation, where weights of transitions to any state in a
given equivalence class are be combined3. This operation is commonplace for
stochastic, probabilistic, and rated transition systems, but at first it may appear
confusing with respect to the notion of bisimulation of non-deterministic systems.</p>
      <p>2
Definition 2 (Strong weighted bisimulation [15, Def. 3]). Given a M
WLTS (X; ; ), a (strong) M -weighted bisimulation is an equivalence relation
R on X such that for each pair (x; x0) of elements of X, (x; x0) 2 R implies that
for each label and each equivalence class C of R:
Processes x and x0 are said to be M -bisimilar (or just bisimilar when M is
understood) if there exists a M -bisimulation M such that x M x0.
Weighted bisimulations are closed under arbitrary unions. As a consequence,
weighted bisimilarity on any M -WLTS is the largest M -bisimulation over it.</p>
      <p>
        Observe that Definition 2 is well-given only if the summations (1) are defined.
Weighted bisimulation is always defined on image-finite systems and it is defined
on image-countable ones provided the underlying weighting structure supports
sums over countable families. In fact, [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ] restricts to image finite systems (which
is not unusual in the coalgebraic setting). This paper considers also
imagecountable systems since this generalization will be crucial to the definition of
weak and delay bisimulations: the unfolding of tau-loops yields countably many
executions even if the original system is image-finite.
      </p>
      <p>
        Monoids with countable sums are often called !-complete4 and in practice
requiring M to be !-complete is not a severe restriction, since the commutative
monoids relevant for most systems of interest admit summations over countable
sets. To support this claim, the rest of this section illustrates how several systems
of interests are indeed instances of WLTS over commutative !-monoids.
Example 1 (Non-deterministic systems). Consider the commutative (!-complete)
monoid of logical values equipped with disjunction B , (ftt; ffg; _; ff). B-WLTSs
correspond to non-deterministic LTSs and B-bisimulations to classical
bisimulation equivalences. In fact, every B-valued weight function is an appurtenance
predicate defining a subset of its domain rendering : X X ! B equivalent
to the classical definition of the transition relation ! X X for LTSs.
Finally, taking logical disjunction as the summation in Definition 2 encodes the
ability to reach C making an a-labelled transition.
3 The associative and commutative properties reflect the fact that equivalence classes
are sets and transitions to them do not come in any predefined order.
4 Monoids can be readily extended to !-monoids adding either colimits freely or an
“1” element. Likewise, !-completeness can be relaxed w.r.t. a given -algebra by
considering -semirings.
Example 2 (Rated systems). Let (R0+; +; 0) be the monoid of non-negative real
+
numbers with addition. R0 -WLTSs corresponds to rated transition systems
[
        <xref ref-type="bibr" rid="ref16 ref17">16, 17</xref>
        ] (which model stochastic systems) and R0+-bisimilarity is rated bisimilarity
(strong equivalence [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]). Although R0+ is not !-complete, its completion is the
+
monoid of non-negative reals extended with positive infinity R0 . Systems weighted
+
over R0+ are recovered as systems over R0 and their bisimulations as well.
Example 3 (Probabilistic systems). Probabilistic systems are a particular case of
R0+-WLTSs where weight functions are required to satisfy suitable constraints.
      </p>
      <p>+
In particular, a R0 -WLTSs (X; ; ) is a fully-probabilistic system for any
state x 2 X it holds that P
bisimulations coincide with R0+-b2isi;my2uXlat(ioxn; s ;[1y6)].2 f0; 1g. Then, probabilistic
3</p>
    </sec>
    <sec id="sec-3">
      <title>Weak weighted bisimulation</title>
      <p>
        Weak bisimulation weakens strong bisimulation by allowing sequences of
unobservable actions (denoted by the distinguished label 62 ) before and after any
observable one (any 2 ). Reworded, what to an external observer appears
as a single labelled (weighted) transition arises instead from the contribution
of several transitions. The operation governing which and how transitions are
combined and presented to the observer is called (parameterised) saturation [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>In the case of weighted transition systems, saturation requires weights to
be equipped with some additional structure: that of an !-continuous semiring.
A semiring is a set S equipped with a commutative monoid structure (S; +; 0)
(called addition) and a monoid structure (S; ; 1) (called multiplication) such that
+ distributes over the and 0 annihilates . A semiring (S; +; 0; ; 1) is called
positively ordered whenever its carrier S admits a partial order (S; ) such that
the unit 0 is the bottom element of this ordering and semiring operations are
monotonic in both components i.e. if it holds that a b implies that a c b c
and c a c b for 2 f+; g and any a; b; c 2 S. A semiring is positively ordered
if and only if it is zerosumfree i.e. if it holds that a = b = 0 whenever a+b = 0. The
natural order a C b () 9c:a + c = b is the weakest order that render S positively
ordered. A positively ordered semiring is said to be !-complete if it has countable
sums given on any countable family as Pi&lt;! ai = supfPj2J aj j J !g. It is
called !-continuous if suprema of ascending !-chains exist and are preserved by
both operations i.e.: a Wi&lt;! bi = Wi a bi and Wi bi &lt; ! a = Wi bi a for
2 f+; g. Examples of such semirings are: the boolean semiring, the arithmetic
semiring of non-negative real numbers with infinity and the tropical semiring.</p>
      <p>Henceforth let (S; +; 0; ; 1) be an !-complete and !-continuous semiring.
As for monoids, semirings will be often denoted by their carrier provided the
structure is clear from the context.</p>
      <p>As before, the addition structure weights branching computations as the sum
of each branch weight. Likewise, multiplication weights sequences in a modular
fashion given the weight of each step. Distributivity and annihilation guarantee
coherence of the two operations: weighting computations by multiplying along
sequences and then summing branches or vice versa is equivalent. For instance,
probabilities are multiplied along sequences for steps are dependent events and
are summed along branches for each branch is an independent event. The order
structure is required by the notion of saturation which relies on binary joins
to merge some possibly overlapping contributions and partial executions in a
coherent way. For instance, the weight of computations arising from transitions
loops are obtained as the sumpremum of all weights of their finite unfoldings.
Here, !-continuity guarantees that this approach is always possible and that it is
coherent with the rest of the weighting structure.</p>
      <p>For an alphabet let , +f g where is the label denoting unobservable
transitions. Transition weights drawn from an !-complete and !-continuous
semiring S. All WLTSs and weight functions are assumed image countable. The
notion of parametrised saturation instantiate to WLTSs as follows.
Definition 3. The saturation of : X
h : X ! Y is the function h : X
solution to the equation system:</p>
      <p>X ! S w.r.t. the parameter</p>
      <p>Y ! S corresponding to the least
h(x; ; y) , ( y h)(x) _ X
(x; ; x0)</p>
      <p>h(x0; ; y)
x02X
h(x; ; y) , X
(x; ; x0)
h(x0; ; y) + X
(x; ; x0)
h(x0; ; y)
x02X
x02X
where y : Y ! [0; 1] is Dirac’s delta function on y:
y(y0) =
(1 if y = y0</p>
      <p>0 otherwise.</p>
      <p>Roughly speaking, the parameter h describes a quotient of the system state space
X and will be later used to represent equivalence classes in the definition of
weighted bisimulation. In this sense, the function h weights computations from
states to equivalence classes as perceived by an external observer. The first family
of equations of the system defines the weight of saturated unobservable transitions
taking x to y by recursion on computations starting at x with a -labelled step
(right term of the join) combined with loops inside the class of x as per h (left
term). Observe that loops are given weight 1 since they model the possibility
of (unobservable) computations internal to the class of x and must not affect
computations leaving the class of x. The second family of equations defines the
weight of saturated observable transitions by recursion on computations starting at
x with an observable step (left term) or an -labelled step (right term). In the first
case, the recursion continues considering only unobservable saturated transitions
(the only observable has already be consumed) whereas in the second the recursion
proceeds considering only observable saturated transitions (the observable has
not been consumed yet). Finally, note that parameterised saturation is always
defined on semirings that are !-complete and !-continuous.</p>
      <p>Recall that strong weighted bisimulations relate states whose transition to
each equivalence class have the same combined weight. Weak bisimulations are
defined likewise except that saturated transitions are considered in order to
abstract from unobservable moves. The saturation parameter is the quotient
induced by the weak bisimulation equivalence since we are interested in the
combined weight assigned to reaching each equivalence class.</p>
      <p>Definition 4 (Weak weighted bisimulation [9, Sec. 4.3]). An equivalence
relation R on X is a weak (weighted) bisimulation whenever x R x0 implies that
for any equivalence class C 2 X=R and label 2 + f g:
(x; ; C) =</p>
      <p>(x0; ; C)
where : X ! X=R is the canonical projection taking each element of X to its
equivalence class w.r.t. R.</p>
      <p>
        The remaining of the section illustrates some examples of weak weighted
bisimulation and possible applications. The interested reader is referred to [
        <xref ref-type="bibr" rid="ref21 ref9">9, 21</xref>
        ]
for more detailed examples.
      </p>
      <p>
        Non-determinism Non-deterministic LTSs are B-WLTSs where B denotes the
boolean semiring (ftt; ffg; _; ff; ^; tt). It is shown in [9, Prop. 4.2] that the
notions of weak non-deterministic bisimulation as per [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ] and that of weak
B-weighted bisimulation coincide.
      </p>
      <p>
        Probabilities Probabilistic systems are recovered as a special case of systems
weighted over the semiring of non-negative real numbers extended with infinity.
The notions of weak probabilistic bisimulation as per [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and weak weighted
bisimulation coincide on fully probabilistic systems as shown in [9, Prop. 4.11]. Another
semiring used for reasoning about probabilistic events is ([0; 1]; max; 0; ; 1). This
is used to model the maximum likelihood of events, e.g. for troubleshooting,
diagnosis, failure forecasts, worse cases, etc. A weak bisimulation on this semiring
allows to abstract from “unlikely” events, focusing on the most likely ones.
Resources There are several semirings that can be used for reasoning about
different aspects of resource dependant computations. The first example is the
family of arithmetic semirings whose addition substructure is also used in the
definition of rated systems (cf. Example 2). A prominent example are systems
weighted over the free completion of natural numbers N+f1g. Transition weights
model resource consumption and weak weighted bisimulation corresponds to
resource bisimulation from [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] as shown in [9, Cor. 4.10].
      </p>
      <p>Other examples are the tropical semiring, its dual the arctic semiring, and
their generalisations. Some instances are (R; min; +1; +; 0); (R; max; 1; +; 0);
(R; min; +1; max; 1). These semirings are used to model optimisation problems
such as task scheduling and routing. In these contexts, weak bisimulation would
allow to abstract from “unobservable” tasks e.g. internal tasks and treat a cluster of
machines as a single one. Similar to the last family is that of truncation semirings
like (f0; : : : ; kg; max; 0; minf_ + _; kg; k). This variant supports reasoning up to
a given threshold k. Weak weighted bisimulation on truncation semirings allows
e.g. reasoning about if and when resources consumption violates the threshold
but not about how much.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Deciding weak weighted bisimulation</title>
      <p>
        The section describes an algorithm for computing the coarsest weak weighted
bisimulation. The algorithm is parametric in the semiring structure of weights
hence can be used in the mechanized verification and analysis of many kinds of
systems. Algorithms like this are often called “universal” in the sense that they do not
depend on any particular numerical domain nor its machine representation [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ].
      </p>
      <p>
        The algorithm is a variation of Kanellakis and Smolka’s algorithm for deciding
strong non-deterministic bisimulation [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] and builds on the refinement technique
used for the coarsest stable partition, but instead of “strong” transitions in
the original system saturated ones are considered during the splitting phase.
The idea of deciding weak bisimulation by computing the strong bisimulation
equivalence classes for the saturated version of the system has been previously and
successfully used e.g. for non-deterministic or probabilistic weak bisimulations
[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. The resulting complexity is basically that of the coarsest stable partition
problem plus that introduced by the construction of the saturated transitions.
The last factor depends on the properties and kind of the system and, in our case,
on the properties of the semiring M . In particular note that, differently from
the non-deterministic case, saturated transitions will be computed on-demand
since without the assumptions at the base of the double-arrow construction,
pre-computing them would be exponential in the number of states.
      </p>
      <p>We remark that solving linear equations over arbitrary semirings is out of the
scope of this work and that parametrisation henceforth is assumed to provide a
procedure for computing saturated transitions.</p>
      <p>Before outlining the general idea of the algorithm let us introduce some
notation. For a finite set X we denote by X a partition of it i.e. a set of pairwise
disjoint sets X = U X = UfB0; : : : ; Bng. We shall refer to the elements of the
partition X as blocks or classes since every partition induces an equivalence
relation SB2X B B on X and vice versa.</p>
      <p>Given a finite WLTS (X; ; ) the general idea for deciding weak weighted
bisimulation by partition refinement is to start with a partition of the states
X0 coarser than the weak bisimilarity relation e.g. fXg and then successively
refine the partition with the help of a splitter (i.e. a witness that the partition
is not stable). This process eventually yields a partition Xk being the set of
equivalence classes of the weak bisimilarity. A splitter of a partition X is a pair
made of an action and a class of X that violates the condition for X to be a weak
bisimulation. Reworded, a pair h ; Ci 2 X is a splitter for X if, and only if,
there exist B 2 X and x; y 2 B such that:
h(x; ; C) 6=
h(y; ; C)
(2)
where the parameter h : X ! X is the quotient induced by the current partition
X . Then, Xi+1 is obtained from Xi by splitting every5 B 2 Xi accordingly to the
5 In Kanellakis and Smolka’s algorithm, only the block B is split but in our case we
need to evaluate every block anyway because of on-the-fly saturation.
1: X fXg
2: X 0 ;
3: repeat
4: changed false
5: X 00 X
6: for all C 2 X n X 0 do
7: for all 2 + f g do
8: if h ; Ci is a splitter then</p>
      <p>SfB= ;C j B 2 X g</p>
      <p>true
9:</p>
      <p>X
10: changed
11: end if
12: end for
13: end for
14: X 0 X 00
15: until not changed
16: return X
selected splitter h ; Ci.</p>
      <p>Xi+1 , [</p>
      <p>B= ;C j B 2 Xi</p>
      <p>is the equivalence relation on states induced by the splitter i.e.:
x</p>
      <p>4
;C y ()</p>
      <p>h(x; ; C) = h(y; ; C).</p>
      <p>Note that differently from the case of LTSs, blocks can split in more than two
parts since weights of outgoing transitions may be more than two.</p>
      <p>This procedure is implemented by the pseudocode in Figure 1. Given a finite
WLTS (X; ; ) as input, it returns a partition X of X induced by a weak
weighted bisimulation for the system. Observe that initialising the partition as
fXg yields weak weighted bisimilarity i.e. the greatest weak bisimulation. Other
bisimulations can be obtained from different initialisations.</p>
      <p>Starting from fXg, the partition X takes every value of the sequence Xk where
new values are computed applying the splitting step described above to the current
value of X until a fixed point is reached. Besides the current partitions X , two
auxiliary partitions (X 0 and X 00) are required in order to track which classes are
added to X during the previous iteration of the repeat-until loop and thus avoid
checking splitters already used. These additional partitions improve readability
but the same result can be achieved, for instance, labelling previously checked
blocks. Moreover, X 0 and X 00 make the flag changed redundant. The algorithm
iterates over each candidate splitter h ; Ci and tries to split the partition by
checking whether (2) holds. If the partition “survives” every splitting test then
it is stable and in particular it describes a weak M -bisimulation. Saturated
transitions required by each split test are obtained as solutions to the linear
equations system from Definition 3. For each equivalence class tested C, j j + 1
systems of jXj equations and unknowns are solved but equations associated with
the occur every system and hence can be reused.</p>
      <p>
        The complexity of solving these systems depends on the underling semiring
structure. For instance, solving a system over the semiring of non-negative real
numbers is in P [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], whereas solving a system over the tropical (resp. arctic)
semiring is in NP\coNP [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Since the algorithm is parametrized by the semiring,
its complexity will be parametrized by the one introduced by the solution of
these linear equation systems. Therefore we shall denote by LS(n) the complexity
of solving a system of n equations in n variables over S.
      </p>
      <p>Let n and m denote the cardinality of states and labels respectively. For
each block C used to generate splits, there are exactly m candidates requiring
to solve m split tests and perform at most m updates to X . Splits can be
thought describing a tree whose nodes are the various blocks encountered by the
algorithm during its execution and whose leaves are exactly the elements of the
final partition. Because the cardinality of X is bound by n, the algorithm can
encounter at most O(n) blocks during its entire execution and hence it performs
at most O(n) updates of X (which happens when splits describe a perfect tree
with n leaves). Therefore, in the worst case, the algorithm does O(nm) split
tests and O(n) partition refinements. Partition refinements and checks of (2) can
be both done in O(n2) without any additional assumption about X, A and M
nor the use of particular data structures or primitives. Therefore the asymptotic
upper bound for time complexity of the proposed algorithm is O(nm(LS(n)+n2))
where LS(n) is the upper bound for the complexity introduced by computing
the weak transitions for a given set of states.</p>
      <p>
        The order structure on weights assumed by Definition 3 can be exploited
to speed-up the search for splitters. Under the mild assumption that weights
and blocks are totally ordered (at least within the same partition) saturated
transition to a splitting block C can be lexicographically ordered. Then, a block
B with more than one entry for the same label, say , is split by h ; Ci: the
presence of different entries is due to corresponds to two states x and y in B
such that (2) holds. The resulting algorithm is reported in Figure 2. For each
h ; Ci there are at most n weak transitions h(x; ; C) and these are sorted in
O(nln(n))—or in O(n) using a classical algorithm from [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. On the worst case
the algorithm encounters O(n) blocks during its entire execution yielding a worst
case time complexity in O(nm(LS (n) + n)).
      </p>
      <p>Theorem 1. The asymptotic upper bound for time complexity of the algorithm
is in O(nm(LS (n) + n2)), and in O(nm(LS (n) + n)) given a linear ordering for
blocks and weights. Both algorithms have space complexity in O(mn2).
5</p>
    </sec>
    <sec id="sec-5">
      <title>Concluding remarks</title>
      <p>In this paper we have introduced a general algorithm for deciding weak weighted
bisimulation parametric in the underlying algebraic structure of weights. The
algorithm generalises Kanellakis and Smolka’s algorithm for the coarsest stable
partition problem to weighted saturated graphs. The core of the algorithm is
the definition of the splitting step in terms of the saturated system which is
computed on-the-fly as necessary. The algorithm is parametric in the underlying
structure of weights and can be readily instantiated to many systems of interest.</p>
      <p>
        Obviously, for specific systems and semirings there are ad hoc algorithms
more efficient than ours. For instance, situations where saturation is invariant
under partition changes allow for more efficient approaches that pre-compute the
saturated systems (like, e.g., the transitive closure in nondeterministic LTSs).
However, in general this is not always possible; a prominent example are
probabilistic and stochastic systems. In the case of systems whose weights are drawn from
the semiring of non-negative real numbers (which captures probabilistic systems)
the asymptotic upper bound for time complexity of our algorithm is O(mn3:8)
(since LR0+ (n) is in O(n2:8) using [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]). However, deciding weak bisimulation for
fully-probabilistic systems is in O(mn3) on the worst case using the algorithm by
Baier et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] (the original analysis fixes resulting in the worst case complexity
O(n3)). Their algorithm leverages properties not available at the general level
of WLTSs (even under the assumption of suitable orderings), such as: sums of
outgoing transitions are bounded, there are complementary events, real numbers
have more structure than a semiring, weak and delay bisimulations coincide for
finite fully-probabilistic systems (e.g. this does not hold for non-deterministic
LTSs). A future work is to generalize the efficient results of [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] to a parametrized
algorithm valid for a class of WLTSs subject to suitable constraints.
      </p>
      <p>
        Another direction for improving the efficiency of our algorithm is to extend
Paige and Tarjan’s algorithm [
        <xref ref-type="bibr" rid="ref27">27</xref>
        ] for strong bisimulation instead of Kanellakis
and Smolka’s, or using approaches for symbolic bisimulations [
        <xref ref-type="bibr" rid="ref31">31</xref>
        ].
      </p>
      <p>
        Notions of bisimulations for FuTSs, ULTraSs, and variations thereof have
been shown to be as expressive as those for WLTSs [
        <xref ref-type="bibr" rid="ref23 ref25 ref28">23, 25, 28</xref>
        ]. The extension of
these results to weak bisimulation will automatically yield decision procedures
for FuTSs and ULTraSs based on our algorithm.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>L.</given-names>
            <surname>Aceto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Ingólfsdóttir</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Sack</surname>
          </string-name>
          .
          <article-title>Resource bisimilarity and graded bisimilarity coincide</article-title>
          .
          <source>Inf. Proc. Letters</source>
          ,
          <volume>111</volume>
          (
          <issue>2</issue>
          ):
          <fpage>68</fpage>
          -
          <lpage>76</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Aho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. E.</given-names>
            <surname>Hopcroft</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J. D.</given-names>
            <surname>Ullman</surname>
          </string-name>
          .
          <article-title>The Design and Analysis of Computer Algorithms</article-title>
          . Addison-Wesley Publishing Company,
          <year>1974</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>C.</given-names>
            <surname>Baier</surname>
          </string-name>
          .
          <article-title>On algorithmic verification methods for probabilistic systems</article-title>
          .
          <source>Universität Mannheim</source>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>C.</given-names>
            <surname>Baier</surname>
          </string-name>
          and
          <string-name>
            <given-names>H.</given-names>
            <surname>Hermanns</surname>
          </string-name>
          .
          <article-title>Weak bisimulation for fully probabilistic processes</article-title>
          .
          <source>In Proc. CAV</source>
          , pages
          <fpage>119</fpage>
          -
          <lpage>130</lpage>
          ,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>C.</given-names>
            <surname>Baier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Engelen</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M. E.</given-names>
            <surname>Majster-Cederbaum</surname>
          </string-name>
          .
          <article-title>Deciding bisimilarity and similarity for probabilistic processes</article-title>
          .
          <source>JCSS</source>
          ,
          <volume>60</volume>
          (
          <issue>1</issue>
          ):
          <fpage>187</fpage>
          -
          <lpage>231</lpage>
          ,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Bernardo</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Gorrieri</surname>
          </string-name>
          .
          <article-title>A tutorial on EMPA: A theory of concurrent processes with nondeterminism, priorities, probabilities and time</article-title>
          .
          <source>TCS</source>
          ,
          <volume>202</volume>
          (
          <issue>1-2</issue>
          ):
          <fpage>1</fpage>
          -
          <lpage>54</lpage>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M.</given-names>
            <surname>Bernardo</surname>
          </string-name>
          , R. De Nicola, and
          <string-name>
            <given-names>M.</given-names>
            <surname>Loreti</surname>
          </string-name>
          .
          <article-title>A uniform framework for modeling nondeterministic, probabilistic, stochastic, or mixed processes and their behavioral equivalences</article-title>
          .
          <source>Inf. Comput.</source>
          ,
          <volume>225</volume>
          :
          <fpage>29</fpage>
          -
          <lpage>82</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>T.</given-names>
            <surname>Brengos</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Peressotti</surname>
          </string-name>
          .
          <article-title>A uniform framework for timed automata</article-title>
          .
          <source>In Proc. CONCUR</source>
          , volume
          <volume>59</volume>
          <source>of LIPIcs</source>
          , pages
          <volume>26</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>26</lpage>
          :
          <fpage>15</fpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>T.</given-names>
            <surname>Brengos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Miculan</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Peressotti</surname>
          </string-name>
          .
          <article-title>Behavioural equivalences for coalgebras with unobservable moves</article-title>
          .
          <source>JLAMP</source>
          ,
          <volume>84</volume>
          (
          <issue>6</issue>
          ):
          <fpage>826</fpage>
          -
          <lpage>852</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>R. De Nicola</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Latella</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Loreti</surname>
            , and
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Massink</surname>
          </string-name>
          .
          <article-title>A uniform definition of stochastic process calculi</article-title>
          .
          <source>ACM Computing Surveys</source>
          ,
          <volume>46</volume>
          (
          <issue>1</issue>
          ):
          <fpage>5</fpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>D.</given-names>
            <surname>Grigoriev</surname>
          </string-name>
          and
          <string-name>
            <given-names>V. V.</given-names>
            <surname>Podolskii</surname>
          </string-name>
          .
          <article-title>Complexity of tropical and min-plus linear prevarieties</article-title>
          .
          <source>CoRR, abs/1204.4578</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>H.</given-names>
            <surname>Hermanns</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U.</given-names>
            <surname>Herzog</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.-P.</given-names>
            <surname>Katoen</surname>
          </string-name>
          .
          <article-title>Process algebra for performance evaluation</article-title>
          .
          <source>TCS</source>
          ,
          <volume>274</volume>
          (
          <issue>1-2</issue>
          ):
          <fpage>43</fpage>
          -
          <lpage>87</lpage>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>J.</given-names>
            <surname>Hillston</surname>
          </string-name>
          .
          <article-title>A compositional approach to performance modelling</article-title>
          .
          <source>CUP</source>
          ,
          <year>1996</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>P. C.</given-names>
            <surname>Kanellakis</surname>
          </string-name>
          and
          <string-name>
            <given-names>S. A.</given-names>
            <surname>Smolka</surname>
          </string-name>
          .
          <article-title>Ccs expressions, finite state processes, and three problems of equivalence</article-title>
          .
          <source>Inf. Comput.</source>
          ,
          <volume>86</volume>
          (
          <issue>1</issue>
          ):
          <fpage>43</fpage>
          -
          <lpage>68</lpage>
          ,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>B.</given-names>
            <surname>Klin</surname>
          </string-name>
          .
          <article-title>Structural operational semantics for weighted transition systems</article-title>
          . In J. Palsberg, editor,
          <source>Semantics and Algebraic Specification</source>
          , volume
          <volume>5700</volume>
          <source>of LNCS</source>
          , pages
          <fpage>121</fpage>
          -
          <lpage>139</lpage>
          . Springer,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>B.</given-names>
            <surname>Klin</surname>
          </string-name>
          and
          <string-name>
            <given-names>V.</given-names>
            <surname>Sassone</surname>
          </string-name>
          .
          <article-title>Structural operational semantics for stochastic process calculi</article-title>
          .
          <source>In Proc. FoSSaCS</source>
          , volume
          <volume>4962</volume>
          <source>of LNCS</source>
          , pages
          <fpage>428</fpage>
          -
          <lpage>442</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>B.</given-names>
            <surname>Klin</surname>
          </string-name>
          and
          <string-name>
            <given-names>V.</given-names>
            <surname>Sassone</surname>
          </string-name>
          .
          <article-title>Structural operational semantics for stochastic and weighted transition systems</article-title>
          .
          <source>Inf. Comput.</source>
          ,
          <volume>227</volume>
          :
          <fpage>58</fpage>
          -
          <lpage>83</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>K. G.</given-names>
            <surname>Larsen</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Skou</surname>
          </string-name>
          .
          <article-title>Bisimulation through probabilistic testing</article-title>
          .
          <source>Inf. Comput.</source>
          ,
          <volume>94</volume>
          (
          <issue>1</issue>
          ):
          <fpage>1</fpage>
          -
          <lpage>28</lpage>
          ,
          <year>1991</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>D.</given-names>
            <surname>Latella</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Massink</surname>
          </string-name>
          , and E. P. de Vink.
          <article-title>Bisimulation of labelled stateto-function transition systems coalgebraically</article-title>
          .
          <source>LMCS</source>
          ,
          <volume>11</volume>
          (
          <issue>4</issue>
          ),
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>G. L.</given-names>
            <surname>Litvinov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V. P.</given-names>
            <surname>Maslov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. Y.</given-names>
            <surname>Rodionov</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A. N.</given-names>
            <surname>Sobolevski</surname>
          </string-name>
          .
          <article-title>Universal algorithms, mathematics of semirings and parallel computations</article-title>
          . In
          <string-name>
            <given-names>A. N.</given-names>
            <surname>Gorban</surname>
          </string-name>
          and D. Roose, editors,
          <source>Coping with Complexity: Model Reduction and Data Analysis</source>
          , pages
          <fpage>63</fpage>
          -
          <lpage>89</lpage>
          . Springer,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>M.</given-names>
            <surname>Miculan</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Peressotti</surname>
          </string-name>
          .
          <article-title>Weak bisimulations for labelled transition systems weighted over semirings</article-title>
          .
          <source>CoRR, abs/1310.4106</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>M.</given-names>
            <surname>Miculan</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Peressotti</surname>
          </string-name>
          .
          <article-title>GSOS for non-deterministic processes with quantitative aspects</article-title>
          . In N. Bertrand and L. Bortolussi, editors,
          <source>Proc. QAPL</source>
          , volume
          <volume>154</volume>
          <source>of EPTCS</source>
          , pages
          <fpage>17</fpage>
          -
          <lpage>33</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>M.</given-names>
            <surname>Miculan</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Peressotti</surname>
          </string-name>
          .
          <article-title>On the bisimulation hierarchy of state-tofunction transition systems</article-title>
          .
          <source>In ICTCS</source>
          , volume
          <volume>1720</volume>
          <source>of CEUR Workshop Proceedings</source>
          , pages
          <fpage>88</fpage>
          -
          <lpage>102</lpage>
          . CEUR-WS.org,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>M.</given-names>
            <surname>Miculan</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Peressotti</surname>
          </string-name>
          .
          <article-title>Structural operational semantics for nondeterministic processes with quantitative aspects</article-title>
          .
          <source>TCS</source>
          , 655 Part B:
          <fpage>135</fpage>
          -
          <lpage>154</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>M.</given-names>
            <surname>Miculan</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Peressotti</surname>
          </string-name>
          .
          <article-title>Reductions for transition systems at work: Deriving a logical characterization of quantitative bisimulation</article-title>
          .
          <source>CoRR, abs/1704.07181</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>R.</given-names>
            <surname>Milner</surname>
          </string-name>
          . Communication and
          <string-name>
            <surname>Concurrency.</surname>
          </string-name>
          Prentice-Hall,
          <year>1989</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>R.</given-names>
            <surname>Paige</surname>
          </string-name>
          and
          <string-name>
            <given-names>R. E.</given-names>
            <surname>Tarjan</surname>
          </string-name>
          .
          <article-title>Three partition refinement algorithms</article-title>
          .
          <source>SIAM J. Comput.</source>
          ,
          <volume>16</volume>
          (
          <issue>6</issue>
          ):
          <fpage>973</fpage>
          -
          <lpage>989</lpage>
          ,
          <year>1987</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          [28]
          <string-name>
            <given-names>M.</given-names>
            <surname>Peressotti</surname>
          </string-name>
          .
          <article-title>On the trade-off between labels and weights in quantitative bisimulation</article-title>
          .
          <source>CoRR, abs/1705.06439</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          [29]
          <string-name>
            <given-names>C.</given-names>
            <surname>Priami</surname>
          </string-name>
          .
          <article-title>Stochastic pi-calculus</article-title>
          .
          <source>Comput. J.</source>
          ,
          <volume>38</volume>
          (
          <issue>7</issue>
          ):
          <fpage>578</fpage>
          -
          <lpage>589</lpage>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref30">
        <mixed-citation>
          [30]
          <string-name>
            <surname>R. J. van Glabbeek.</surname>
          </string-name>
          <article-title>The linear time-branching time spectrum</article-title>
          .
          <source>In Proc. CONCUR</source>
          , pages
          <fpage>278</fpage>
          -
          <lpage>297</lpage>
          ,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref31">
        <mixed-citation>
          [31]
          <string-name>
            <given-names>R.</given-names>
            <surname>Wimmer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Herbstritt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Hermanns</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Strampp</surname>
          </string-name>
          , and
          <string-name>
            <given-names>B.</given-names>
            <surname>Becker</surname>
          </string-name>
          .
          <article-title>Sigrefa symbolic bisimulation tool box</article-title>
          .
          <source>In Proc. ATVA</source>
          , pages
          <fpage>477</fpage>
          -
          <lpage>492</lpage>
          . Springer,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>