Contents lists available atScienceDirect
Theoretical
Computer
Science
www.elsevier.com/locate/tcs
Confluence
reduction
for
Markov
automata
✩
Mark Timmer
a,
∗
,
Joost-Pieter Katoen
a,
b,
Jaco van de Pol
a,
Mariëlle Stoelinga
a aFormalMethodsandTools,FacultyofEEMCS,UniversityofTwente,TheNetherlandsbSoftwareModellingandVerification,RWTHAachenUniversity,Germany
a
r
t
i
c
l
e
i
n
f
o
a
b
s
t
r
a
c
t
Articlehistory: Received 7 July 2015 Accepted 12 January 2016 Available online 19 January 2016 Keywords:
Markov automata Confluence State space reduction Process algebra
Divergence-sensitive branching bisimulation Partial order reduction
Markovautomataareanovelformalismforspecifyingsystemsexhibitingnondeterminism, probabilisticchoicesandMarkovianrates.Asexpected,thestatespaceexplosionthreatens theanalysabilityofthesemodels.WethereforeintroduceconfluencereductionforMarkov automata, a powerful reduction technique to keep them small by omitting internal transitions.WedefinethenotionofconfluencedirectlyonMarkovautomata,anddiscuss additionallyhowtosyntacticallydetectconfluenceontheprocess-algebraiclanguageMAPA thatwasintroducedrecently.Thatway,MarkovautomatageneratedbyMAPAspecifications can be reducedon-the-fly while preservingdivergence-sensitivebranchingbisimulation. Three case studies demonstrate the significance of our approach, with reductions in analysistimeuptoanorderofmagnitude.
©2016ElsevierB.V.All rights reserved.
1. Introduction
Markov automata (MAs) [1–3] are an expressive model incorporating concepts such as random delays, probabilistic branching,aswellasnondeterminism.TheyarecompositionalandsubsumeSegala’sprobabilistic automata(PAs),Markov decisionprocesses(MDPs),continuous-timeMarkovchains(CTMCs),interactiveMarkovchains(IMCs)andcontinuous-time Markovdecisionprocesses(CTMDPs).Theirlargeexpressivenessturns theMAintoanadequate semanticmodelfor high-level modelling formalisms of various application domains. So far, MAs have been used to provide an interpretation to (possibly confused) generalised stochastic Petrinets (GSPNs) [4],a widely used modellingformalism in performance en-gineering. Theyhaveacted ascompositional semanticsof dynamic fault trees [5], akey model inreliability engineering, exploitedforcomponent-basedsystemarchitecturelanguages[6,7],andforscenario-awaredata-flowcomputation[8].
Theclassicalanalysisofsub-modelssuchasMDPsandCTMCsistypicallystate-based,andsoarethemorerecently de-velopedquantitativeanalysistechniquesforMAs[9].Asaresult,theanalysisofMAssuffersfromtheproblemofstatespace explosion—thecurseofdimensionality.Amajorsourceofthisproblemistheoccurrenceofconcurrent,independent transi-tions.Hence,thispaperintroducesanon-the-fly reductiontechniqueforMAsthat—akintopartial-orderreduction—isbased ondetectingcommutativetransitionsthattypicallyarisefromtheparallelcompositionoflargelyindependentcomponents. Thisis done bygeneralising thetechnique ofconfluencereduction [10–12] toMAs. The crux ofthisapproachis todetect so-calledconfluentsetsofinvisibletransitions(i.e.,internalstuttertransitions).Whilegeneratingthestatespace,these
con-✩ This research has been partially funded by NWO under grant 612.063.817 (SYRUP), by STW under grant 12238 (ArRangeer), and the EU under grant 318490 (SENSATION).
*
Corresponding author.E-mailaddresses:timmer@cs.utwente.nl(M. Timmer), katoen@cs.rwth-aachen.de(J.-P. Katoen), vdpol@cs.utwente.nl(J. van de Pol), marielle@cs.utwente.nl(M. Stoelinga).
http://dx.doi.org/10.1016/j.tcs.2016.01.017 0304-3975/©2016 Elsevier B.V. All rights reserved.
Lifting thenotion of confluence[10–12] to MAs is subjectto various subtleties. This paperdiscusses thesesubtleties thoroughly andcarefullyjustifiesthe definitionofconfluenceforMAs. Althoughthepresence ofrandomdelaysdoesnot necessarily impactthe notionofconfluence comparedto earliervariantsforprobabilistic systems,it doescomplicate the correctnessproofsandnecessitatesthepreservationofdivergenceswhenreducingbasedonconfluence.
The central concept in thispaper is the definitionof confluentsets of transitions.It is shown that confluent sets are closed under union, as opposedto earlierwork on confluence reduction [11,12], and that confluent transitions connect divergence-sensitivebranchingbisimilarstates.ToobtainareducedMAefficiently,wepresentamappingofstatestotheir representatives.Weshowthatconfluencecanbedetectedsymbolicallybytreatingindetailhowconfluencedetectioncanbe performedonspecificationsinthedata-rich process-algebraiclanguage MAPA[14].Thisresultsina techniquetogenerate reducedMAson-the-flyinasymbolicfashion,i.e.,whilegeneratingthestatespacefromaMAPAspecification.Wediscuss heuristics so as to carry out confluence reduction efficiently. Case studies applying these techniques demonstrate state spacereductionswithfactors uptofive,decreasinganalysistimesometimeswithmorethan90%.The obtainedsymbolic, on-the-fly state space reductions reduce up to 90% of the states that could potentially have been reduced using direct branching-bisimulationminimisation.
Relatedwork Althoughthispaper isinspired by earlierapproachesonconfluence reduction forprocess algebras [11,12], there areimportantdifferences. First,ournotion considersstate labelsinaddition toobservable actions,thuslifting con-fluence reductiontoalargerclass ofsystems.Secondly,weconsiderdivergence-sensitivity, i.e.,infiniteinternalbehaviour, hence preservingminimal reachabilityprobabilities(inspiredby [15]). Third,we correctasubtleflaw in[11,12] by intro-ducingaclassificationoftheinteractivetransitions.Inthisway,confluentsetsareclosedunderunion.1 Thispropertyiskey
to thewaywe detectconfluenceonMAPAspecifications.Finally,weallowrandom delaysandhenceprovecorrectnessof confluencereductionforalargerclassofsystems.
Confluence reduction is akintopartial-order reduction (POR)[16–20].These techniquesare basedon ideas similar to confluence, choosing a subset of the outgoing transitions per state (often called ample, stubborn or persistent sets) to reduce thestatespacewhilepreservingacertain notionofbisimulation ortrace equivalence.Theamplesetapproachhas beensuccessfullyextendedtoMDPs[21–23].ForSegala’sPAs,ithasbeendemonstratedthatconfluencereductionismore powerfulintheoryaswellaspracticewhenrestrictingtothepreservationofbranching-timeproperties[15,24].Tothebest ofourknowledge,PORhasnotbeenadaptedtoMAs,ortocontinuous-timeMarkovmodelsingeneral.
The theoryofMAshasbeenequippedwithnotionsofstrongandweakbisimulations[1–3].Thesenotionsare congru-enceswithrespecttoparallelcomposition.Whereasstrongbisimulationcanbe checkedinpolynomialtime, itisanopen questionwhetherthisalsoholdsforweakbisimulation.Asweshowinthispaper,checkingconfluencesymbolicallycanbe done inpolynomial timeinthesizeoftheprocessalgebraic description.Inaddition,confluencereductionisanon-the-fly reductiontechnique,whereasbisimulationtypicallyisbasedonapartition-refinementschemethatrequiresthestatespace priortotheminimisation.
Organisationofthepaper WeintroduceMarkovautomatainSection2,followedbyaninformalintroductiontotheconcept of confluencereduction inSection 3. Section4 introduces ournotionofconfluenceforMAs, proves closureunderunion, andshowsthat confluent transitionsconnect divergence-sensitivebranching bisimilarstates.Section 5presentsourstate spacereductiontechniquebasedonconfluenceandrepresentationmaps.Section6providesacharacterisationfordetecting confluence on MAPA specifications.This is applied to severalcase studies in Section 7. Finally, Section 8 motivates our designchoicesbydiscussingthedisadvantagesofpossible(naive)variations,andSection9concludes.
Thispaperextends[25]bymoreextensiveexplanations,statelabelsforMAs,proofs(intheappendix)andadiscussion ofalternativeconfluencenotionsthatmayseemreasonable,butturnouttobeinadequate.
2. Preliminaries
Definition1 (Basics).Aprobabilitydistribution overa countableset S is afunction
μ
:
S→ [
0,
1]
suchthat s∈Sμ
(
s)
=
1. For S⊆
S,letμ
(
S)
=
s∈Sμ
(
s)
.Wedefinesupp(
μ
)
= {
s∈
S|
μ
(
s)
>
0}
tobethesupport ofμ
,andwrite1
s fortheDirac distribution fors,determinedby1
s(
s)
=
1.Sometimes,weusethenotationμ
= {
s1→
p1,
s2→
p2,
. . . ,
sn→
pn}
todenotethat
μ
(
s1)
=
p1,μ
(
s2)
=
p2,. . . ,μ
(
sn)
=
pn.We use
P(
S)
to denotethepowerset of S,andwriteDistr(
S)
forthesetofalldiscreteprobabilitydistributions over S.We use SDistr
(
S)
forthe setof all substochastic discrete probability distributions over S,i.e., all functionsμ
:
S→ [
0,
1]
1 Our approach resembles[11,12]to a substantial degree, albeit that[11,12]consider a less expressive model and does not preserve divergences. Whereas the theoretical set-up in[11,12]does not guarantee closure under union—although that is assumed—the corresponding implementations did work correctly. We show in this paper that an additional technical restriction (the confluence classification) is needed to remedy the theoretical flaw. This restriction happens to be satisfied in the old implementations (in the same way as in ours). As the confluence reductions in[11,12]are restricted variants of our notion, they could be fixed by introducing a confluence classification precisely in the same way as we do here.
such that
s∈Sμ
(
s)
≤
1. Givena function f:
S→
T , we denotebyμ
f the lifting ofμ
over f , i.e.,μ
f(
t)
=
μ
(
f−1(
t))
,with f−1
(
t)
theinverseimageoft under f .Givenan equivalencerelation R
⊆
S×
S,we write[
s]
R fortheequivalenceclass of s inducedby R,i.e.,[
s]
R= {
s∈
S|
(
s,
s)
∈
R}
.Giventwoprobabilitydistributionsμ
,
μ
∈
Distr(
S)
andanequivalencerelation R, wewriteμ
≡
Rμ
todenotethat
μ
(
[
s]
R)
=
μ
(
[
s]
R)
foreverys∈
S.Markovautomata[1–3]consistofacountablesetofstates,aninitialstate,analphabetofactions,setsofaction-labelled (interactive)andrate-labelled(Markovian)transitions,asetofatomicpropositionsandastate-labellingfunction.Weassume acountableuniverseofactionsAct andaninternalaction
τ
∈
Act.Definition2(Markovautomata).AMarkovautomaton isatuple
M
=
S,
s0,
A,
−
→, ,
AP,
L,where•
S isacountablesetofstates,ofwhichs0∈
S istheinitialstate;•
A⊆
Act isacountablesetofactions;• −
→ ⊆
S×
A×
Distr(
S)
isacountableinteractiveprobabilistictransitionrelation;• ⊆
S× R
>0×
S isacountableMarkoviantransitionrelation;•
AP isacountablesetofstatelabels (alsocalledatomicpropositions);and•
L:
S→
P(
AP)
isastate-labellingfunction.If
(
s,
a,
μ
)
∈ −
→
,wewrite s−
→
aμ
andsaythatactiona canbetakenfromstates,afterwhichtheprobabilitytogotoeachs
∈
S isμ
(
s)
.If(
s,
λ,
s)
∈
,wewritesλ sandsaythat s movesto s withrate
λ
.The (exponential)rate between two states s
,
s∈
S is rate(
s,
s)
=
(s,λ,s)∈λ
, and the exit rate of s is rate(
s)
=
s∈Srate
(
s,
s)
.Werequirerate(
s)
<
∞
foreverys∈
S.Ifrate(
s)
>
0,thebranchingprobabilitydistribution ofs isdenotedbyP
s anddefinedasP
s(
s)
=
rate(s,s )rate(s) foreverys
∈
S.Bydefinitionoftheexponentialdistribution,theprobabilityofleavingastates withint timeunitsisgivenby1
−
e−rate(s)·t (givenrate(
s)
>
0),afterwhichthenextstateischosenaccordingtoP
s.MAsadheretothemaximalprogressassumption,postulating that
τ
-transitionscanneverbedelayed(sincetheyarenot subject to any interaction [26]). Hence, a state that has at least one outgoingτ
-transition can never take a Markovian transition.Thisfactiscapturedbelowinthedefinitionofextendedtransitions,whichisusedtoprovideauniformmanner fordealingwithbothinteractiveandMarkoviantransitions.Eachstatehasanextendedtransitionperinteractivetransition, whileithasonlyoneextendedtransitionforallitsMarkoviantransitionstogether(ifthereareany).We assume an arbitrary MA
M =
S,
s0,
A,
−
→, ,
AP,
Lin every definition, proposition and theorem.Definition3(Extendedactionset).Theextendedactionsetof
M
isAχ=
A∪ {
χ
(
r)
|
r∈ R
>0}
.Givenastates∈
S andanactionα
∈
Aχ ,wewrites−
→
αμ
if•
α
∈
A ands−→
αμ
;or•
α
=
χ
(
rate(
s))
,rate(
s)
>
0,μ
= P
sandthereisnoμ
suchthats−→
τμ
.Atransitions
−
→
αμ
iscalledanextendedtransition.We writes−
→
α t fors−
→ 1
α t,ands→
t ifs−
→
α t forsomeα
∈
Aχ .Wewrite s
−
α−−→
,μ s ifthereisan extendedtransitions−
→
αμ
suchthatμ
(
s)
>
0. Atransitions→
−
aμ
isinvisible if botha=
τ
andL
(
s)
=
L(
t)
foreveryt∈
supp(
μ
)
.Example4.ConsidertheMAshownontheright.
Here,rate
(
s2,
s1)
=
3+
4=
7,rate(
s2)
=
7+
2=
9,andP
s2=
μ
suchthat
μ
(
s1)
=
79 andμ
(
s3)
=
29.Therearetwoextendedtransitionsfrom s2: s2→ 1
−
a s3 (alsowrittenass2→
−
a s3)ands2−
χ−−→ P
(9) s2.2
We define severalnotions forpaths andconnectivity. Theseare basedon extended transitions,andthus maycontain interactiveaswellasMarkovian steps.
Definition5(Pathsandtraces).
•
Apath inM
isafinite sequenceπ
fin=
s0
−
α1−−−→
,μ1 s1−
−−−→
α2,μ2 s2−
α3−−−→ · · · −
,μ3 α−−−→
n,μn sn,possiblywithn=
0,oran infinitesequence
π
inf=
s0
−
α1−−−→
,μ1 s1−
α2−−−→
,μ2 s2−
−−−→ . . .
α3,μ3 ,withsi∈
S for all0≤
i≤
n andall i≥
0,respectively,andsuchthat si−
α−−→
i+1μ
Fig. 1. An MA (left), and a tree demonstrating branching transition s=⇒α Rμ(right).
WeusefinpathsM forthesetofallfinitepaths in
M
(notnecessarilybeginningintheinitialstate),andfinpathsM(
s)
forallsuchpaths with s0
=
s.•
A pathπ
isinvisible (denotedby invis(
π
)
) if itnever altersthe state labelling andonlyconsists ofinternal actions:L
(
si)
=
L(
s0)
andα
i=
τ
forall i. Given a sufficientlylong pathπ
,we use prefix(
π
,
i)
to denote the pathfragment s0−
α1−−−→ . . . −
,μ1 α−−→
i,μi si,and step(
π
,
i)
forthe transitionsi−1−
−→
αiμ
i. Ifπ
is finite,we define|
π
|
=
n and last(
π
)
=
sn,otherwise
|
π
|
= ∞
andnofinalstateexists.Definition6(Connectivity).Lets
,
t∈
S,andconsidertherelation→ ⊆
S×
S fromDefinition 3
that relatesstatess,
t∈
S ifthereisatransitions
−
→ 1
α t for someα
∈
Aχ .Welet↠
(reachability) bethereflexiveandtransitiveclosureof→
,and↠ ↠
(convertibility) its reflexive, transitiveandsymmetricclosure. We write s↠ ↠
t (joinability) if s↠
u andt↠
u forsome state u∈
S.Example7.TheMAin
Example 4
hasinfinitelymanypaths,forexampleπ
=
s2−
χ−−−−→
(9),μ1 s1−
a−−→
,μ2 s0−
χ(2),1s1−−−−−→
s1−
a−−→
,μ2 s4−
τ,1s5−−−→
s5with
μ1
(
s1)
=
79 andμ1
(
s3)
=
29, andμ2
(
s0)
=
23 andμ2
(
s4)
=
13. Here, prefix(
π
,
2)
=
s2−
χ−−−−→
(9),μ1 s1−
a−−→
,μ2 s0, and step(
π
,
2)
=
s1−
→
aμ2
.Also,s2↠
s5 (vias3),aswellass3↠ ↠
s6 (ats5)ands0↠ ↠
s5.However,s0↠
s5 ands0↠ ↠
s5 donothold(ass0 cannotgettos4 viaonlytransitionswithDiracdistributions).
2
Therelation
↠ ↠
issymmetric,butnotnecessarilytransitive.Intuitively,s↠ ↠
t meansthat s isconnectedbyextended transitionstot—disregardingtheirorientation,butallwithaDiracdistribution.Clearly,s↠
t impliess↠ ↠
t,ands↠ ↠
timpliess
↠ ↠
t.Theseimplicationsdonotholdtheotherway.Toproveconfluencereductioncorrect,we showthatitpreservesdivergence-sensitivebranching bisimulation.Basically, this means that thereis an equivalence relation R linkingstates inthe original systemto states inthe reducedsystem, such that their initial statesare relatedand all related statescan mimic each other’stransitions and divergences.More precisely, forall
(
s,
t)
∈
R andeveryextendedtransitions−
→
αμ
,thereshouldbeabranchingtransition t=⇒
α Rμ
suchthatμ
≡
Rμ
.The existenceofsuch abranching transitiondependsonthe existenceofa certainscheduler.SchedulersresolvenondeterministicchoicesinMAsbyselectingwhichtransitionstotakegivenahistory;theymayalsoterminatewithsome probability.
Astatet candoabranchingtransitiont
=⇒
α Rμ
ifeither(1)α
=
τ
andμ
= 1
t,or(2)thereisaschedulerthat,startingfrom state s, terminatesaccording to
μ
, always schedules precisely oneα
-transition (immediately before terminating), neverschedulesanyothervisibletransitionsanddoesnotleavetheequivalenceclass[
t]
R beforedoinganα
-transition. Example8. Observe the MA in Fig. 1 (left). Due to nondeterminism (that can be resolved probabilistically), there are infinitely many branching transitions from s. We demonstrate the existence of the branching transition s=⇒
α Rμ
, withμ
= {
s1→
248,
s2→
247,
s3→
241,
s4→
244,
s5→
244}
,bytheschedulerdepictedinFig. 1
(right),assuming(
s,
ti)
∈
R forall ti.The schedulingtreeillustratestheprobabilistic choicesby whichthenondeterministicchoicesare resolved.Underthis scheduling,theprobabilitiesofendingupins1
,
. . . ,
s5 canbefoundbymultiplying theprobabilitiesonthepathstowardsthem.Indeed,thesecorrespondtotheprobabilitiesprescribedby
μ
.2
Inadditionto themimickingoftransitionsby branchingtransitions,werequire R-relatedstatestoeitherbothbe able to performaninfiniteinvisiblepathwithprobability 1 (diverge),ortobothnotbe abletodoso.Wewrite s
≈
divb t iftwo statess,
t aredivergence-sensitivebranchingbisimilar,andM
1≈
divbM
2 iftwoMAsare(i.e.,iftheirinitialstatesaresointheirdisjointunion)[27].
Technicalities We now formalise the notions of schedulers, branching transitions and (divergence-sensitive) branching bisimulation. Thesetechnicalities are needed solelyfor the proofsof our theorems andpropositions, andhence maybe skippedbythereaderonlyinterestedintheresultsthemselves.
Thedecisionsofschedulersmayberandomised:insteadofchoosingasingletransition,aschedulermayresolvea non-deterministic choice probabilistically. Schedulers can alsobe partial, assigning some probability to notchoosing anynext
transitionatall (andhenceterminating).Theycan selectfrominteractivetransitions aswellasMarkoviantransitions,as bothmaybeenabledatthesametime.Thisisduetothefactthat weconsideropen MAs,inwhichthetiming ofvisible actionsisstilltobedetermined by their context.
Definition9(Schedulers).Let
→ ⊆
S×
Aχ×
Distr(
S)
bethesetofextendedtransitionsofM
.Then,ascheduler forM
isa functionS
:
finpathsM→
Distr({⊥} ∪ →)
such that, for every
π
∈
finpathsM, the transitions s−
→
αμ
that are scheduled byS
afterπ
are indeed possible, i.e.,S(
π
)(
s,
α
,
μ
)
>
0 impliess=
last(
π
)
.Thedecisionofnotchoosinganytransitionisrepresentedby⊥
.Note that ourschedulers are time-homogeneous (also calledtime-abstract): they cannot take into account theamount of time that has already passed during a path. When dealing with time-bounded reachability properties [28], time-inhomogeneous schedulers are important, as they may be needed for optimalresults. However, inthis work we can do without as we will not formally define such properties. Since time-homogeneous schedulers do take into account the rates of an MA, we can use them to define notions of bisimulation that do preserve time-bounded properties (similar to weak bisimulation in [1] beingdefined in terms of ‘time-homogeneous’ labelled trees). As discussed in [29], measur-ability is not an issue for time-homogeneous schedulers. We refer to [30] fora thorough analysis of different types of schedulers.SinceMarkovianextendedtransitionsonlyemanatefromstateswithoutanyoutgoing
τ
-transitions,schedulers cannotviolate the maximal progress assumption.WenowdefinefiniteandmaximalpathsofanMAunderascheduler.Thefinitepathsunderaschedulerarethosefinite paths oftheMA forwhicheach stephasbeen assignedanonzero probability.Themaximal paths area subset ofthose; theyarethepathsafterwhichthescheduler may decide to terminate.
Definition10(Finiteandmaximalpaths).Thesetoffinitepaths of
M
underaschedulerS
isfinpathsSM
= {
π
∈
finpathsM| ∀
0≤
i<
|
π
| .
S
(
prefix(
π
,
i))(
step(
π
,
i+
1)) >
0}
LetfinpathsSM(
s)
⊆
finpathsSM bethesetofallsuchpathsstartinginstates∈
S.Thesetofmaximalpathsof
M
underS
isgivenbymaxpathsSM= {
π
∈
finpathsSM|
S(
π
)(
⊥)
>
0}
.Similarly,maxpathsSM(
s)
isthesetofmaximalpathsof
M
underS
startingin s.As schedulersresolveall nondeterministicchoices, wecan compute theprobability that,starting froma givenstate s,
thepathgeneratedby
S
hassomefiniteprefixπ
.Thisprobabilityisdenotedby PM,S s(
π
)
.Definition 11 (Pathprobabilities). Let
S
be a scheduler forM
, and let s∈
S be a state ofM
. Then, the functionPSM,s
:
finpathsM(
s)
→ [
0,
1]
isdefinedbyPM,S s
(
s)
=
1 PM,S s(
π
−
α−−→
,μ t)
=
PSM,s(
π
)
·
S
(
π
)(
last(
π
),
α
,
μ
)
·
μ
(
t)
Basedontheseprobabilitieswecancomputetheprobabilitydistribution FMS
(
s)
overthestateswhereanMAM
under aschedulerS
terminates,whenstartinginstates.Notethat FMS(
s)
maybesubstochastic(i.e.,theprobabilitiesdonotadd upto 1),asS
doesnotnecessarilyterminate.Definition12(Finalstateprobabilities).Givenascheduler
S
forM
,wedefine FMS:
S→
SDistr(
S)
byFMS
(
s)
=
s→
π∈maxpathsSM(s) last(π)=s PSM,s(
π
)
·
S
(
π
)(
⊥) |
s∈
S∀
s∈
SExtendedexamplesofthesedefinitionscanbefoundin[34].
Tointroducebranching bisimulation,we firstdefine thebranchingtransition.Dueto theuseofextended transitionsas a uniformmannerofdealing withbothinteractive andMarkoviantransitions,thisdefinitionpreciselycoincides withthe definitionofbranchingstepsforPAs[12].
Definition13 (Branchingtransitions). Let s
∈
S, and let R⊆
S×
S be an equivalence relation. Then, s=⇒
α Rμ
if either(1)
α
=
τ
andμ
= 1
s,or(2) aschedulerS
exists such thatFig. 2. Two systems to illustrate divergence.
•
forevery maximalpath s−
α1−−−→
,μ1 s1−
α2−−−→ . . . −
,μ2−−−→
αn,μn sn∈
maxpathsSM(
s)
it holdsthatα
n=
α
.Moreover,forevery 1≤
i<
n wehaveα
i=
τ
,(
s,
si)
∈
R andL(
s)
=
L(
si)
.Example 8alreadyprovidedanexampleofabranchingtransition.
Basedonbranchingtransitions,wedefinebranchingbisimulation forMAsasanaturalextensionofthenotionofnaive weakbisimulationfrom[1].2NaiveweakbisimulationisanintuitivegeneralisationofweakbisimulationfromPAsandIMCs to MAs. Forfinitelybranchingsystems, naiveweak bisimulation isimplied by ournotionofbranching bisimulation, asit is basically obtainedby omitting therequirement that
(
s,
si)
∈
R for all 1≤
i<
n, and allowing convexcombinations oftransitions.
Definition 14 (Branchingbisimulation). An equivalence relation R
⊆
S×
S is a branchingbisimulationforM
if for every(
s,
t)
∈
R andallα
∈
Aχ,
μ
∈
Distr(
S)
,itholdsthat L(
s)
=
L(
t)
ands
−
→
αμ
implies∃
μ
∈
Distr(
S) .
t=⇒
α Rμ
∧
μ
≡
Rμ
Twostates s
,
t∈
S arebranchingbisimilar (denotedby s≈
bt)ifthereexists abranching bisimulation R forM
suchthat(
s,
t)
∈
R.TwoMAsM,
M
arebranchingbisimilar(denotedbyM
≈
bM
)iftheir initialstatesarebranchingbisimilarintheirdisjointunion.
Notethat,sinceeachbranchingbisimulationrelationR hasthepropertythat
(
s,
t)
∈
R impliesL(
s)
=
L(
t)
,thecondition “L(
s)
=
L(
si)
forevery1≤
i<
n”inDefinition 13
isalreadyimpliedby(
s,
si)
∈
R,andhencedoesnotexplicitlyneedtobe checkedfort=⇒
α Rμ
.Ifinfinitepathsof
τ
-actionscanbe scheduledwithnon-zeroprobability,thenminimal probabilities(e.g.,ofeventually seeingana-action)arenotpreservedbybranchingbisimulation.ConsiderforinstancethetwoMAsinFig. 2
.Notethat,for the oneontheleft, thea-transitionisnot necessarilyevertaken. Afterall,itispossibleto indefinitelyandinvisiblyloop throughstates0:divergence.FortheMAontheright,thea-transitioncannotbeavoided(assumingthatterminationcannotoccur instateswithoutgoingtransitions).Still,theseMAsarebranching bisimilar,andhencebranchingbisimulationdoes notleaveinvariantallproperties—inthiscase,theminimalprobabilityofeventuallytakingana-transition.
To solve thisproblem, divergence-sensitive notions of bisimulation havebeen introduced [27,31].They force diverging states to be mapped to diverging states. We adopt thisconcept forMarkovian branching bisimulation. Since Markovian transitions alreadyneed to be mimicked,and thesame holds fortransitions that changethe state labelling(since these cannot stay within thesameequivalence class),divergenceis definedasthe traversalofan infinitepath
π
thatcontains onlyτ
-actionsandneverchangesthestatelabelling(i.e.,apathπ
suchthatinvis(
π
)
).Definition15(Divergence-sensitiverelations).Anequivalencerelation R
⊆
S×
S overthestatesofM
isdivergencesensitiveifforall
(
s,
s)
∈
R itholdsthat∃
S
.
∀
π
∈
finpathsSM(
s) .
invis(
π
)
∧
S
(
π
)(
⊥) =
0 iff∃
S
.
∀
π
∈
finpathsSM(
s) .
invis(
π
)
∧
S
(
π
)(
⊥) =
0where
S
andS
rangeover all possibleschedulersforM
.TwoMAsM
1,
M
2 are divergence-sensitivebranchingbisimilar,denotedby
M
1≈
divbM
2,iftheyarerelatedbyadivergence-sensitivebranchingbisimulation.Example16.The twoMAs in
Fig. 2
arebranching bisimilarbythe equivalencerelationthat relatess0 tot0 ands1 tot1.However, whereasfroms0 an infiniteinvisible pathcanbescheduled,thiscannot bedonefromt0;hence,thisrelationis
notdivergencesensitive.Indeed,sincefroms0 aschedulercanpreventthea-transitionfromtakingplace,whilefromt0 it
cannot,wedonotwanttoconsidertheseMAsequivalent.
2
2 Since our notion of branching bisimulation for MAs is just as naive as naive weak bisimulation for MAs, we could have called it naivebranching bisimulation.
However, since naive weak bisimulation for MAs is actually strongly related to weak bisimulation for PAs and IMCs, we argue that it would
have made more sense to omit the ‘naive’ in the existing notion of naive weak bisimulation for MAs and prefix ‘smart’ to the existing notion of weak bisimulation for MAs.Fig. 3. Observable versus unobservable invisible transitions.
Fig. 4. State space reduction based on confluence.
3. Informalintroductionofconfluence
Beforeintroducingthe technicaldefinitionsofconfluenceforMAs,we provideaninformaloverviewofconfluenceand itsusageinstatespacereduction[11,12].SincetheadditionaltechnicaldifficultiesduetoprobabilitiesandMarkovianrates maydistractfromtheunderlyingideas,weomittheminthisintroduction.
Confluencereductionisbasedontheideathatsometransitionsdonotinfluencetheobservablebehaviourofasystem— assumingthatonlyvisibleactionsa
=
τ
andchangesinthetruthvaluesofatomicpropositionsareobserved.Hence,these transitionscanbegivenpriorityoverothertransitions.Tothisend,theyatleasthavetobeinvisiblethemselves.Still,some invisible transitionsmay influencethe observablebehaviour ofan MA,eventhough they arenot observable themselves— thesecannotbeconfluent.Fig. 3
illustratesthisphenomenon.Example17.While thetransitions1
−
→
τ s2 inFig. 3
(a)cannot beobserveddirectly, itdoesdisable theb-transition.Hence,thistransition influences the observable behaviour: if it was always taken froms1 while omitting the other two
transi-tionsemanatingfromthisstate,thennob-actionwouldeverbeobservedandtheatomicpropositionr wouldneverhold. Therefore,statess1 ands2 arenotbranchingbisimilar.
The transition s1
−
→
τ s2 in Fig. 3(b) is different:we can always take it from s1, ignoring s1→
−
a s3, without losing anyobservablebehaviour:s1
−
→
τ s2 isconfluent.Boththeoriginalsystemandthesystemreducedinthiswaymaytakeana orab-actionandmayendupinastatesatisfyingeitherq orr.Actually,statess1 ands2 arebranchingbisimilar,andsoare
theoriginalandthereduced system (Fig. 4(b)).
2
The exampleillustrates the mostimportantproperty ofconfluent transitions:they connect branching bisimilar states, andhenceinprincipletheycanbegivenpriorityovertheirneighbouringtransitionswithoutlosinganybehaviour.Toverify thatatransitionisconfluent,itshouldbeinvisibleand stillallowallbehaviourenabledfromitssourcestatetooccurfrom itstargetstateaswell.Inotherwords,allothertransitionsfromitssourcestateshouldbemimicked fromitstargetstate.
3.1. Checkingformimickingbehaviour
Tocheckwhetherallbehaviourfromatransition’ssourcestateisalsoenabledfromitstargetstate,confluenceemploys acoinductiveapproachsimilartothecommondefinitionsofbisimulation.Foraninvisibletransitions
−
→
τ stobeconfluent, the existence of a transition s→
−
a t should imply the existence of a transition s→
−
a t for some t. Additionally, for all behaviour froms tobe presentat s, alsoall behaviourfromt shouldbe presentatt.Toachieve this, we coinductively requirestohaveaconfluenttransitionto t,andthensaythatthea-transitionsandtheconfluentτ
-transitionscommute.Wenotethatacoinductiveapproachsuchastheonejustdescribedrequiresasetoftransitionstobedefinedupfront.Then, we can validate whetherornot thisset indeedsatisfies theconditions forit tobe confluent. In practice,we are mostly interestedinfindingthelargest setforwhichthisisthecase.
Fig. 5. Confluence reduction in the presence of cyclic confluent transitions.
Example18. InFig. 3(a), the set containing both
τ
-transitions isnot confluent. After all, for s1−
→
τ s2 it is not the casethat every actionenabledfroms1 isalsoenabled froms2.In Fig. 3(b),thesetcontaining both
τ
-transitionsis confluent.For s3
−
→
τ s4, the mimicking condition is satisfied trivially, since s3 has no other outgoing transitions. For s1−
→
τ s2 theconditionisalsosatisfied,sinces1
→
−
a s3ismimickedbys2→
−
a s4.Asrequired,s3ands4areindeedconnectedbyaconfluenttransition.
2
3.2. Statespacereductionbasedonconfluence
Confluenttransitionscanoftenbegivenpriority,omittingallothertransitionsemanatingfromthesamestate.Thismay yieldmanyunreachablestates,andhencesignificantstatespacereductions.Althoughasystemobtainedduetoprioritisation ofconfluenttransitionsisindeedbranchingbisimilartotheoriginal system(undersomeassumptions discussedbelow),it oftenstillcontainssuperfluousstates.Theyhaveonlyoneoutgoinginvisibletransition, andhencedonotcontributetothe system’sobservablebehaviourinanyway.So,insteadofprioritisingconfluenttransitions,werathercompletelyskipthem. Example19.Consider again
Fig. 3
(b),repeatedinFig. 4
(a),wherebothinvisible transitionsareconfluent.Fig. 4
(b) demon-stratesthereducedstatespacewhengivingthesetransitionspriorityovertheirneighbours.Althoughthisreductionisvalid, state s1 haslittlepurposeandcanbeskipped.Thatway,weobtainthesystemillustratedinFig. 4
(c).2
Prioritisation of transitions aswell as skipping them onlyworks in theabsence of cyclesof confluent transitions. To see why,considerthe systeminFig. 5(a).All invisibletransitions areconfluent. However,when continuously ignoringall non-confluent transitions(yielding
Fig. 5
(b)),thea-transitionispostponedforeverandtheatomicpropositionq willnever hold. Clearly, such areduction doesnot preservereachability propertiesandhencethereducedsystemis notconsidered equivalent to theoriginal (indeed,they are not branchingbisimilar). Thisproblemisknown inthesettingof PORastheignoringproblem [16,32],andoftendealtwithby requiringthereduction tobeacyclic.Thatis,nocycleofstatesthatare all omittingsomeoftheirtransitionsshouldbepresent.Indeed,thisrequirementisviolatedin
Fig. 5
(b).Asasolution,we couldalsorequirereductionstobeacyclic,forcingatleastonestateofacycletobefullyexplored.(Note that Valmari [33] recentlyshowedthat thereis noneedfortreating the ignoringproblematall for,e.g., safety andfairness-insensitiveprogressproperties,whenthetransitionsystemisalways may-terminating,i.e., whenalongevery executionthereisapossibilitytoreachaterminatingstate.)
Example20.
Fig. 5
(c)showstheresultofreducingFig. 5
(a)basedonprioritisationwhileforcingatleastonestateonacycle tobefullyexplored(here,states2).2
The ideaofskippingconfluent transitionscanbe extendedtoworkinthe presenceofcyclesofconfluenttransitions— thatisalsotheapproachwetake.Intheir absence,thisapproachsimplyboilsdowntoskippingconfluenttransitionsuntil
reaching a state withoutanyoutgoing confluent transitions(state s2 in
Fig. 4
(c)). Inthe presenceof cycles,we continueuntilreaching thebottomstrongly connectedcomponent(BSCC)ofthe subgraphwhenconsidering onlyconfluent transi-tions. When requiringconfluent transitionsto always bemimicked by confluent transitions,thereis aunique such BSCC reachablefromeverystate(in
Fig. 5
(a),s1 hasBSCC{
s2,
s3}
whenonlyconsideringtheconfluenttransitions).InthisBSCC,we randomly select one state to be the representative for all states that can reach it by skipping confluent transitions. Since confluent transitions never disable behaviour, such a representative state exhibits all behaviour of the states that it represents.Therepresentative state isexplored fully,andall transitions tostatesthat can reachthat representative by confluent transitions are redirected towards the representative.
Example21.
Fig. 5
(d)illustratestherepresentativesapproach,selectings2 asrepresentativeofs1,s2 ands3,ands6 asrep-resentativeofs5 ands6.NotethatboththeacyclicreductionandtherepresentativeapproachyieldMAsthatarebranching
bisimilartotheoriginal,butthelatterallowsformorereduction.
2
Overview Summarising,confluencereductionentails:
1. Constructingasubsetoftheinvisibletransitionssatisfyingtheconfluencerestrictions. 2. Choosingarepresentativestateforeachstateintheoriginalsystem.
3. Reducingthestatespacebyskippingconfluenttransitionsuntilreachingarepresentativestate.
We will seethat, inpractice, theset ofconfluent transitions is oftenimplicit:we check whetherhigher-level constructs generatesolelyconfluenttransitions.Also,thesecondandthirdstepareoftenintegrated,choosingrepresentativeson-the-fly forallstatesthatarereachedduringstatespacegeneration.
4. ConfluenceforMarkovautomata 4.1. Commutativityofdistributions
For non-probabilistic strong confluence, a confluent transition s
−
→
τ t and neighbouring transition s−
→
a s have to be accompanied by a transition t→
−
a t and a confluent transition s−
→
τ t: the transitions s−
→
τ t and s−
→
a s commute. No transitions fromt to s or longer paths oftransitions betweens andt are takeninto account. Wegeneralise thisidea to theprobabilistic setting,where distributionsμ
,
ν
have tobe connectedby confluent transitions.To thisend, we con-sider an equivalence relation RTμ,ν over S based on a set of confluent transitionsT
in the MA under consideration, that partitionsthestate spaceintoequivalence classesrequiringthe sameprobability fromμ
asfromν
(i.e.,μ
≡
RTμ,νν
).Reflecting the non-probabilistic case, we consider only direct transitions from the support of
μ
to the support ofν
3;see[12,34]for more details.
Definition22.Givenasetoftransitions
T
andtwoprobabilitydistributionsμ
,
ν
∈
Distr(
S)
,letRTμ,ν bethesmallest equiv-alencerelationover S suchthatRTμ,ν
⊇ {(
s,
t)
∈
supp(
μ
)
×
supp(
ν
)
| (
s−
→
τ t)
∈
T
}
Weoftenomitthesubscripts
μ
,
ν
andthesuperscriptT
whenclearfromthecontext.Thedefinitionisinspiredby[24].Itisslightlymorepowerfulthantheonein[12]and,inourview,easiertounderstand. Notethat, for
μ
≡
RTμ,νν
,we requireT
-transitionsfromthesupportofμ
tothe supportofν
.Eventhough a(symmetricandtransitive)equivalence relationisused,transitionsfromthe supportof
ν
to thesupportofμ
donot influence RTμ,ν ,andneitherdoconfluentpathsfrom
μ
toν
oflengthmore than one.Example23.Consider
Fig. 6
,assume that allτ
-transitionsareinT
andletμ
= {
s1→
12,
s2→
12}
andν
= {
t1→
13,
t2→
16
,
t3→
12
}
.Then, RTμ,ν givesrisetothreeequivalence classes:C1= {
s,
t}
,C2= {
s1,
t3}
andC3= {
s2,
t1,
t2}
.Now,μ
andν
coincidefortheseclasses:
μ
(
C1)
=
0=
ν
(
C1)
,μ
(
C2)
=
12=
ν
(
C2)
andμ
(
C3)
=
12=
ν
(
C3)
.Hence,μ
≡
RTμ,νν
.Ifthetransitionbetweens2 andt1 hadbeendirectedfromt1 tos2,that wouldhaveresultedinthepartitioningC1
=
{
s,
t}
,C2= {
s1,
t3}
,C3= {
s2,
t2}
andC4= {
t1}
.Hence,inthatcaseμ
≡
RμT,νν
,sinceμ
(
C4)
=
0=
13
=
ν
(
C4)
.2
3 We could have also chosen to be a bit more liberal, allowing a path ofT-transitions from s tot.
However, the current approach simplifies the definitions
and some proofs later on; it also corresponds more directly to the way we detect confluence heuristically in practice.Fig. 6. Commutativity in the presence of probabilistic choice.
Fig. 7. Confluence diagrams for s−→τ
Tt. If the solid steps are present, so should the dashed ones be (such thatμ≡Rν).
4.2. Confluenceclassifications
Earlier approachesjusttook any subsetof theinvisible transitions andshowedthat itwas confluent—those confluent setswerenotclosedunderunion,though.Now,weimposesomemorestructure,classifyingtheinteractivetransitionsofan MA intogroups upfront—allowingoverlapandnotrequiringallinteractive transitionstobeinatleastonegroup.Wewill seethatthisisnaturalinthecontextoftheprocessalgebraMAPAandcanbeappliedimplicitly—astheimplementationsof earlierapproachesonconfluencereductionalready(unknowingly)didaswell.
At thispoint, the set of interactive transitions as well as the classification are still allowed to be countably infinite. However,fortherepresentationmapapproachlateron,finitenessisrequired.
Definition 24 (Confluence classification). A confluence classification P for
M
is a set of sets of interactive transitions{
C1,
C2,
. . . ,
Cn}
⊆
P(−
→)
.Givenaset
T ⊆
P ofgroups, weslightlyabusenotation bywriting(
s−
→
aμ
)
∈
T
todenotethat(
s−
→
aμ
)
∈
C forsomeC
∈
T
.Additionally,we uses→
−
a Ciμ
to denotethat(
s−
a
→
μ
)
∈
Ci ands−
→
a Tμ
to denotethat(
s−
→
aμ
)
∈
T
.Similarly, we subscript reachability, joinability andconvertibilityarrows (e.g.,s↠ ↠
T t) toindicate that they onlytraverse transitions fromacertaingrouporsetofgroupsoftransitions.4.3. Confluentsets
We define confluence on a confluence classification: we designate setsofgroups
T ⊆
P to be confluent (now calledMarkovianconfluent).Justlikeinprobabilistic branching-timePOR[23],only invisibletransitionswitha Diracdistribution are allowed to be confluent.Fora set
T
to be Markovianconfluent, itis thereforenot allowedto contain anyvisibleor probabilistic transitions.Still,prioritisinginvisibletransitionsmayverywellreduce probabilistictransitionstoo,aswewill see in Section 5.The reasonfor excluding probabilisticτ
-transitionsfrom theconfluent set is that confluencereduction basedonthemwouldnotpreservebranchingbisimulationanymore (see[12]foranexample).Hence,atthismomentitis unclearwhichpropertieswouldstillbepreserved.Confluence requireseachtransitions
−
→
aμ
(allowinga=
τ
) enabledtogether withatransitions−
→
τ T t tohavea mim-ickingtransitiont−
→
aν
suchthatμ
andν
areR
Tμ,ν -equivalent.Additionally,werequireforeachgroupintheclassification that transitionsfromthatgroup aremimicked bytransitionsfromthesamegroup. Thisturnsout tobeessential for clo-sureofconfluenceunderunion.Norestrictionsareimposed ontransitionsthatarenotinanygroup,sincetheycannotbe confluentanyway.Allisformalisedinthedefinitionbelow,andillustratedin
Fig. 7
.Definition25(Markovianconfluence). LetP
⊆
P(−
→)
beaconfluenceclassificationforM
.Then,asetT ⊆
P isMarkovian confluentforP if (1) itonlycontains sets ofinvisible transitions withDiracdistributions, and (2) forall s−
→
τ T t and all transitions(
s−
→
aμ
)
= (
s−
→
τ t)
:Fig. 8. An MAM.
(
i)
(
s−
→
aμ
)
∈
P implies∀
C∈
P.
s−
→
a Cμ
=⇒∃
ν
∈
Distr(
S) .
t→
−
a Cν
∧
μ
≡
RTμ,νν
(
ii) (
s−
→
aμ
) /
∈
P implies∃
ν
∈
Distr(
S) .
t→
−
aν
∧
μ
≡
RTμ,νν
Atransitions
−
→
τ t isMarkovianconfluent ifthereexistsaMarkovianconfluentsetT
suchthats−
→
τ Tt.Often,weomitthe adjective‘Markovian’.Remark26. Markoviantransitions are irrelevant forthe definitionof confluence.Afterall, states witha
τ
-transition can neverexecuteaMarkoviantransitionduetothemaximalprogressassumption.Hence,ifs−
→
τ t ands−
→
aμ
,thenby defini-tionofextendedtransitionss−
→
aμ
correspondstoaninteractivetransitions−
→
aμ
.Notethat,duetotheconfluenceclassification,confluenttransitionsarealwaysmimickedbyconfluenttransitions.After all,transitionsfromagroupC
∈
P aremimickedbytransitionsfromC .So,ifC isdesignatedconfluentbyT
,thenallthese confluenttransitionsareindeedmimickedbyconfluenttransitions.Althoughtheconfluenceclassificationmayappearrestrictive,wewillseethatitisobtainednaturallyinpractice. Transi-tionsareofteninstantiationsofhigher-levelsyntacticconstructs,andarethereforeeasilygroupedtogether.Then,itmakes sense todetect theconfluence ofsuch ahigher-levelconstruct. Also, to showthat a certain setofinvisible transitionsis confluent,we canjusttake P to consistofone groupcontaining preciselyallthose transitions.Then, therequirementfor
P -transitionstobemimickedbythesamegroupcoincideswiththeoldrequirementthatconfluenttransitionsaremimicked byconfluenttransitions.
Example27.
Fig. 8
provides an MAM
withnondeterminism,probability,Markovianratesandstate labels.Itis our run-ningexampletoillustrate thevariousconcepts relatedtoconfluence.Weindicate aconfluenceclassification P forM
by superscriptsontheτ
-labelsofsomeofthetransitions:C1
= {(
s0,τ
,
1
s1), (
s2,τ
,
1
s3), (
s3,τ
,
1
s4), (
s5,τ
,
1
s6), (
s8,τ
,
1
s9), (
s9,τ
,1
s10),
(
s10,τ
,1
s11), (
s11,τ
,1
s8), (
s13,τ
,1
s14), (
s16,τ
,1
s15), (
s15,τ
,1
s10)}
C2
= {(
s3,τ
,
1
s5), (
s4,τ
,
1
s6)}
C3
= {(
s6,
τ
,
1
s17)
}
All transitions in P are labelledby
τ
,have a Diracdistribution and donot change the state labelling. Hence, they may potentiallybeconfluent,iftheyadditionallycommute withallneighbouringtransitions.Notethatnoothertransitionscan be confluent, as they all are visible (i.e., they are either labelled by a visible action or change the state labelling). ForT = {
C1}
,weshowthateachtransitioninT
isconfluent.First,considers0
−
→
τ T s1.Thereisoneother transitionfroms0,namelys0→
−
aμ
withμ
(
s2)
=
109 andμ
(
s0)
=
101.Since s0−
→
aμ
∈
/
P ,weneedtoshowthat∃
ν
∈
Distr(
S)
.
s1→
−
aν
∧
μ
≡
Rν
.Wetake s1−
→
aν
withν
(
s3)
=
109 andν
(
s1)
=
101.Thisyields R
=
Id∪ {(
s0,
s1),
(
s1,
s0),
(
s2,
s3),
(
s3,
s2)
}
,withId theidentityrelation.Indeed,μ
andν
assignthesameprobabilitytoeachequivalenceclassofR,so
μ
≡
Rν
.Second,considers2
−
→
τ T s3.Sincetherearenoothertransitionsfroms2,thereisnothingtocheck.Finally, consider s3
−
→
τ T s4.It has two neighbouring transitions: s3→ 1
−
b s7 and s3−
→ 1
τ s5. The first one can bemim-icked by s4
−
→ 1
b s7. Clearly1
s7≡
R1
s7, due to reflexivity. The second can be mimicked by s4−
τ4.4. Propertiesofconfluentsets
Sinceconfluenttransitionsarealwaysmimickedbyconfluenttransitions,confluentpaths(i.e.,pathsfollowingonly tran-sitionsfromaconfluentset)arealwaysjoinable.Thisiscapturedbythefollowingresult.
Proposition28.LetP beaconfluenceclassificationfor
M
,andletT
beaconfluentsetforP .Then,s
↠ ↠
T t if and only if s↠ ↠
T tContrary topreviouswork,wenowcanshow thatconfluentsetsare indeedclosedunderunion.Thistellsusthatitis safetoshowconfluenceofmultiplesetsoftransitionsinisolation,andthenjusttaketheirunionasoneconfluentset.Also, itimpliesthatthereexistsauniquemaximalconfluentset.
Theorem29.LetP beaconfluenceclassificationfor
M
,andletT
1,
T
2betwoMarkovianconfluentsetsforP .Then,T
1∪
T
2isalsoa MarkovianconfluentsetforP .Example30. Example 27 demonstrated that
T = {
C1}
isconfluent for ourrunning example.In the sameway, itcan beshownthat
T
= {
C2}
isconfluent.Hence,T
= {
C1,
C2}
isalsoconfluent.2
Remark31. Inearlierworks[11,12], confluentsets were notyet closedunderunion,even thoughthiswas assumedand was actually neededforconfluencereduction towork.Inpractical applicationstheassumptionturned outto bevalid—in particular,theimplementationsofconfluencereductionforLTSsandPAswerenoterroneous.Still,technically,closureunder union ofconfluent setscouldnotjustbeassumed. Whentakingtheunionoftwovalidsetsofconfluenttransitions,their requirement that confluent transitionshaveto be mimickedby confluent transitions was possiblyinvalidated (as willbe discussedinmoredetailinSection8.3).
The final resultof thissection statesthat confluenttransitionsconnect divergence-sensitivebranching bisimilarstates. This is a key result: it implies that confluent transitions can be given priority over other transitions without losing behaviour—whenbeingcarefulnottoignoreanybehaviourindefinitely.
Theorem32.Lets
,
s∈
S betwostatesandT
aconfluentsetforsomeconfluenceclassificationP .Then,s
↠ ↠
T simplies s≈
divb s5. Statespacereductionusingconfluence
AsexplainedinSection3.2,weaimatomittingallintermediatestatesonconfluentpaths;afterall,theyareallbisimilar. Confluence evendictatesthatallvisibletransitionsanddivergencesenabledfromastate s candirectlybemimickedfrom another state t if s
↠
T t. Hence, during state space generation we can justkeep following a confluent path and only retain the laststate. Toavoidgettingstuck inan infiniteconfluentloop, wedetect entering abottom stronglyconnected component (BSCC)ofconfluent transitionsandchoosea uniquerepresentative fromthisBSCCforall statesthatcan reach it. Thistechnique wasproposed first in[35],andlater usedin[11] and[12].Asimilarconstruction was usedin[36] for representingsetsofstatesfortheso-calledessentialstate abstractionfor probabilistic transition systems.Since confluent joinability is transitive(as implied by Proposition 28), itfollows immediatelythat all confluent paths startinginacertainstate s alwaysendupinauniqueBSCC(aslongasthesystemisfinite).
5.1. Representationmaps
Formally, we usea representationmap, assigning a representative state
φ (
s)
to every s∈
S. We make surethatφ (
s)
exhibitsallbehaviourofs,byrequiring
φ (
s)
tobeinaBSCCreachablefroms viaT
-transitions.Definition33(Representationmap).Let