w y A FI MU Faculty of Informatics Masaryk University Pre-proceedings MFCS'98 Workshop on Concurrency August 27-29, 1998 Brno, Czech Republic Petr Jan car and Mojmír K retínský (Editors) FI MU Report Series FIMU-RS-98-06 Copyright c 1998, FI MU July 1998 This pre-proceedings constitute preliminary versions of the papers. The final ver- sions will appear as a volume in ENTCS (Electronic Notes in Theoretical Computer Science, Elsevier) at URL http://www.elsevier.nl/locate/entcs F orew ord This v olume con tains the pre pro ceedings of the MF CS Workshop on Concurr ency whic h to ok place in Brno Czec h Republic August as a satellite ev en t of MF CS the rd in ternational symp osium on Mathematical F oundations of Computer Science The revised and full v ersions of the con tributions should app ear as a v olume of Ele ctr onic Notes of The or etic al Computer Scienc e cf URL http www elsevier nl l ocat e en tcs The idea of the W orkshop w as initiated b y Jozef Grusk a one of the co c hairs of MF CS The W orkshop b ecame one of sev eral satellite ev en ts of MF CS its aim w as to pro vide a sp ecial forum for researc hers in the area of concurrency participating in MF CS but also to attract further in terested researc hers The call of pap ers suggested the topics lik e decidabilit y and complexit y of testing b e ha vioural equiv alences mo del c hec king and other v eri cation problems for v arious mo dels of concurren t systems mo dels for concurrency practical to ols for mo delling and v eri ca tion of concurren t systems v eri cation of in nite state pro cesses but it did not limit the submissions to these topics According to ev aluations of the programme committee mem b ers assisted b y further refer ees submissions out of ha v e b een selected for presen tation at the W orkshop Their preliminary written v ersions are con tained in this v olume accompanied b y the texts sen t to us b y the t w o in vited sp eak ers at the W orkshop Ja vier Esparza Munic h and F aron Moller Uppsala W e w ould lik e to thank v ery m uc h to Ahmed Boua jjani Grenoble Julian Brad eld Edin burgh Wilfried Brauer Munic h Mogens Nielsen Aarh us and Colin Stirling Edin burgh who kindly accepted the participation in the programme committee and the w ork connected with the submission ev aluation W e also wish to thank to Jan Staudek the c hair of the MF CS organising committee as w ell as to the lo cal organising committee of the W orkshop who help ed with its realization W e also ac kno wledge the partial supp ort of the Gran t Agency of the Czec h Republic to the W orkshop via gran t No Brno July P etr Jan ar and Mo jm r K et nsk Programme Committee Co c hairs Programme Commit tee Ahmed Boua jjani Grenoble F Mo jm r K et nsk co c hair Brno CZ Julian Brad eld Edin burgh UK Mogens Nielsen Aarh us DK Wilfried Brauer Munic h D Colin Stirling Edin burgh UK P etr Jan ar co c hair Ostra v a CZ Organising Commit tee Iv ana Sern Brno CZ An ton n Ku era Brno CZ Ji Srba Brno CZ Con ten ts In vited T alks Unfoldings v eri cation using partial orders J Esparza Pushdo wn Automata Multiset Automata and P etri Nets F Moller Con tributed P ap ers Queues as Pro cesses O Burk art A F aithful Graphical Represen tation of the pi calculus F aithful pi nets G Cioban u and M Rotaru The Morphisms and Bisim ulations R De Nicola and A Lab ella Branc hing Pro cesses of General S T Systems S Haar Automatically Pro ving Up to Bisim ulation D Hirsc hk o State Spaces of Ob ject Orien ted P etri Nets V Janousek and T V o jnar The Essence of P etri Nets and T ransition Systems through Ab elian Groups G Juhas In ten tional Approac hes for Sym b olic Metho ds O Kushnarenk o and S Pinc hinat E cien t State Space Searc h for Time P etri Nets J Lilius Pro jectable Seman tics for Statec harts A Maggiolo Sc hettini and S Tini Strict Lo w er Bounds for Mo del Chec king BP A R Ma yr Deriv ation of Characteristic F orm ulae M M ller Olm Construction of an Abstract State Space from a P artial Order Represen tation of the Concrete One U Nitsc he Characterizing Bisimilarit y of V alue passing Pro cesses with Con text free Con trol P P aczk o wski Hardness Results for W eak Bisimilarit y of Simple Pro cess Algebra J Stribrna Place Bisim ulation Equiv alences for Design of Concurren t Systems I V T arasyuk On the Seman tics of Concurrency and Nondeterminism Bisim ulations and T emp oral Logics I Virbitsk aite V eri cation with unfoldings Ja vier Esparza Institut f r Informatik T ec hnisc he Univ ersit t M nc hen esparza informa ti k t u m uenc hen de The automatic v eri cation of nite state systems su ers from the explosion of states caused b y the man y p ossible p erm utations of concurren t ev en ts Unfoldings are a v eri cation tec hnique that a v oids this explosion b y disregarding the order of concurren t ev en ts It b elongs to the group of so called partial order metho ds for mo del c hec king whic h also con tains V almari s stubb orn sets implemen ted in the PR OD to ol Go defroid s sleep sets implemen ted in Holzman s SPIN and others P etri nets are a natural mo del for the unfolding approac h since they mak e concurren t ev en ts explicit but the tec hnique can b e equally w ell applied to comm unicating automata The b eha viour of the P etri net is captured b y unfolding of the net in to an in nite acyclic o ccurrence net The unfolding op eration is similar to the un winding of a nite automaton in to an in nite acyclic automaton but retains the concurrency asp ects of the net The use of unfoldings for automatic v eri cation w as rst prop osed b y K L McMillan in his Ph D Thesis where he sho w ed that the in nite un winding can b e terminated when it con tains full information ab out the reac hable states of the original net ev en though the states are not represen ted explicitly In this sense this pre x of the in nite un winding can b e seen as a compact enco ding of the state space Since the p erm utations of concurren t ev en ts are not en umerated the pre x can b e m uc h smaller than the state graph of the system A w eakness of McMillan s original prop osal w as that the pre x could also b e larger ev en exp onen tially larger than the state graph This problem w as solv ed b y Esparza Ro emer and V ogler b y means of an impro v ed criterion for termination Di eren t authors ha v e de ned implemen ted and tested algorithms whic h use unfold ings to e cien tly solv e a n um b er of v eri cation problems deadlo c k detection reac habilit y concurrency of ev en ts mo del c hec king for b oth branc hing and linear time logics and con formance b et w een trace structures Most of these algorithms are part of PEP a mo delling and v eri cation to ol dev elop ed at the Univ ersit y of Olden burg and the T ec hnical Univ ersit y of Munic h Unfolding tec hniques ha v e b een applied to problems in di eren t areas suc h as design of async hronous circuits v eri cation of proto cols and man ufacturing systems managemen t of telecomm unication net w orks and others The talk presen ts the basic ideas of the unfolding tec hnique compares it with others and pro vides p erformance statistics on some case studies It nishes with p oin ters to further information and a v ailable soft w are Pushdo wn Automata Multiset Automata and P etri Nets F aron Moller Computing Science Departmen t Uppsala Univ ersit y P O Bo x S Uppsala SWEDEN Abstract W e consider v arious classes of automata generated b y simple rewrite transition systems These classes are de ned b y t w o natural hierarc hies one giv en b y in ter preting catenation of sym b ols in the rewrite system as sequen tial comp osition and the other b y in terpreting catenation as parallel comp osition In this w a y w e pro vide natural de nitions for comm utativ e parallel con text free automata m ultiset parallel push do wn automata and P etri nets In tro duction Consider a c ontext fr e e gr ammer CF G in Gr eib ach normal form GNF for example as giv en b y the follo wing three rules a c b X X B X B Suc h a grammar consists of a set of variables V fX B g a set of alphab ets lab els fa b cg and a set of pr o duction rules P f X aX B X c B b g As w e are concerned only with GNF grammars w e shall alw a ys write the pro duction rules with the lab el on top of the arro w Also asso ciated with suc h a grammar is an initial variable X and the c ontext fr e e language CFL generated b y the initial v ariable of the grammar in this case k k L X fa cb k g Restricting to leftmost derivations giv es rise to the follo wing automaton R a a a start state X X B X B B c c c b b b nal state B B B Suc h grammars mak e up Bergstra and Klop s Basic Pr o c ess A lgebr a BP A and their automata are referred to as BP A pro cesses They are also instances of Caucal s R ewrite T r ansition Systems W e can also in terpret catenation of v ariables as p ar al lel rather than se quential com p osition b y reading sequences of v ariables mo dulo comm utativit y of catenation Th us for example X B B B X B B B X Under this in terpretation the ab o v e grammar giv es rise to the follo wing automaton a a a R start state X X B X B B b b b c c c b b b nal state B B B Suc h an in terpretation giv es rise to Christensen s Basic Par al lel Pr o c esses BPP Note that its language de ned in the natural w a y as the sequence of lab els on paths leading from the start state to the nal state is generally di eren t from the language of the sequen tial automaton whic h itself coincides naturally with the language of the CF G In fact its language need not ev en b e con text free F or example the BPP giv en b y the grammar a b c X B C X X AC X X AB X a b c X B C X AC X AB a b c A B C generates the non CFL consisting of the strings of fa b cg con taining an equal n um b er of a s b s and c s In the follo wing w e shall generalise these pro cesses and consider v arious questions regard ing their equiv alence c hec king problems Rewrite T ransition Systems The starting p oin t for our formal study will b e automata or lab el le d tr ansition sys tems as de ned as follo ws De nition A lab el le d tr ansition system is a tuple hS F i where S is a set of states is a nite set of lab els a S S is a tr ansition r elation written for h a i S is a distinguished start state F S is a nite set of nal states whic h are terminal for eac h F there is a no a and S suc h that This notion of a lab elled transition system di ers from the standard de nition of a nite state automata only in that the set of states need not b e nite and nal states m ust not ha v e an y outgoing transitions De nition A se quential lab el le d r ewrite tr ansition system is a tuple hV P F i where V is a nite set of variables the elemen ts of V are referred to as states is a nite set of lab els a P V V is a nite set of r ewrite rules written for h a i P a a whic h are extended b y the pr e x r ewriting rule if then V is a distinguished start state F V is a nite set of nal states whic h are terminal A p ar al lel lab el le d r ewrite tr ansition system is de ned precisely as ab o v e except that the elemen ts of V are read mo dulo comm utativit y of catenation whic h is th us in terpretted as parallel rather than sequen tial comp osition W e shall freely extend the transition relation homomorphically to nite sequences of aw a w actions w so as to write and whenev er for some state V Also w e shall refer to the set of states in to whic h the initial state can w b e rewritten that is suc h that for some w as the r e achable states Although w e do not insist that all states b e reac hable w e shall assume that all v ariables in V are accessible from the initial state that is that for all X V there is some w w and V suc h that X A natural hierarc h y of families of transition systems can b e de ned b y restricting the forms of the rewrite systems This hierarc h y is based lo osely on the Chomsky hierar c h y In this resp ect t yp e con text sensitiv e rewrite systems do not feature in this hierarc h y since the rewrite rules b y de nition are only applied to the pre x of a comp o sition This hierarc h y pro vides an elegan t classi cation of sev eral imp ortan t classes of transition systems whic h ha v e b een de ned and studied indep enden t of their app earance as particular rewrite systems This classi cation is presen ted as follo ws Restriction on the Restriction Sequen tial P arallel a comp osition comp osition rules of P on F T yp e none none PD A PN Q and Q T yp e F Q PD A MSA where V Q T yp e V F f g BP A BPP T yp e V V f g F f g FSA FSA In the remainder of this section w e explain the classes of transition systems whic h are represen ted in this table w orking up w ards starting with the most restrictiv e classes In dra wing lab elled transition systems w e shall con tin ue our trend of indicating initial states b y short arro ws and indicating nalstates b y double circles FSA represen ts the class of nite state automata Clearly if the rules are restricted a a to b e of the form A B or A with A B V then the reac hable states of b oth the sequen tial and parallel transition systems will b e a subset of the nite set of v ariables V W e assume here that the initial state itself is a mem b er of V Example In the fol lowing we pr esent two typ e r e gular r ewrite systems along with the FSA tr ansition systems which the initial states X and A r esp e ctively denote a X A A B a Z a a X Y a Z a A C Z Z b Y B C Y b Z B c c Z b c Y b c Z Z C As language r e c o gnisers in the usual sense these automata b oth r e c o gnise the same r e gular language set of strings f ab ac g However they ar e substantial ly di er ent automata As indicated ab o v e BP A represen ts the class of Basic Pr o c ess A lgebr a pro cesses of Bergstra and Klop whic h are the transition systems asso ciated with GNF con text free grammars in whic h only left most deriv ations are p ermitted Example In the fol lowing we pr esent a typ e GNF c ontext fr e e gr ammar r ewrite system along with the BP A tr ansition system which the initial state X denotes R a a a X X B X B B a X X B c X c c c b B b b b B B B n n This automata r e c o gnises the c ontext fr e e language f a cb n g Also as indicated ab o v e BPP represen ts the class of Basic Par al lel Pr o c esses in tro duced b y Christensen as a parallel analogy to BP A and are de ned b y the transition systems asso ciated with GNF con text free grammars in whic h arbitrary grammar deriv a tions are p ermitted Example The typ e r ewrite system fr om Example gives rise to the fol lowing BPP tr ansition system with initial state X a a a R X X B X B B a X X B b b b c X c c c b B b b b B B B This automata r e c o gnises the language c onsisting of al l strings fr om a b cb which c ontain an e qual numb er of a s and b s in which no pr e x c ontains mor e b s than a s PD A represen ts the class of push down automata whic h accept on empt y stac k T o presen t suc h PD A as a restricted form of rewrite system w e rst assume that the v ariable set V is partitioned in to disjoin t sets Q nite con trol states and stac k sym b ols The a rewrite rules are then of the form pA q with p q Q A and whic h represen ts the usual PD A transition whic h sa ys that while in con trol state p with the sym b ol A at the top of the stac k y ou ma y read the input sym b ol a mo v e in to con trol state q and replace the stac k elemen t A with the sequence Finally the set of nal states is giv en b y Q whic h represen t the PD A con gurations in whic h the stac k is empt y Caucal demonstrates that disregarding nal states an y unrestricted t yp e sequen tial rewrite system can b e presen ted as a PD A in the sense that the transition systems are isomorphic up to the lab elling of states The stronger result in whic h nal states are tak en in to consideration actually holds as w ell The idea b ehind the enco ding is as follo ws Giv en n arbitrary rewrite transition system tak e n to b e at least as large as the length of an y sequence app earing on the left hand side of an y of its rules and strictly larger than the length of an y nal state Let Q f p V and length n g and V f Z V and length n g Ev ery nal transition system state is represen ted b y the PD A state p that is b y the PD A b eing in con trol state p with an empt y stac k denoting acceptance and ev ery non nal transition system state with length n length only if length n and length only if length n is represen ted in the PD A b y p Z that is b y the PD A b eing in con trol state p with the sequence Z on its stac k Then ev ery transition system rewrite rule giv es rise to appropriate PD A rules whic h mimic the transition system and resp ect this represen tation Th us w e arriv e at the follo wing result Theorem Every se quential lab el le d r ewrite tr ansition system c an b e r epr esente d up to the lab el ling of states by a PD A tr ansition system Note that as is re ected in the ab o v e construction ev ery BP A is giv en b y a single state PD A the rev erse iden ti cation is also immediately eviden t Ho w ev er w e shall see in Section that an y PD A presen tation of the BPP transition system of Example m ust ha v e at least con trol states this transition system is not represen ted b y an y BP A Example The BPP tr ansition system of Example is given by the fol lowing se quen tial r ewrite system a c b b X X B X B X B X By the ab ove c onstruction this gives rise to the fol lowing PD A with initial state p Z X We omit rules c orr esp onding to the unr e achable states a a b p Z p Z p Z p B Z p Z p X X B X B B X B B B c b b p Z p p Z p Z p Z p Z X X B B X B B B B c b p Z p Z p Z p Z X B B B B B B B B B b p B p B B a a p Z p Z p B p B B X B X B B X X b b p Z p Z p B p X B X X X c c p Z p Z p B p X B B X B This c an b e expr esse d mor e simply by the fol lowing PD A with initial state pZ a a c pZ pB Z pB pB B q Z q c b b pZ q pB p q B q c pB pB B MSA represen ts the class of multiset automata whic h can b e view ed as p ar al lel or r andom ac c ess push do wn automata They are de ned as ab o v e except that they a ha v e random access capabilit y to the stac k Th us a MSA transition rule pA q with p q Q A and sa ys that while in con trol state p with the sym b ol A anywher e in the stac k y ou ma y read the input sym b ol a mo v e in to con trol state q and replace the stac k elemen t A with the sequence Example The BP A tr ansition system of Example is isomorphic to that given by the fol lowing MSA with initial state pX a c b pX pB X pX q q B q Note that when the stac k alphab et has only one elemen t PD A and MSA trivially coincide Also note that BPP coincides with the class of single state MSA Ho w ev er w e shall see in Section that an y MSA presen tation of the BP A transition system of Example m ust ha v e at least con trol states this transition system is not represen ted b y an y BPP PN represen ts the class of nite lab elled w eigh ted place transition Petri nets as is eviden t b y the follo wing in terpretation of unrestricted parallel rewrite systems The a v ariable set V represen ts the set of places of the P etri net and eac h rewrite rule represen ts a P etri net transition lab elled a with the input and output places represen ted b y and resp ectiv ely with the w eigh ts on the input and output arcs giv en b y the relev an t m ultiplicities in and Note that a BPP is a comm unication free P etri net one in whic h eac h transition has a unique input place Example The fol lowing unr estricte d p ar al lel r ewrite system with initial state X and nal state Y a c a X X A X AB X Y A Y b d b X X B X Y Y B Y describ es the Petri net which in its usual gr aphic al r epr esentation net would b e r ender e d as fol lows The weight on al l the ar cs is Y Z Z Z Z a b b Z Z Z S d Z Z S Z Z a b Z A X B H H H H H H H j c The automata r epr esente d by this Petri net r e c o gnises the language c onsisting of al l strings fr om a b c d a b in which the numb er of c s in any pr e x is b ounde d ab ove by b oth the numb er of a s and the numb er of b s and in which the numb er of a s r esp e ctively b s b efor e the o c curr enc e of the d minus the numb er of c s e quals the numb er of a s r esp e ctively b s after the o c curr enc e of the d Although in the sequen tial case PD A constitutes a normal form for unrestricted rewrite transition systems w e shall see that this result do es not hold in the parallel case Languages and Bisimilarit y Apart from isomorphism b et w een transition systems there are sev eral other w eak er no tions of equiv alence whic h are commonly studied W e shall b e in terested in t w o of these language equiv alence and bisimilarit y W e ha v e in fact already b een describing the lan guages accepted b y the automata in the examples of the previous section Giv en a lab elled transition system T with initial state w e can de ne its language L T to b e the language generated b y its initial state where the language generated b y a state is de ned in the usual fashion as the sequences of actions whic h lab el rewrite transitions leading from the giv en state to a nal state w De nition L f w for some F g and L T L and are language e quivalent written i they generate the same language L L L Th us for example the class of languages generated b y FSA are precisely the free regular languages and the class of languages generated b y b oth BP A and b y PD A are the free con text free languages With resp ect to the languages generated b y rewrite systems if a rewrite system is in the pro cess of generating a w ord then the partial w ord should b e extendible to a complete w ord That is from an y reac hable state of the transition system a nal state should b e reac hable If the transition system satis es this prop ert y it is said to b e norme d De nition W e de ne the norm of an y state of a lab elled transition system written norm to b e the length of a shortest rewrite transition sequence whic h tak es to a nal state that is the length of a shortest w ord in L By con v en tion w e de ne norm if there is no sequence of transitions from to a nal state that is L The transition system is norme d i ev ery reac hable state has a nite norm Note that due to our assumption follo wing De nition on the accessibilit y of all of the v ariables if a t yp e rewrite transition system is normed then all of its v ariables m ust ha v e nite norm The follo wing then is a basic fact ab out the norms of BP A and BPP states Lemma Given any state of a typ e r ewrite tr ansition systems BP A or BPP norm norm norm A further common prop ert y of transition systems is that of determinacy De nition T is deterministic i for ev ery reac hable state and ev ery lab el a there a is at most one state suc h that F or example the t w o nite state automata presen ted in Example are b oth normed transition systems while only the rst is deterministic All other examples whic h w e ha v e presen ted ha v e b een b oth normed and deterministic In the realm of concurrency theory language equiv alence is generally tak en to b e to o coarse an equiv alence F or example it equates the t w o transition systems of Example whic h generate the same language f ab ac g y et demonstrate di eren t deadlo c king capabilities due to the nondeterministic b eha viour exhibitted b y the second transition system Man y ner equiv alences ha v e b een prop osed with bisimulation e quivalenc e b eing p erhaps the nest b eha vioural equiv alence studied Note that w e do not consider here an y so called true concurrency equiv alences suc h as those based on partial orders Bisim ulation equiv alence w as de ned b y P ark and used to great e ect b y Milner Its de nition in the presence of nal states is as follo ws De nition A binary relation R on states of a transition system is a bisimulation i whenev er h i R w e ha v e that a a if then for some with h i R a a if then for some with h i R F i F and are bisimulation e quivalent or bisimilar written i h i R for some bisim ulation R n o S Lemma R R is a bisimulation r elation is the lar gest bisimulation r elation and is an e quivalenc e r elation Bisim ulation equiv alence has an elegan t c haracterisation in terms of certain t w o pla y er games Starting with a pair of states h i the t w o pla y ers alternate mo v es according to the follo wing rules If exactly one of the pair of states is a nal state then pla y er I is deemed to b e the winner Otherwise pla y er I c ho oses one of the states and mak es some transition a a from that state either or If this pro v es imp ossible due to b oth states b eing terminal then pla y er I I is deemed to b e the winner Pla y er I I m ust resp ond to the mo v e made b y pla y er I b y making an iden tically a a lab elled transition from the other state either or If this pro v es imp ossible then pla y er I is deemed to b e the winner The pla y then rep eats itself from the new pair h i If the game con tin ues forev er then pla y er I I is deemed to b e the winner The follo wing result is then immediately eviden t F act i Player II has a winning str ate gy in the bisimulation game starting with the p air h i Conversely i Player I has a winning str ate gy in the bisimulation game starting with the p air h i Also immediately eviden t then is the follo wing lemma with its accompan ying corollary relating bisim ulation equiv alence to language equiv alence w w Lemma If and with w then such that Corollary If then L Apart from b eing the fundamen tal notion of equiv alence for sev eral pro cess algebraic formalisms bisim ulation equiv alence has sev eral pleasing mathematical prop erties not least of whic h b eing that it is decidable o v er classes of transition systems for whic h all other common equiv alences including language equiv alence remain undecidable F urthermore as giv en b y the follo wing lemma language equiv alence and bisimilarit y coincide o v er the class of normed deterministic transition systems Lemma F or states and of a norme d deterministic tr ansition system if L then Thus taken along with Cor ol lary and c oincide L Hence it is sensible to concen trate on the more mathematically tractable bisim ulation equiv alence when in v estigating decidabilit y results for language equiv alence for determin istic language generators In particular b y studying bisim ulation equiv alence w e can redisco v er old theorems ab out the decidabilit y of language equiv alence as w ell as pro vide more e cien t algorithms for these decidabilit y results than ha v e previously b een presen ted W e exp ect that the tec hniques whic h can b e exploited in the study of bisim u lation equiv alence will pro v e useful in tac kling other language theoretic problems notably the problem of nding a simple pro of of the decidabilit y of deterministic push do wn au tomata for whic h a length y pro of w as only recen tly demonstrated b y S enizergues Expressivit y Results Our hierarc h y from ab o v e giv es us the follo wing classi cation of pro cesses PD A BP A h i j PN MSA e f g BPP FSA a b c d In this section w e demonstrate the strictness of this hierarc h y b y pro viding example tran sition systems whic h lie precisely in the gaps indicated in the classi cation a The rst transition system in example pro vides a normed deterministic FSA a b b The t yp e rewrite system with the t w o rules A AA and A giv es rise to the same transition system regardless of whether the system is sequen tial or parallel this is an immediate consequence of the fact that it in v olv es only a single v ariable A This transition system is depicted as follo ws a a a R b A A A A A A b b b This is an example of a normed deterministic transition system whic h is b oth a BP A and a BPP but not an FSA c Examples and pro vide a transition system whic h can b e describ ed b y b oth a BPP Example and a PD A Example Ho w ev er it cannot b e describ ed up to bisimilarit y b y an y BP A T o see this supp ose that w e ha v e a BP A whic h represen ts this transition system up to bisimilarit y and let m b e at least as large as the norm m of an y of its v ariables Then the BP A state corresp onding to X B in Example m ust b e of the form A where A V and V But then any sequence of norm A norm reducing transitions m ust lead to the BP A state while the transition system in Example has t w o suc h non bisimilar deriv ed states namely k k X B and B where k norm d The follo wing BPP with initial state X a c e b d X X B X X D X B D is not language equiv alen t to an y PD A as its language is easily con rmed not to b e con text free The w ords in this language from a c b d e are exactly those of the k n k n form a c b d e whic h is clearly not a con text free language e Examples and pro vide a transition system whic h can b e describ ed b y b oth a BP A Example and a MSA Example Ho w ev er the con text free language n n whic h it generates fa cb n g cannot b e generated b y an y BPP so this transition system is not ev en language equiv alen t to an y BPP T o see this supp ose n n that L X fa cb n g for some BPP state X As the pro cess has unit norm the state m ust consist of a single v ariable X Let k b e at least as large as the norm of an y of the nite normed v ariables of this BPP and consider a transition k k sequence accepting the w ord a cb k k a c b X Y c where the c transition is generated b y the transition rule Y W e m ust ha v e i k i b b norm Y k norm Y so hence and for some i Th us w e ha v e k i k i a b c b X Y Y k i k i from whic h w e get our con tradiction a b cb L X for some i f The follo wing PD A with initial state pX a b c b c pX pX X pX q pX r q X q r X r coincides with the MSA whic h it de nes since there is only one stac k sym b ol This transition system is depicted as follo ws b b b q q X q X b b b a a a pX pX pX c c c c c c r r X r X Ho w ev er this transition system cannot b e bisimilar to an y BP A due to a similar argumen t as for c nor language equiv alen t to an y BPP due to a similar argumen t as for e g The follo wing MSA with initial state pX a a b c pX pA pA pAA q A q B r A r b c c pA q B q B r r B r n k n generates the language f a b c k n g and hence cannot b e language equiv alen t to an y PD A as it is not a con text free language nor to an y BPP due to a similar argumen t as for e h The follo wing BP A with initial state X a b c a b X X A X X B X A B R generates the language f w cw w fa bg g and hence is not language equiv alen t to an y PN i The follo wing PD A with initial state pX a a a a a pX pAX pA pAA pB pAB q A q r A r b b b b b pX pB X pA pB A pB pB B q B q r B r c c c a b pX q X pA q A pB q B q X q r X r d d d pX r X pA r A pB r B is constructed b y com bining the ideas from f and h It can b e sc hematically pictured as follo ws g a e f q q X q EX q FE X c c c g e f pX pEX pFEX d d d g b e f r r X r EX r FE X In this picture e f g fa bg and E F G fA B g corresp ond in the ob vious R R w a y The language this PD A generates is f w cw a w cw b w fa bg g and hence as in h ab o v e it is not language equiv alen t to an y PN and as in c ab o v e it is not bisimilar to an y BP A j The P etri net from Example cannot b e language equiv alen t to an y PD A as its language is easily con rmed not to b e con text free The w ords in this language n n n of the form a b c d are exactly those of the form a b c d whic h is clearly not a con text free language More imp ortan tly this P etri net cannot b e bisimilar to an y MSA T o see this supp ose that the net is bisimilar to the MSA state pA As the pro cess has unit norm the stac k m ust consist of a single sym b ol A Consider p erforming an inde nite sequence of a transitions from pA By Dic kson s Lemma w e m ust ev en tually pass through t w o states q and q in whic h the con trol states are equal and the stac k of the rst is con tained in the stac k of the second This implies is that w e can p erform the follo wing execution sequence k k k k a a a a pA q q q W e can assume that the p erio d of the cycle is of the same length as the initial segmen t If this isn t already giv en b y the Lemma then w e can merely extend the initial segmen t to the next m ultiple of the length of the cycle giv en b y the Lemma and use this m ultiple as the cycle length Considering no w an inde nite sequence of b transitions from q a second application of Dic kson s Lemma giv es us the follo wing execution sequence k k k k b b b b q r r r W e can assume again b y the same reasoning as ab o v e that the p erio d of the cycle is of the same length as the initial sequence F urthermore w e can assume that this is the same as the cycle length of the earlier a sequence b y rede ning the cycle lengths to b e a common m ultiple of the t w o cycle lengths pro vided b y the Lemma No w there m ust b e a state s suc h that k k k a b c c pA q r s Consider then the follo wing sequence of transitions k k k a b c c pA q r s c There m ust b e a rule for sX for some X whic h app ears in either or But considering the follo wing sequence of transitions k k k a b c c pA q r s w e m ust deduce that this X cannot app ear in Equally considering the follo wing sequence of transitions k k k a b c c pA q r s w e m ust deduce that this X cannot app ear in W e th us ha v e our con tradiction W e here summarize again these separation results in the follo wing theorem Theorem Ther e exist norme d and deterministic lab el le d tr ansition systems lying pr e cisely in the gaps a i in the gur e ab ove In p articular ther e is a Petri net which is not even bisimilar to any MSA Related W ork The classes of transition systems represen ted within our double hierarc h y ha v e all o ccurred naturally in indep enden t con texts Indeed this is one of the b eauties of the hierarc hies it giv es a uni ed presen tation of man y classes that ha v e b een a orded a great deal of researc h Some a v en ues of in tense in terest are as follo ws F urther Separabilit y Results In this pap er w e ha v e b een in terested in separating classes with resp ect to isomorphism b et w een automata W e ha v e ho w ev er managed to demonstrate ev en stronger results sho wing that classes could b e separated up to bisim ulation equiv alence and sometimes ev en up to language equiv alence Of course when w e w eak en the equiv alence and equate more and more automata this hierarc h y will tend to collapse in expressivit y F or example BP A and PD A b oth express exactly the free con text free languages and hence the gap b et w een BP A and PD A v anishes with resp ect to language equiv alence The question then is whic h gaps are preserv ed with resp ect to language equiv alence W e ha v e demonstrated in the previous section that most gaps are main tained apart from the BP A PD A gap F or example h sho ws that there are BP A languages whic h are not P etri net languages d sho ws that there are BPP languages whic h are not BP A languages and g sho ws that there are MSA languages whic h are not BPP languages The only gap whic h remains to in v estigate is that b et w een MSA and P etri nets Recen tly Hirshfeld has settled this question b y demonstrating that this gap v anishes with resp ect to language equiv alence He th us pro vides a new c haracterisation of P etri net languages in terms of MSA Equiv alence Chec king The rst decidabilit y result of relev ance here regards language equiv alence b et w een nite state automata Mo ore The decidabilit y of bisim ulation is also readily established but whereas the language equiv alence problem is co PSP A CE complete bisim ulation equiv alence can b e determined in time O k lg n where n and k are the total n um b er of states and edges resp ectiv ely of the t w o automata b eing compared P aige and T ar jan Kanellakis and Smolk a The rst relev an t result related to in nite state automata is the undecidabilit y of lan guage equiv alence b et w een con text free automata BP A Bar Hillel P erles and Shamir Gro ote and H uttel extend this undecidabilit y result to all of the equiv alences in v an Glabb eek s catalogue of equiv alences except for bisim ulation Baeten Bergstra and Klop w ere the rst to demonstrate that bisim ulation is decidable for normed BP A Their length y pro of exploits the p erio dicit y whic h exists in normed BP A transi tion systems and sev eral simpler pro ofs exploiting structural decomp osition prop erties as in tro duced b y Milner and Moller w ere so on recorded notably b y Caucal H uttel and Stirling and Gro ote Huynh and Tian demonstrate that this P problem has a complexit y of b y pro viding a nondeterministic algorithm whic h relies on an NP oracle Hirshfeld Jerrum and Moller re ne this result b y pro viding a p olynomial algorithm th us sho wing the problem to b e in P As a corollary of this w e get a p olynomial time algorithm for deciding language equiv alence of simple grammars th us impro ving on the original doubly exp onen tial algorithm of Korenjak and Hop croft and the singly exp onen tial algorithm of Caucal A generally more e cien t though w orst case exp onen tial algorithm is presen ted b y Hirshfeld and Moller Finally Christensen H uttel and Stirling demonstrate the general problem to b e decid able whilst Burk art Caucal and Ste en pro vide an elemen tary decision pro cedure F or the case of comm utativ e con text free automata BPP w e get similar results Hirsh feld demonstrates the undecidabilit y of language equiv alence and H uttel extends this undecidabilit y result to all of v an Glabb eek s equiv alences except bisimilarit y Chris tensen Hirshfeld and Moller demonstrate the decidabilit y of bisimilarit y rst for the normed case and then in the general case and Hirshfeld Jerrum and Moller pro vide a p olynomial time algorithm for the normed case F or PD A w e note the recen t p ositiv e solution of S enizergues to the long standing question as to the decidabilit y of language equiv alence for deterministic PD A Note that this case includes the p ossibilit y of transitions whic h w e ha v e ignored in the presen t study A further recen t result is the pro of of Stirling of the decidabilit y of bisimilarit y o v er normed PD A The former pro of is enormously long exceeding pp in its full as y et unpublished form it w ould b e w orth while lo oking for an extension of the latter pro of to pro vide a simpler demonstration of the classical problem exploiting the coincidence of language and bisim ulation equiv alences o v er normed and deterministic automata Finally for MSA and P eti nets the results are more negativ e Jan car demonstrates the undecidabilit y of bisimilarit y for P etri nets and this result is re ned in to apply to the more restricted class MSA Minimizing Automata and Regularit y Chec king A further in teresting question is that of regularit y c hec king that is determining if an automaton is equiv alen t to some unsp eci ed nite state automaton Often this question is addressed in conjunction with the question of minimizing automata that is collapsing equiv alen t states the question then is if the collapsed automaton is nite or if it ev en sta ys within the class of automata from whic h the original is tak en Burkhart Caucal and Ste en study the problem of bisim ulation collapse for man y of the classes of automata that w e are considering They determine that the classes are t ypically not closed under bisim ulation collapse Ho w ev er one p ositiv e result whic h they obtain from their study is that regularit y c hec king for BP A is decidable V alk and Vidal Naquet consider the regularit y c hec king problem for P etri nets with resp ect to language and trace equiv alence and Esparza Jan car and Moller reconsider this problem particularly with resp ect to bisim ulation equiv alence as w ell as the closely related question of c hec king equiv alence b et w een a P etri net and a giv en nite state automaton The latter sho w that trace equiv alence is decidable ev en in the more general setting including transitions but that regularit y c hec king with resp ect to trace equiv alence is undecidable this con trasts with the former s decidabilit y result in the case that all lab els on transitions as app earing in the pro duction rules are unique Finally the latter demonstrate that the equiv alence problem and regularit y c hec king are b oth decidable with resp ect to bisim ulation equiv alence but that b oth of these problems b ecome undecidable when transitions are p ermitted Mo del Chec king The last topic w e men tion but only brie y is that of mo del c hec king determining if a prop ert y expressed in some temp oral logic holds of a giv en automaton T ypically the logic in question is some subset of monadic second order logic suc h as the mo dal calculus T o view the m yriad of results lo ok to Esparza s o v erview pap er References J C M Baeten J A Bergstra and J W Klop Decidabilit y of bisim ula tion equiv alence for pro cesses generating con text free languages Pro ceedings of P ARLE L e ctur e Notes in Computer Scienc e J C M Baeten J A Bergstra and J W Klop Decidabilit y of bisim ula tion equiv alence for pro cesses generating con text free languages Journal of the A CM Y Bar Hillel M P erles and E Shamir On formal prop erties of simple phrase structure grammars Zeitschrift f ur Phonetik Spr achwissenschaft und Kommunika tionsforschung J A Bergstra and J W Klop Algebra of Comm unicating Pro cesses with Ab straction The or etic al Computer Scienc e O Burk art D Caucal and B Ste en An elemen tary decision pro cedure for arbitrary con text free pro cesses Pro ceedings of MF CS L e ctur e Notes in Computer Scienc e O Burk art and Ja vier Esparza More in nite results Pro ceedings of In n it y Ele ctr onic Notes in The or etic al Computer Scienc e D Caucal Graphes canoniques des graphes alg ebriques Informatique Th eo rique et Applic ations RAIR O D Caucal On the regular structure of pre x rewriting Journal of The or etic al Computer Scienc e D Caucal A fast algorithm to decide on the equiv alence of stateless DPD A Informatique Th eorique et Applic ations RAIR O S Christensen De cidability and De c omp osition in Pr o c ess A lgebr as Ph D Thesis ECS LF CS Departmen t of Computer Science Univ ersit y of Edin burgh S Christensen Y Hirshfeld and F Moller Decomp osabilit y decidabilit y and axiomatisabilit y for bisim ulation equiv alence on basic parallel pro cesses Pro ceedings of LICS S Christensen Y Hirshfeld and F Moller Bisim ulation equiv alence is de cidable for basic parallel pro cesses Pro ceedings of CONCUR L e ctur e Notes in Computer Scienc e S Christensen H H uttel and C Stirling Bisim ulation equiv alence is decid able for all con text free pro cesses Pro ceedings of CONCUR L e ctur e Notes in Computer Scienc e S Christensen H H uttel and C Stirling Bisim ulation equiv alence is decidable for all con text free pro cesses Information and Computation R J v an Glabb eek The linear time branc hing time sp ectrum Pro ceedings of CONCUR L e ctur e Notes in Computer Scienc e J F Gro ote A short pro of of the decidabilit y of bisim ulation for normed BP A pro cesses Information Pr o c essing L etters J F Gro ote and H H uttel Undecidable equiv alences for basic pro cess algebra Information and Computation L E Dic kson Finiteness of the o dd p erfect and primitiv e abundan t n um b ers with distinct factors A meric an Journal of Mathematics Y Hirshfeld P etri Nets and the Equiv alence Problem Pro ceedings of CSL L e ctur e Notes in Computer Scienc e Y Hirshfeld Unpublished Y Hirshfeld M Jerrum and F Moller A p olynomial time algorithm for deciding equiv alence of normed con text free pro cesses Pro ceedings of F OCS Y Hirshfeld M Jerrum and F Moller A p olynomial algorithm for deciding bisimilarit y of normed con text free pro cesses The or etic al Computer Scienc e Y Hirshfeld M Jerrum and F Moller A p olynomial algorithm for deciding bisim ulation equiv alence of normed basic parallel pro cesses Mathematic al Structur es in Computer Scienc e Y Hirshfeld and F Moller A fast algorithm for deciding bisimilarit y of normed con text free pro cesses Pro ceedings of CONCUR L e ctur e Notes in Computer Sci enc e H H uttel Undecidable equiv alences for basic parallel pro cesses Pro ceedings of FSTTCS L e ctur e Notes in Computer Scienc e H H uttel and C Stirling Actions sp eak louder than w ords pro ving bisimi larit y for con text free pro cesses Pro ceedings of LICS D T Huynh and L Tian Deciding bisimilarit y of normed con text free pro P cesses is in The or etic al Computer Scienc e P Jan car Decidabilit y questions for bisimilarit y of P etri nets and some related problems Pro ceedings of ST A CS L e ctur e Notes in Computer Scienc e P Jan car Undecidabilit y of bisimilarit y for P etri nets and related problems The or etic al Computer Scienc e P Jan car and J Esparza Deciding niteness of P etri nets up to bisim ulation Pro ceedings of ICALP L e ctur e Notes in Computer Scienc e P Jan car J Esparza and F Moller P etri nets and regular pro cesses Sub mitted P Jan car and F Moller Chec king regular prop erties of P etri nets Pro ceedings of CONCUR L e ctur e Notes in Computer Scienc e P C Kanellakis and S A Smolk a CCS expressions nite state pro cesses and three problems of equiv alence Information and Computation A Korenjak and J Hop croft Simple deterministic languages Pro ceedings of th IEEE Switc hing and Automata Theory conference R Milner A Calculus of Comm unicating Systems L e ctur e Notes in Computer Scienc e R Milner Comm unication and Concurrency Pren tice Hall R Milner and F Moller Unique decomp osition of pro cesses Bul letin of the Eur op e an Asso ciation for The or etic al Computer Scienc e R Milner and F Moller Unique decomp osition of pro cesses The or etic al Com puter Scienc e F Moller In nite results Pro ceedings of CONCUR L e ctur e Notes in Com puter Scienc e E F Mo ore Gedank en exp erimen ts on sequen tial mac hines In A utomata Studies R P aige and R E T arjan Three partition re nemen t algorithms SIAM Journal on Computing D M R P ark Concurrency and automata on in nite sequences L e ctur e Notes in Computer Scienc e J L P eterson P etri Net Theory and the Mo delling of Systems Pren tice Hall G S enizergues The Equiv alence Problem for Deterministic Pushdo wn Au tomata is Decidable Pro ceedings of ICALP L e ctur e Notes in Computer Sci enc e G S enizergues L A L B T ec hnical Rep ort LaBRI Univ ersit e Bordeaux I rep ort nr C Stirling Lo cal mo del c hec king games Pro ceedings of CONCUR L e ctur e Notes in Computer Scienc e C Stirling Decidabilit y of bisim ulation equiv alence for normed pushdo wn pro cesses Pro ceedings of CONCUR L e ctur e Notes in Computer Scienc e R V alk and G Vidal Naquet P etri nets and regular languages Journal of Computer and System Scienc es Queues as Pro cesses Olaf Burk art Lehrstuhl Informatik V Univ ersit at Dortm und Dortm und German y burkart ls c s u ni d or tm un d de In nite state systems rewrite systems queues pro cesses reac habilit y analysis bisim ulation mo del c hec king Abstract Rewrite systems ha v e successfully b een used for the description of in nite state systems According to the in terpretation of w ords as either sequences or m ultisets rewrite systems ma y describ e classes of transition systems lik e e g BP A PD A BPP or P etri Nets In this pap er w e in tro duce a new hierarc h y of pro cesses obtained b y considering rewrite systems together with a FIF O lik e rewrite rule W e in v estigate the reac habilit y bisim ulation and mo del c hec king problems for these pro cesses In tro duction Recen tly the use of rewrite systems for the description of in nite state systems has blos somed within the concurrency theory comm unit y One of the main motiv ations for their study has b een to pro vide for a uni ed framew ork in whic h v arious w ell kno wn classes of transition systems rst de ned in the theory of pro cess algebras or P etri nets can b e concisely expressed Moreo v er this approac h pro vides a clear link b et w een w ell studied classes of formal languages and families of transition systems on the other side In one di rection w ell kno wn decidabilit y results from formal language theory can b e used to answ er decidabilit y question ab out classes of transition systems while in the other direction the more general viewp oin t of considering graphs as generators of languages op ens a new eld of researc h in formal language theory Up to no w rewrite systems ha v e b een used to describ e classes of se quential as w ell as p ar al lel in nite state pro cesses leading to a Chomsky lik e hierarc h y This taxonom y has attracted m uc h researc h aimed at systematically clarifying the b oundary b et w een decid abilit y and undecidabilit y within the considered hierarc hies for suc h div ers problems as This researc h w as supp orted b y the DF G under gran t STE reac habilit y bisim ulation equiv alence or mo del c hec king Most of the results obtained are based on in triguing decomp osition tec hniques as w ell as in teresting reductions to kno wn undecidable problems and are summarized in Mol Esp BE In this pap er w e in tro duce a new third hierarc h y of pro cess classes The main c harac teristic of these pro cesses is a queue lik e b eha viour resulting from a new meta rule whic h extends the giv en rewrite systems Similar to the sequen tial and parallel cases this leads to a Chomsky lik e hierarc h y with three in teresting classes Basic Queue Pro cesses BQP Finitely Con trolled Queue Pro cesses F CQP and Queue Pro cesses QP for whic h w e will consider the reac habilit y bisim ulation equiv alence and mo del c hec king problem Queues are the mo del of c hoice in the design of e g round robin sc hedulers The t ypical b eha viour of suc h a sc heduler op erating on a queue of nondeterministic pro cesses is tak e the pro cess from the head of the queue let it ev olv e for one transition and put the resulting successor state bac k to the end of the queue The classes BQP F CQP and QP extend this basic b eha viour b y taking additional con text in to accoun t and b y in terpreting the successor state again as a queue The remainder of the pap er is no w organized as follo ws In Section w e in tro duce rewrite systems coupled with queue lik e b eha viour whic h will b e utilized to mo del in nite state systems Subsequen tly w e in v estigate the reac habilit y problem for these pro cesses in Section whereas Section addresses their bisim ulation problems Finally w e consider the mo del c hec king problem for the mo dal calculus and queue pro cesses in Section while Section con tains our conclusions Mo dels Although a v ariet y of seman tic mo dels exist for concurren t systems most can b e in terpreted as edge lab elled directed graphs whose v ertices represen t the states of the system and whose edges describ e the p ossible state transitions Lab els on the edges then represen t the action or ev en t that o ccurs a De nition A lab elled transition system T is a triple S f g wher e S is the a a set of states is the set of lab els or actions and S S a ar e the tr ansition r elations A tr ansition system is ro oted if it has a distinguishe d initial state A state s is r e ach a a n able fr om s if ther e exists a p ath s s s s n Ov er the last decade a whole plethora of formalisms whic h ma y nitely represen t in nite state transition systems ha v e b een in v estigated Here w e follo w the example set b y Caucal Cau and later b y Stirling and Moller Sti Mol who used rewrite systems to classify imp ortan t classes of in nite state transition systems De nition Lab elled Rewrite Systems A lab elled rewrite system is a triple R V R wher e V is an alphab et is a set of lab els and R V V is a nite set of rewrite rules W e use upp ercase letters A B C to denote non terminals of V and lo w er case greek letters to denote w ords o v er V Moreo v er w e write for the empt y w ord a In the sequel a rewrite rule a R where V is also written as i W e will denote a rewrite system simply b y R if V and are clear from the con text Rewrite systems b y themselv es do not immediately lead to in nite state systems What is at least needed is a kind of meta rule whic h prescrib es how the rewrite rules ha v e to b e applied to w ords Orthogonally to this concept one can additionally in tro duce an equiv alence relation on the set of w ords whic h allo ws to mo del e g parallel pro cesses b y de ning t w o w ords as equiv alen t if they are a p erm utation of eac h other F ormally w e will consider transition graphs generated b y a rewrite system wrt a meta rule and an equiv alence relation as follo ws De nition Lab elled Rewrite T ransition Systems Given a lab el le d r ewrite system R V R a meta rule V V R and an e quivalenc e r elation on V the lab el le d r ewrite tr ansition system T R V df R is de ne d by the tr ansition r elation a a a a f j R g R df wher e denotes the e quivalenc e class of wrt An example for a family of lab elled rewrite transition systems is e g the class of BP A pro cesses BBK whic h is obtained b y considering rewrite systems with b asic rules of the a form A V a meta rule a a f j V g P expressing pr e x r ewriting and the iden tit y relation on w ords T aking instead an equiv alence relation whic h iden ti es w ords up to p erm utation of letters yields the w ell kno wn class of BPP pro cesses Chr In this pap er w e in tro duce a new queue meta rule a a f j V g Q whic h mo dels in conjunction with the iden tit y relation a rst in rst out discipline This leads to pro cesses di eren t from the sequen tial and parallel case as they exhibit a queue lik e b eha viour An example of a rewrite system with basic rules but in terpreted wrt the queue meta rule is giv en in Figure Root c a X YX c YYX c YYYX ... b d d b d b d c Y a XY c YXY c YYXY ... d d c YY a XYY c YXYY ... Rewrite Rules d X a c YYY a XYYY ... X b YX Y c c YYYY ... Y d Y Figure An example of a pro cess with queuing discipline Similar to the taxonom y put forw ard in Sti Mol restricting the form of allo w ed rewrite rules or adding a nite con trol yields di eren t classes of pro cesses Here rewrite a systems with a nite con trol ha v e rewrite rules q q and are applied to state w ord a a pairs q As exp ected a rule q q rewrites q to q if q q rewrites to and q q Rewrite rules with nite con trol will henceforth b e written a as q q Classifying the families of transition systems according to the restrictions on the form of allo w ed rewrite rules and on ho w w ords are in terpreted w e obtain the follo wing hierarc hies con taining Sequen tial Pro cesses SP P arallel Pro cesses PP Queue Pro cesses QP their Basic B v arian ts as w ell as their Finitely Con trolled F C v ersions F orm of rewrite rules Sequen tial P arallel Queue a SP F CSP PP P etri Nets QP a q A q F CSP PD A F CPP F CQP a A BSP BP A BPP BQP Reac habilit y In this section w e in v estigate the reac habilit y problem for the classes QP F CQP and BQP The abbreviations used in the sequel are an attempt to standardize the naming con v en tions for these pro cess classes First it turns out that QP pro cesses ha v e already full T uring p o w er and consequen tly an undecidable reac habilit y problem This result follo ws immediately from the undecidabilit y of reac habilit y for P ost T ag systems with k CM Giv en an alphab et V f A A g a Post tag system is a nite set of deterministic n rewrite rules f A V g together with a constan t k A computation step of a i i i P ost tag system transforms a w ord a a in to a a if n k and a A This n k n j j means that the rst letter only determines the righ t hand side of the rewrite rule whic h will b e app ended to the giv en w ord after whic h the rst k letters are remo v ed from it Co c k e and Minsky CM ha v e sho wn that P ost tag systems with k are already univ ersal i e can sim ulate an y T uring mac hine W e therefore ha v e the follo wing theorem Theorem R e achability for QP pr o c esses is unde cidable Pro of This result immediately follo ws from the observ ation that an y P ost tag system f A V g o v er V f A A g with k correp onds to the queue pro cess i i i n f A A j A V V g i i i Adapting the idea of Co c k e and Minsky w e are able to pro v e univ ersalit y also for F CQP pro cesses whic h consequen tly ha v e as w ell as QP pro cesses an undecidable reac habilit y problem Of paramoun t imp ortance in the pro of is the abilit y to distinguish b et w een se quences of o dd and ev en length In the QP case this is done b y using t w o in terlea v ed tap es while in the case of F CQP w e will ha v e a state represen ting ev en and one represen ting o dd Theorem R e achability for F CQP pr o c esses is unde cidable Pro of A T uring mac hine with a nite con trol an input tap e and a head usually p erforms in the state q the follo wing steps i then W rite B Mo v e D Goto q i i i State q Read b if b i i i then W rite B Mo v e D Goto q i i i F or the pro of w e will ho w ev er use a v arian t of this mac hine mo del whic h w as in tro duced in CM Here the reading of the tap e is dela y ed and causes an immediate state c hange then Goto q i State q W rite B Mo v e D Read b if b i i i i i then Goto q i Ob viously this mo del is equiv alen t to the standard mo del of a T uring mac hine In our mo di ed mo del a state of the T uring mac hine can no w b e represen ted b y qi ... a a a a c b b b b 3 2 1 0 0 1 2 3 ... As q represen ts the state after reading c w e do not need to include the letter c in to our i formal description The sequence a a a a resp ectiv ely the sequence b b b b will P P i i b e in terpreted as the in teger M a resp ectiv ely N b Since only a df i df i i i nite p ortion of the tap e will ev er con tain non blank sym b ols b oth in tegers are w ell de ned Consequen tly a state of the T uring mac hine is fully describ ed b y the tuple q M N i A mo v emen t of the head can th us b e mo delled b y manipulating M and N F or example a mo v e righ t means M M B and N N if N is ev en or N N if N i is o dd while a mo v e left just exc hanges the roles of M and N in this transformation W e are going to construct no w a F CQP pro cess faithfully sim ulating suc h a T uring mac hine The nite con trol of the F CQP pro cess to b e constructed will consist of t w o states q for ev en and q for o dd Supp ose w e ha v e a con guration q M N whic h e o i M N will b e represen ted b y the w ord q A a B b The state q q enco des that w e ha v e i i e o e o i i just read a zero one while the state q of the T uring mac hine is enco ded in the tap e i con ten ts and not in the nite con trol In the follo wing w e consider only a mo v e righ t as the case of mo ving left is dealt with dually and omit transition lab els as they are of no imp ortance If w e ha v e to write in state q a the F CQP pro cess will con tain the rules i q A q C q a q c c i i i i i e o e o e o e o whereas in case w e ha v e to write a they will lo ok as q A q C c q a q c c e o i e o i i e o i e o i i N M Application of these rules yields a con guration q B b C c where M M if w e e o i i i i ha v e written a and M M if w e ha v e written a Applying the rewrite rules q B q D q b q q b q d e o i e i e i o o i e i yields then the con guration N M q C c D d if N w as ev en i e w e ha v e read e i i i i N M q C c D d if N w as o dd i e w e ha v e read o i i i i No w w e nish the sim ulation of a single T uring mac hine cycle when N w as ev en b y applying the rewrite rules q C q A q c q a e i e i e i e i q D q B q d q b e i e i e i e i N M pro ducing the nal con guration q A a B b while in case N w as o dd w e apply e i i i i q C q A q c q a o i o i o i o i q D q B q d q b o i o i o i o i N M yielding the nal con guration q A a B b The w ell kno wn undecidabilit y o i i i i of the halting problem for T uring mac hines implies nally that reac habilit y for F CQP pro cesses is undecidable A t this p oin t w e w ould lik e to observ e that the sim ulation of a T uring mac hine b y means of a F CQP pro cess as w ell as in the case of QP pro cesses is deterministic whic h will pla y an imp ortan t role when considering the asso ciated bisim ulation problems in the follo wing section W e close this section b y men tioning that BQP pro cesses corresp ond to P ost tag systems with k for whic h Co ok has settled the reac habilit y problem in the a rmativ e W e therefore ha v e the follo wing theorem Theorem Co o R e achability for BQP is de cidable Bisim ulation In this section w e address the bisim ulation problems for queue pro cesses Bisim ulation equiv alence pla ys a role of paramoun t imp ortance in concurrency theory and is de ned as follo ws P ar Mil De nition A binary r elation R b etwe en pr o c esses is a bisim ulation if whenever p q R then for e ach a A ct a a p p implies q q q p q R and a a q q implies p p p p q R Tw o pro cesses p and q are said to b e bisimulation e quivalent or bisimilar written p q if p q R for some bisim ulation R Theorem Bisimulation is unde cidable for QP and F CQP pr o c esses Pro of As explained in Section b oth classes of pro cesses are univ ersal Giv en a T uring mac hine M w e can construct a QP F CQP pro cess P whic h faithfully and deterministi cally sim ulates M By using t w o copies P and P of P where the transition of the halting state is renamed to hal t resp ectiv ely hal t w e obtain P P i M do es not halt In con trast the bisim ulation problem for BQP lo oks in triguing as BQP pro cesses ha v e not full T uring p o w er and are therefore not immediately excluded from p ossessing a decid able bisim ulation problem On the other hand the queue lik e b eha viour of these pro cesses en tails that concatenation is not a congruence wrt as illustrated b y the follo wing exam ple a a b c Example L et A B A A B A B A B and C C Then we have A A but A C A C Nev ertheless w e conjecture that bisim ulation is decidable for BQP pro cesses Mo del Chec king In this section w e are going to sho w that mo del c hec king the mo dal calculus is undecidable for BQP pro cesses The w ell kno wn mo dal calculus is a p o w erful branc hing time logic in tro duced b y Kozen Koz It com bines standard mo dal logic with least and greatest xp oin t op erators whic h allo ws to express v ery complex temp oral prop erties within this formalism F orm ulas of the calculus are de ned b y the follo wing grammar tt j X j j j hai j X where X ranges o v er a coun table set of v ariables V ar and a o v er a set of actions Additionally w e imp ose on the b o dy of X the syn tactic restriction that an y o ccurrences of X in m ust o ccur within the scop e of an ev en n um b er of negations The seman tics of form ulas is no w giv en in T able It is de ned with resp ect to a lab elled transition system T S and a v aluation V mapping v ariables to subsets of S where V X S is the v aluation obtained from V b y up dating the binding of X to S T tt S df V T X V X df V T T S n df V V T T T df V V V a T T hai f s S j s S s s and s g df V V T T T X f S S j S g df V V X S T able The seman tics of form ulas The syn tactic restriction imp osed on the b o dy of xp oin t op erators ensures that the T function whic h assigns to a subset S is monotone Hence according to the V X S T arski Knaster theorem T ar it has a least xp oin t whic h giv es the seman tics of X In tuitiv ely the seman tics express that all states satisfy tt s satis es X if s is an elemen t of the set b ound to X in the curren t v aluation s satis es if it do es not satisfy and s satis es if it satis es or The mo dal op erator hai then admits to sp ecify the existence of transitions as s satis es hai if there exists s reac hable via an a transition from s and satisfying Finally the xp oin t op erator allo ws to sp ecify some in nite b eha viour since X denotes the least xp oin t of the functional with input parameter X o v er the p o w erset of S W e pro v e no w the undecidabilit y of the mo del c hec king problem for BQP and the mo dal calculus b y means of a reduction from the halting problem of t w o coun ter mac hines A t w o coun ter mac hine M has a set of states f q q g t w o coun ters f c c g n and a set of transition rules f g A transition rule describ es the action to b e n k tak en when the mac hine is in state q and is either of the form k I q c c goto q k i i l or of the form I I q if c then goto q else fc c goto q g k i l i i l A con guration of M is a tuple q n n where n n are in tegers represen ting the k con ten ts of the coun ters c c In particular the initial con guration is q A com putation of M is then a sequence of con gurations b eginning with the initial one and pro ceeding b y applying succesiv ely the transition rules to the curren t con guration Ob serv e that computations of t w o coun ter mac hines are alw a ys deterministic as eac h state has at most one transition rule A mac hine M halts if its computation is nite i e reac hes the state q Minsky has sho wn that t w o coun ter mac hines are T uring equiv alen t and n consequen tly ha v e an undecidable halting problem Min Theorem The mo del che cking pr oblem for the class of BQP pr o c esses and the mo dal c alculus is unde cidable Pro of Giv en a t w o coun ter mac hine M w e construct a BQP pro cess BQP M as follo ws inc i q q c if is of the form I k l i k zero i q q k l if is of the form I I k dec dec i i q q c k l i halt q n o ex shift i for i c c c c i i i i Notice that the BQP pro cess constructed mo dels the giv en t w o coun ter mac hine only in a we ak sense there exists an honest transition sequence b eginning from q that represen ts the computation of M but the remaining sequences are dishonest as they ma y decrease a coun ter b y more than one or ma y tak e the zero branc h although the coun ter is not zero at all Using the mo dal calculus it is ho w ev er p ossible to sp ecify a form ula Halt expressing that a transition sequence is nite honest and ends with the halt action Shift Z Y hshift iY Z W Halt X hinc i Shift X i i W hzero i Shift X Shift hex itt i i i W hdec i Shift hdec iShift X i i i hhalt i tt Since w e ha v e no w BQP M satis es Halt i M halts this pro v es the undecidabilit y of mo del c hec king the mo dal calculus for BQP Conclusions and F urther W ork In this pap er w e ha v e in tro duced a new hierarc h y of pro cesses with a queue lik e b eha viour whic h ts naturally in to the taxonom y of pro cess classes de ned b y rewrite systems F rom a practical p oin t of view they extend the sp ectrum of formalisms for the description of pro cesses b y emphasizing the mo del of a queue whic h has to b e sim ulated in other frame w orks While w e ha v e pro v ed the un decidabilit y of some reac habilit y bisim ulation and mo del c hec king problems for queue pro cesses these results can only b e seen as a rst step Still op en in teresting questions are the bisim ulation problem for BQP deciding niteness ques tions wrt bisim ulation equiv alence as w ell as mo del c hec king w eak er branc hing time logics and linear time logics lik e e g L TL Moreo v er the exact relationship with the hierarc h y of sequen tial and parallel pro cesses seems also to b e of theoretical in terest References BBK J C M Baeten J A Bergstra and J W Klop Decidabilit y of Bisim ulation Equiv alence for Pro cesses Generating Con text Free Languages Journal of the A CM BE O Burk art and J Esparza More In nite Results In INFINITY v olume of ENTCS page Elsevier Science B V Cau D Caucal On the Regular Structure of Pre x Rewriting The or etic al Computer Scienc e Chr S Christensen De cidability and De c omp osition in Pr o c ess Algebr as PhD thesis The Univ ersit y of Edin burgh Departmen t of Computer Science CM J Co c k e and M Minsky Univ ersalit y of Tag Systems with P Journal of the A CM Co o S A Co ok The Solv abilit y of the Deriv abilit y Problem for One Normal Systems Journal of the A CM Esp J Esparza Decidabilit y of Mo del Chec king for Concurren t In nite State Sys tems A cta Informatic a Koz D Kozen Results on the Prop ositional Calculus The or etic al Computer Sci enc e Mil R Milner Communic ation and Concurr ency Pren tice Hall Min M Minski Computation Finite and In nite Machines Pren tice Hall Mol F Moller In nite Results In CONCUR LNCS pages Springer P ar D P ark Concurrency and Automata on In nite Sequences In th GI Confer enc e LNCS pages Springer Sti C Stirling Decidabilit y of Bisimilarit y In INFINITY T ec hnical Rep ort MIP pages Univ ersit y of P assau July T ar A T arski A Lattice Theoretical Fixp oin t Theorem and its Applications Paci c Journal of Mathematics F aithful nets A graphical represen tation of the calculus Gabriel Cioban u and Mihai Rotaru A I Cuza Univ ersit y Dept of Computer Science Iasi Romania gabriel info ua ic r o mrotaru iit t ui as i ro Abstract Starting from the nets de ned b y Robin Milner w e presen t a graphical formal ism called faithful nets The aim of these faithful nets is to describ e graphically the systems with a dynamical c hanging con gurations The nets Mil giv e an appro ximate represen tation for the calculus the corresp ondence b et w een the nets and the calculus is not v ery accurate The faithful nets corresp ond pre cisely to the calculus constructions Moreo v er they are simple and in tuitiv e The pap er giv es t w o fully abstract translations dra w and write from the calculus to the faithful nets and bac k The congruence used for these full abstraction re sults is the barb ed bisim ulation Op erational corresp ondence results are giv en for b oth translation F or ev ery net G without isolated no des and for ev ery term P w e ha v e dra w write G G and write dra w P P The pap er describ es also a simple graphical enco ding for lazy calculus b y faithful nets a v oiding the Honda T ok oro HT and Boudol Bou transformations whic h could lead also to graphical enco dings of the lazy calculus In tro duction This pap er presen ts the faithful nets a graphical formalism whic h is equiv alen t to the calculus and whic h pro vides a go o d and simple graphical represen tation of the calculus There are some other attempts to giv e a graphical represen tation for the calculus nets Mil in teraction diagrams P ar Y oshida s graph notation Y os and graph rewriting systems MP P arro w in tro duced the in teraction diagrams to describ e graph ically the constructions of the calculus In tuitiv ely these diagrams corresp ond closely to the calculus terms ho w ev er as far as the authors of this pap er kno w there are no results expressing precisely the relationship b et w een in teraction diagrams and calculus On the other hand our faithful nets lo ok simpler than the in teraction diagrams Y oshida ga v e a v ery accurate enco ding of the calculus syn tactical terms correct in all details her enco ding is giv en in terms of the concurren t com binators of the calculus and in this w a y it do esn t hold or at least it is not clear if it holds a faithfulness prop ert y In MP the authors giv e an op erational seman tics for the calculus mapping its language in to a graph rewriting system The graph rewriting systems describ e the ev olution of the terms and there is no translation mapping from graphs to terms The ro ot of our approac h is de ned b y the nets in tro duced b y Robin Milner in Mil as a graphical action calculus Mil a The notion of action calculus w as in tro duced in an attempt to bring some uniformit y in to the study of b eha vioural calculi suc h as the calculus the calculus P etri nets The actions of an action calculus can b e dra wn as a sp ecial kind of graphs Th us reductions in the calculus and the calculus reactions are in fact sp ecial cases of graph reductions o v er these graphs and this is a starting k ey p oin t of our approac h The nets are not presen ted as a graphical v ersion of the calculus but as an action calculus corresp onding to the calculus The pap er Mil describ ed in an informal w a y ho w the calculus is em b edded in to a formalism de ned b y the nets An accurate and direct mapping from a term to a net is someho w di cult and a reason is that actually the nets are actions In this w a y eac h net a has an arit y a m n a fact whic h has no corresp ondence in the calculus The terms are analogous to the nets with arit y The nets are more in teresting if they are considered from the viewp oin t of the action calculus and p erhaps they are more general than the calculus mainly b ecause of their algebraic structure Ho w ev er it is imp ortan t to note that the graphical presen tation of the calculus do es not use the algebraic structure of the nets to o m uc h only nets of arit y are used Starting from this remark w e study the subset of the nets of arit y as an indep enden t formalism and w e giv e a rather simple graphical represen tation for the calculus In this pap er w e sho w that the faithful nets and the calculus ha v e the same expressiv e p o w er and w e de ne t w o fully abstract translations from calculus to faithful nets and bac k These enco dings are fully abstract when t w o source calculus terms are equiv alen t if and only if their translations are equiv alen t The congruence used for these t w o full abstraction results is the barb ed bisim ulation whic h can b e de ned uniformly in b oth calculi and in man y other pro cess calculi as w ell In order to sho w ho w these results are actually related to the op erational seman tics a connection b et w een reductions o v er terms and reductions o v er their enco dings is giv en b y t w o results rev ealing the op erational corresp ondence for b oth translations The pap er is organized as follo ws Section reviews the basic de nitions of calculus The graphical formalism giv en b y the faithful nets is presen ted in Section Section sho ws that the formalisms represen ted b y the calculus and the faithful nets are equiv alen t some examples describ e ho w the faithful nets w ork Section giv es a graphical enco ding of the lazy calculus b y the faithful nets The concluding section brie y presen ts some remarks and a p ossible direction for future w ork The pap er is self con tained ho w ev er kno wledge of the calculus the nets the action structures and action calculi should help the understanding calculus First w e in tro duce the formal calculus framew ork W e consider the monadic calculus without output guards Mil It is kno wn that monadic calculus with only input guards has the full p o w er of p oly adic calculus therefore this restriction do esn t a ect the expressiv eness b ecause the output guarding can b e de ned in terms of input guarding HT Bou Therefore w e don t use the output guards x hz i P but only the output messages xhz i to denote the emission of a name z along a c hannel x In this w a y w e ha v e an async hronous v ersion of the calculus Let N b e a coun table set of names The elemen ts of N are denoted b y x y The terms of this formalism are called pr o c esses The set of pro cesses is denoted b y P and pro cesses are denoted b y P Q R De nition The pr o c esses ar e de ne d over the set N of names by the fol lowing syntac tic al rules P j xhz i j x y P j x y P j x P j P j Q The pre x x y binds the name y and x binds the name x W e denote b y f n P the set of the names with free o ccurrences in P W e denote b y P fv ug the result of sim ultaneous substitution in P of all free o ccurrences of the name u b y the name v using the con v ersion wherev er necessary to a v oid the name capture An input guar d x y P denotes the reception of an arbitrary name z along c hannel x and afterw ards b eha ving as P fz y g A r eplic ate d input guar d x y P denotes a pro cess that allo ws to generate arbitrary instances of the form P fz y g in parallel b y rep eatedly receiving names z along c hannel x The informal meaning of restriction x P and parallel comp osition P j Q is as usual Ov er the set of pro cesses it is de ned a structural congruence relation this relation de nes a syn tactical equiv alence o v er pro cesses pro viding someho w a non explicit seman tics of some formal constructions Milner imp osed this structural congruence up on the calculus as part of the formal language and not as part of its seman tics Mil De nition The r elation P P is c al le d structur al c ongruenc e and it is de ne d as the smal lest c ongruenc e over pr o c esses which satis es the fol lowing r e quir ements P Q if P is c onvertible to Q P j P P j Q Q j P P j Q j R P j Q j R x x y P y x P and x P j Q x P j Q if x f n Q The structural congruence deals with the asp ects related to the structure of the pro cesses not to their mobilit y In this w a y the structural asp ects will not app ear in the rules of the reaction relation whic h deals mainly with mobilit y and in teraction De nition The r e action r elation over pr o c esses is de ne d as the smal lest r elation P P satisfying the fol lowing rules C O M x hz i j x y P P fz y g R E P xhz i j x y P P fz y g j x y P P P P P P AR R E S P j Q P j Q x P x P P P P Q Q Q S T R U C T P Q The faithful nets W e de ne the faithful nets as a pro cess algebra b y considering some ground faithful nets and then comp osing them b y some op erators The ground graphical represen tations and the constructors op erators of the faithful net algebra corresp ond to the syn tactic constructors of the calculus W e use similar notations As a consequence w e obtain a textual represen tation for our graphical constructions This one dimensional syn tactical represen tation pro vides an easier formal w a y of expressing the prop erties of the t w o dimensional graphical formalism Ho w ev er w e ha v e in mind and essen tially w e discuss ab out the graphical represen tations Roughly sp eaking a faithful net is a tree with graphs as no des together with an injectiv e map whic h assigns lab els to the no des of these graphs F ormally let X b e the set of names from calculus and let b e an extra sp ecial sym b ol W e denote b y x y the elemen ts of X and b y u v the elemen ts of X f g Therefore a lab el of a no de could b e a name or the meaning of is that it do esn t matter what is the lab el of the corresp onding no de and this is the reason wh y w e don t giv e it a prop er lab el W e denote b y G H the nets and b y l G the set of lab els of a net G The formal de nitions for faithful nets lab els as w ell as the represen tation of nets as expressions are giv en in the follo wing de nition De nition The set of the faithful nets is de ne d inductively by atomic with l fug n f g is the net with a single no de which is u u lab el le d by a name u message xy with l xy fx y g is the net s s y x This net c orr esp onds to the output x hz i b oxing If a then i x y G with l x y G fxg l G n fy g is the net x r b r G This net c orr esp onds to the input guar d x y P ii x y G with l x y G fxg l G n fy g is the net x r b r G This net c orr esp onds to the r eplic ate d input guar d x y P The arr ows of the last two nets c ome into the no de of G which is lab el le d by y and we r eplac e the lab el y by This me ans that we pr efer to ke ep this no de unlab el le d and we understand fr om now on that is assigne d to e ach unlab el le d no de of G When we overlap a no de lab el le d by x and a no de lab el le d by the r esulting no de is lab el le d by x On the other hand every pr op erly lab el le d no de which is inside of a b ox is exp orte d outside the b ox and it is linke d to the b ox by a pseudo arr ow c al le d x x q q q becomes connection in this way Conne ction is a c onstruction of our formal appr o ach juxtap osition G H with l G H l G l H is the faithful net obtaine d by tting G and H namely identifying the no des of G with the no des of H having the same pr op er lab el r elab el ling G u x with l G u x l G n fxg fug n f g is the faithful net obtaine d fr om G by substitution of the lab el x by the lab el u eventual ly identifying the no des with the same name lab el Example The net describ e d by G xx x y xy y z is r epr esente d by s s s z s s N x De nition A no de which is the sour c e or the tar get of a pr op er arr ow no c onne ction is c al le d non isolate d or non singular The no des linke d by a c onne ction to a non singular no de ar e also non singular The other no des ar e c al le d isolate d or singular W e de ne a reduction relation o v er these graphical constructions b y using their textual represen tations De nition The r e duction r elation is the smal lest r elation over gener ate d by the fol lowing rules com xz x y G G z y r ep xz x y G G z y x y G par if G G then G H G H r es if G G then G x G x Remark i The rule com c orr esp onds to the rule C O M of de nition and the rule r ep c orr esp onds to the rule R E P of de nition ii We may skip the rule r ep if we intr o duc e an e quivalenc e r elation over the faithful nets which is c omp atible with the rules for and x such that u x G u x G u x G W e remo v e the isolated no des of a net b y using a deleting rule similar to the co oling rule of CHAM BB Th us w e ha v e the follo wing de nitions De nition The r elation is the smal lest r elation over the nets satisfying the rule G G if u l G u De nition W e can giv e no w more details on the graphical represen tations for the rules whic h de ne the reduction relation F or instance the rule com mak es kno wn that after a reduction t w o arro ws are deleted and t w o no des the source of the rst arro w and the target of the second one are treated as iden tical If the linking middle no de x b ecomes isolated then it is deleted b y The b o x is deleted the source and target no des of the connections corresp onding to this b o x are o v erlapping and w e suggest this b y using a dash b o x These dash b o xes are not constructions of the formalism w e are de ning The rules com and r ep can b e represen ted b y the follo wing reaction relation o v er the faithful nets com xz x y G G z y describ es xhz i j x y P P fz y g and r ep xz x y G G z y x y G describ es xhz i j x y P P fz y g j x y P z x s s c s z s G G x x z s s c s s c s s z G G Example con tin uation Using these rules o v er the faithful nets the net describ ed b y the Example can b e reduced to t t N x z The calculus and the faithful nets are equiv alen t Let P P b e t w o pro cess calculi and t w o corresp onding equiv alences o v er them De nition i P is mor e expr essive than P if ther e is a ful l abstr act tr anslation T P P i e for every P Q P P Q i T P T Q ii P and P have the same expr essive p ower if P is mor e expr essive than P and P is mor e expr essive than P F ollo wing P ark and Milner the most studied forms of b eha vioural equiv alence in pro cess algebras are based on the notion of bisim ulation The standard de nition of bisim ulation i e the one for CCS and related calculi as w ell as higher order bisim ulation are in general unsatisfactory particularly in higher order calculi b ecause o v er discriminating W e use in this pap er the Milner Sangiorgi s barb ed bisim ulation One of its adv an tage is that it can b e de ned uniformly in di eren t calculi including higher order ones Previous exp erimen tations with CCS and calculus ha v e sho wn that its congruence called barb ed congruence yields a desired discriminan ting p o w er It w as pro v ed that barb ed congruence also giv es a natural bisimilarit y congruence in higher order calculi In order to pro v e that calculus and faithful nets ha v e the same expressiv e p o w er w e use the observational c ongruenc e as the equiv alences of the previous de nition The observ ational congruence is based on barb ed bisim ulation a bisim ulation whic h can b e de ned uniformly in man y pro cess calculi including those w e consider in this pap er Moreo v er w e don t use a lab elled transition system w e fo cus on a reduction relation and w e use some observ ation predicates whic h can b e easily de ned for our nets De nition i We c onsider the fol lowing pr e dic ates over pr o c esses P tr ue if y if ther e is a pr e x y x or y x which is not underne ath another pr e x and y not in the sc op e of a r estriction y ii We c onsider the fol lowing pr e dic ates over nets G tr ue if y is the lab el of a non isolate d no de y Eac h predicate tr ue detect the p ossibilit y of p erforming an in teraction with the en vi y ronmen t along y De nition Str ong b arb e d bisimulation written is de ne d over the pr o c esses of c alculus as wel l as over the nets as the lar gest symmetric al r elation such that T S implies i whenever T T then ther e exists S s t S S and T S ii for e ach u if T then S u u De nition Two terms T and S ar e str ong b arb e d c ongruent and we write T S if for e ach textual c ontext C it holds that C T C S Some useful remarks on barb ed congruences can b e found in San Da vide Sangiorgi describ es an enco ding of the term passing calculus in to the ordinary calculus in this nice pap er F rom calculus to faithful nets W e start to sho w that the calculus and the faithful nets ha v e the same expressiv e p o w er b y describing ho w the pro cesses of the calculus are translated in to faithful nets De nition The gr aphic al r epr esentation of the c alculus by the faithful nets is given by the function dra w P which is de ne d by dra w dra w x hz i xz dra w x y P x y dra w P y dra w x y P x y dra w P y dra w x P dra w P x x dra w P j Q dra w P dra w Q Regarding to this translation w e ha v e the follo wing results Lemma f n P l dra w P Lemma dra w is wel l de ne d i e it do esn t dep end on the choic e of a pr o c ess the r epr esentative of an e quivalenc e class of pr o c esses P Q implies dra w P dra w Q The follo wing result sho ws that if t w o pro cesses ha v e the same b eha viour are strong barb ed congruen t then their corresp onding nets ha v e the same b eha viour are strong barb ed congruen t Prop osition full abstraction for dra w P Q i dra w P dra w Q F ollo wing a remark of Da vide Sangiorgi San nothing prev en ts us from obtaining the same result with a v ery bizarre enco ding This means that w e should rev eal the op erational corresp ondence existing b et w een P and dra w P The next result sho ws this corresp on dence and that the translation b y dra w is really in teresting and faithful Prop osition op erational corresp ondence for dra w If P P then dra w P dra w P If dra w P G then ther e exist P such that P P and G dra w P F rom faithful nets to calculus The con v erse of the previous translation is giv en b y an algorithm Let G b e a net W e assign new sym b olic lab els to all unlab el le d no des in fact these no des are lab elled b y b y the follo wing pro cedure where w e tak e in consideration the order of its steps First w e assign lab els x i i to those no des whic h are connected but they are not the targets of an y arro w external no des to those no des whic h are the targets of arro ws i e arro ws obtained b y applying the b o xing rules of the de nition to ev ery connected no de whic h is still unlab elled applying the rule that t w o connected no des receiv e the same lab el Second w e assign lab els y j to the other no des whic h are still unlab elled j When w e apply the algorithm these sym b olic lab els are w orking e ectiv ely only for those subnets of G whic h are still v alid nets function write v ar G net term write w hil e there is at least a b o x in G do select a b o x whic h is not included in to another b o x let H b e this b o x and let y x its corresp onding arro w see the b o xing rules of the de nition write write j y x write H delete the c hosen b o x w hil e there is at least an arro w in G do select an arro w x y write write j y x delete the c hosen arro w write x y write where x refers to a lab el x of some external no des of G and y refers to a lab el y whic h is one of the sym b olic lab els y of the previous pro cedure i Regarding to this translation from our faithful nets to the calculus pro cesses w e ha v e the follo wing results Lemma If G has no isolate d no des then l G f n write G This algorithm selects a b o x and then selects an arro w It is clear that w e migh t obtain di eren t enco dings for the same faithful net F ortunately w e ha v e the follo wing result Lemma If P and Q ar e two di er ent terms obtaine d by applying the algorithm write over a net G then P Q Prop osition full abstraction for write G H i write G write H Prop osition op erational corresp ondence for write If G G then write G write G If write G P then ther e exist G such that G G and P write G Moreo v er Prop osition F or every net G without isolate d no des and for every term P we have the fol lowing r esults dra w write G G write dra w P P Examples of ho w the faithful nets w ork W e giv e here some examples whic h sho w the dynamics of the faithful nets the w a y ho w the reductions w ork o v er the graphical represen tations of the terms Example We c onsider the fol lowing term P x x y y hz i j w xhui j t u r thr i The c orr esp onding net G dra w P and its r e actions G G G ar e de scrib e d by u s c s s s G z s c s s s u s c s s s G s z u c s s s G z s s Example We c onsider now the pr o c ess P t x hy i j x u uhti j t s r shr i Applying the r e action r elation P P we obtain the fol lowing pr o c ess P P t x u uhti j t s r shr i j y hti j t s r shr i The similar r e action for the faithful nets is given by G dra w P G dra w P wher e y x b r r b r r r r G r x r b r r r r b G y r r r b r Example This example shows how the r e actions over the faithful nets ar e similar to those over the pr o c esses of the c alculus We c onsider the pr o c ess P z hv i j y hz i j y x t x u uhti Starting fr om the faithful net G which c orr esp onds to the pr o c ess P two r e actions G G G ar e describ e d by the fol lowing pictur e z y y b r r r r r r b r r r b b G r r r v z y r r r b G r b r b r r v r r r v z G r r b r r r A graphical presen tation of the calculus b y the faithful nets The pap er Mil is an imp ortan t pap er on mobile pro cesses and it is in v aluable for a go o d exp osition of what is going on in the in teraction b et w een mobile pro cesses and also for studying ho w one ma y go from concurren t pro cesses to functions A deep in v estigation in to Robin Milner s enco ding of lam b da calculus in tro duced in Mil is giv en b y Da vide Sangiorgi in San There are at least t w o reasons wh y the translation of the calculus in to v arious formal mo dels for concurrency and in teraction is in teresting rst reason is concerning the expres siv e p o w er of the mo del and the second is related to the new prop erties of the calculus whic h could b e obtained as a consequence of suc h a translation in to a more general con text from the p oin t of view of concurrency and in teraction see Mil San W e presen t no w a translation whic h em b eds the calculus in to a gr aphic al c oncurr ent c ontext A graphical translation could b e done b y starting from the translation of the lazy calculus in to calculus describ ed b y Robin Milner in Mil and using then the translation describ ed b y Honda and T ok oro in HT In this w a y the terms are translated in to terms and these terms are translated b y the Honda T ok oro construction in to terms without output guards whic h ha v e a graphical represen tation b y nets W e presen t a rather simple and direct translation using the faithful nets F or this enco ding w e tak es in to consideration the translation of the lazy calculus in to the calculus but w e a v oid the Honda T ok oro HT and Boudol Bou transformations whic h could lead also to graphical enco dings Lazy calculus W e recall the basic notions of the lazy v ersion of calculus according to Abr W e consider a set V of v ariables and w e denote its elemen ts b y x y De nition The terms ar e de ne d over the set V of variables by the fol lowing syn tactic al rules a x j x a j ab Considering the term x a ev ery o ccurrence of x in to a is b ound The terms are denoted b y a b and the set of the terms is denoted b y L De nition The r e action r elation over terms is de ne d as the smal lest r elation L L satisfying the fol lowing rules x a b afb xg a a appl ab a b This relation de nes the so called lazy v ersion of the calculus con v ersion is allo w ed afb xg represen ts the term a in whic h the free o ccurrences of x are substituted b y b a v oiding the name capture T ranslation W e consider V N denoting b y x y the elemen ts of V and b y u v the elemen ts of N n V The faithful net whic h corresp onds to the term a is denoted b y a u De nition The tr anslation of the lazy c alculus into the faithful nets is de ne d inductively by x xu u x a u x xs s u v a u v ab a u v v x x r au a t v t x w b w a x v The follo wing result sho ws the correctness of this translation Prop osition L et a b e a close d term i e without fr e e variables Then we have one of the fol lowing two situations a y a fb x b x g and n n a y a x w b u u w x w b x x n w n n b oth a and a diver ge they ar e diver gent u Pro of We use the fact that the tr anslation fr om faithful nets to the c alculus pr o c esses given by write is sound pr op osition The pr o of is quite similar to the pr o of given in Mil for the tr anslation of the lazy c alculus into c alculus Conclusion This pap er pro vides a faithful graphical represen tation of the calculus giv en b y so called faithful nets W e sho w that the faithful nets and the calculus ha v e the same expres siv e p o w er and w e de ne t w o fully abstract translations from calculus to faithful nets and bac k These enco dings are fully abstract when t w o source calculus terms are equiv alen t if and only if their translations are equiv alen t In order to sho w ho w these results are actually related to the op erational seman tics a connection b et w een reductions o v er terms and reductions o v er their enco dings is giv en b y the op erational corresp ondence results for b oth translations W e are thinking to extend the study on these faithful nets One direction is to a v oid the pseudo arro ws called connections b y an inheritance mec hanism This step leads to a new calculus for concurren t ob jects whic h is someho w close to the ideas re ected b y the attempts giv en b y America Honda and V asconcelos on ob ject orien ted concurren t languages Ame HT V as An enco ding of a concurren t ob ject based language in to the calculus is giv en in W al References Ame Pierre America Issues in the design of a parallel ob ject orien ted language F ormal Asp e cts of Computing pages Abr Samson Abramsky The lazy lam b da calculus In D T urner ed R ese ar ch T opics in F unctional Pr o gr amming pages Addison W esley BB G erard Berry G erard Boudol The c hemical abstract mac hine The or etic al Com puter Scienc e v ol pages Bou G erard Boudol Async hron y and the calculus T ec hnical Rep ort INRIA Sophia An tip olis CR Gabriel Cioban u Mihai Rotaru The re nemen t of the concurren t pro cesses using calculus and nets Pr o c e e dings th R omanian Symp osium on Computer Scienc e Univ ersit y Press pages HT Kohei Honda Mario T ok oro An ob ject calculus for async hronous comm unica tion In Pr o c e e dings Eur op e an Confer enc e on Obje ct Oriente d Pr o gr amming LNCS pages Springer V erlag Mil Robin Milner The p oly adic calculus a tutorial ECS LF CS Rep ort Series Lab oratory for F oundations of Computer Science Univ ersit y of Edin burgh Mil Robin Milner F unctions as pro cesses Journal of Mathematic al Structur es in Com puter Scienc e v ol pages MPW Robin Milner Joac him P arro w Da vid W alk er A calculus of mobile pro cesses Journal of Information and Computation v ol pages Mil a Robin Milner Action calculi or syn tactic action structures Mathematic al F oun dations of Computer Scienc e LNCS Springer V erlag Mil b Robin Milner Action structure for the calculus Pr o c e e dings of the NA TO Sum mer Scho ol on L o gic and Computation Springer V erlag Mil Robin Milner nets a graphical form of calculus ESOP LNCS pages Springer V erlag MP Ugo Mon tanari Marco Pistore Concurren t seman tics for the calculus Ele ctr onic Notes in The or etic al Computer Scienc e v ol pages P ar Joac him P arro w In teraction diagrams A De c ade of Concurr ency REX Scho ol Symp osium LNCS pages Springer V erlag San Da vide Sangiorgi Expressing Mobilit y in Pro cess Algebras First Order and Higher Order P aradigms PhD thesis ECS LF CS Departmen t of Computer Sci ence Univ ersit y of Edin burgh San Da vide Sangiorgi F rom calculus to Higher Order calculus and bac k In T AP SOFT LNCS pages Springer V erlag San Da vide Sangiorgi The Lazy Lam b da Calculus in a Concurrency Scenario Journal of Information and Computation v ol pages V as V asco V asconcelos T yp ed concurren t ob jects In th Europ ean Conference on Ob ject Orien ted Programming LNCS pages Springer V erlag W al Da vid W alk er Ob jects in the calculus Journal of Information and Computation v ol pages Y os Nobuk o Y oshida Graph notation for concurren t com binators Pr o c e e dings The ory and Pr actic e of Par al lel Pr o gr amming TPPP LNCS pages Springer V erlag T ree Morphisms and Bisim ulations R o c c o De Nic ola A nna L ab el la Dipartimen to di Sistemi e Informatica Univ ersit a di Firenze e mail denicola dsi uni fi it Dipartimen to di Scienze dell Informazione Univ ersit a di Roma La Sapienza e mail labella dsi uni ro ma i t Abstract A category of action lab elled trees is de ned that can b e used to mo del unfolding of lab elled transition systems and to study b eha vioural relations o v er them In this pap er w e study v e di eren t equiv alences based on bisim ulation for our mo del One that w e called r esour c e bisimulation amoun ts essen tially to three isomorphism Another its w eak coun terpart p ermits abstracting from silen t actions while preserving the tree structure The other three are the w ell kno wn strong branc hing and w eak bisim ulation equiv alence F or all bisim ulations but w eak canonical represen tativ es are constructed and it is sho wn that they can b e obtained via enric hed functors o v er our categories of trees with and without silen t actions W eak equiv alence is more problematic a canonical minimal represen tativ e for it cannot b e de ned b y quotien ting our trees The common framew ork helps in understanding the relationships b et w een the v arious equiv alences and the results pro vide supp ort to the claim that branc hing bisim ulation is the natural generalization of strong bisim ulation to systems with silen t mo v es and that resource and w eak resource ha v e an in terest of their o wn In tro duction Beha vioural equiv alences pla y an imp ortan t r ole in the description of the op erational seman tics of concurren t systems These equiv alences are used to abstract from the irrelev an t details in tro duced when describing systems as sets of states that ev olv e b y p erforming actions i e b y means of lab elled transition systems There are v arious opinions ab out whic h features of a system are relev an t for a giv en purp ose and hence v arious notions of equiv alence for lab elled transition systems ha v e b een prop osed and giv e a comparativ e accoun ts Man y of the equiv alences prop osed in the literature are based on the notion of bisimulation whic h giv es rise to str ong bisimulation e quivalenc e Tw o of the most p opular generalizations of this equiv alence to systems with silen t mo v es are br anching and we ak bisim ulation Both of these equiv alences ignore in ternal or silen t actions but they deal di eren tly with in termediate states accessed b y transitions and lead to di eren t iden ti cations putting a di eren t stress on the branc hing structure of pro cesses While strong bisim ulation is generally regarded as the equiv alence whic h pro vides the minim um abstraction from the details of b eha viour for free transitions systems there is little agreemen t ab out the comparativ e merits of the w eak and branc hing generalizations of strong equiv alence to systems with actions In our view category theory and their abstract constructions can b e a useful to ol for under standing and assessing the relativ e merits of di eren t concepts Here w e consider those categories of trees that ha v e b een used to mo del concurren t systems and nondeterministic regular expres sions Our aim is that of reconducting the di eren t bisim ulations to a common framew ork where it is easier to understand their relationships W e shall study v e di eren t bisim ulation based equiv alences for our trees The more concrete one that w e called r esour c e bisimulation corresp onds to tree isomorphism it is ner than strong bisim ulation in that it discriminates also according to the n um b er of computations that can b e p erformed to reac h sp eci c states It will b e our touc hstone and will guide to w ard de ning and assessing the other equiv alences Indeed the second one is its w eak coun terpart that p ermits abstracting from silen t action while preserving the tree structure The other three equiv alences are the w ell kno wn strong branc hing and w eak bisim ulation equiv alence W e shall see that branc hing bisim ulation can b e obtained b y mirroring the construction for w eak resource bisim ulation while replacing isomorphism requiremen ts with requiremen ts of strong bisimilarit y F or resource strong w eak resource and branc hing bisim ulation equiv alence w e shall de ne standard represen tativ es of their equiv alence classes These constructions are then vindicated b y the enric hed categorical accoun t that w e pro vide in the nal part of the pap er W e argue that similar results cannot b e obtained for w eak bisim ulation equiv alence W e start from a basic category of trees lab elled o v er an actions monoid T ree and construct a category Der with the same ob jects and where the maps are paths to deriv ativ es so a map f t t tells us ho w to nd a cop y of t in t In visible actions s are in tro duced b y admitting them as lab els this generalizes T ree to T ree and Der to Der T o relate the t w o categories a functor del T ree T ree is de ned whic h deletes lab elled branc hes W e sho w that resource equiv alence do es not in tro duce an y quotien ting on Der and corresp onds to the iden tit y functor After that w e in tro duce F Der Der whic h functorially maps a tree S to the canonical represen tativ e of its strong bisim ulation equiv alence class Finally w e de ne F W R and F Der Der whic h functorially maps a tree to the canonical represen tativ e of its w eak B resource and branc hing bisim ulation equiv alence class In our view these results strengthen the claim that branc hing bisim ulation is the natural gen eralization of strong bisim ulation to systems with silen t mo v es and that a suitable notion of tree is fundamen tal in dealing with bisim ulations T rees and T ransitions Systems W e b egin b y in tro ducing the basic concepts of lab elled transition systems their unfoldings and the v e notions of bisim ulation w e will study W e then presen t trees as a structure of runs with agr e ements and the relationship with unfoldings W e b egin with standard de nitions ab out transition systems W e supp ose that a set A of actions is giv en together with a distinguished action A represen ting a silen t mo v e Unless otherwise stated w e con ne atten tion to reac hable transition systems with nite unfoldings Notation W e write A for A f g and A for the monoid of w ords on A with empt y w ord The v ariables a b etc will range o v er A and etc o v er A W ords will b e w v etc De nition A ro oted lab el le d tr ansition system or L TS is a quadruple S S E s where S is a set of states ranged o v er b y s u etc E is a set of actions E A S E S is a relation the tr ansition r elation s S is a distinguished starting state Notation W e usually write s s rather than s s and if s u s and u are states in S w e write i for the re exiv e and transitiv e closure of ii s u if there exist s u suc h that s s u u iii s if there exists no s S suc h that s s iv s if s for all A W e no w in tro duce our v e bisim ulations four of them are relativ ely w ell kno wn the other w eak resource bisim ulation is new and has b een de ned in collab oration with Fla vio Corradini De nition Let S S E s b e an L TS A symmetric relation R S S is said to b e i a r esour c e bisimulation if s R u implies that there exists a bijection f b et w een fs js s g and fu ju u g suc h that s R f s ii a str ong bisimulation if s R u and s s implies that u u and s R u iii a we ak r esour c e bisimulation if for all A if s R u then there exists a bijection f b et w een fs js s g fs js s s R s g and fu ju u g fu ju u u R u g suc h that s R f s iv a br anching bisimulation if s R u and s s implies that either and s R u or u u u u and s R u s R u s R u a a v a we ak bisimulation if s R u and s s implies that u u with s R u Tw o states are said to b e r esour c e str ong we akly r esour c e br anching or we ak bisimilar if there exists an ep on ymous bisim ulation relating them W e write and for r esour c e R S W R B W str ong we ak r esour c e br anching and we ak bisim ulation equiv alence resp ectiv ely It is not di cult to see that in presence of actions the last three relations are increasingly coarser When all actions are visible w e ha v e instead that r esour c e and we ak r esour c e on one hand and str ong br anching and we ak bisim ulation on the other do collapse W e no w in tro duce a category of lab elled trees T ree and some of its prop erties A single tree will b e mo delled b y sp ecifying what runs it has what computations are p erformed along eac h run its extent and to what exten t those computations agree the agr e ement Th us the tree a a R c b y x will b e mo delled b y runs x and y lab elled with ab and ac resp ectiv ely and b y stating that x and y do not agree at all In con trast the tree a c b R y x will b e mo delled b y giving t w o runs x and y again lab elled with ab and ac but with agreemen t b et w een x and y b eing the initial a De nition Let A A b e the meet semilattice where is the pre x order of w ords is the largest common pre x op eration on w ords and is the minim um De nition A tree X X comprises a set X of runs a map X A the extent map giving the computation x along a run x a map X X A establishing the agr e ement b et w een pairs of computations Additionally w e require that for all x y z X x x x x y x y x y y z x z x y y x These amoun t to requiring that a run agrees with itself along all its length the agreemen t b et w een t w o runs is not bigger than their largest common pre x runs are forced to agree on a common initial segmen t and they cannot join up again once split the common agreemen t b et w een x y and z is not bigger than that b et w een x and z agreemen t is symmetrical W e will write X Y etc for t ypical trees with comp onen ts X X Y Y W e shall use w w to denote the w ord obtained from w b y deleting the pre x w from w Example The t w o trees illustrated ab o v e are sp eci ed b y X where X fx y g and x ab y ac x y and Y where Y fx y g and x ab y ac x y a resp ectiv ely W e can observ e that A lab elled trees are symmetric A categories when A is though t of as a p osetal category Therefore the appropriate notion of comparison for trees is that of A functor i e De nition A tr e e morphism f X Y is a map f X Y satisfying i f do es not c hange exten t f x x ii f increases agreemen t f x f y x y T ree will b e the category of nite A lab elled trees F or A lab elled trees w e use the semi lattice A A exactly as b efore and hence obtain the category T ree with exten t and agreemen t maps v alued in A De nition Giv en t w o trees X and Y w e can form the sequen tial comp osition of X and Y X Y Z as follo ws i Z X Y a run in X Y is a run in X follo w ed b y a run in Y ii x y x y where is concatenation of strings so the lab el of a run in X Y is the lab el in X follo w ed b y the lab el in Y iii x y x y is x x if x x and x y y otherwise so runs that are di eren t in X ha v e their X agreemen t while runs that di er only in Y ha v e their X agreemen t concatenated with their Y agreemen t Prop osition Sequen tial comp osition de nes the ob ject part of an asso ciativ e tensor pro duct on T ree with unit f g T ree has an initial ob ject giv en b y the empt y tree and nite copro ducts giv en b y joining t w o trees at the ro ot In tuitiv ely it is clear that the trees in tro duced in the last sections can b e used to represen t the unfoldings of nite transition systems Here w e formally establish the corresp ondence and use it to motiv ate our equiv alences and lift the bisim ulations to trees De nition Let X X b e a tree A pr e x of a run in X is a pair x w consisting of a run x X and a w ord w A with w x A p ath in X is an equiv alence class x w of pre xes quotien ted b y x w y v i w v x y The derivative reac hed along x after w for a path x w in X is the tree Y where Y fx j x X x x w g x x w x x x x w The gure b elo w illustrates the terminology X A A X x w i Y A w A Y A A B A A B A A B B A A x y W e will write paths X for the paths of a tree X and X x w i Y if Y is the deriv ativ e reac hed along x after w in X W e will write X x v i for the unique tree Y suc h that X x v i Y Notice that in the de nition ab o v e w e did not men tion no des explicitly they are in an ob vious bijectiv e corresp ondence with paths Sometimes w e will refer to paths as no des Giv en a transition system S with a nite unfolding w e no w construct a tree unf S represen ting that unfolding De nition The unfolding unf S runs S of a transition system S S S S E s is a tree giv en b y n i runs S fs s s j s s s g n n n ii s s s S n n n iii s s s s u u where for all k l and s u and S n n m m l k k k k or s u l l l l It is not di cult to see that if w e use unfold S to indicate the standard unfolding of a transition system S and use tran X to refer to the transition system asso ciated to a tree X de ned as follo ws tran X paths X im x where im f j app ears somewhere in x x X g and x w y v i y v x w then w e ha v e unfold S tran unf S Bisim ulation for T rees W e shall w ork directly on trees and pro vide a concrete de nition of resource and strong equiv alence directly o v er them W e will also consider w eak resource equiv alence branc hing and w eak equiv a lence W e will ho w ev er pro v e that our de nitions are in full agreemen t with the corresp onding ones in tro duced in the previous section for lab elled transition systems De nition Tw o trees X and Y are r esour c e bisimilar written X Y i there exists a R bijectiv e function f X Y suc h that x f x and w x with w X x w i R Y f x w i Prop osition Tw o nite trees are resource bisimilar if and only if they are isomorphic Prop osition Tw o transition systems with nite unfoldings are resource bisimilar S S R i there is a resource bisim ulation b et w een their unfoldings as trees i e i unf S unf S R De nition Tw o trees X and Y are str ongly bisimilar written X Y i S i x X y Y x y and for all w x with w X x w i Y y w i S ii y Y x X x y and for all w y with w Y y w i X x w i S Prop osition Tw o transition systems with nite unfoldings are strongly bisimilar S S i S there is a strong bisim ulation b et w een their unfoldings as trees i e i unf S unf S S W e in tro duce a function del whic h deletes s and transforms a tree with mo v es in T ree in to a tree in T ree obtained b y ignoring all mo v es Belo w w e o v erload notation and call del the ob vious deletion on w ords del and del w as del w if and del w otherwise De nition F unction del T r ee T r ee is de ned as del X Y where Y X x del x x y del x y It can b e immediately seen that del extends to functor del T ree T ree indeed morphisms from X to Y induce morphisms from del X to del Y Please notice that images of glued runs in del X are glued in del Y Once w e ignore s a deriv ativ e is not uniquely determined b y its access path an y longer T o see this examine Figure the same run x leads to b oth the deriv ativ e t t and t along del w or del w Th us in general x del w sp eci es the path to a set of deriv ativ es P P P P P P w P P P P P B B t B B B B t B B x Figure Deriv ativ es accessed along x del w in the presence of s It is imp ortan t to notice that there is alw a ys a largest tree t t here to whic h x del w leads and an y other tree so accessed lik e t is a summand of this one De nition Giv en a tree X X in T ree a run x X and a pre x v del x let w A b e the shortest w ord suc h that w x and del w v X x w i Y n R X x v fZ j X x w i Y x i Z n g the family of deriv ativ es reac hable along x b y v n R X x v fdel Z j X x w i Y x i Z n g the family of deriv ativ es reac hable along x b y v but pruned using del Within this setting w e write Z Y if Z is a summand of Y and note that R X x v is linearly ordered b y the relation induced b y that with abuse of notation w e will write as w ell De nition Tw o trees X and Y are we ak r esour c e bisimilar written X Y i there exists W R a bijection f X Y suc h that del x del f x and a F or all v del w w x and w if t R X x v then there exists t R Y f x v and t t W R b for all v del w w y and w if t R X y v then there exists t R Y f y v and t t W R Prop osition Tw o transition systems are w eak resource bisimilar S S i there is a W R w eak resource bisim ulation b et w een their unfoldings as trees i e i unf S unf S W R De nition Tw o trees X and Y are br anching bisimilar written X Y i B i x X y Y suc h that del x del y and a for all v del w with w x and w if t R X x v then there exists t R Y y v suc h that t t B b for all v del w with w y and w if t R Y y v then there exists t R X x v suc h that t t B ii y Y x X suc h that del x del y and a for all v del w with w y and w if t R Y y v then there exists t R X x v suc h that t t B b for all v del w with w x and w if t R X x v then there exists t R Y y v suc h that t t B Prop osition Tw o transition systems are branc hing bisimilar S S i there is a branc h B ing bisim ulation b et w een their unfoldings as trees i e i unf S unf S B De nition Tw o trees X and Y are we akly bisimilar written X Y i W i x X y Y suc h that del x del y and a for all v del w with w x and w if t R X x v then there exists t R Y y v suc h that t t W ii y Y x X suc h that del x del y and a for all v del w with w y and w if t R Y y v then there exists t R X x v suc h that t t W Prop osition Tw o transition systems are w eakly bisimilar S S i there is a w eak W bisim ulation b et w een their unfoldings as trees i e i unf S unf S W It is in teresting to note the essen tial di erence b et w een de nitions and is one of symmetry de nition is missing cases i b and ii b of de nition This will turn out to ha v e imp ortan t consequences the symmetrical form of de nition means that w e can de ne a branc hing bisim ulation as an equiv alence relation b et w een runs in the st yle of the bac k and forth approac h whereas no suc h de nition will b e p ossible for w eak bisim ulation Canonical Represen tativ es for Bisim ulation In the previous section w e rephrased the de nition of w eak and branc hing bisim ulation b y only relying on less structures The information ab out silen t step transitions is collected in what w e called the family of deriv ativ es reac hed along run x via lab el w R X x w In this section w e will exploit this in tuition and the construction of standard represen tativ es for strong equiv alence classes of trees to build standard represen tativ es for branc hing equiv alence classes of trees W e will sho w that giv en a rigid less tree whose no des are lab elled b y R sets it is p ossible to obtain a non rigid minimal tree that is branc hing equiv alen t to the original one The same pro cedure will b e used for w eak resource equiv alence taking in to accoun t that in that case the corresp onding rigid equiv alence is isomorphism W e remind the reader that w e use to denote tree isomorphism W e b egin b y c haracterizing strong bisim ulation via a canonical represen tativ e The canonical represen tativ e for the equiv alence class will b e obtained b y merging those runs that ha v e the S same exten t and equiv alen t relationships with other runs in the same tree De nition Let b e the equiv alence relation on runs de ned b y x x i x x and for ev ery v x X x v i X x v i and let jxj denote the equiv alence class of x The c anonic al S S r e duction of a tree X X SX is the tree Y where i Y fjxj j x X g ii jxj x iii jxj jy j maxf x y j x jxj y jy jg It is w orth noticing that the maxim um ab o v e exists Indeed x x implies x x hence x y for x jxj is alw a ys a pre x of x Th us x y as x v aries is linearly ordered W e approac h the pro of that SX is the canonical represen tativ e of the equiv alence class of X S and hence that strong equiv alence coincides with b y sho wing that X and SX ha v e the same S transitions Lemma X and SX c an p erform the same lab el le d tr ansitions i if X x w i Y then S X jxj w i S Y ii if SX jxj w i Z and X x w i Y then SY Z Theorem Giv en trees X and Y w e ha v e SX SY if and only if X Y S In order to de ne a canonical represen tativ e for equiv alences in v olving silen t mo v es w e need a pro cedure of reconstruction of a non rigid tree starting from data giv en in terms of rigid trees In the app endix w e rep ort an example reconstruction here w e pro vide a general pro cedure that giv en a collection of x v indexed families of trees under some conditions on the collection yields a reconstructed tree De nition Fix a tree X in T ree and supp ose that a nite collection R x v of sets of trees is giv en one set for eac h pair x v x X v x W e will call this collection X r e c onstructible if it satis es the follo wing conditions i R x v is a nite c hain R x v R x v R x v in T ree i i ii There exists a surjectiv e morphism epimorphism f from X x v i to the maximal elemen t x v in the c hain R x v and for ev ery i f x R x v x v i iii f y R x v then R x s R y s for all s v and if s v for all j i R x s x v i j R y s furthermore for all s v f and f coincide on common domains j x s y s Condition i means that the deriv ativ e after v along x is considered as standing for i di eren t states that are bigger and bigger but ii guaran tees that the biggest of suc h states is co v ered b y the original one iii deals with coherence of the deriv ativ es asso ciated with eac h run The prop erties of reconstructible families are su cien t to ensure a w ell b eha v ed reconstruction De nition Giv en a tree X in T ree consider a X reconstructible family R x v the r e c on R struction X R x v X of X is giv en b y i X X i i i i n n ii x a a a giv en x a a a and n n i jR x a a j for k n k k i i i i m m iii x y a a a where x y a a a for k m i m m k jR x a a j and i jR X x a a a R y a a a j m m m k R Prop osition Let X R x v b e as in de nition then it is a tree in T ree Lemma Giv en a tree X in T ree let w b e a w ord di eren t from There is an epimorphism h E R h b et w een del X R x v x w and R x del w h Prop osition R i There is a bijection b et w een R X R x v and R x v R R ii X x w i R x v X R x v x w i Let us no w consider reconstruction in the cases of in terest for us W e will start with a tree in T ree w e apply deletion on it and reconstruct it with families obtained from the original tree Tw o kinds of families will b e considered to obtain trees that are w eakly resource and branc hing bisimilar to the original tree As in the general case De nition reconstruction will b e carried run b y run and t w o trees will b e iden ti ed only if they are isomorphic and reac hable along the same run Theorem Giv en a tree X in T ree let us consider t w o del X reconstructible families i R x v R X x v epimorphisms are giv en b y iden tit y ii R x v S R X x v epimorphisms are functions induced b y S Then R i X X R x v and W R R R ii X X R x v S X R x v B B De nition R i The c anonic al WR r e duction of a tree X X in T ree written WRX is X R x v R ii The c anonic al B r e duction of a tree X X in T ree written BX is S X R x v Lemma Giv en a tree X in T ree t w o deriv ativ es t t R X x v are i w eak resource bisimilar i del t del t ii branc hing bisimilar i Sdel t Sdel t Theorem If X and Y are t w o trees then w e ha v e i X Y if and only if WR X WR Y W R ii X Y if and only if BX BY B Due to theorem WR X can b e though t of as the minimal w eak resource represen tativ e for X while B X as its minimal branc hing represen tativ e W e ha v e not b een able to pro vide a standard minimal represen tation for w eak bisim ulation b y follo wing the pattern of the construction for the other t w o w eak equiv alences The reason for this idiosyncrasy is the imp ossibilit y of building the standard represen tation via quotien ting w eak bisim ulation do es not enforce a direct corresp ondence b et w een the runs of equiv alen t trees and hence w e cannot build a canonical represen tativ e as a quotien t o v er the set of runs of a tree T o see this consider the t w o w eakly equiv alen t trees corresp onding to the t w o terms a b c ab a b d and a b c a b d No w the tree corresp onding to the second term is a go o d candidate for a minimal standard repre sen tativ e Ho w ev er the comp osition of the equiv alence class of runs is unclear the run ab of the rst tree can either b e absorb ed b y a b in the rst or the third summands and there is clearly no reason to prefer one c hoice o v er the other Moreo v er w e cannot put it in b oth equiv alence classes for that w ould lea v e us with a b c d as the represen tativ e and this is not bisimilar to the original An Enric hed Categorical Accoun t In this section w e rephrase our accoun t using more explicitly categorical mac hinery W e will sho w that the construction of minimal represen tativ e is functorial w r t tree structure in all the cases F urthermore a c haracterization of the resulting functors is giv en that emphasizes the fact that the only di erence b et w een the resource w eak resource cases and strong branc hing cases is the di erence b et w een the existence of a bijectiv e function and the existence of relation epimorphic on b oth sides The notion that Y is a deriv ativ e of X accessed b y a w ord w along a run x X x w i Y naturally leads to a notion of map b et w een trees di eren t from our morphism Clearly w e could de ne the set of maps b et w een X and Y as f x w j X x w i Y g and this w ould lead to a category of trees where a map from X to Y is a w a y of nding the deriv ativ e Y in X Ho w ev er a momen t s re ection sho ws that these arro ws from X to Y are not just a set they naturally b ear a tree structure Indeed there are not just t w o paths from X Y to Y of example there is a tree consisting of t w o runs see Figure De nition The category Der has trees as ob jects arro ws f X Y in Der X Y are paths x w suc h that X x w i Y where Y is an isomorphic cop y of Y Giv en the tree of paths Der X Y and Der Y Z their comp osition in Der is giv en b y concatenation in T ree Der is prop erly seen not just as a category but as a category enric hed o v er T ree equipp ed with the monoidal structure Similarly Der is the category of paths to deriv ativ es with s de ned o v er T ree in the same w a y as Der is de ned o v er T ree Q c a Q Q s x a a b A b R c A a b z b A A A a b c a c A U A U R y A U x z z A x y a b A U y z Y X Figure Maps in Der X x ca i Y X y cbc i Y W e ha v e also that Der is as w ell a T ree category due to the e ect of the functor del T ree T ree obtained b y applying del to homs In the sequel Der will alw a ys denote this T ree category Of course the iden tit y functor on T ree induces the iden tit y functor on Der but w e will sho w no w that the reduction maps S B and WR though not b eing endofunctors do induce T ree functors from Der Der to itself Lemma Giv en an y t w o trees Z and Z there is a T ree map b et w een the trees i Der Z Z and Der S Z SZ ii del Der Z Z and del Der WRZ WR Z iii del Der Z Z and del Der BZ B Z Theorem The endomap S on T ree induces a T ree functor F on Der The endomaps WR S and B on T ree induce T ree functors F and F on Der W R B W e no w go on to examine the nice prop ert y that allo ws us to c haracterize the T ree functors ab o v e T o b egin with consider the notion of a V functor F C C o v er some V category C b eing ful l F or this to b e the case w e require that for eac h pair of ob jects A B the induced function F from C A B to C F A F B is an epimorphism F ullness condition in our case w ould amoun t A B to asking that all paths from F A to F B arise via paths from A to B This is b oth to o na v e and to o demanding W e w an t to require that all paths from F t to an y u are obtained via some u suc h that F u u i i this is the notion that will allo w us to capture functors lik e ours in ten t De nition A V functor F C C is said to b e her e ditarily ful l if and only if for an y ob jects A B of C there exists a family fB g suc h that F B B and fF g co v ers C F A B i i A B i Prop osition i F Der Der is an hereditarily full T ree functor S ii F Der Der is an hereditarily full T ree functor preserving and sums W R iii F Der Der is an hereditarily full T ree functor B The only trees in T ree that ha v e none but trivial deriv ativ es are nite nonempt y sums of s Let us call them quasiterminals If F t is a quasi terminal so is t If F is hereditarily full one has the vicev ersa i e quasi terminals are preserv ed as a class Naturally iden tit y the T ree functor Der Der induced b y resource bisim ulation is hered itarily full It is the only one up to isomorphism enjo ying this prop ert y and preserving and sums hence preserving quasi terminals as individuals This fact can b e easily pro v ed b y induction on the depth of the tree Next theorem will sho w that the other T ree functors considered in this pap er enjo y a similar feature b ecause they are in some sense univ ersal with resp ect to the class of T ree functors with the same prop erties The statemen t corresp onds to the minimalit y of the canonical represen tativ e Theorem i F or all hereditarily full T ree functors F Der Der F F F S S ii F or all hereditarily full preserving and sums T ree functors F Der Der F F W R F W R iii F or all hereditarily full T ree functors F Der Der F F F B B A direct consequence of this theorem is that all hereditarily full T ree functors preserving and sums preserv e w eak resource bisim ulation equiv alence while all hereditarily full T ree functors preserv e branc hing bisim ulation equiv alence Conclusions W e ha v e studied lab elled trees as unfoldings of transitions systems and c haracterized di eren t bisim ulations as sp ecial functors b et w een categories of trees enjo ying univ ersal prop erties W e ha v e th us devised criteria for comparing and assessing di eren t equiv alences branc hing bisim ulation app ears as the natural generalization of strong bisim ulation just lik e w eak resource bisim ulation is the natural generalization of isomorphism of trees The de nition of the functors has required as an in termediate step the construction of a canonical represen tativ e of the considered equiv alence classes The construction of canonical rep resen tativ es for w eak bisim ulation equiv alence turned out to b e problematic w e could not de ne a quotien t that preserv ed the structure of the runs Our approac h to bisim ulations c haracterizations is related to that in tro duced in and used in only they start from a di eren t view of the same top ological structure Our trees ha v e originally b een de ned as categories enric hed o v er a lo cally p osetal category A namely that asso ciated with the free monoid A Similarly morphisms b et w een trees are A functors It is w ell kno wn that our trees as categories enric hed on a p osetal category can b e though t as presen tations of shea v es on the top ology where elemen ts of A constitute a base T o obtain the corresp onding shea v es w e w ould roughly need to complete runs with all their pre xes T o reco v er the approac h follo w ed in elemen ts of A could b e considered as a sub category P of paths in T ree and w e could c haracterize strong and branc hing bisim ulation as in via spans of P op en maps The T ree functorialit y corresp onds to preserv ation of path logic but our construction pro vides also minimal represen tativ es that cannot b e obtained via spans As in our case c haracterization of w eak equiv alence in is problematic see it requires in tro ducing an ad ho c selection of morphisms or a w eak ening of the logic to b e preserv ed This w eak er c haracterization is not repro ducible in our con text that is more demanding on structural prop erties The t w o new equiv alences that w e ha v e considered and that are not considered in the ab o v e men tioned pap ers ha v e pro v ed v ery useful R esour c e bisimulation has b een used to obtain a complete axiomatization of a tree based in terpretation of regular expressions and to pro vide alternativ e op erational seman tics of pro cess algebras We ak r esour c e bisimulation can b e fully axiomatized b y simply adding to the axioms for resource bisim ulation the follo wing la w X X that essen tially sa ys that all and only the irrelev an t s are ignored Besides this line of in v estigation let us men tion t w o promising topics for further w ork In this pap er w e ha v e only considered action lab elled nite trees There are t w o ob vious generalizations Firstly lik e it has b een done for the op en maps approac h w e could exp ort our c haracterizations to di eren t seman tics those that admit an enric hed categorical presen tation i e w e could consider ric her lab els that w ould enable us to rely on the same bisim ulations also for non in terlea ving mo dels of concurrency and capture e g causal dep endence maximal concurrency lo calit y based prop erties in the same v ein of Secondly w e could consider nite state transition systems with cycles and hence in nite unfoldings Ho w ev er while the generalization to ric her lab els is direct the adjustmen ts needed for dealing with in nit y are not minor Indeed a k ey p oin t of our approac h is that unfoldings of systems are describ ed as sets of runs from an initial to a nal state No w while in the case of nite L TSs w e immediately ha v e nal states in the cyclic case w e w ould need to single out sp eci c states as nal and ensure that all of them are equiv alen t One p ossibilit y is to massage systems to include sink states in corresp ondence with eac h nal state for instance via the standard automata theoretic construction of in tro ducing epsilon mo v es The set of runs of an L TS w ould then b e the set of all nite runs with the ob vious lab eling the agreemen t of an y t w o runs w ould b e the string asso ciated with their initial common run A run x is considered an appro ximation of a run y whenev er x y x y But this will b e the sub ject of future researc h References A Cheng M Nielsen Op en Maps at W ork BRICS R ep ort Series n Corradini F De Nicola R and Lab ella A F ully Abstract Mo dels for Nondeterministic Regular Expressions In Pro c Concur LNCS Springer V erlag pp R De Nicola Extensional equiv alences for transition systems A cta Informatic a pp P Degano R De Nicola and U Mon tanari Univ ersal Axioms for Bisim ulation The or etic al Computer Scienc e v olume North Holland pp P Degano R De Nicola and U Mon tanari Observ ation T rees In Pr o c North A meric an Confer enc e on Pr o c ess A lgebr as Purushothaman S and Zw arico A eds Springer V erlag W orkshops in Computing series pp De Nicola R and Lab ella A A Completeness theorem for Nondeterministic Kleene Algebras in Pro c MF CS LNCS Springer V erlag pp R De Nicola U Mon tanari and F V aandrager Bac k and forth bisim ulations In CONCUR J Baeten and J Klop eds v olume Springer V erlag LNCS R v an Glabb eek The linear time branc hing time sp ectrum In CONCUR J Baeten and J Klop eds v olume Springer V erlag LNCS pp R v an Glabb eek The linear time branc hing time sp ectrum I I The Seman tics of sequen tial systems with silen t mo v es In CONCUR E Best ed v olume Springer V erlag LNCS pp R v an Glabb eek and W W eijland Branc hing Time and Abstraction in Bisim ulation Seman tics Journal of the A CM pp A Jo y al M Nielsen and G Winsk el Bisim ulations and Op en Maps In L o gic in Computer Scienc e pp S Kasangian A Lab ella and A P ettorossi Observ ers Exp erimen ts and Agen ts A com prehensiv e approac h to parallelism In Semantics of Concurr ency Guessarian I ed v olume Springer V erlag LNCS pp G Kelly Basic Conc epts of Enriche d Cate gory The ory Cam bridge Univ ersit y Press R Milner Communic ation and c oncurr ency In ternational series on computer science Pren tice Hall In ternational D P ark Concurrency and automata on in nite sequences In Pr o c e e dings of The or etic al Computer Scienc e v olume Springer V erlag LNCS pp R W alters Shea v es and Cauc h y complete categories Cahiers de T op olo gie et Ge ometrie Di pp G Winsk el and M Nielsen Categories of mo dels of concurrency In S Abramsky D Gabba y and T Maibaum editors Handb o ok of L o gic in Computer Scienc e V ol Oxford Science Publications pp APPENDIX Rebuilding T rees In this app endix w e pro vide an example of the reconstruction pro cedure formally de ned in Section First of all w e sho w ho w to obtain decorated rigid trees from those with silen t actions In Figure w e ha v e represen ted the tree X and the tree del X obtained b y deleting all silen t mo v es from X F or the sak e of readabilit y w e name y the runs of del X corresp onding to the x i i of X c R a a A A b a c A U A U R x x y y b a b R x y y b x del X X Figure A tree X in T ree and its deletion The rst step of our reconstruction consists of decorating eac h no de y u in del X with the i deriv ativ es in R X x v F or instance w e decorate the no des of del X in this w a y i i the ro ot is decorated with four sets of deriv ativ es one for eac h y i R X x fb a c a b b a bg R X x fb a c a b b ag R X x fb a c a b g R X x fb a c a b g ii the leaf no de of the y branc h y b is decorated with R X x b f g iii the leaf no de of the y branc h is decorated with R X x a f g iv the no de y c y c is decorated with R X x c fa bg R X x c fa b bg v the leaf no de of the y branc h is decorated with R X x ca f g vi the leaf no de of the y branc h is decorated with R X x cb f g The reconstruction of a tree in T ree from the decorated v ersion of del X pro ceeds along the follo wing lines Giv en the set of runs x x x x rst their new exten t is de ned T o do this w e rely on a i the fact that eac h tree in R X x w a represen ts a deriv ativ e accessible b y a step from x w i and reconstruct the exten t b y in tro ducing after eac h a a n um b er of s equal to jR X x w a j i i in order to guaran tee the necessary branc hing p oin ts T o see this consider Figure where it is assumed that R X z del w a ft t t t t t t t t t g P P P P P w P P P P P P P a B B B t B B t B B t z B t z Figure A step in the reconstruction In our sp eci c example the suggested construction amoun ts to de ning x b x a x ca x c b The agreemen t b et w een t w o giv en runs is then obtained again b y adding after eac h a a n um b er i of s equal to jR X x w a R X x w a j i i j i c R a a A A A U A U x x b b x x R Figure The reconstructed tree R X x v R Th us the complete reconstruction of the tree of Figure whic h will b e written R X x v is sho wn in Figure The reader ma y lik e to c hec k that the reconstruction is w eak resource bisimilar to the original tree Branc hing Pro cesses of general S T Systems Stefan Haar Dept of Computer Science Hum b oldt Univ ersit y of Berlin German y e mail haar informatik h u b erl in de June W e in tro duce an alternativ e o ccurrence net seman tics for S T systems allo wing arbitrary markings and arc w eigh ts F or P etri net systems branc hing pro cess se man tics ha v e b een in tro duced b y Nielsen Plotkin and Winsk el and Engelfriet Branc hing Pro cesses BPs for short giv e a partial order represen tation of system b eha vior b y means of an unfolding in to an o ccurrence net McMillan Esparza and Esparza R omer V ogler used BPs to decide system prop erties in the safe case whilst a v oiding state explosion Our de nition will w ork for general systems including those with arc w eigh ts greater than one The restriction to the safe case can therefore b e lifted Also the principles in constructing the unfolding are di eren t making the de nition more general and presumably exible to include future extensions to di eren t net classes W e b egin b y stating the de nitions and terminology De nition A net is a quadruple N S T F W such that S is a set of places T a set of transitions such that S T F S T T S a set of arcs and W S T T S I N an arc w eigh t function such that W x y i x y F N is ordinary i W x y for al l x y F Adding markings and their dynamics on obtains systems De nition F or any net N S T F W any mapping M S I N is c al le d a marking A net system is a p air N M wher e N S T F W is a net and M S I N a marking c al le d the initial marking of t T is enabled in a marking M i for al l s S M s W s t If t is enable d in M the ring of t le ads to a new marking M in short M tiM i for al l s S M satis es M s M s W s t W t s We denote the set of tr ansitions enable d in M by E N AB M and de ne the reac h abilit y set of M as RE AC H M fM S I N t t T M M S I N n n M t iM t i t iM M g n n F or ordinary nets w e will suppress W in the notation De nition F or N S T F W set F and F F or x S T set F x fy y x F g xF fy x y F g F xF F x xF The con ict r elation is given by x y i ther e exist s S and t t sF such that t t t x and t y The in terpretation justifying the notion of c on ict will b e giv en b elo w for a more sp ecialized con text De nition A n or dinary p etri net N B E F is an o ccurrence net ON i no bac kw ard branc hing jF bj for al l b B Acyclicit y x x for al l x B E and absence of self con ict x x for al l x B E If also jbF j for al l b B N is c al le d a causal net or CN F or an ON N set x l i y i x y or y x and x co y i x y and neither x l i y Denote the set of maximal co cliques b y C U T S N and set S C U T S N C U T S N P S The follo wing prop erties are easily v eri ed a 0 a c 0 0 c 0 b c 1 0 b d e 0 0 d e 0 Figure A safe system with BP in the Engelfriet sense Lemma If N B E F is an ON the fol lowing holds is a p artial or der i e irr e exive and tr ansitive l i co and ar e symmetric and irr e exive with id f x x x B E g the pr o duct set B E B E is the dis joint union of id l i co and Mor e over N is a CN i is empty Informally sp eaking Branc hing pro cesses BPs are unfoldings of P etri net systems in to o ccurrence nets obtained from the ring rule Engelfriet s de nition of BPs requires that N is ordinary and is safe An Engelfriet BP of is a pair N p where N B E F is an ON suc h that min N S C U T S p B E S T a lab eling function suc h that a p B S and p E T b for all e E p induces an isomorphism b et w een the subnets spanned b y F eF and F tF where p e t c e e E F e F e p e p e e e and d p is a bijection from min N to m j min N Figure illustrates the construction of BPs W e generalize that de nition to include general markings and general arc w eigh ts De nition L et N M b e a system with N S T F W A gener alized branc hing pro cess of is a triple N p l wher e N B E F is an ON with min N S C U T S N and p B E S T l B S ar e mappings such that p B S and p E T e e E F e F e p e p e e e p is a bije ction b etwe en min N and S j min N b min N l b M p b e E with p e t a for any s F tF ther e exists a unique b b F e eF such that p b p b s b F or al l e E and b b ac c or ding to p art a i l b W p b p e and ii l b l b W p b p e W p e p b b b B b co b p b p b So in our de nition ev ery transition o ccurring is re ected in suc h a w a y that its pre and its p ost domain are join tly mirrored b y corresp onding conditions b oth in the pre and the p ost domain of the corresp onding ev en t in the BP The structur al mapping p enco des the t w o fold e ect of an y transition forw ard and bac kw ard whereas l enco des the marking b ehavior In particular the BP seman tics are generated b y the quantitative c hange of markings in N the iden tit y of a giv en tok en the history of the w a y past con icts ha v e b een resolv ed is ignored b y p and l as it is ignored b y the ring rule of P etri nets F or BPs the relations from De nition ha v e a me aning in terms of lo cal asp ects of the system b eha vior x l i y means that the ev en ts or place markings represen ted b y x and y are causally ordered F or x y b oth are incompatible i e reac hing x en tails nev er reac hing y in past presen t or future although equiv alen t elemen ts ma y b e attainable and x co y concurrency in a narro w sense As an example 0 a 0 b 2 1 1 a 1 0 2 b 2 a 2 3 c 0 1 1 1 c 1 c 0 1 a 2 1 0 b2 0 2 c 0 b 3 c 1 2 2 c 2 2 b 0 d e 0 b3 1 b 0 1 2 1 1 4 c 1 3 0 d d 0 0 0 0 e e2 0 0 Figure Maximal BP of a system with arc w eigh ts consider gure The nal markings reac hable are M and M where M a M b M d M c M e and M a M b M d M c M e this corresp onds to the cuts fa b c d e g and fa b c d e g in the branc hing pro cess In fact the BP here is maximal Let us turn to w ards some other asp ects of the seman tics In gure transitions and are in some w a y in con ict with one another dep ending on the situation in the initial marking depicted they ma y re in parallel but after one of them has red and battle o v er the remaining tok en on b The c on ict situation is as exp ected represen ted b y con ict in the BP No w the p ar al lelism is re ected in the BP b y the presence of all orderings of the corresp onding ev en ts in resp ectiv ely those branc hes of the pro cess in whic h b oth o ccur On the other hand true concurrency b y whic h w e mean the absenc e of ordering b et w een ev en ts arises i the extensions are disjoin t consider and All pairs of their o ccurrences are co pairs in the BP this is the case and is only p ossible for an y pair t t of transitions if F t F F t F So w e ha v e all in all four di eren t w a ys in whic h t w o o ccurrences e and e of transitions t t can b e related causal ordering re ected b y l i con ict parallelism F t F F t F but the common upstream places con tain enough tok ens to allo w b oth t and t to re in this case e will o ccur b efore e in some of the branc hes in the BP and order rev ersed in others and nally concurrency F t F F t F and hence e co e Note that case can arise ev en b et w een a transition and itself i e t t whereas ob viously case cannot First some general structural results for ONs Theorem L et N B E F b e an ON F or any e E and x B E feg such that x co e x co b for any b F eF F or any e E and x B E feg such that x co b for any b F e x co e F or any e E and x B E feg such that x co b for any b eF x co e F or al l c S C U T S N and e E such that F e c set c c F e eF Then c S C U T S N Pro of Pro of of First tak e b F e suc h that x co b Then w e ha v e to consider the follo wing cases x b Then also x e con tradicting the assumption b x Then either e x or e x again a con tradiction b x Then there exist b B and e e bF suc h that e e e b and e x But then e e and hence e x Th us w e ha v e con tradictions in all cases F or b eF the pro of is analogous Pro of of Assume x co e Once again w e ha v e three cases all of whic h lead to con tradictions x e implies the existence of b F e suc h that x b e x implies b x for all b F e e x implies the existence of b B and e e bF suc h that e e and e e e x But then there exists b F e suc h that x b Pro of of Assume x co e Again w e ha v e three cases x e implies x b for all b eF e x implies the existence of b eF suc h that x b e x implies the existence of b B and e e bF suc h that e e and e e e x But then x b for all b eF Pro of of a consequence of parts and If c arises from c as describ ed in the pro of w e write c eiic De nition L et N p l and N p l b e two pr o c esses of Then i N is isomorphic to an initial se gment of N It can b e sho wn that is a partial order the most imp ortan t result concerning is Theorem F or every system ther e is up to isomorphism a unique maximal pr o c ess N p l of Pro of Analogous to Engelfriet By induction one nds that BPsdo in fact re ect the b eha vior of Theorem L et N M with N S T F W and N p l the maximal pr o c ess of with N B E F Then for every n and every ring se quenc e M t iM i ther e exist c c S C U T S N and e e E such n n n that c min N and c e iic iic n for al l i n and al l b c M p b l b i i One therefore has a corresp ondence from markings in the system to S cuts of the BP net in the sense that markings reac hable in can b e reac hed in N in fact ii de nes a pseudo ring in the unfolded net that sim ulates the rings in If N is nite the corresp ondence is actually t w o w a y i e for ev ery c S C U T S N in fact the claim made subsequen tly is v alid under more general assumptions but niteness is already general enough to co v er all practical cases there is a r e achable marking M represen ted b y c Generalized BPs exist for gen c eral net systems with arc w eigh ts and arbitrary markings They pro vide an ON seman tics with t w o particular prop erties it represen ts b oth the upstream and the do wnstream e ects of an y giv en transition and it discriminates di eren t kinds of marking dep enden t in terrelations b et w een o ccurrences F or nite nets they can b e inductiv ely de ned there alw a ys exists as in the safe case a maximal BP De nition extends Engelfriet s de nition of branc hing pro cesses it is at the same time the branc hing v ersion of the exe cutions as de ned and studied b y V ogler The construction of a generalized BP can for b ounded nets equiv alen tly b e obtained in the follo wing w a y transform the original system in to an equiv alen t safe system b y in tro ducing n places for ev ery place p where n is the maximal p p n um b er of tok ens on p and the corresp onding marking and transitions then gen erate the Engelfriet BP of the new system This construction whic h is men tioned b y Baumgarten requires a lot more space and time than the direct one w e prop ose for constructing a generalized BP one needs only to in tro duce a new con dition standing for a n um b er of tok ens on some place when necessary Since in general not all amoun ts of tok ens b et w een and n will b e realized but only a few p of them De nition helps reduce o v erhead T urning to w ards applications it is already kno wn that one can obtain a suitable nite pre x of a BP b y stopping the unfolding after the o ccurrence of so called cut o ev en ts These w ere in tro duced b y McMillan and used in the PEPto ol s mo del c hec k er cf Gra v es for the appropriate adjustmen t of the de nition Their approac h carries o v er to our BPs th us mo del c hec king of more general logics and without assumptions on safeness b ecomes p ossible References B Baumgarten Petri Netze Grund lagen und A nwendungen BI Mannheim Wien Z uric h J Engelfriet Branc hing Pro cesses of Petri Nets Acta Informatic a J Esparza Mo del Chec king Using Net Unfoldings Scienc e of Computer Pr o gr amming B Gra v es Computing Reac habilit y Prop erties Hidden in Finite Net Unfoldings In Pr o c e e dings of th FSTTCS v olume of LNCS pages Berlin Springer J Esparza and S R omer and W V ogler An Impro v emen t of McMillan s Un folding Algorithm In T Margaria and B Ste en editor Pr o c e e dings of T A CAS v olume of LNCS pages Berlin etc Springer G McMillan Using Unfoldings to a v oid the state explosion problem in the v eri cation of async hronous circuits In th Workshop on Computer Aide d V er i c ation Montr e al pages M Nielsen G Plotkin and G Winsk el Petri nets ev en t structures and domains Part I The or etic al Computer Scienc e W V ogler Executions A New P artial Order Seman tics of P etri Nets TCS Automatically Pro ving Up to Bisim ulation Daniel Hirsc hk o CERMICS ENPC INRIA dh cermics enpc fr Abstract W e presen t a to ol for c hec king bisimilarities b et w een calculus pro cesses with the up to te chniques for bisim ulation These tec hniques are used to reduce the size of the relation one has to exhibit to pro v e a bisim ulation Not only is this in teresting in terms of space managemen t but it also increases dramatically the expressiv e p o w er of our system b y making in some cases the v eri cation of in nite states space pro cesses p ossible Based on an algorithm to compute a unique normal form for structural congruence w e dev elop sound and complete metho ds to c hec k bisim ulation up to injectiv e substitutions on free names up to restriction and up to parallel comp osition W e sho w the expressiv eness of our tec hniques on a protot yp e implemen tation In tro duction W e presen t a to ol for automatically c hec king bisimilarities b et w een calculus pro cesses with the up to tec hniques for bisim ulation Existing to ols for automatically c hec king bisim ilarities b et w een CCS or calculus pro cesses can handle a restricted class of pro cesses that ha v e an in nite b eha viour Metho ds lik e the partition re nemen t algorithm PT used for example in PS are based on a preliminary step in whic h the unfolding of the pro cesses is computed under the form of a L ab el le d T r ansition System Therefore pro cesses ha ving an in nite state space cannot b e tak en in to consideration b y this approac h The Mobility W orkb ench VM uses an on the y metho d that progressiv ely builds the candidate bisim ulation relation as new pairs of related pro cesses are disco v ered This w a y one can also tak e in to accoun t t w o non terminating pro cesses that sho w a di eren t b e ha viour after a nite n um b er of steps and pro v e that they are not bisimilar Ho w ev er t w o pro cesses ha ving an in nite states space still cannot b e pro v en bisimilar In this pap er a di eren t approac h based on the so called up to pro of tec hniques is in v estigated in order to de ne some metho ds for c hec king bisimilarities b et w een pro cesses These tec hniques ha v e b een in tro duced as meta lev el to ols for pro ving bisim ulation rela tions SM San and to our kno wledge ha v e only b een used in pap ers ab out the theory of calculus to pro v e bisimilarit y la ws They allo w one to p erform some syn tactical ma nipulations on pro cesses in order to reduce the size of the relations one has to exhibit to pro v e bisim ulation The aim of this w ork is to in v estigate to what exten t these tec hniques can b e mec hanised and ho w suc h theoretical to ols can b e used in the con text of v eri ca tion The main b ene t w e get from these tec hniques arises at the lev el of expressiv eness w e can indeed pro v e in some cases bisimilarit y b et w een replicated pro cesses ha ving an in nite states space The basis for the dev elopmen t of our up to c hec king metho ds is the up to structural congruence pro of tec hnique T o w ork up to structural congruence means to ha v e a notion of unique normal form for this equiv alence W e ac hiev e this in a simple w a y through the de nition of a term rewriting system on a small but expressiv e language This allo ws us to w ork only with terms in normal form and to in tro duce e ectiv e c haracterisations of the v arious pro of tec hniques w e study up to injectiv e substitutions on names up to restriction and up to parallel comp osition W e rely on these c haracterisations to de ne our bisimilarit y c hec king algorithm whic h is a straigh tforw ard extension of the on the y c hec king metho d for bisim ulation F or the sak e of brevit y the presen tation of the de nitions and of the main results has b een k ept rather succinct the reader should refer to Hir for the pro ofs of the prop erties w e state and for more commen ts on the design c hoices Insigh t on the tec hnical issues that arise as w e mec hanise the up to tec hniques is giv en along the statemen ts of our results The pap er is organised as follo ws Section describ es the general framew ork of our study after de ning the syn tax of our terms and structural congruence w e in tro duce a normalisation algorithm that enjo ys the uniqueness of normal forms prop ert y W e then in tro duce seman tics and the b eha vioural equiv alence w e use on pro cesses namely bisimi larit y and giv e a brief accoun t on the up to pro of tec hniques for bisim ulation In Section w e de ne the up to tec hniques w e use and giv e c haracterisations of the corresp onding functions on relations W e put together these results in Section to build a protot yp e implemen tation and illustrate the b eha viour of our tec hniques on a few simple examples W e nally conclude with a brief discussion on the insigh t brough t b y our study and on future w ork De nitions and Notations Syn tax Let a b x y range o v er an in nite coun table set of names and a b range o v er p ossibly empt y name lists Pro cesses ranged o v er b y P Q are de ned b y the follo wing syn tax a b j a b P j P j P j x P j P jP Pre xes are either input a b or output a b is the inactiv e pro cess pre xed pro cesses are either linear P or replicated P the other constructors are restriction and parallel comp osition j Bound names are de ned b y sa ying that restriction and input pre x are binding op erators x and x y resp ectiv ely bind name x and the names in y in their con tin uation As usual free names are names that are not b ound in a pro cess and w e w ork up to implicit con v ersion of b ound names at least un til Section where con v ersion will b e handled explicitly for the de nition of our c hec king metho ds Structural congruence written is the smallest equiv alence relation that is a congru ence and that satis es the follo wing rules P j P P jQ QjP P j QjR P jQ jR x f n P x y P y x P x P j x Q x P jQ P j P P P j P P Rules giv e prop erties ab out the parallel comp osition op erator rules deal with restriction and rules with replication Rule is new with resp ect to the traditional de nition of structural congruence Mil and can b e seen as the limit of in nitely man y applications of Rule Con v en tions and notations Rules and for parallel comp osition and for restriction will b e used implicitly whic h means that w e w ork up to comm utativit y and as so ciativit y of parallel comp osition and up to p erm utation of consecutiv e restrictions This Q will allo w us to use the notation P j jP sometimes abbreviated as P for n i i n parallel comp osition and x P for restriction where x is in tended as ha ving a set rather than a v ector structure in order to allo w silen t applications of rule The tec hnical issues raised b y the implemen tation of these asp ects of structural congruence will b e discussed in Section Whereas rules and are used to do some garbage collection the rules that will b e really relev an t in the de nition of our notion of normal form are rules and as will b e seen b elo w Remark that structural congruence preserv es free names i e if P Q then f n P f n Q Notation In the follo wing w e write to denote equalit y b et w een pro cesses up to con v ersion p erm utation of consecutiv e restrictions structural congruence la w and comm utativit y and asso ciativit y of parallel comp osition With this notation w e fo cus on the in terpla y b et w een con v ersion and p erm utation of consecutiv e restrictions lea ving the managemen t of parallel comp ositions aside as this is a somewhat orthogonal question Normal F orms W e giv e an orien tation to the relev an t structural congruence la ws to de ne a term rewriting system as follo ws De nition Normalisation algorithm The normalisation algorithm is de ne d as the r ewriting system given by the ve fol lowing rules R x R x f n P P j x Q x P jQ R P j P R P j P P R P j P P This rewriting system enjo ys strong normalisation a computation alw a ys terminates and lo cal con uence t w o one step reducts of a term can alw a ys b e rewritten in to a common term whic h guaran tees uniqueness of normal forms Prop osition Uniqueness of normal forms F or any pr o c ess P ther e exists a unique pr o c ess written NR P obtaine d by applic ation of our r ewriting system to P and that c annot b e further r ewritten Mor e over given two pr o c esses P and Q P Q if and only if NR P NR Q W e no w giv e a syn tactical description of the terms that cannot b e rewritten b y our algorithm m times z m F or m N de ne N N j j N and let N N N m m n j x N j j N n m N f g n n i m m n i x f n N j j N i n n i j n i j N N i i j j Figure Syn tax of normal forms Prop osition Syn tactical description of normal forms The terms that ar e of the form NR P for some P ar e exactly those describ e d by the syntax de ne d in Figur e Let us commen t on the shap e of normal forms the syn tax of Figure sa ys that ev ery pro cess that is not equiv alen t to can b e view ed as an agen t with t w o comp onen ts its b o dy and its topmost restrictions The b o dy is made of pro cesses that are ready to commit and the topmost restrictions de ne some kind of geometry among these pro cesses Q m i Notations Giv en a non n ull pro cess in normal form P N w e write i i i P x hP i to decomp ose P in to its upp ermost restrictions x and its b o dy P P Q m i N whic h consists of p ossibly replicated pre xed pro cesses Note that b o dies i i i of normal forms are also normal forms W e will range o v er suc h pro cesses i e non n ull normal forms without topmost restrictions with the notation hP i hQi W e further decomp ose hP i in to an in nite part written hP i and a nite part written Note that rule R is guarded b y a condition ho w ev er w e can consider our system as a usual T erm Rewriting System i e without conditions for example b y adopting a De Bruijn notation for names whic h in trinsically em b eds the side condition when applying the structural congruence rule hP i resp ectiv ely corresp onding to the replicated and the non replicated comp onen ts N Q Q m m i i i e hP i N and hP i N i i i i N i m i m N i i W e in tro duce some mac hinery on pro cesses of the form hP i that will b e useful for the treatmen t of the up to parallel comp osition pro of tec hnique in Section w e let Q Q Q def m m i i P n Q P i i j j i i i j i j P Q i i j j note that the righ t hand side argumen t of n is alw a ys of the form hP i and for t w o def pro cesses of the form hP i and hQi w e let hP i hQi hP i j hQi n hP i j hP i n N hQi j hQi n hP i N Seman tics Op erational Seman tics and Bisim ulation a b P P I N P a x P P R E S x n f x bg x P x P b a b x a a b P P O U T a b P P O P E N t b a b x b n b x P P P P P P B AN G P AR f n Q bn l P P jP QjP QjP a b b a b P P Q Q C LO S E P jQ b P jQ Figure Early T ransition Seman tics The rules for e arly transition seman tics are giv en in Figure denotes the adjunction of an elemen t to a list symmetrical v ersions of rules P AR and C LO S E ha v e b een omitted l note the particular shap e of rule B AN G in relation to our syn tax The seman tical equiv alence on pro cesses w e use is bisimilarit y de ned as follo ws De nition Bisim ulation bisimilarit y A r elation R is a bisim ulation i for ev ery p air of pr o c esses P Q such that P RQ whenever P P ther e exists a pr o c ess Q such that Q Q and P RQ and the symmetric al c ondition on tr ansitions p erforme d by Q Bisimilarity written is the gr e atest bisimulation The Up to Pro of T ec hniques for Bisim ulation T o rephrase De nition ab o v e pro ving bisimilarit y of t w o pro cesses reduces to exhibiting a bisim ulation relation that con tains these pro cesses The prop ert y to b e a bisim ulation relation can b e depicted b y the diagram on the left side of Figure R is a bisim ulation if an y pair of pro cesses in R ev olv es to pairs of pro cesses that are also in R In other w ords R con tains the whole future of all the pro cesses it relates P R Q P R Q P R Q P F R Q Figure F rom bisim ulation to up to bisim ulation In San Sangiorgi in tro duces a general framew ork for the study of the up to te ch niques whic h can b e used to reduce the size of the relations one has to exhibit in order to pro v e bisim ulation Eac h tec hnique is represen ted b y a functional from relations to relations ranged o v er b y F De nition Bisim ulation up to F Given a functional F over r elations we say that a r elation R is a bisimulation up to F i for every P and Q such that P RQ whenever P P ther e exists Q s t Q Q and P F R Q and the symmetric al c ondition on tr ansitions p erforme d by Q A functional F giv es a correct pro of tec hnique if it is sound i e if R is a bisim ulation up to F implies R whic h means that in some w a y F helps building the future of a relation to pro v e that R is a bisim ulation relation it is enough to pro v e that an y pair of pro cesses in R can only ev olv e to pairs of pro cesses that are con tained in F R as sho wn on the righ t part of Figure San in tro duces a su cien t condition for soundness of functionals called r esp e ctfulness All the tec hniques w e are using in the remainder of the pap er up to injectiv e substitutions on free names up to structural congruence up to restrictions up to parallel comp osition are resp ectful and can b e com bined together for the task of pro ving bisim ulations thanks to nice comp ositionalit y prop erties of resp ectful functions Automatising the Up to T ec hniques In this Section w e de ne sound and complete metho ds to decide giv en a relation R if a pair of pro cesses b elongs to F R for some function F corresp onding to a correct pro of tec hnique Using De nition this amoun ts to de ne a c hec king metho d to tell if a relation is a bisim ulation up to F The normalising function w e ha v e de ned giv es rise to the bisim ulation up to bisimilarit y pro of tec hnique W e no w study the up to injectiv e substitutions on free names the up to restriction and the up to parallel comp osition pro of tec hniques The corresp onding functions are pro v ed bisimilar in San ho w ev er their nice comp ositionalit y prop erties do not extend to the c haracterisations whic h prev en ts us to treat them separately Therefore w e shall treat them incremen tally adding a tec hnique at eac h step and leading to our most p o w erful tec hnique in De nition Notice an yw a y that the o v erall metho dology of our c hec king metho ds is rather uniform Because of lac k of space w e will just state the de nitions and c haracterisations of the v arious pro of tec hniques the reader in terested in a more detailed discussion and in the pro ofs should refer to Hir and then commen t ab out the algorithms induced b y our c haracterisations De nitions and Characterisations W e rst need some bac kground on substitutions on names that are functions from names to names ranged o v er b y W e de ne dom the domain of as the set of names n suc h that n n and the co domain codom of as dom is inje ctive if i j implies i j In the follo wing w e are in terested giv en a pro cess P in substitutions that are injectiv e on the free names of P and suc h that applying to P do es not capture b ound names of P i e codom bn P this is alw a ys p ossible mo dulo con v ersion An injectiv e substitution whose domain is nite de nes a bijectiv e mapping b et w een dom and codom w e shall write for the in v erse of Giv en a set of names E w e sa y that t w o substitutions and c oincide on E written on E i for an y name n in E n n Up to Injectiv e Substitutions on Names De nition Given a r elation R we de ne the closure under structural congruence and i injectiv e substitutions on free names of R written R as fol lows def i R f P Q P Q R inje ctive on f n P f n Q P P Q Q g i In order to giv e a c haracterisation of R w e study con v ertibilit y of pro cesses in normal form and its relation to injectiv e substitutions F act Given two pr o c esses P and Q in normal form write P x hP i and Q y hQi Then x hP i y hQi i ther e exists a substitution inje ctive on f n hQi s t hP i hQi dom y and y x Lemma W rite as ab ove P x hP i and Q y hQi for two normal pr o c esses P and Q Then for any substitution inje ctive on the fr e e names of hQi x hP i y hQi i ther e exists a substitution inje ctive on f n hQi s t i hP i hQi ii y x and iii on f n hQi n y i i Prop osition Characterisation of R P Q R i ther e exist pr o c esses P Q and substitutions inje ctive on f n hP i and f n hQ i r esp e ctively such that if we write P x hP i Q x hQ i NR P x hNR P i and NR Q P Q P x hNR Q i we have P RQ hNR P i hP i hNR Q i hQ i x x Q P P x x and if we write E f n hP i f n hQ i n x x on E Q Q P Q Up to Restriction i De nition W e write R to denote the closur e under inje ctive substitutions structur al c ongruenc e and r estrictions of a r elation R de ne d as fol lows def i R f P Q P Q v inje ctive on f n P P Q R P v P Q v Q g Prop osition Characterisation of the closure up to restrictions Given two pr o c esses P and Q and a r elation R write NR P x hNR P i and NR Q x hNR Q i P Q i Then P Q R i ther e exist two substitutions and inje ctive on f n hP i and f n hQ i r esp e ctively pr o c esses P and Q and a name list V f n P f n Q such that if we write P x hP i Q x hQ i V V and V V P Q jf n P jf n Q i hNR P i hP i and hNR Q i hQ i ii V x x and V x x P P Q Q iii on E f n hP i f n hQ i n V x x P Q The condition ab o v e can b e seen as an enlargemen t of the up to injectiv e substitutions case the up to restrictions tec hnique comp els and to coincide on a smaller set E of names or in other w ords more names in f n P and f n Q can b e mapp ed to di eren t names b y and Up to P arallel Comp osition T o reason with b oth the up to restriction and the up to parallel comp osition pro of tec h niques w e w ork with con texts that are describ ed b y the follo wing syn tax note that the up to structural congruence pro of tec hnique allo ws us to adopt this simple form of con texts without loss of generalit y Y m i C x jT T N T in normal form i i i i C De nition W e write R to denote the closur e under inje ctive substitutions structur al c ongruenc e r estriction and p ar al lel c omp osition of a r elation R de ne d as fol lows def i C R f P Q P Q C inje ctive on f n P P Q R P C P Q C Q g i C Prop osition Characterisation of R Given a r elation R and two pr o i C c esses P and Q P Q R i ther e exist P Q R a pr o c ess hT i two substi tutions and inje ctive on f n hP i j hT i and f n hQ i j hT i r esp e ctively and a name list V f n P f n Q f n hT i such that if we write NR P x hNR P i P P x hP i V V hT i hT i n hP i hT i hT i n hP i and similarly P jf n P N N for Q Q x V and hT i we have Q hNR P i hP i j hT i i hNR Q i hQ i j hT i hNR P i hP i n hT i j hT i N N N i hNR Q i hQ i n hT i j hT i N N N ii V x x and V x x P P Q Q iii on E f n hP i hT i f n hQ i hT i n V x x P Q On the induced c hec king metho ds W e no w describ e informally the implemen tation of the c hec king metho ds induced b y Prop o sitions and The o v erall metho dology is the same in eac h case w e illustrate it on the second pro of tec hnique Giv en t w o pro cesses P and Q and a relation R to decide i if P Q R compute NR P and NR Q yielding NR P x hNR P i and NR Q P x hNR Q i Q pic k P Q R and compute as ab o v e P x hP i and Q x hQ i P Q if an y of the c hec ks b elo w fails go bac k to p oin t with another pair P Q of pro cesses use i to compute s t hNR P i hP i and pro ceed similarly for nd V and V and extend and so that ii and iii hold Steps and use the normalisation function of Section the di culties are concen trated in step where w e ha v e to deriv e matc hings b et w een t w o b o dies of pro cesses and infer the corresp onding substitutions on free names Indeed in our mathematical reason ing w e treat pro cess b o dies as parallel comp ositions whose comp onen ts can b e implicitly rearranged the w a y w e w an t see ab o v e When it comes to implemen tation ho w ev er w e ha v e to fron t the question of the ordering of parallel comp onen ts whic h is not an easy task Consider for example the case where hNR P i x j y j x and hP i y j x j x here the t w o b o dies can b e matc hed together While w e can decide that the x comp onen t comes after the replicated input comp onen ts b ecause w e can distinguish these subterms struc turally w e ha v e not b een able to de ne a canonical ordering for the parallel comp osition x j y Indeed this order on pro cesses should b e in v arian t under injectiv e substitution on free names a pro of tec hnique that is in v olv ed in all our c hec king metho ds Therefore w e cannot nd an easy w a y to ordinate t w o pro cesses that are equal up to some renaming and w e are comp elled to in tro duce some com binatorics on the lists of parallel comp onen ts of a pro cess In our example w e ha v e to tak e in to accoun t the t w o p ossible orderings of x and y in order to infer the matc hing b et w een hNR P i and hP i Similar problems arise in the treatmen t of the most p o w erful pro of tec hnique corre sp onding to Prop osition In that case w e do not infer a simple matc hing to insure conditions i and i but rather ha v e to establish sim ultaneously a prop ert y of matc hing and a prop ert y of structur al inclusion akin to EG meaning that a pro cess is a subpart of a parallel comp osition to isolate pro cess T An Implemen tation The T o ol W e presen t a protot yp e implemen tation of the metho ds describ ed in the latter Section under the form of a to ol for c hec king bisim ulation using the up to tec hniques This to ol written in O Caml allo ws the user to de ne a pair of pro cesses c ho ose an up to tec hnique among those studied ab o v e and try to pro v e bisimilarit y using this tec hnique In the case where the pro of succeeds the corresp onding bisim ulation relation is displa y ed if the pro cesses are not bisimilar some kind of diagnostic information is giv en to the user to justify the failure and hop efully help him mak e another attempt Other features lik e the computation of the normal form of a pro cess and the in teractiv e sim ulation of the b eha viour of a pro cess are also pro vided Note that the to ol allo ws the user to c hec k also we ak bisimilarity written that is de ned b y replacing Q Q with Q Q if with Q Q if in De nition where denotes the re exiv e transitiv e closure of All the up to tec hniques w e ha v e studied as w ell as our results extend directly to the w eak case The algorithm T o eac h pro of tec hnique F w e ha v e seen in Section corresp onds a decision pro cedure decide giv en b y the c haracterisations of Prop ositions and F Our bisim ulation up to F c hec king function bisim de ned on Figure tak es three F argumen ts a relation R and t w o pro cesses P and Q and returns an up to F bisim ulation relation extending R that con tains P Q This functions follo ws De nition trying to build up an up to bisim ulation un til it reac hes a xp oin t Its correctness deriv es from the soundness of the closure functions w e apply to relations as pro v ed in San Of course our algorithm is not complete since in the case where the candidate bisim ulation relation w e generate k eeps gro wing ev en up to the tec hniques w e use the program en ters an in nite lo op Examples b b a x x j a t t j b a x x j c c j c in the pro of of this result the normalisation algorithm erases eac h cop y of a x x that is generated after a comm unication o v er b tak es place in the left hand side pro cess W e sho w a simple session where the user de nes the left and righ t pro cesses commands Left and Right asks the system to prin t the pair of pro cesses command Print and c hec ks bisimilarit y command Check Left b b a x x a t t b Right a x x c c c Print The pair is T o compute bisim R P Q F parameter R pic k a transition P P of P and compute Q fQ Q Q g use decide to c hec k if an y of the elemen ts of Q satis es P F R Q If suc h an F elemen t can b e found lo op to another transition of P lea ving R unc hanged otherwise pic k a Q Q and mak e the recursiv e call bisim P Q R P Q F if this call succeeds yielding R lo op to another transition of P with R otherwise pic k another Q Q if all the recursiv e calls to bisim fail fail F pro ceed similarly with the transitions of Q Figure The c hec king algorithm b b a x x a t t b a x x c c c Check Yes size of the relation is b b a x x a t t b c c a x x c The syn tax for pro cesses is rather in tuitiv e w e use for restriction and square brac k ets for emission Both pro cesses are w eakly bisimilar to a x x here the user uses command Switch to toggle the bisimilarit y c hec king mo de from strong to w eak Print The pair is b b a x x a t t b a x x Switch Checking mode is weak verbose mode is on Check Yes size of the relation is b b a x x a t t b a x x Another la w whic h is a straigh tforw ard instan tiation of the so called r eplic ation the or ems that express the distributivit y of priv ate resources a a x x j ab j ac a a x x j ab j a a x x j ab pro cesses ab and ac can either share a common resource a x x that sends a signal on the name it receiv es on a or ha v e their o wn cop y of this resource note the shap e of the normal form for the righ t hand side pro cess Check Yes size of the relation is a a x x a c a b e a a x x e x x a c e b Conclusion W e ha v e dev elop ed some metho ds to automatically c hec k bisimilarities b et w een calculus pro cesses and sho wn their expressiv e p o w er on a protot yp e implemen tation Our sys tem is rather elemen tary and cannot b e compared as it is with other similar to ols lik e the Mobilit y W orkb enc h VM whic h is probably the closest to ours Cesar Aldebaran F GK the Jac k T o olkit ASS or the F C to ols pac k age AA VS Ho w ev er the p ossibilit y to reason on in nite states pro cesses is sp eci c to our to ol and represen ts an imp ortan t feature in terms of expressiv eness Our system can b e made more robust b y enric hing the syn tax e g adding de nitions of agen ts and the c hoice op erator and impro ving the bisim ulation c hec king metho d this means in particular mo difying our algorithm to adopt a breadth rst strategy instead of making blind recursiv e calls to the general bisim ulation c hec king function This w ould insure some kind of computational completeness if a nite up to bisim ulation relation exists w e nd it after a nite n um b er of steps Completeness of our metho ds is a k ey theoretical issue as it is directly related to the understanding of the expressiv eness of our system One is in terested in de ning a class of terms con taining some in nite states pro cesses for whic h our algorithm is a decision pro cedure for bisimilarit y Let us explain informally where the di culties come from the k ey p oin t is the up to parallel comp osition tec hnique that giv es the p ossibilit y to reason with replicated terms This tec hnique is used to cancel common parallel comp onen ts in t w o pro cesses right after a transition has tak en place F or example tak e a pro cess of a c the form a b P liable to p erform the transition a b P P a b P j P and b c a c supp ose P Q whic h implies Q Q in tuitiv ely the idea is that one should b e able to cancel P b oth in P and Q if w e w an t to pro v e P Q otherwise P and Q could do b c a c a c the transitions and the relation w ould k eep gro wing ad in nitum This phenomenon actually restricts considerably the freedom in the de nition of the terms w e can manipulate hence the simplicit y of the examples of Section and it seems indeed that the up to parallel comp osition pro of tec hnique cannot b e used as a brute force to ol to pro v e bisimilarit y results b et w een in nite states pro cesses On the con trary the idea is rather to use the automation of the up to tec hniques to verify a pro of on pap er once w e kno w that the up to tec hniques apply F ollo wing this approac h w ork is in progress to adapt our metho ds to op en terms Ren Sim in order to b e able to pro v e not only bisimilarit y results but also general bisimilarit y la ws lik e for example the so called r eplic ation the or ems Another in teresting direction could b e the mec hanisation of the pro ofs of this pap er reusing the w ork of Hir whic h could allo w one to extract a c erti e d bisimilarit y c hec k er Some more w ork has to b e done in order to mak e these pro ofs tractable for the purp ose of A b eta v ersion of the to ol is a v ailable at http cermics e np c fr d h p i W e are a w are of some e orts regarding the implemen tation of the up to tec hniques within the CONCUR pro ject but do not ha v e details ab out the fo cus of this study and its outcome a theorem pro v er formalisation A c kno wledgemen ts Man y thanks go to Mic hele Boreale for constan t help during this study as w ell as to Da vide Sangiorgi for in tro ducing the theoretical basis of it and for insigh tful discussions References AA VS A Bouali A Ressouc he V Ro y and R de Simone The F C To olset demo presen tation at T A CAS AMAST and CA V ASS A Bouali S Larosa and S Gnesi The in tegration pro ject in the JA CK En vi ronemen t EA TCS Bul letin EG J Engelfriet and T Gelsema Structural Inclusion in the pi Calculus with Replication Rep ort Leiden Univ ersit y F GK J C F ernandez H Gara v el A Kerbrat R Mateescu L Mounier and M Sighirean u Cadp caesar aldebaran dev elopmen t pac k age A proto col v al idation and v eri cation to olb o x In Pr o c e e dings of CA V v olume of LNCS Springer V erlag pages Hir D Hirsc hk o A full formalisation of calculus theory in the Calculus of Con structions In Pr o c e e dings of TPHOL v olume pages LNCS Springer V erlag Hir D Hirsc hk o Automatically Pro ving Up to Bisim ulation T ec hnical Rep ort CERMICS Champs sur Marne Marc h Mil R Milner The p oly adic calculus a tutorial T ec hnical Rep ort ECS LF CS Octob er Also in L o gic and A lgebr a of Sp e ci c ation ed F L Bauer W Brauer and H Sc h wic h ten b erg Springer V erlag PS M Pistore and D Sangiorgi A partition re nemen t algorithm for the calculus In Ra jeev Alur editor Pr o c e e dings of CA V v olume of LNCS PT R P aige and R E T arjan Three partition re nemen t algorithms SIAM Journal on Computing Ren A Rensink Bisimilarit y of op en terms In C P alamidessi and J P arro w editors Expr essiveness in Concurr ency also a v ailable as tec hnical rep ort Univ ersit y of Hildesheim ma y San D Sangiorgi On the bisim ulation pro of metho d Revised v ersion of T ec hni cal Rep ort ECS LF CS Univ ersit y of Edin burgh An extended abstract can b e found in Pro c of MF CS LNCS Sim R De Simone Higher lev el sync hronising devices in Meije SCCS The or etic al Computer Scienc e SM D Sangiorgi and R Milner T ec hniques of w eak bisim ulation up to In CON CUR n um b er in LNCS VM B Victor and F Moller The Mobilit y Workb enc h a to ol for the calculus In D Dill editor Pr o c e e dings of CA V v olume of LNCS pages Springer V erlag State Spaces of Ob ject Orien ted P etri Nets Vladim r Janou sek T om a s V o jnar Departmen t of Computer Science and Engineering T ec hnical Univ ersit y of Brno Bo zet ec ho v a CZ Brno Czec h Republic e mail fjanousek v o jnarg dcse fee vutbr cz Abstract This pap er lo oks at ob ject orien ted P etri nets and considers the problem of analysing the state space whic h in general distinguishes according to instance names of ob jects It is prop osed that most analysis can b e done using a name abstracted state space In tro duction P etri nets are a successful formalism whic h allo ws mo delled systems to b e describ ed in a graphical w a y and what is more they o er a p ossibilit y of formal analysis of mo dels based on them Ho w ev er basic P etri nets su er from the lac k of structuring On the other hand ob ject orien tation pro vides a v ery p o w erful w a y of structuring programs and mo dels So it should b e adv an tageous to join these t w o approac hes and obtain a mo delling paradigm whic h w ould com bine their adv an tages In fact sev eral attempts to com bine ob jects and P etri nets ha v e already b een done see e g LK SB V al CJ In this article w e will describ e some results of our researc h on state space analysis metho ds for mo dels based on ob ject orien ted P etri nets OOPNs By OOPNs w e will understand the formalism dev elop ed at the computer science departmen t of TU Brno and connected to the to ol PNtalk CJV This formalism is quite similar to the one of C Sib etin Blanc SB from whic h our OOPNs di er mainly in describing classes b y more than one net since ev ery OOPN class has one ob ject net and sev eral metho d nets In the follo wing w e will fo cus esp ecially on the problem of iden tifying ob jects and running metho ds and its impact on the notion of OOPNs state spaces W e supp ose the information ab out particular v alues of iden ti ers of ob jects and running metho ds to b e an implemen tation detail whic h should b e abstracted a w a y when de ning states of running OOPNs Therefore w e will de ne the notion of name abstracted state spaces whic h can b e subsequen tly used as a basis for adapting the concepts of o ccurrence graph analysis as in tro duced b y K Jensen in the con text of CPNs Jen for the domain of OOPNs Problems with p erforming formal analysis connected to iden tifying dynamically ap p earing and disapp earing instances of nets arise ho w ev er not only in the area of the OOPNs considered in this article but they concern other ob ject orien ted P etri net based formalisms as w ell F urthermore w e cannot get rid of these problems simply b y using an algorithm for transforming ob ject orien ted nets in to plain high lev el nets as it w as sug gested e g in SB LK This is b ecause in resulting nets there m ust app ear a place or a construction generating iden ti ers whic h then b ecome a distinguishing part of tuples represen ting tok ens of originally di eren t net instances folded together Th us the problem of naming is carried in to the domain of non ob ject nets and m ust b e solv ed within their analysis pro cess The remainder of this article b egins with a short in tro duction to OOPNs follo w ed with a concise review of the k ey concepts of their formal de nition Then w e discuss the ab o v e sk etc hed questions connected to the notion of OOPNs state spaces W e conclude the article with a suggestion of adopting Jensen s o ccurrence graph analysis metho ds for the area of OOPNs and w e also brie y men tion some other topics to b e considered in the area of OOPNs analysis in future The Basic Principles of OOPNs The OOPN formalism is c haracterized b y a Smalltalk based ob ject orien tation enric hed with concurrency and p olymorphic transition execution whic h allo w for message send ing w aiting for and accepting resp onses creating new ob jects and p erforming primitiv e computations OOPNs are based on viewing ob jects as activ e serv ers whic h o er reen tran t services to other ob jects Services pro vided b y ob jects as w ell as indep enden t activities of ob jects are describ ed b y P etri nets services b y metho d nets ob ject activities b y obje ct nets T ok ens in nets represen t references to ob jects An OOPN consists of P etri nets organized in classes Ev ery class consists of an ob ject net describing the in ternal activit y of ob jects of this class and a set of dynamically instan tiable metho d nets describing ho w these ob jects resp ond to messages All metho d nets of a giv en class share access to the appropriate ob ject net places of the ob ject net are accessible for transitions of metho d nets Eac h metho d net has parameter places and a return place Class inheritance is de ned b y the inheritance of ob ject nets together with sets of metho d nets Classes can also con tain predicate metho ds whic h allo w for atomic testing their ob jects states without an y side e ects Ev ery ob ject is either trivial e g a n um b er or a string or it is an instance of some P etri net describ ed class consisting of one instance of the appropriate ob ject net and sev eral curren tly running instances of metho d nets When an ob ject receiv es a message a new instance of the corresp onding metho d net is created parameters are put in to the parameter places and the instance of the metho d net is b eing executed concurren tly with all other A more detailed informal description of OOPNs can b e found in CJV Inherited transitions and places iden ti ed b y their names can b e rede ned and new places or transitions can b e added The implemen tation of inherited metho ds can b e c hanged and new metho ds can b e added net instances un til the return place receiv es a tok en Then the v alue of the tok en in the return place is passed to the message sender as the result of the requested service and the instance of the metho d net is deleted Message sending and ob ject creations are sp eci ed as actions attac hed to transitions Execution of transitions is p olymorphic in v ok ed metho ds dep end on classes of message receiv ers whic h are unkno wn at the compile time class ascendant message selector class class name parameter C1 is_a PN predicate state: x parameter place x predicate wait: x reset method net x x t2 x #e initial marking x #e input arc t1 x x < y 0 0 t y p 0 transition guard y x #e output arc #fail #success y := x + 1 t return return return place transition action testing arc object net Figure A simple class demonstrating the notion of the OOPN formalism The Key Concepts of the OOPN F ormal De nition The en tire de nition of OOPNs can b e found in Jan Here w e will only rephrase its basic ideas without making an y e ort to mak e this description formal and complete The de nition distinguishes primitiv e and non primitiv e ob jects Non primitiv e ob jects are sp eci ed b y their P etri net describ ed classes and ha v e states whic h can b e p oten tially c hanged during the system ev olution either b y the ob jects o wn in ternal activit y or b y executing their metho ds On the other hand primitiv e ob jects are constan ts suc h as n um b ers b o oleans sym b ols etc whic h are simply a v ailable via their names Their metho ds are atomically ev aluable and do not ha v e an y side e ects Let us supp ose the existence of a univ erse U C O N S T N AM E C LAS S where C O N S T is a set of primitiv e ob jects N AM E is a set of names in tended for iden tifying non primitiv e ob jects whic h can b e created and discarded dynamically at the run time and C LAS S is a nite set of class names The sets C O N S T N AM E and C LAS S are pairwise disjoin t Elemen ts of the univ erse are called atoms Multisets of n tuples of atoms pla y the role of markings of places Eac h class name c C LAS S has the domain D om c N AM E whic h represen ts the set of all p oten tial instances of this class Domains are pairwise disjoin t Let us further supp ose the existence of a set of message selectors M S G and a set of sp ecial message selectors M S G M S G M S G Sp ecial message S S selectors are reserv ed for sp ecial metho ds suc h as the ob ject iden tit y op erator whic h are atomically ev aluable and do not dep end on ob jects states they w ork o v er ob jects names only Next let us ha v e a lo ok at the inscription language Expressions of this language are either terms i e constan ts names of classes or v ariables from some set V AR message m sending constructions e msg e e e where e is a term and msg M S G m i M S G is a message selector with the arit y m or formal sums of terms F ormal sums S of terms form arc expressions and ev aluate to m ultisets of n tuples Message sending can b e used in transition guards and actions Dep ending on the message selector and on the class of the receiv er a message sending expression can b e in terpreted in t w o w a ys If the receiv er is a primitiv e ob ject or if the message selector is a sp ecial message selector w e sp eak ab out a primitiv e message sending ev aluation whic h is in terpreted as a function and has no side e ects i e it do es not c hange the state of an y ob ject and it w orks o v er constan ts and names only Otherwise w e encoun ter a non primitiv e message sending ev aluation whic h will c hange the state of the running OOPN b y launc hing a new metho d net instance The structure of OOPNs is de ned as follo ws An OOPN is a system of classes with a particular initial class and some initial ob ject with a prede ned name A system of classes comprises a system of names and primitiv e ob jects and for ev ery class a sp eci cation of the structure of its instances Ov er a system of classes the inheritance relation can b e de ned A sp eci cation of the structure of instances of a giv en class consists of an ob ject net a set of metho d nets a set of predicates a set of selectors corresp onding to the metho d nets and predicates and nally a sp eci cation of p ossible names of instances of the ob ject net and metho d nets Ev ery class m ust imply the so called system of nets in whic h metho d nets share places with the ob ject net A system of nets is de ned as a set of nets whose p oten tial instances are iden ti ed in suc h a w a y that it is alw a ys apparen t to whic h net they b elong Ob ject nets consist of places and transitions Ev ery place has some initial marking Ev ery transition has conditions i e inscrib ed testing arcs preconditions i e inscrib ed input arcs a guard an action and p ostconditions i e inscrib ed output arcs Metho d nets are similar to ob jects nets but in addition ev ery one of them has a set of parameter places and an output place Ev ery predicate em b o dies a set of conditions o v er places of the appropriate ob ject net a guard and a set of parameters The sp eci cation of the dynamic b eha viour of OOPNs is based on the de nition of net instances Ev ery net instance en tails its iden ti cation i e name and a marking of its places and transitions A marking of a place is a m ultiset of n tuples o v er constan ts class names and ob ject iden ti ers A transition marking is a m ultiset of in v o cations Ev ery in v o cation con tains an iden ti er of the in v ok ed net instance and a binding of the input v ariables of the appropriate transition An ob ject is a system of net instances whic h con tains exactly one instance of the appropriate ob ject net and a set of curren tly running instances of metho d nets A state of a run of an OOPN based mo del corresp onds to a system of ob jects i e to a set of up to date ob jects States can b e c hanged b y ev en ts corresp onding to transition o ccurrences There are four kinds of them A atomic action N new ob ject instan tiation F fork i e new metho d net instance in v o cation and J join i e termination of the run of a metho d net instance Ev ery ev en t is a tuple e id t b including a sp eci cation e of its t yp e A N F or J the iden ti er id of the net instance in whic h it o ccurred the name of the transition t it is b ound to and a binding b of the v ariables of this transition If an ev en t e id t b o ccurs in a state S and c hanges it in to a state S w e sp eak ab out a step S e id t biS The set of all systems of ob jects is denoted as S O and the set of all ev en ts as E V The Notion of the State Space of OOPNs In this section w e will in tro duce the notion of OOPNs state spaces and w e will v ery brie y sk etc h ho w it can b e used for adapting the Jensen s o ccurrence graph theory to mak e it w ork with OOPNs W e will start our discussion of the state space of OOPNs b y presen ting a mo di ed v ersion of the de nition of the total state space from Jan De nition The set of systems of obje cts r e achable fr om a given system of obje cts S denote d as S i in the fol lowing is the smal lest set of systems of obje cts such that a S S i b If S S i and S e id t biS for some e id t b E V then also S S i The total state sp ac e S i of an obje ct oriente d Petri net OOPN with an initial system of obje cts S is the set of systems of obje cts r e achable fr om the initial system of obje cts S The notion of the set of systems of obje cts r e achable fr om a given starting system of obje cts c an b e e asily extende d to work with sets of starting systems of obje cts as wel l Supp ose that we ar e given such a set of systems of obje cts S then we c an de ne S S i S i S S The total state space from the ab o v e de nition di eren tiates ev en among systems of ob jects di ering only in the names of the in v olv ed net instances Ho w ev er is this really necessary It seems that not and that it is alw a ys p ossible to neglect concrete iden ti ca tions of net instances b y using a suitable renaming equiv alence relation o v er systems of ob jects W e can adv o cate this idea in the follo wing w a y Firstly concrete names of net instances cannot in uence the future ev olution of systems of ob jects in an y w a y apart from renaming b ecause there is no p ossibilit y of accessing them F urthermore it also do es not app ear to b e sensible to di eren tiate systems of ob jects equal up to renaming only b ecause their histories cannot b e made equal ev en when applying renaming If w e are in terested in one particular history of some system of ob jects w e can alw a ys subsequen tly concen trate on it and ignore all other p ossible histories of the same system of ob jects up to renaming So using names of net instances app ears to b e an implemen tation detail whic h is nec essary to allo w the manipulation with net instances and their relations but the concrete v alues of these names are not in teresting from the p oin t of view of analysing prop erties of mo delled systems Therefore in the follo wing paragraphs w e will semi formally describ e the renaming equiv alence relation and exploit it for a subsequen t de nition of the name abstracted state space of an OOPN The notion of the name abstracted state space will then serv e as a basis for further considerations ab out ev aluating prop erties of OOPN based mo dels De nition Systems of obje cts S S S O ar e e quivalent up to r enaming S S i ther e exists a bije ction on the universe U such that the fol lowing is true x C O N S T C LAS S x x i e c onstants and names of classes ar e mapp e d onto themselves F or al l net instanc e identi ers id involve d in S i e pr esent in the marking of plac es and tr ansitions of S a The nets c orr esp onding to id in S and to its r enaming id in S ar e the same b The marking of the c orr esp onding plac es and tr ansitions of the net instanc es identi e d by id in S and id in S is the same up to the applic ation of the r enaming to al l non trivial obje cts in the marking of the net instanc e c orr esp onding to id in S Remark We wil l use the notation hS i to denote the e quivalenc e class of elements fr om S O which c ontains the element S Normal ly the notation S would b e use d but we wil l r eserve it for high level e quivalenc e classes over the name abstr acte d state sp ac e Such e quivalenc e classes c an b e de ne d by mo del lers or derive d fr om sp e ci c ations of symmetries We wil l further r efer to the name e quivalenc e classes of over S O also as to the name abstr acte d systems of obje cts and we wil l b e printing them by me ans of the black b o ar d alphab et i e S S etc Final ly the quotient of S O by wil l b e written as S O i e S O S O n No w w e are ready to de ne the notion of the name abstracted state space Its elemen ts will b e renaming equiv alence classes of the set of states reac hable from ev ery p ossible renaming of a giv en initial system of ob jects So the name abstracted state space can b e de ned as the quotien t of the corresp onding total state space b y extended b y taking in to accoun t ev ery renaming of the initial system of ob jects De nition The name abstr acte d set of systems of obje cts r e achable fr om the given name abstr acte d system of obje cts hS i denote d as hS ii is de ne d as the quotient of hS ii by the r enaming e quivalenc e r elation i e hS ii hS iin The name abstr acte d state sp ac e hS ii of an obje ct oriente d Petri net with the total state sp ac e S i is de ne d as the name abstr acte d set of systems of obje cts r e achable fr om the given initial name abstr acte d system of obje cts No w it w ould b e p ossible to sho w that the elemen ts of a giv en name abstracted state space are complete equiv alence classes of systems of ob jects from S O with resp ect to the renaming equiv alence relation but w e will omit the pro of of this prop ert y Before pro ceeding further on w e ha v e to extend the notion of the renaming equiv alence in order to mak e it w ork also with ev en ts i e transition o ccurrences This step is necessary for the de nition of O graphs of OOPNs whic h will b e presen ted later De nition Events E e id t b and E e id t b fr om E V ar e e quiv alent up to r enaming E E i ther e exists a bije ction on the universe U such that x C O N S T C LAS S x x i e c onstants and names of classes ar e mapp e d onto themselves F or al l net instanc e identi ers id involve d in the event E i e id plus identi ers of the non trivial obje cts use d in the binding b the nets c orr esp onding to id in E and to its r enaming id in E ar e the same The typ es of E and E ar e the same i e e e id id The involve d tr ansitions ar e the same i e t t The binding of variables b in E is the same as the one of E up to the r enaming of the non trivial obje cts involve d in b Remark We wil l use the notation hE i to denote the e quivalenc e class of elements fr om E V which c ontains the element E Mor e over we wil l further r efer to the name e quivalenc e classes of over E V also as to the name abstr acte d events and we wil l b e printing them by me ans of the black b o ar d alphab et i e E E etc Final ly the quotient of the set E V by wil l b e denote d as E V in the fol lowing W e should note that t w o ev en ts equiv alen t up to renaming can lead from the same starting system of ob jects in to t w o di eren t nal systems of ob jects ev en when taking in to accoun t renaming This is b ecause in ev en ts there is information only ab out classes of the in v olv ed ob jects but not ab out their states W e can easily nd a system of ob jects in whic h the same place con tains t w o ob jects of the same class but in di eren t states Let these ob jects b e mo v able to another place b y the same transition Then b y using t w o ev en ts equal up to renaming w e can immediately obtain t w o di eren t nal systems of ob jects Ho w ev er this prop ert y of name abstracted ev en ts should not cause an y problems in the forthcoming considerations Finally w e will de ne the notion of name abstracted steps nite o ccurrence sequences and in nite o ccurrence sequences These three terms formalize relations b et w een name abstracted systems of ob jects and name abstracted ev en ts De nition A name abstr acte d step is a triple hS i he id t biihS i such that hS i hS i S O he id t bi E V and ther e exist S hS i S hS i and e id t b he id t bi such that S e id t b iS A nite name abstr acte d o c curr enc e se quenc e of the length n is a nite se quenc e of name abstr acte d steps S E iS E i S E iS n n n A n in nite name abstr acte d o c curr enc e se quenc e is an in nite se quenc e of name abstr acte d steps S E iS E i Remark Note that we do not r e quir e name abstr acte d steps to ful l the fol lowing c on dition S hS i S hS i e id t b he id t bi S e id t b iS In the end of this section w e will sho w that the ab o v e de ned name abstracted state spaces allo w us to v ery simply adapt the theory of o ccurrence graphs prop osed b y K Jensen in Jen for the domain of m uc h more dynamic OOPNs In fact all the de nitions and prop ositions w e ha v e to form ulate are just simple extensions of the original ones of K Jensen W e will demonstrate this on the de nition of OOPNs full o ccurrence graphs whic h pro vide a basic represen tation of OOPNs name abstracted state spaces De nition cf Def of Jen The ful l o c curr enc e gr aph of an OOPN which we wil l also denote as the O gr aph is de ne d as the dir e cte d gr aph O G V A N with vertic es V ar cs A and the no de function N such that V hS ii A f S E S V E V V j S E iS g a S E S A N a S S Because of space limitations w e will not con tin ue discussing OOPNs O graphs but from their de nition it should b e ob vious that the subsequen t de nitions and prop ositions w orking o v er them suc h as pro of rules or the notions of equiv alences and symmetries could also b e obtained as simple extensions of the ones de ned in the con text of the Jensen s CPNs Conclusions and F uture Researc h In the article w e discussed problems accompan ying the notion of state spaces of ob ject orien ted P etri nets connected to the to ol PNtalk whic h ho w ev er seem to arise also in other P etri net based formalisms exploiting dynamic instan tiation of nets W e ha v e de ned the notion of total state spaces of OOPNs whic h are so detailed that ev en concrete names of net instances are imp ortan t Then w e ha v e argued that it is probably not necessary to tak e in to accoun t particular names of net instances within the appropriate systems of ob jects Therefore w e ha v e suggested the notion of name abstracted state spaces Name abstracted state spaces ha v e b een prop osed in suc h a w a y that all concepts dev elop ed for the state space analysis of CPNs in Jen should b e applicable also in the area of OOPNs This has b een demonstrated on the de nition of O graphs Ho w ev er w e hop e that w e will b e able to adopt other concepts suc h as SCC graphs OE graphs OS graphs and the corresp onding pro of rules in a similarly straigh tforw ard w a y Nev ertheless there remain some problems concerning the state space analysis of OOPNs It is esp ecially the problem of the complexit y of testing systems of ob jects to b e equiv alen t up to renaming when building O graphs F or the sak e of implemen ting suc h an algorithm ev ery name abstracted system of ob jects can b e represen ted b y some concrete system of ob jects whic h is a mem b er of the appropriate equiv alence class Unfortunately systems of ob jects ha v e the form of lab eled orien ted graphs and the test of their equiv alence up to renaming leads to their uni cation whic h is in general exp onen tially hard in the n um b er of no des and arcs So w e ha v e to nd some additional prop ert y of systems of ob jects whic h w ould allo w us to decrease the complexit y of the tests of their equiv alence up to renaming If it turns out that it is imp ossible to decrease the e ciency of the renaming equiv alence tests in the con text of general OOPNs w e should try to prop ose a suitable sub class of OOPNs whic h w ould allo w it If w e e g restrict ourselv es to using safe OOPNs i e at most one ob ject in ev ery place instance and at most one in v o cation of ev ery transition instance at a time w e will probably b e able to unify systems of ob jects with resp ect to some suitable order o v er places and transitions and the renaming equiv alence test will b ecome almost trivial Ov er the prop osed name abstracted state spaces w e w ould further lik e to prop ose a suitable temp oral logic for describing prop erties of OOPN based mo dels This logic could b e similar to some of the logics prop osed for non ob ject P etri nets suc h as ASK CTL for CPNs CCM but it should also allo w mo dellers to express prop erties sp eci c for the ob ject orien ted w orld suc h as relations among ob jects message sending w aiting for and accepting resp onses etc F or the prop osed logic w e will ha v e to dev elop a suitable mo del c hec king pro cedure gh ting the state space explosion in some w a y Here w e can consider using SCC graphs or stubb orn sets F urther w e should try to exploit the mo dularit y of OOPN based mo dels in some w a y for example b y using some analogy to the mo dular O graphs CP or facilitating some kind of comp ositional reasoning as e g the one in Kin Here there will most lik ely app ear new problems to b e solv ed connected to c hanging relations among net instances It is also necessary to create some computer supp ort to ol for the state space analysis of OOPNs But it could b e also in teresting to try to use some existing to ol for high lev el nets Here some transforming pro cedure w ould b e necessary and it w ould b e also vital to implemen t some name abstracting mec hanism w orking o v er the resulting nets Ac kno wledgmen t This w ork w as supp orted b y gran ts of the Czec h Gran t Agency under the con tracts Researc h and Applications of Heterogeneous Mo dels and Ob ject Orien ted Database Mo del References CCM A Cheng S Christensen and K H Mortensen Mo del Chec king Coloured P etri Nets Exploiting Strongly Connected Comp onen ts In M P Spathop oulos R Smedinga and P Koz ak editors Pr o c e e dings of the International Workshop on Discr ete Event Systems WODES pages Edin burgh Scotland UK August CJ M Ce sk a and V Janou sek A F ormal Mo del for Ob ject Orien ted P etri Nets Mo deling A dvanc es in Systems Scienc e and Applic ations A n O cial Journal of the International Institute for Gener al Systems Studies Sp ecial Issue CJV M Ce sk a V Janou sek and T V o jnar PNtalk A Computerized T o ol for Ob ject Orien ted P etri Nets Mo delling In F Pic hler and R Moreno D az editors Pr o c e e dings of the th International Confer enc e on Computer A ide d Systems The ory and T e chnolo gy EUR OCAST v olume of L e ctur e Notes in Computer Scienc e pages Las P almas de Gran Canaria Spain F ebruary Springer V erlag CP S Christensen and L P etrucci Mo dular State Space Analysis of Coloured P etri Nets In G De Mic helis and M Diaz editors Pr o c e e dings of the th International Confer enc e on Applic ation and The ory of Petri Nets v olume of L e ctur e Notes in Computer Scienc e pages T urin Italy June Springer V erlag Jan V Janou sek Ob jekto v e orien to v an e P etriho s t e form aln z aklad jazyk a PNtalk T ec h nical rep ort Departmen t of Computer Science and Engineering T ec hnical Univ ersit y of Brno Czec h Republic Jan uary In Czec h Jen K Jensen Colour e d Petri Nets Basic Conc epts A nalysis Metho ds and Pr actic al Use V ol A nalysis Metho ds EA TCS Monographs on Theoretical Computer Science Springer V erlag Kin E Kindler A Comp ositional P artial Order Seman tics for P etri Net Comp onen ts In P Az ema and G Balb o editors Pr o c e e dings of the th International Confer enc e on Applic ation and The ory of Petri Nets v olume of L e ctur e Notes in Computer Scienc e pages T oulouse F rance June Springer V erlag LK C A Lak os and C D Keen LOOPN A New Language for Ob ject Orien ted P etri Nets T ec hnical Rep ort R Departmen t of Computer Science Univ ersit y of T asma nia Hobart T asmania April SB C Sib ertin Blanc Co op erativ e Nets In R V alette editor Pr o c e e dings of the th International Confer enc e on Applic ation and The ory of Petri Nets v olume of L e c tur e Notes in Computer Scienc e pages Zaragoza Spain June Springer V erlag V al R V alk On Pro cesses of Ob ject P etri Nets T ec hnical Rep ort FBI HH B F ac h b ereic h Informatik Univ ersit at Ham burg The essence of P etri nets and transition systems through Ab elian groups Gabriel Juh as Institute of Con trol Theory and Rob otics Slo v ak Academ y of Sciences D ubra vsk a Bratisla v a Slo v akia email utrrjuhi sa vba sk gabrielj brics dk Abstract In the pap er w e in v estigate the role of Ab elian groups in description of P etri nets and transition systems W e study the extension of P etri nets based on generalising algebra used in the dynamics of nets W e sho w that partial algebras em b eddable to Ab elian groups pla y an imp ortan t role in preserving some natural prop erties suc h as determinism and comm utativit y of transition o ccurrences state indep endence of the c hange caused b y transition o ccurrences and adv an tages giv en b y the state equation In tro duction P etri nets are one of the rst w ell established and widely used non in terlea ving mo dels of concurren t systems Their origin arisies from Carl Adam P etri s dissertation P et and the later concept of v ector addition systems KM P etri nets are p opular and successfully used in man y practical areas A P etri net is giv en b y a set of places represen ting system comp onen ts a set of transitions represen ting a set of atomic actions of the system and their relationship giv en b y an input and output function asso ciating with eac h transition a m ulti set o v er a set of places P et P et MM A state of a net is a m ulti set o v er the set of places called a marking An o ccurrence of a transition remo v es adds tok ens from to the marking according to the input output function resp ectiv ely A transition is enabled to o ccur i in ev ery place there are enough tok ens to re Lab elled transition systems Kel represen t the basic in terlea ving mo del of concurrency WN They ma y b e describ ed as a directed graph whose no des are system The part of this w ork w as done during the author s visit at BRICS Basic Researc h in Computer Science Cen tre of the Danish National Researc h F oundation Departmen t of Computer Science Univ ersit y of Aarh us Ny Munk egade DK Aarh us C Denmark states and arcs called transitions are lab elled b y elemen ts from a set of lab els represen ting a set of atomic actions of the system F or a P etri net the related transition system called sequen tial case graph is the graph whose no des are markings of the P etri net and whose arcs are lab elled b y transitions of the P etri net Th us one should remem b er that the term transition is used in P etri nets in the di eren t meaning from transition systems A lot of e ort has b een put in to the abstraction see e g Win MM and extension of P etri nets One can extend P etri nets b y mo difying the transition enabling rule in order to ha v e a more expressiv e mo del for example w e can men tion nets with inhibitor arcs that allo w testing of zero markings P et JK Others can in tro duce t yp es of tok ens suc h nets are commonly called high lev el nets JR F rom a purely mo delling p oin t of view high lev el nets ma y b e view ed only as a more comprehensiv e mo del that can b e describ ed b y sev eral lo w lev el nets The main adv an tages of P etri nets consist of the fact that they gran t a w ell arranged graphical expression of the system as w ell as a simple mo del in the form of a linear algebraic system P etri nets ha v e sev eral imp ortan t prop erties the o ccurrences of transitions are deterministic the o ccurrences of transitions are c ommutative in the meaning that if t w o sequences of transitions with the same n um b er of o ccurrences of single transitions are enabled in a marking then their o ccurrences lead to the common new marking and nally the o ccurrences of sequences of transitions are c onsensual in the meaning that if the o ccurrences of t w o sequences of transitions in one state marking lead to the common new state then they lead to the common new state from ev ery other state in whic h b oth sequences are enabled to o ccur Ho w ev er there are some b eha vioural limitations of P etri nets T ak e for example the lab elled transition system S with three states fs s s g and just one lab el i e just one atomic action t giv en as follo ws s YY t t t s s Clearly there do es not exist an y P etri net whose sequen tial case graph is isomorphic to the giv en transition system S b ecause for an arbitrary set of places P all nonzero elemen ts of the free comm utativ e monoid o v er P ha v e in nite order In other w ords the system S cannot b e directly i e using just one transition mo delled b y an y P etri net This leads us to an in teresting question Can P etri nets b e extended to mo del wider class of systems including suc h systems as S while preserving the adv an tages and prop erties men tioned ab o v e i e determinism comm utativit y and consensualit y of o ccurrences of tran sitions And if y es whic h class is the biggest class of systems that can b e describ ed as those extended P etri nets The answ er is related to the algebra used in the P etri net dynamics Starting with the v ery general setting in this pap er w e study the p ossibilit y of extension of P etri nets with the aim of preserving prop erties of comm utativit y and consensualit y of o ccurrences of transitions After w e sho w that existing extensions generally do not preserv e these prop erties w e sho w that using of a partial algebra that can b e em b edded to an Ab elian group is the limitation of those e orts P etri nets the state of the art In the rst subsection of this section w e review basic formal de nitions of place transition nets p t nets and lab elled transition systems Then w e deal with some extensions of p t nets found in the literature Basic de nitions Before the de ning of P etri nets let us rst de ne some notation W e use Z to denote in tegers Z to denote p ositiv e in tegers and N to denote nonnegativ e in tegers Moreo v er w e also shortly write Z to denote the in nite cyclic group of in tegers with addi tion Z and N to denote the comm utativ e monoid of nonnegativ e in tegers with addition N A Giv en t w o arbitrary sets sa y A and B sym b ol B denotes the set of all functions from A to B Giv en a function f from A to B and a subset C of the set A w e write f j to denote C the restriction of the function f on the set C T o denote the free comm utativ e monoid o v er a set A i e set of all m ulti sets o v er A with A A A A m ulti set addition w e write N or shortly N Let N fb j b N jA j N g where b f in A A fa j a A b a g is a subset of the set A mapp ed b y function b N to non zero b in tegers i e A is the set of elemen ts from A that are con tained o ccur at least once in the b A A m ulti set b So N is the set of all nite m ulti sets o v er the set A Clearly N j A A N N f in f in f in f in A is a submonoid of the monoid N Similarly to denote the free Ab elian group o v er a A A A A set A w e write Z or shortly Z Let Z fb j b Z jA j N g where A is b b f in A giv en as previously Eviden tly Z j is a subgroup of the free Ab elian group A A Z Z f in f in f in A A A Z As usual w e write only N or shortly N instead of rather complicated f in f in A A A A N j and Z or shortly Z instead of Z j Notice that A A A A N N Z Z f in f in f in f in f in f in f in f in A A A A if the set A is nite then N N and Z Z f in f in As one ma y see from the previous notation w e often use the sym b ol in the pap er univ er sally to denote a binary op eration i e w e use the sym b ol for di eren t op erations According to the previous section in algebraic form P etri nets place transition nets or shortly p t nets P et P et MM are de ned as follo ws De nition A plac e tr ansition net is an or der e d tuple N P T I O wher e P and P T ar e non empty distinct sets of plac es and tr ansitions I T N is an input function P O T N is an output function A marke d plac e tr ansition net is an or der e d tuple P MN N M wher e N is a p t net and M N is an initial marking A state of a p t net called marking and denoted b y M is a m ulti set o v er P i e an elemen t P of N The dynamics of the net is expressed b y the o ccurrence ring of enabled transitions P A transition t T is enabled to o ccur in a marking M N i p P M p I t p i e P P i X N X I t M N Occurrence of an enabled transition t T in a marking P M then leads to the new marking M giv en b y M X O t for the X N suc h that X I t M i e to M M O t I t It is sometimes usual to restrict the m ultiplicit y of places n um b er of tok ens in a p t net b y a capacit y So w e ha v e De nition A p t net with c ap acity is an or der e d tuple K N N K wher e N P T I O is a p t net and K P N f g is a c ap acity function The capacit y function restricts the set of markings and the enabling rule as follo ws Giv en a K N N K a marking M of N is a marking of K N i p P M p K p and therefore a transition t T is enabled to o ccur in a marking M of K N i p P M p I t p M p O t p I t p K p Clearly the class of all p t nets is a sub class of the class of all p t nets with capacit y where K p for eac h p P in a p t net A t this p oin t w e recall the de nition of lab elled transition systems WN De nition A lab el le d tr ansition system is an or der e d tuple S S L wher e S is a set of states L is a set of lab els and S L S is a tr ansition r elation a The fact that s a s is written as s s Denoting b y L the monoid of all nite strings of lab els from L with concatenation it is ob vious to extend the transition relation to string tr ansition r elation S L S as follo ws s q s whenev er there exists a a n a p ossibly empt y string of lab els q a a suc h that s s s T o denote n q q q v v s q s w e simply write s s Clearly s s s s s As q a a usual w e also write s and s to denote that there exist s S suc h that s s and q s s resp ectiv ely A state s is said to b e reac hable from a state s i there exists a string q of lab els q suc h that s s Giv en a state s S the set of all states reac hable from s is denoted b y fs g A lab elled transition system is said to b e reac hable i ev ery s S is reac hable from a xed state s S i e s S fs g S A lab elled transition system a a S S L is called deterministic i s s s s s s De nition A p ointe d lab el le d tr ansition system is an or der e d tuple P S S i wher e S S L is a lab el le d tr ansition system and i S is a distinguishe d initial state such that fi g S i e every state is r e achable fr om i No w it is straigh tforw ard to see that eac h p t net N can b e asso ciated with a deterministic transition system De nition L et N P T I O b e a p t net Then the lab el le d tr ansition system S t P N T such that M M t is enable d to o c cur in M and M M O t I t P is c al le d sequen tial case graph of the p t net N Given any marking M N the p ointe d lab el le d tr ansition system P S fM g T fM g T fs g M is c al le d sequen tial case graph of the marke d p t net MN N M As follo ws for a nite sequence q a a o v er a set A w e write b to denote P arikh s n q A image of q i e b N is a m ulti set in whic h the n um b er of the o ccurrences b a of eac h q q elemen t a from A is giv en b y the n um b er of its o ccurrences in q formally b a jfi j i q f ng a ag for ev ery a A i P Moreo v er giv en a function f T Z w e denote b y f the linear Z extension of the P T P T function f i e w e ha v e f Z Z is suc h that b Z f b f t b t where t T f in f in b naturally the sum of empt y set is zero function i e w e de ne f In other w ords for nite sets P and T f ma y b e understo o d as a matrix whose ro ws are v alues f t and then for giv en v ector b v alue f b represen ts the result of standard m ultiplication of the matrix f b y v ector b P Prop erties of the free Ab elian group Z o v er the set P enable us to write M M C b q q whenev er M M Moreo v er existence of a solution of the equation C Y M M T T in N is a necessary condition of reac habilit y of M from M The solution Y N then f in f in determines the n um b er of transition o ccurrences that lead from M to M One usually calls the equation M M C Y or M M O Y I Y a state e quation of p t T nets and Y N a ring ve ctor Th us in the p t nets and their sequen tial case graphs the f in c hange of the state is in v arian t on the order of transition o ccurrences and dep ends only on the n um b er of their o ccurrences In this place w e giv e a de nition of elemen tary nets b ecause they represen t a natural P example of nets in whic h a partial group oid namely the p o w erset of the set of places P with distinct union as the partial op eration is used De nition A n elementary net is an or der e d tuple E N P T I O wher e P and T P ar e disjoint sets of plac es and tr ansitions and I O T ar e input and output functions A marking of an elemen tary net E N is a subset of P A transition t T is enabled to P o ccur in a marking M i X P X I t M X O t and then its o ccurrence leads to the marking M X O t Clearly one can see the class of elemen tary nets as a sp ecial sub class of p t nets with capacit y where the capacit y of eac h place is equal to and v alues of the input and output function I t p O t p f g for ev ery t T and p P Extensions In this section w e deal with some abstract generalisations of p t nets found in the literature One of the rst successful abstractions of p t nets can b e found in the pap er MM based on the idea suggested in Win There the theory is built o v er de nition F or our purp ose the pap er is imp ortan t b y the fact that to our b est kno wledge it rst prop oses a generalisation of the p t net algebra As p ossible algebra there are suggested comm utativ e monoids the category of p t nets with suc h assumption is called Gr alPetri in MM and generally semimo dules According to MM for ob jects of Gr alPetri w e ha v e that markings are elemen ts of a comm utativ e monoid E i e M E and functions I O asso ciate with eac h transition an elemen t of E i e I O T E Then w e ha v e that a transition t T is enabled to o ccur in a M E i there exists X E suc h that X I t M and its o ccurrence leads to the marking M suc h that M X O t Example Giv en a set P fa bg tak e for the domain of markings noncancellativ e P comm utativ e monoid formed b y the p o w er set of P with standard union i e Let T ftg I t fa bg O t and M fa bg Then w e ha v e that o ccurrence of t in M leads to M suc h that M fag M F rom the follo wing gure with the sequen tial case sequen tial graphs of suc h a net w e can see that o ccurrence of t is non deterministic e g in fa bg it ma y lead again to fa bg but also to fag or fbg t fa bg E E E t E t E t E E E fag fbg The idea giv en in MM is further generalised in EPR and P ad The algebra considered is generally a comm utativ e semigroup So according to P ad abstract P etri nets are giv en an follo ws De nition A net structur e functor is a c omp osition G F wher e F is a functor fr om the c ate gory of sets to the c ate gory of c ommutative semigr oups and G is his right adjoint Given a net structur e functor G F a low level abstr act Petri net is a tuple P T I O wher e P and T ar e sets of plac es and tr ansitions r esp e ctively and I O ar e functions fr om T to G F P A marking of a lo w lev el abstract P etri net is an elemen t M F P Because of the prop erties of adjunction for eac h f T G F P there exists a unique extension f F T F P Then the enabling rule and o ccurrence of transition v ectors are de ned as follo ws giv en a transition v ector v F T it is said that v is enabled to o ccur in M i there exists X F P suc h that X I v M and then the o ccurrence of v leads to the new marking M giv en b y M X O v P ad men tions the p ossibilit y of non determinism caused b y non unique solutions of the equation X I v M It is solv ed b y sp ecifying additional conditions Example Recall that in P ad a net where F P P P is the standard p o w erset functor mapping a set to its p o w er set with union is called unsafe elemen tary net The problem of non unique solution of the equation X I v M is solv ed b y demanding distinct union in the equation P No w tak e again as in the previous example P fa bg and an algebra of the net P W e ha v e for a marking M that M i e M P P Let us consider that w e use only distinct union in equation X I t M so w e ha v e that a transition t is enabled to o ccur P in M i exists X suc h that X I t M One ma y easily rewrite this for a v P T Let T ft t t t g let I t fag I t fbg O t fag O t fbg and let ev ery other v alue of input and output function b e equal to empt y set Using the terminology from P ad w e ha v e an unsafe elemen tary net So w e ha v e that the o ccurrence of a transition in M leads to M suc h that for t M fag M for t M M fag for t M fbg M for t M M fbg t t fa bg E x E E x E bb t t E x E x E x E x x E E x E x t t E x E x E x x E x t t E x x fag fbg F F x F x t t ccF F x F x F x F x F x F x F x F x F x F x F x F x t t x F x F x x As w e can see from the previous gure with the sequen tial case graph of the net although demanding in the equation X I t M distinct union in order to remo v e non determinism w e ha v e that for example the sequence of transitions t t t c hanges the marking fa bg to the marking but the o ccurrence of the sequence of transitions t t t c hange the same marking fa bg to the marking fag In the notions of transition v ectors w e ha v e that the sequence of v ectors v w where v ft t g and w ft g c hanges fa bg to but w v c hanges the fa bg to the marking fag This generally means that using nonc anc el lative c ommutative monoids as Petri net algebr a change of the state c an dep end on the or der of the tr ansition o c curr enc es i e c ommutativity of tr ansition o c curr enc es if enable d is not satis e d Ho w ev er the comm utativit y is just the prop ert y that p ermits o v ercoming sequen tialit y in P etri net computations One could note that strictly formally p o w er set with distinct union is a p artial comm uta tiv e semigroup although in de nition according to P ad a full comm utativ e semigroup is required Also generally taking a noncancellativ e comm utativ e monoid the computation through sequences of ring v ectors ma y di er from the computation through the comp osition of ring v ectors e g in the case of example when the net functor asso ciates the set of transition with its p o w erset with union the sequence of v ectors v w where v ft t t g and w ft g c hanges fa bg to but v w v c hanges the fa bg to the marking fag Extension of p t nets transition systems and Ab elian groups Based on the extensions discussed in the previous section in this section w e suggest a v ery general algebraic structure of nets for the purp ose of in v estigating di eren t extensions and their relationship Then w e c ho ose a tuple of prop erties that holds in the sequen tial case graph of eac h standard p t net F urther w e sho w whic h kind of partial algebra if it is used in p t net instead of in tegers with addition preserv es is equiv alen t to this tuple of prop erties In this general de nition w e do not pa y atten tion to distributivit y of p t net only to the algebra used In the eld of P etri nets as w e can see from the example of widely used elemen tary nets where distinct union is used one ma y use a partial binary algebra i e a partial group oid In order to co v er also these cases w e will generally allo w partialit y of comp osition As follo ws w e recall v ery basic de nitions and notation from theory of partial group oids according to LE used through the pap er P artial binary algebra De nition A p artial gr oup oid is an or der e d tuple H H u wher e H is a c arrier of H H H is the domain of u and u H is a p artial op er ation of H De nition We say that a p artial gr oup oid H H u c an b e emb e dde d is emb e d dable to an A b elian gr oup i ther e exists an A b elian gr oup G such that H G and the op er ation r estricte d on is e qual to the p artial op er ation u in symb ols j u Gr oup G is c al le d emb e dding of p artial gr oup oid H Recall that a total group oid is em b eddable to an Ab elian group if and only if it is a cancellativ e comm utativ e asso ciativ e group oid i e a cancellativ e comm utativ e semigroup Remem b er that a left cancellativ e semigroup is a semigroup where a b c H a b a c b c In similar w a y is de ned righ t cancellativ e semigroup A semigroup is said to b e cancellativ e if it is b oth left and righ t cancellativ e Clearly for a comm utativ e semigroup left and righ t cancellativit y coincides F or more details ab out em b edding of semigroups to groups see e g CP In the case of prop er partial group oid i e H H asso ciativit y comm utativit y and cancellativit y are only necessary conditions of em b eddabilit y to an Ab elian group but not su cien t Let s start First w e de ne a v ery general net state functor Let us denote the category of sets b y SET and the category of partial group oids b y PGR OUPOID F urther let U PGR OUPOID SET b e the forgetful functor i e giv en an y partial group oid H H u w e ha v e U H H De nition A net state functor is a functor F SET PGR OUPOID asso ciating a set with a p artial gr oup oid De nition Given a net state functor F an algebr aic al ly gener alise d plac e tr ansition net is an or der e d tuple AN P T I O wher e P and T ar e distinct sets of plac es and tr ansitions and I O T U F P ar e input and output functions r esp e ctively The structure F P is called partial algebra of AN As follo ws let F P H u A state of net AN also called marking or case is an elemen t M H U F P A transition t T is enabled to o ccur in a state M H if and only if X H suc h that X I t X u I t M X O t and then its o ccurrence leads to the marking M X u O t De nition As usual a mark ed algebr aic al ly gener alise d p t net is a p air AN M wher e AN is an algebr aic al ly gener alise d p t net and M is a distinguishe d initial state of the net AN De nition Similarly to standar d p t nets sequen tial case graph of an algebr aic al ly gener alise d p t net AN P T I O with p artial algebr a F P is the tr ansition system U F P T wher e t M M X U F P X I t X u I t M X O t M X u O t Then given an initial state M U F P the se quential c ase gr aph of marke d algebr aic al ly gener alise d p t net AN M is the p ointe d lab el le d tr ansition system fM g T fM g T fM g M It is eviden t that standard p t nets from de nition are algebraically generalised nets with the state functor asso ciating the set of places P with the free comm utativ e monoid o v er P Elemen tary nets from de nition are algebraically generalised p t nets with the state functor asso ciating a set of places with the partial group oid of its p o w erset with distinct union Finally a p t net with capacit y K N P T I O K see def is a net with P F P N f X Y j p P X p Y p f K p gg u j Moreo v er algebra of standard p t nets and partial algebra of elemen tary nets and generally p t nets P with capacit y is em b eddable to the free Ab elian group Z As follo ws w e c ho ose a tuple of prop erties that holds in sequen tial case graph of eac h standard mark ed p t net giv en b y de nition Then w e nd whic h kind of partial algebra used in algebraically generalised p t nets instead of in tegers with addition preserv es this tuple of prop erties Recall that giv en a sequence q o v er a set A w e write b to denote P arikh s image of q i e q A b N is a m ulti set in whic h the n um b er of the o ccurrences b a of eac h elemen t a from q q A is giv en b y the n um b er of its o ccurrences in q De nition L et S S L b e a lab el le d tr ansition system We say that system S q q is c ommutative i h s h s b b s s q q Eviden tly the sequen tial case graph of the net from example is not a comm uta tiv e transition system It is also clear that ev ery comm utativ e lab elled transition system is deterministic F or comm utativ e lab elled transition systems it is straigh tforw ard to extend the string L transition relation to multi set tr ansition r elation S N S suc h that s b s f in q b i there exists q L suc h that s s b b As usual w e write s s to q b b b b denote s b s and s to denote that s S s s Clearly s s b b s s s Remark Recall that a congruence on an Ab elian group G is an equiv alence relation on G preserving the group op eration i e a b c d a c b d for ev ery a b c d G As usual giv en an elemen t g G w e denote b y g fg jg g g the equiv alence class con taining the elemen t g and b y the op eration on G giv en as follo ws g g G g g g g In other w ords G is the factor group of the group G according to the congruence F or a more general statemen t of congruence w e refer to Ad a De nition Given a c ommutative lab el le d tr ansition system S S L let r elation b b L L L L N N b e such that b b s s s s L et Z Z b e S S S f in f in f in f in L the le ast c ongruenc e on Z c ontaining i e We say that S is c onsensual i S S S f in b b h s h s b b s s S As follo ws w e simply write and to denote and if system S is clear from the S S con text Remark W e c ho ose the name consensual b ecause it expresses a kind of common opinion of the m ulti sets on the problem ho w to c hange the state If they c hange a state in the same w a y once i e from common source state to common target state then they do it also for all other states i e if they are in common source state and b oth can o ccur then they lead to the common target state again Moreo v er this consensus is transitiv e and closed under addition and subtraction of m ulti sets Lemma The se quential c ase gr aph S L of every standar d plac e tr ansition net N P T I O given by def is c ommutative and c onsensual Pro of q F or the sequen tial case graph of a p t net N w e ha v e from its de nition M M q M M C b for ev ery M M q q q Comm utativit y tak e an y M M M M suc h that b b F rom previous w e q q ha v e directly that M M C b M C b M q q b b No w w e sho w consensualit y i e w e sho w that M M M M b b T T M M T ak e Z Z suc h that b b C b C b One can easily f in f in T c hec k that is a congruence on Ab elian group Z clearly it is an equiv alence and giv en f in an y C b C b and C d C d w e ha v e C b C b C d C d and further P P P C b C b C t b t C t b t C t b t b t C b b and t T t T t T the same for d d i e w e ha v e C b b C d d b b Giv en an y M M M M w e ha v e that if b b i e C b C b and therefore M M C b M C b M then M M T Because is the least congruence on Z con taining no w it su ces to sho w that f in b b F or ev ery b b w e ha v e from the de nition of that M M M M i e M M C b M C b C b C b i e b b Lemma L et S S L b e a r e achable lab el le d tr ansition system Then S is c ommutative and c onsensual if and only if ther e exists an A b elian gr oup G G that a holds an inje ction S G f L G such that s s s f a s Pro of L L Because is a congruence on Ab elian group Z also G Z is an Ab elian f in f in L L group it is a factor group of Z with resp ect to so w e ha v e b b Z b b f in f in b b System S is reac hable i e w e ha v e a state sa y r S from whic h eac h s S is reac hable No w let b e de ned as follo ws r and s S s b where b b r s One can c hec k that is w ell de ned giv en an y t w o b b suc h that r s as w ell b as r s there is b b and therefore b b and it is an injection s s b b means that there exists r s and r s suc h that b b i e b b whic h b ecause S is consensual implies s s L Let f L Z b e giv en b y f a b for ev ery a L a f in a b b a No w tak e arbitrary s s i e s s W e ha v e that s b where r s But b b a then w e also ha v e r s and therefore s b b b b s f a a a as in lemma W e sho w ed that in a reac hable transition system comm utativit y and consensualit y is equiv alen t to the existence of an Ab elian group pla ying the role of algebra in the system As follo ws a system in whic h computations ma y b e expressed using elemen ts and the comp osition la w of an Ab elian group is called Ab elian group transition system De nition A lab el le d A b elian gr oup tr ansition system is such a lab el le d tr ansition system S S L that ther e exists an A b elian gr oup G G that holds an a inje ction S G f L G such that s s s f a s The gr oup G G is said to b e asso ciate d with system S the inje ction is c al le d state inje ction and the function f is c al le d incidenc e function of S If also f is an inje ction then it is said that S is unambiguously lab el le d F or algebraically generalised p t nets there hold the follo wing claim Lemma A p ointe d tr ansition system P S S L i is a lab el le d A b elian gr oup tr ansition system if and only if it is isomorphic to the se quential c ase gr aph of a marke d algebr aic al ly gener alise d p t net MAN P T I O M in which p artial algebr a F P c an b e emb e dde d to an A b elian gr oup Pro of Let G denote an Ab elian group to whic h the partial algebra F P can b e em b edded Then it su ces to tak e f T G f t O t I t for all t T to sho w that the sequen tial case graph of MAN is an Ab elian group transition system W e ha v e an Ab elian group G with a state injection S G and an incidence a function f L G suc h that s s s f a s Without loss of generalit y w e a can assume that S G s s for ev ery s S and hence s s s f a s Let K b e an Ab elian group suc h that L K No w denote b y H direct pro duct of G and K i e H G K and w e write g k to denote an elemen t of H and b oth for the neutral elemen t of G and K F or ev ery a L let relation a fs j s g f ag ff a g fag H H Finally denote So w e a a L a ha v e a partial algebra H H j whic h can b e em b edded to Ab elian group H As follo ws w e write as usual u instead of j No w tak e for simplicit y the constan t net state functor F SET PGR OUPOID that asso ciates with eac h set partial group oid H and with eac h function b et w een sets the iden tit y morphism id H H De ne an algebraically generalised net AN P T I O where P is an arbitrary set T L and I O T U F P are giv en as follo ws a T I a a O a f a a Let H T b e the sequen tial transition system of AN F rom de nition of only s a a I a a and s a O a f a a where s are in the relation w e ha v e that a T X H X I a X u I a s S f g and also X O a X u O a s S f g F rom the enabling and ring rule recall that a T is enabled in M H i exists X H X I a X u I a M X O a and then o ccurrence ring of a leads to M X u O a w e ha v e that S f g T S f g or in other w ords S f g T S f g Because of the construction of and the enabling and ring rule w e further ha v e that a a a T M S f g M s M s s s F rom the de nition of f i g w e ha v e that for ev ery h f i g there exists a a a n p ossibly empt y string of transitions q a a T suc h that i h h h n n Because S f g T S f g w e ha v e that f i g S f g On the other hand b ecause fi g S w e ha v e that for ev ery s S there exists a p ossibbly a a n empt y string of lab els q a a L suc h that i s s s F rom w e n n a a n further ha v e that i s s s i e w e ha v e S f g f i g n So w e get f i g S f g Directly from de nition w e ha v e that the p oin ted transition system S f g T i is the sequen tial case graph of the mark ed algebraically generalised p t net MAN P T I O i in whic h partial algebra F P is em b eddable to an Ab elain group Clearly there is an isomorphism giv en b y bijection S f g S s s for eac h s S and iden tit y T L b et w een the p oin ted transition system S L i and the sequen tial case graph S f g T i of the mark ed net MAN Remark The imp ortance of the group K in the ab o v e pro of is that it enables to main tain the cases where some transitions cause the same c hange but the domains on whic h they are enabled to o ccur di er In particular it allo ws to distinguish sel o ops eac h others and also from no action in our construction The consideration of p ossibly di eren t domains for transitions with the same e ect giv es real sense in the case of am biguous lab elling of transition systems Finally w e can form ulate the follo wing theorem for mark ed p t nets that directly follo ws from lemma and lemma Theorem A p ointe d tr ansition system S S L i is c ommutative and c on sensual if and only if it is isomorphic to the se quential c ase gr aph of a marke d algebr aic al ly gener alise d p t net MAN in which p artial algebr a F P c an b e emb e dde d to an A b elian gr oup W e ha v e sho wn prop erties corresp onding to the use of partial algebra em b eddable to an Ab elian group in P etri nets Someone can c ho ose a more general algebra as a comm utativ e monoid or something what can b e em b edded to a comm utativ e monoid but should b e prepared that b y doing this some of these prop erties can b e lost in the case of comm utativ e monoids as w e demonstrated on example w e migh t ev en lose comm utativit y This is our main message Conclusion In the pap er w e ha v e studied an extension of P etri nets based on generalising algebra used in the dynamics of nets More precisely w e ha v e studied the role of algebra used in P etri nets through prop erties of their in terlea ving seman tic lab elled transition systems called traditionally sequen tial case graphs Our motiv ation and aim ha v e b een to extend the class of systems that can b e directly mo delled b y algebraically generalised P etri nets more precisely to extend the class of lab elled transition systems isomorphic to the sequen tial case graph of an algebraically generalised P etri net while preserving some natural seman tic prop erties guaran teed in standard P etri nets W e ha v e started with a v ery general de nition of P etri nets using a state functor mapping the set of places to partial group oids i e to P etri net partial algebra F or purp ose of the study w e ha v e c hosen the pair of seman tic prop erties preserv ed in se quen tial case graphs of all standard P etri nets namely c ommutativity of o ccurrences of tran sitions whic h enables to use m ulti sets instead of sequences of transitions and c onsensuality of computations in P etri nets that means if the o ccurrences of t w o sequences of transitions in one state marking lead to the common new state then they lead to the common new state from ev ery other state in whic h b oth sequences are enabled to o ccur and moreo v er this consensus is transitiv e and closed under addition and subtraction of m ulti sets These t w o prop erties are crucial for p ossibilit y of using linear algebraic tec hniques in the description and analysis of P etri nets W e ha v e sho wn that using arbitrary comm utativ e monoid as P etri net algebra as suggested in MM do es not preserv e determinism and comm utativit y of o ccurrences of transitions in sequen tial case graphs of P etri nets and although one uses some additional requiremen ts to satisfy determinism as it is done in P ad the sequen tial case graph still ma y not preserv e comm utativit y In other w ords the construction of P etri nets causes that the comm utativit y of a monoid do es not guaran tee the comm utativit y of the corresp onding sequen tial case graphs In this pap er it is pro v en that for a p oin ted reac hable lab elled transition system S the follo wing statemen ts are equiv alen t S is comm utativ e and consensual S is an Ab elian group transition system i e a system in whic h computation ma y b e expressed using elemen ts and the comp osition la w of an Ab elian group S is isomorphic to the sequen tial case graph of a mark ed algebraically generalised P etri net the partial algebra of whic h is em b eddable to an Ab elian group Ac kno wledgemen t I w ould lik e to thank Mogens Nielsen for man y v aluable discussions and Zhe Y ang for his extensiv e commen ts v ery v aluable tec hnical suggestions and careful reading of the man uscript I also wish to thank Martin Drozda for reading and impro v emen t of the draft of the pap er I am also grateful to P etr Jan car and J org Desel for their encouragemen t to con tin ue on this w ork References Ad a J Ad amek The ory of Mathematic al Structur es D Reidel Publishing Compan y Klu w er Academic Dordrec h t Holland CP A H Cli ord and G B Preston The A lgebr aic The ory of Semigr oups I II Amer ican Mathematical So ciet y EPR H Ehrig J P adb erg and G Rozen b erg Beha viour and relization construction for Petri nets based on free monoid and p o w er set graphs In Workshop on Concur r ency Sp e ci c ation Pr o gr amming Hum b oldt Univ ersit y Extended v ersion app eared as T ec hnical Rep ort of Univ ersit y of Leiden JK R Janic ki and M Koutn y In v arian t seman tics of nets with inhibitor arcs In Pr o c e e dings of CONCUR v olume of L e ctur e Notes in Computer Scienc e Springer V erlag Berlin JR K Jensen and G Rozen b erg editors High L evel Petri Nets The ory and Applic a tions Springer V erlag Berlin Kel R M Keller F ormal v eri cation of parallel programs Communic ations of the A CM KM Ric hard M Karp and Ra ymond E Miller P arallel program sc hemata Journal of Computer and System Scienc es Ma y LE E S Ljapin and A E Evseev Partial algebr aic op er ations in R ussian Izdatelstv o Obrazo v ani St P etersburg MM Jos e Meseguer and Ugo Mon tanari Petri nets are monoids Information and Com putation Octob er P ad J P adb erg A bstr act Petri Nets Uniform Appr o ach and R ule Base d R e nement PhD thesis T ec hnical Univ ersit y of Berlin P et C A P etri Kommunikation mit A utomaten PhD thesis Univ ersit y of Bonn Bonn W est German y P et J L P eterson Mo deling of Par al lel Systems PhD thesis Departmen t of Electrical Engineering Stanford Univ ersit y Stanford CA P et J L P eterson Petri Net The ory and the Mo deling of Systems P en tice Hall Engle w o o d Cli s NJ Win G Winsk el Petri nets algebras morphisms and comp ositionalit y Information and Computation WN G Winsk el and M Nielsen Mo dels for concurrency In S Abramsky D Gabba y and T S E Maibaum editors Handb o ok of L o gic in Computer Scienc e v olume pages Oxford Univ ersit y Press Also app eared in BRICS Rep ort Series RS In tensional Approac hes for Sym b olic Metho ds Olga Kushnarenk o and Sophie Pinc hinat EP A TR Group IRISA Univ Rennes I Campus de Beaulieu Rennes Cedex F rance email fokouchna pinchinag irisa fr Abstract W e presen t a b eha vioral mo del for discrete ev en t systems based on an in ten tional for malism as a p ossible approac h within the broader trend to w ards ric h sym b olic represen tations in v eri cation W e de ne Intentional L ab ele d T r ansition Systems with asso ciated com binators of paral lel comp osition and ev en t hiding and w e prop ose symb olic bisimulation to handle strong bisim ulation in ten tionally F urther on w e explain ho w the metho dology has b een dev elop ed for the sync hronous language Signal via the v eri cation to ol Sigali Keyw ords in ten tional transition systems p olynomials sym b olic bisim ulation sync hronous languages equiv alence c hec king In tro duction Dynamic systems are systems that ev olv e according to their en vironmen t In general an ev olution of the system in a giv en state dep ends on an input ev en t some information giv en b y the en vironmen t this ev olution leads to some instan taneous output ev en t and to state c hanges Sync hronous languages ha v e b een designed to ease the programmer s task when dealing with suc h systems they pro vide some primitiv es for concurrency and comm unication They can b e of di eren t kinds The most p opular ones that ha v e b een designed in F rance are Esterel BC an imp erativ e language Lustre Pla and Signal BLJ based on declarativ e approac h These languages naturally b ear a seman tics in terms of discrete ev en t systems and their con trol part concerns b o olean v alued signals The sync hronous features allo w one to express sync hronization constrain ts b et w een the di eren t output and in ternal ev en ts of the system and the input ev en ts of its en vironmen t Hence an y op erational seman tics of suc h systems leads to automata lab eled com binations of atomic ev en ts The automata seman tics can then b e used as a basis for the v eri cation of Signal pro grams F or classic temp oral logics sp eci cation v eri cations the to ol Sigali DLB w as dev elop ed this to ol is based on an in tensional represen tation of the automata Whereas Signal programs equiv alence c hec king w as made extensionally b y feeding other v eri ca tion to ols e g suc h as Aldebaran F er or F ctools BRRD with the extensional description of the automata Ob viously the size of the generated transition systems limits the extensional metho ds W ork supp orted b y the Esprit SYRF Pro ject In this pap er w e prop ose an in tensional formalism based on the algebraic theory of p olynomials for bisim ulation c hec king whic h p erfectly ts the spirit of the to ol Sigali The p olynomial language pro vides the programmer with an in termediate language to describ e sym b olic algorithms in an in tensional w a y without b othering with the underlying implemen tation In our mo delization approac h instead of considering extensionally all p ossible ev en ts for a giv en state c hange w e dev elop a formalism where actions of the automata are p olynomials these automata will b e called intensional ly L ab ele d T r ansition Systems or iL TS for short These p olynomials are based on sev eral v ariables one for eac h atomic ev en t with co e cien ts in Z according to the follo wing enco ding an atomic b o olean ev en t can either b e absent then enco ded b y or pr esent and equal to true enco ded b y or pr esent and equal to false enco ded b y The solutions of a p olynomial are comp osed ev en ts iL TS naturally p ossess an in terpretation in terms of classical lab eled transition systems but they p ermit to a v oid the transition en umeration one w ould get b y describing extensionally eac h ev en t and transition Moreo v er the algebraic theory of p olynomials o ers simple de nitions for p ar al lel c omp osition and event hiding b oth com binators widely used to design complex systems The pap er is organized as follo ws Sections and in tro duce the in tensional mo d els and the com binators F urther on Section w e prop ose a b eha vioral equiv alence called symb olic bisimulation o v er iL TS with go o d prop erties it has the congruence prop ert y w r t the com binators see Theorem This de nition enables one to handle classic strong bisim ulation in an in tensional st yle see Theorem Then in order to pro ceed to sym b olic v eri cation Section in tro duces a still more in tensional seman tics for systems p olynomial formalism is extended to describ e the whole system that is all its legal tran sitions The resulting mo dels are called Intensional L ab ele d T r ansition Systems IL TS Section explains ho w the dev elop ed theory is curren tly applied to the language Sig nal the options of the compiler plugged with the basic functions of the v eri cation to ol Sigali DLB allo w us to p erform p olynomial handling for bisim ulation computation F or lac k of space w e refer to KP for the pro ofs details In tensional Lab eled T ransition Systems This section in tro duces intensional ly lab ele d tr ansition systems p ar al lel c omp osition and event hiding as w ell as the symb olic bisimulation b eha vioral equiv alence Then intensional lab ele d tr ansition systems are prop osed as a more in tensional description for lab eled transition systems and an algorithm for the sym b olic bisim ulation computation is giv en In the follo wing w e write Z for the nite eld f g in whic h x x and x for all x Z Let Z b e a nite set of m distinct v ariables Z Z W e denote b y m Z Z or Z Z Z the set of p olynomials o v er v ariables Z Z whic h co e cien ts m m range o v er Z with t ypical elemen ts P Z or P for short P Z W e recall that Z Z is a ring In tensionally lab eled transition systems De nition In tensionally Lab eled T ransition Systems iL TS An m dimensional intensional ly L ab ele d T r ansition System or m iL TS is a structure T Q Z where Q is set of states Z is a set of m v ariables Z Z and m Q Z Z Q Eac h transition is lab eled b y a p olynomial o v er the set Z P Z P W e write q q or simply q q instead of q P Z q m Giv en a p olynomial P Z Z Z w e asso ciate its set of solutions S ol P Z m de ned b y f z z Z jP z z g Then iL TS can b e understo o d as an m m in tensional represen tation of classical lab eled transition systems where the lab els are m tuples in Z eac h arro w of the iL TS lab eled b y P Z in tensionally represen ts as man y arro ws lab eled b y some z where z S ol P Z W e call E xt T the corresp onding extensional lab eled transition system No w it is w orth while noting that in Z Z p olynomials Z Z Z Z ev aluate m m to zero Then for an y P Z Z Z one for instance has S ol P S ol P Z Z but also S ol P S ol P S ol P etc A v ery natural abstraction w ould b e to consider iL TS mo dulo isomorphism of course but also mo dulo equiv alence o v er lab els where P P whenev er S ol P S ol P F ortunately for algorithmic purp oses Dut sho w ed ho w to de ne a unique represen tativ e of eac h equiv alence class called the c anonic al gener ator This p olynomial is the c haracteristic function of S ol P and has at most degree Lemma Dut Given a p olynomial P Z Z the c anonic al gener ator of P is c omputable Op erations o v er iL TS The class of iTLS can b e pro vided with the usual op erations o v er extensional transition systems Among them the p ar al lel c omp osition and the events hiding pla y an imp ortan t role in the complex systems design P arallel comp osition o v er iL TS imp oses the compatibilit y of v alues b et w een common ev en ts of the comp osed systems F rom the extensional p oin t of view De nition is the classical synchr onous p ar al lel c omp osition as de ned in Esterel Signal or Lustre lan guages but the in tensional approac h a v oids a part of the p oten tial com binatorial explosion to compute the sync hronized transitions def Also w e can consider the quotien t ring Z Z Z Z Z Z Z Z whic h is isomorphic to m m m the ring of functions from Z in Z in order to restrict to p olynomials of degree at most De nition P arallel comp osition of iL TS Let T Q Z b e an m iL TS and T Q U b e an m iL TS with p ossible common v ariables b et w een Z and U The p ar al lel c omp osition of T and T written T j T is Q Q Z U with P Z uP U P Z def q q q q where P u P P P whenev er q q in T P U and q q in T Because in Z P u P i P P w e ha v e S ol P u P S ol P S ol P it en tails that P u P u P P u P u P Therefore parallel comp osition o v er iL TS is comm utativ e and asso ciativ e Hiding ev en ts consists in abstracting from comp onen ts of the lab el It helps in in ternalizing some comm unications b et w een the comp osed systems that are not relev an t to observ e in the b eha vior Let P Z Z w e shall write Z P for the p olynomial P j P j P j where i Z Z Z i i i P j is P obtained b y instan tiating an y o ccurrence of v ariable Z b y v alue v The Z v i i reader can c hec k that S ol Z P is obtained from S ol P b y deleting the i th comp onen t i of its elemen ts it is a pro jection Also when Z Z is some fZ Z g w e simply i i r write Z P for Z Z P i i r Also it is p ossible to de ne a dual v ariable abstraction o v er p olynomials based on uni v ersal quan ti cator Z P is computed as P j u P j u P j whic h solutions are i Z Z Z i i i elemen ts of the form z z z z s t z z z z z z S ol P i i m i i i i m This abstraction will b e considered further on De nition Ev en t hiding Let T Q Z b e an m iL TS and Z Z W e de ne i Z P P i the m iL TS T n fZ g b y Q Z n fZ g where q q i q q i i nfZ g nfZ g i i Sym b olic bisim ulation As w e aim to manipulate transition systems in an in tensional w a y w e explain here ho w the classical strong bisim ulation can b e handle in this setting see Theorem The de nition is strongly inspired from DeSimone s sym b olic bisim ulation o v er reactiv e au tomata DR m In order to b e compared ev en ts of t w o iL TS ha v e to b elong to the same space Z This w a y w e supp ose without of lost of the generalit y t w o iL TS ha v e the same ev en ts v ariables De nition Sym b olic Bisim ulation Let T Q Z and T Q Z b e t w o iL TS A sym b olic bisim ulation b et w een T and T is a binary relation R Q Q s t q Rq whenev er P P i i for all q q there exists a nite set of transitions q q with i I S P P whic h implies S ol P S ol P and i i i i i q Rq for all i I and vice v ersa W e ha v e pro v ed the congruence theorem for the sym b olic bisim ulation Theorem Comp ositionalit y Symb olic bisimulation is a c ongruenc e w r t p ar al lel c omp osition and events hiding W e sho w here that sym b olic bisim ulation is an alternativ e view of strong bisim ulation when in tensional mo dels are considered A t this stage w e assume the reader is familiar with the class of extensional lab eled transition systems as w ell as with the equiv alence of str ong bisimulation Ho w ev er w e recall De nition P ar Mil Strong bisim ulation Giv en t w o transition systems la b eled o v er some set A t Q A and t Q A a bisim ulation b et w een t and t is a binary relation Q Q s t q q whenev er a a for all a A for all transition q q there exists a state q s t q q and q q and vice v ersa Sym b olic bisim ulation b et w een iL TS corresp onds to strong bisim ulation b et w een the ex tensional lab eled transition systems Theorem L et T and T b e two iL TS Then ther e exists a symb olic bisimulation b e twe en T and T i ther e exists a str ong bisimulation b etwe en E xt T and E xt T In tensional Lab eled T ransition Systems In tensional approac h for lab els o ers a compact w a y to talk ab out sets of transitions in the system Ho w ev er w e w ould lik e to reinforce this metho d in suc h a w a y that the whole system and not only its sets of lab els can b e itself describ ed in tension ally F or this purp ose a structure o v er the states is una v oidable W e prop ose the fairly standard structure of tuples for states where v alues ranges o v er b o oleans in our setting it means v alues and This is classically used in sym b olic v eri cation metho ds In tuitiv ely the set of transitions will b e giv en b y a p olynomial whic h generalizes the iL TS approac h Applications in Section will sho w ho w this formalism can b e obtained for free from the real systems to b e compared mo dulo sym b olic or equiv alen tly strong bisim ulation De nition An n m dimensional Intensional L ab ele d T r ansition System or IL TS for short is a structure S X Y Z T where X fX X g and Y fY Y g n n are t w o sets of sour c e and tar get states variables Z fZ Z g is a set of lab els m v ariables and T X Y Z is a p olynomial in Z X Y Z describing the legal transitions n n Giv en some source state x x x Z and some target state y y y Z n n the set S ol T x Z y denotes all the p ossible lab els of transitions from state x to state y When states are view ed extensionally w e retriev e the iL TS of in Section whic h in turn can b e in terpreted as a classical lab eled transition system No w an algorithm for computing the greatest strong bisim ulation b et w een t w o IL TS can b e describ ed as follo ws Assume giv en t w o IL TS S X Y Z T and S X Y Z T Algorithm De ne the p olynomial R X X Compute iterativ ely un til stabilization the sequence of p olynomials R X X k k de ned b y R X X is the canonical generator of the class of k R X X k u Y Z T X Y Z Y T X Y Z u R Y Y k u Y Z T X Y Z Y T X Y Z u R Y Y k Call R X X the result Theorem T ermination and Correctness The algorithm terminates and at the end R x x i ther e exists a bisimulation which r elates states x and x Expression can b e made simpler when deterministic systems are to b e compared This is the case in Section when our theory is applied to the sync hronous language Signal Indeed in this case the computation of R can b e p erformed according to the follo wing algorithm Compute the admissible ev en ts from a giv en state in eac h system for system S compute the canonical generator of A X Z of Y T X Y Z and similarly compute A X Z for S Compute the canonical generator D X X of Z A X Z A X Z Solutions of D are pair of states x x whic h accept the same lab els on their output transitions i e whic h ha v e the same admissible ev en ts No w the greatest in v arian t has to b e computed W e iterativ ely compute p olynomial D un til stabilization as follo ws k D X X is the canonical generator of the class of k Y Y Z T X Y Z u T X Y Z D Y Y k Applications The usual sync hronous programs v eri cation practice in particular the v eri cation of safety prop erties HLR needs the use of parallel comp osition and ev en t hiding op erations Since the parallel comp osition is sync hronous the desired prop erties of a program can b e easily and mo dularly expressed b y means of an observer i e another program whic h observ es the b eha vior of the rst one and decides whether it is correct Then the same formalism can b e used to sp ecify and to v erify a complex system The v eri cation then consists in c hec king that the parallel comp osition of the t w o in tensional transition systems nev er causes the observ er to complain It ma y happ en that w e just need a subset of signals the prop ert y to v erify can b e expressed with this subset for instance the in v ariance under con trol prop ert y It requires to sp ecify the basic particular sets of states and or transitions and to use ev en t hiding W e need to mak e this handling easily a v ailable so that program transformations remain in ternal and transparen t while p o w erful description is allo w ed As far as w e are concerned IL TS mo dels are applied for the v eri cation of systems describ ed in the equational data o w sync hronous language Signal BLJ This language is widely used to sp ecify and to implemen t reactiv e systems as w ell as to v erify their prop erties There exists a lot of examples using the Signal en vironmen t among them a pro duction cell ALGMR a p o w er transformer station con troller LBMR an exp erimen t with reactiv e data o w tasking in activ e rob ot vision RMC The original m ulti clo c k data o w sync hronous language Signal manipulates a set of signals eac h signal A denotes an un b ounded series of t yp ed v alues A indexed b y t t T time t in a time domain T is a particular v alue whic h denotes the absence of the signal W e call clo ck of A the set of instan ts t when A is not absen t i e A Tw o t signals with the same clo c k are called synchr onous The kernel language Signal is based on four op erations de ning primitiv e pro cesses b y equations and a parallel comp osition to com bine equations as w ell as a signal hiding to in ternalize them In order to simplify the presen tation w e shall restrict to the b o olean fragmen t of Signal language that is the t yp e domain is tr ue f al se or absent The constructors of the language are equations of the form A expression as w ell as a parallel comp osition and an ev en t hiding Static sync hronous op erator A p A A is a b o olean function of data n A A at eac h instan t t This instruction requires all referred v ariables to ha v e the n same clo c k Deterministic merge op erator written A A default A A has the v alue of A when A is presen t otherwise it has the v alue of A Its clo c k is the union of those of A and A Selection op erator of the form A A when B links A with A when the b o olean B has v alue tr ue The result can b e seen as a do wn sampling of a signal A The clo c k of A is the in tersection of that of A and the set of instan ts when b o olean B has v alue true dev elop ed in the EP A TR researc h Group of the IRISA INRIA Institute Dela y a dynamic sync hronous op erator A B giv es access to the last v alue of signal B A and B ha v e equal clo c ks The memorizing of last v alues will giv e raise to states see b elo w P arallel comp osition of pro cesses is noted j and consists in the conjunction of the equations systems it is then asso ciativ e and comm utativ e Signal hiding nfAg hides an y o ccurrence of signal A it is in ternalized Logical Signal programs can b e translated in to p olynomials equations o v er Z follo wing the principle of co ding the p ossible v alues of a b o olean signal A b y a v ariable a v alues for a will resp ectiv ely b e and and are resp ectiv ely in terpreted b y A is pr esent and true A is pr esent and false A is absent Therefore an y signal A can b e asso ciated its clo ck a and t w o sync hronous signals A and B satisfy a b Op erators Clo c k equations Ev aluations A not A a a a a A A and A a a a a a a a a a a a a A A or A a a a a a a a a a a a a A A default A a a a a a a a a A A when B a a b b a a b b A B a b x b b x a b x T able Sync hronization constrain ts and the b o olean signal ev aluation T able sho ws ho w the programs are transformed in to p olynomial equations w e refer to LBBLG for more details leading to an IL TS mo dels seman tics Nev ertheless the dela y op erator deserv es some extra explanations A dela y requires to memorize the last v alue then di eren t from of the signal in to a state v ariable sa y x T ranslating A B imp oses to in tro duce t w o auxiliary equations x b b x where x denotes the next v alue of state v ariable x expresses the dynamics of the system a b x deliv ers the v alue of the dela y ed signal according to the memorization in state v ariable x The translation of T able is automatically p erformed b y the Signal compiler The au tomata seman tics can then b e used as a basis for the v eri cation of Signal programs T o these ends the to ol Sigali DLB o ering algebraic p olynomial computations w as dev elop ed It relies on an implemen tation of p olynomials b y T ernary Decision Diagram TDD for three v alued logics in the same spirit of BDD Bry but where the paths in the data structures are decorated b y v alues in f g instead of f g This to ol p erforms classic temp oral logics sp eci cation v eri cations whereas un til no w Signal General Signal programs with other t yp e v alues can also b e treated b y only co ding information of presence of absence of non b o olean signals programs equiv alence c hec king w as made extensionally the to ol Siga uto exp orts the TDD generated b y Sigali in order to plug other v eri cation to ols e g suc h as Alde baran F er or F ctools BRRD So the result can b e submitted to the to ol sets for further analysis graphical depiction strong bisim ulation quotien t computing etc The plug in is ac hiev ed with the pac k age OPEN CAESAR Ob viously the size of the generated transition systems limits the extensional metho ds F or instance the tr ansformer station on the p ower network whic h is widely used b y the F renc h national p o w er net w ork is represen ted b y a transition system with state v ariables and ev en t v ariables that is to sa y this transformer station can b e represen ted b y an automaton of p ossible states and arro ws The in tensional metho ds for bisim ulation c hec king as prop osed in this pap er p erfectly ts the spirit of the to ol Sigali the p olynomial language pro vides the programmer with an in termediate language to describ e algorithms o v er sets in an in tensional w a y without b othering with the underlying implemen tation W e ha v e then impro v ed the IL TS mo dels seman tics b y implemen ting the algorithm of Section for the bisim ulation decision Conclusion In this pap er w e ha v e presen ted Intensional L ab ele d T r ansition Systems in termediate mo dels for discrete ev en t systems W e ha v e studied op erations of parallel comp osition and ev en t hiding as w ell as an equiv alence criterion based on strong bisim ulation seman tics The aim of this w ork is to rely on in tensional descriptions of the systems for sym b olic v eri cation purp oses suc h as equiv alence c hec king The in tensional approac h w e pro p osed has the main adv an tage to remain at an in teresting lev el of abstraction in whic h algorithms can en tirely b e expressed whereas classic sym b olic approac hes often su er from a lac k of algorithmic language Moreo v er the in tensional formalism is completely compatible with the sym b olic tec hnics since in tensionally describ ed sets can b e represen ted b y standard decision diagrams In tensional mo dels ha v e already b een the sub ject of previous w ork LBBLG under the name of p olynomial dynamic al systems They w ere the base of the temp oral logics v eri cation to ol Sigali The results of this pap er led us to enric h the scop e of the v eri cation to ol Sigali b y implemen ting equiv alence c hec king suc h as strong bisim ulation trace equiv alence etc are under dev elopmen t on the basis of the in tensional philosoph y This application is of high in terest since Signal is used in a lot of areas con troller syn thesis LBMR rob otics RMC where mo dels equiv alence c hec king and on coming mo dels reduction functionalit y is crucial W e aim no w to fo cus on in tensional approac hes in its generalit y in the sense that not only p olynomials for nite states systems but also other formalisms on p ossibly in nite systems can b e in v estigated for the represen tation of sets still remaining decidable for e g equiv alence c hec king Ac kno wledgemen ts W e are grateful to Mic hel Le Borgne for stim ulating discussions and ideas as w ell as for helping us in implemen tion ac hiev emen t W e also w ould lik e to thank Herv e Marc hand for his thorough criticism of the draft References ALGMR T P Amagb egnon P Le Guernic H Marc hand and E Rutten Signal The sp eci cation of a generic v eri ed pro duction cell con troller F ormal Development of R e active Systems Case Study Pr o duction Cel l L e ctur e Notes in Computer Scienc e chapitr e VII pages Jan uary BC G Berry and L Cosserat The ESTEREL sync hronous programming language and its mathematical seman tics In Seminar on Concurr ency Pittsbur gh LNCS pages Springer V erlag July BLJ A Ben v eniste P Le Guernic and C Jacquemot Sync hronous programming with ev en ts and re lations the signal language and its seman tics Scienc e of Computer Pr o gr amming BRRD A Bouali A Ressouc he V Ro y and R De Simone The fc to ols set In Pr o c of the th Int Conf AMAST Munich Germany LNCS July Bry R E Bry an t Sym b olic b o olean manipulation with ordered binary decision diagrams CM c omputing Surweys pages Septem b er DLB B Dutertre and M Le Borgne Sigali un syst eme de calcul formel p our la v eri cation de programmes signal T ec hnical rep ort Institut de Rec herc he en Informatique et Syst emes Al eatoires IRISA July DR R De Simone and A Ressouc he Comp ositional seman tics of esterel and v eri cation b y comp ositional reductions Pr o c CA V LNCS Dut B Dutertre Sp eci c ation et pr euve de syst emes dynamiques PhD thesis Univ ersit e de Rennes I Septem b er F er J Cl F ernandez ALDEBARAN un Syst eme de V eri c ation p ar R e duction de Pr o c essus Commu nic ants Th ese de Do ctorat Univ Joseph F ourier Grenoble I F rance July HLR N Halb w ac hs F Lagnier and P Ra ymond Sync hronous observ ers and the v eri cation of reac tiv e systems In Pr o c of the Thir d Int Conf on A lgebr aic Metho dolo gy and Softwar e T e chnolo gy AMAST Twente Springer V erlag June KP O Kushnarenk o and S Pinc hinat In tensional approac hes for sym b olic metho ds T ec hnical rep ort Institut National de Rec herc he en Informatique et en Automatique INRIA T o app ear LBBLG M Le Borgne A Ben v eniste and P Le Guernic P olynomial dynamical systems o v er nite elds In G Jacob and F Lamnabhi Lagarrigue editors A lgebr aic Computing in c ontr ol v olume of L e ctur e Notes in Contr ol and Information Scienc es pages Marc h LBMR M Le Borgne H Marc hand and E Rutten F ormal v eri cation of signal programs Application to a p o w er tranformar station con troller In Pr o c of the th Int Conf AMAST Munich Germany LNCS pages July Mil R Milner A complete axiomatisation for observ ational congruence of nite state b eha viours Infor mation and Computation P ar D P ark Concurrency and automata on in nite sequences In Pr o c th GI Conf on Th Comp Sci LNCS pages Springer V erlag Marc h Pla J A Plaice S emantique et Compilation de LUSTRE un L angage D eclar atif Asynchr one Th ese de Do ctorat I N P de Grenoble F rance Ma y RMC E Rutten E Marc hand and F Chaumette An exp erimen t with reactiv e data o w tasking in activ e rob ot vision Softwar e Pr actic e Exp erienc e Ma y Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Ć Pro jectable seman tics for Statec harts Andrea Maggiolo Sc hettin i and Simone Tini Dipartimen to di Informatica Univ ersit a di Pisa Corso Italia Pisa Italy e mail fmaggiolo tinig d i uni p i i t Abstract It has b een pro v ed that it is imp ossible to com bine in one seman tics for reactiv e systems the notions of mo dularit y causalit y and sync hronous h yp othesis This limits b ottom up dev elopmen t of sp eci cations In this pap er w e in tro duce the notion of pro jectabilit y whic h is w eak er than mo dularit y w e de ne a non global consisten t seman tics for Statec harts that enforces pro jectabilit y causalit y and sync hronous h yp othesis and w e pro v e that no global consisten t seman tics for Statec harts can enforce these three notions In tro duction The visual formalism Statec harts has b een prop osed in for the sp eci cation of r e active systems i e systems that main tain an ongoing in teraction with their en vironmen t b y con tin uously reacting to external stim uli Statec harts extends state transitions diagrams with the notions of hierarc h y explicit represen tation of parallelism and broadcast comm unic ation of signals According to the principle of synchr onous hyp othesis a statec hart is supp osed to react instan taneously to prompts from its en vironmen t As a consequence inputs from the en vironmen t and outputs of a statec hart come instan taneously In prop erties of c ausality and mo dularity for formalisms that enforce the sync hronous h yp othesis ha v e b een in v estigated Causalit y means that for eac h ev en t generated b y a system at a particular momen t there exists an ev en t generated b y its en vironmen t that directly or indirectly causes it Causalit y ensures that reactiv e systems are really driv en b y their en vironmen t Mo dularit y means rstly that if t w o systems are put together Researc h partially supp orted b y Esprit BRA LOMAPS and b y CNR Progetto Strategico Mo delli e Meto di p er la Matematica e l Ingegneria to form a new one they see eac h other b eha viors as sequences of input output pairs exactly as the en vironmen t sees them No inner details of the execution of a system can b e seen b y the other A second asp ect is the uniformit y of the view ev ery subsystem has namely that when an ev en t is generated it is broadcast all around and ev ery subsystem has the same view at an y momen t Finally a reaction of the comp ound system is a com bination of reactions of its subsystems This means that the b eha vior of a system is de ned once and for all and one can freely insert this in whatso ev er con text b eing sure that it main tains its b eha viors This is needed to dev elop b ottom up sp eci cations Unfortunately in it is pro v ed that sync hronous h yp othesis causalit y and mo dularit y cannot b e com bined in one seman tics In this pap er w e in tro duce a notion w eak er than that of mo dularit y the notion of pr oje ctability Pro jectabilit y do es not require that the comp osition of subsystems is de ned b y abstracting from causalit y of their in ternal ev en ts so one ma y com bine sync hronous h yp othesis pro jectabilit y and causalit y No w t w o kinds of seman tics ha v e b een prop osed for Statec harts non global and global consisten t ones W e de ne a new non global consisten t seman tics for Statec harts and w e pro v e that it enforces pro jectabilit y causalit y and sync hronous h yp othesis Then w e pro v e that there is no global consisten t seman tics enjo ying the same prop ert y Statec harts Statec harts are state transitions diagrams with a tree lik e structuring of states States ma y b e basic or states and and states allo wing to represen t parallelism A transition b et w een t w o states is lab eled b y a set of p ositiv e and negativ e signals the trigger and a set of p ositiv e signals the action of the transition Here w e assume that source and target state of a transition are b oth imme diate substates in the tree lik e structure of the same or state namely transitions cannot cross b orders of states F ormally a statec hart z is a tuple hS T in out i z z z z z z z z z where S is the non empt y nite set of states z S z S is the hier ar chy function for s S s denotes the least S S z z z z z suc h that s S and s S for all s S and s denotes s fsg z z z z describ es a tree lik e structure namely a There exists a unique s S denoted r oot s t s S z z z z b s s for s S z z c If s s then either s s or s s for s s S z z z z z A state s is b asic i s z S fO R AN D g is the partial state typ e function de ned only for all z z non basic states States with t yp e OR are called or states states with t yp e AND are called and states S S is the partial default function de ned only for or states so that z z z s s implies that s s F or s S s denotes the least S S s z z z z z t s S for eac h s S of t yp e AND s S and for eac h s S of t yp e OR z s S z T is the nite set of tr ansitions z in out T S fr oot g are the tar get and the sour c e functions It is z z z z z required that for eac h t T there exists a state s S suc h that s O R z z z and in t out t s z z z is the nite set of signals F or eac h a a denotes the negation of a F or z z eac h Y Y is the set fa ja Y g z z z z T is the lab eling function the rst comp onen t of t is z z z denoted b y tr ig g er t and is the trigger of t the second comp onen t of t is z denoted b y action t and is the action of t Giv en states s s of a statec hart z l ca s s denotes the lo w est common ancestor z of s and s i e the state s suc h that s s s and for eac h s s ful lling the z same requiremen t s s F or a transition t l ca t denotes the state l ca in t z z z z out t z The limiting assumption that transitions do not cross b orders of states seems to b e natural if one w an ts b ottom up dev elopmen t of sp eci cations Giv en a state s w e denote b y tr ans s the set of all the transitions t s t l ca t is z a substate of s The seman tics of a statec hart is giv en in terms of steps that tak e the statec hart from a con guration to another A c on gur ation of a statec hart is a maximal set of states ful lling the requiremen t that if an and state is in the con guration then all its substates are in it and if an or state is in the con guration then exactly one of its substates is in it The default c on gur ation is the con guration suc h that for eac h or state in it its default state giv en b y the default function is in the con guration A t eac h instan t of time the en vironmen t prompts the statec hart with a set of signals Signals are assumed to b e broadcast A transition is trigger e d b y a set of signals if all p ositiv e signals of its trigger are comm uni cated and no signal app earing negated in the trigger is comm unic ated A triggered transition ma y r e and broadcast the signals in its action The statec hart reacts to a prompt from the en vironmen t b y p erforming a set of transitions called a step When a step T is p erformed from con guration C a new S S con guration C C out t t is en tered In order to ha v e nite z t T t T z z reactions it is required that for eac h pair of transitions t t in a step T t and t are c onsistent i e l ca t l ca t AN D As the sync hronous h yp othesis is assumed z it is mandatory to ha v e only nite reactions No w since the in tro duction of the formalism v arious seman tics for Statec harts ha v e b een prop osed In most of them are compared and related As already men tioned the seman tics prop osed can b e non global consisten t see the seman tics in and global consisten t see the seman tics in dep ending on the in terpretation of negativ e signals In non global consisten t seman tics negation is in terpreted as not y et Steps are computed as sequences of sets of transitions microsteps T T T suc h that for k eac h t t T t and t are consisten t and all transitions in T are triggered b y signals i comm uni cated b y either the en vironmen t or transitions in T T for i k i No w transition t ha ving a in its trigger and transition t ha ving a in its action can b e in a step T T T pro vided that t is in a microstep T and t is in a microstep k i T with i j j In global consisten t seman tics negation is in terpreted as nev er Steps are computed as xp oin ts of some equations and in a step there are nev er a transition t with a in its trigger and a transition t comm unicating a In it is argued that non global consisten t seman tics allo w to distinguish clearly a cause from its e ect and therefore are more in tuitiv e The idea is that a sequence of microsteps de nes a partial order among transitions and this order re ects causalit y On the con trary global consisten t seman tics allo w to ha v e a logical view of signals Signals can b e in terpreted as b o olean v ariables and steps can b e computed as solutions of sets of b o olean equations Causalit y is enforced b y considering only minim al solutions This approac h needs to reject programs giving rise to equations systems ha ving no solution for some input Pro jectabilit y Consider no w the statec hart z in Fig with the non global consisten t seman tics of explained ab o v e There exists a deterministic c hoice b et w een transitions t and t and a deterministic c hoice b et w een t and t Statec hart z reacts to either b y p erforming step ft t g if a or b y p erforming step ft t g otherwise Step ft t g can b e computed either as the sequence of microsteps ft g ft g or as the sequence ft g ft g a a a a t a t t t t R R z z Figure or as the sequence ft t g The step ft t g is computed analogously There are no other steps and the reac hable con gurations are only f g f g and f g Let us consider no w the statec hart z obtained b y comp osing in parallel z and z If the en vironmen t prompts the empt y set of signals then step ft t t g can b e computed as the sequence of microsteps ft g ft g ft g No w z p erforms the set of transitions ft t g whic h is none of its steps and reac hes the con guration f g whic h is none of its reac hable con gurations F or the dev elopmen t of sp eci cations in a b ottom up fashion one reasonably requires that subsystems p erform their tasks for whic h they ha v e b een designed and only these when inserted in whatso ev er con text Let us consider no w the notion of mo dularit y of a reactiv e system in tro duced in hI O i Let S S denote the fact that the reactiv e system S reacts instan taneously to input I b y resp onding with output O and b y rewriting itself in to S W e denote b y S k S the parallel comp osition of S and S A seman tics is mo dular i the follo wing condition holds hI O O i hI O O i hI O O i S S S S S k S S k S When S and S are comp osed in parallel they see eac h other as a sequence of pairs hI O i exactly as the en vironmen t sees them The parallel comp osition of S and S is de ned b y considering only their input output in terface i e b oth S and S are view ed as blac k b o xes and no inner detail of the execution of one of them is kno wn b y the other Moreo v er the output of one system is imme diately a v ailable as input to the other This implies the uniformit y of the view ev ery subsystem has of what is going on In it is pro v ed that mo dularit y and causalit y cannot b e com bined hfag fbgi with sync hronous h yp othesis T o see this fact let us assume that S S and hfbg fagi h fa bgi S S Mo dularit y implies that S k S S k S Therefore there exists a causal lo op b et w een a and b The seman tics of Esterel and Argos are mo dular and programs in whic h causalit y lo ops ma y o ccur are rejected Another asp ect of mo dularit y is that eac h reaction of the system S k S is the union of a reaction of S and a reaction of S The consequence is that the seman tics of S resp S view ed as a complete system is preserv ed when it runs in parallel with S resp S In this case w e are sure that S resp S reac hes con gurations that are reac hable also when it runs as a complete system The notion of pro jectabilit y coincides with this asp ect of mo dularit y F ormally a seman tics is pr oje ctable i the follo wing condition holds hI O O i hI O O i hI O O i S k S S k S S S S S whic h means ob viously that a mo dular seman tics is pro jectable but not vicev ersa In the case of Statec harts w e m ust tak e care of the hierarc h y when de ning the notion of pro jectabilit y De nition A semantics for State charts is pro jectable i given a state chart z and a step T fr om c on gur ation C to c on gur ation C then for e ach state s C C the set of tr ansitions T tr ans s is a step of the state chart having s as r o ot state W e giv e no w our non global consisten t seman tics for Statec harts First of all w e giv e our de nition of microstep De nition F or a state chart z in a c on gur ation C a se quenc e of alr e ady r e d sets S of tr ansitions T T T and a set of signals action t a set T is a k t T microstep i for e ach t T t is trigger e d by for e ach t t T T t and t ar e c onsistent for e ach state s C it holds that if tr ans s T T then ther e do es not exist any tr ansition t such that a t T T S b t is trigger e d by the set of signals tr ig g er t action t z t T tr ans s S tr ig g er t and t t ar e c onsistent for e ach t T T t T tr ans s c a j a tr ig g er t t T tr ans s s t a tr ig g er t t z T T tr ans s s t a action t for e ach state s C it holds that if t T tr ans s t T tr ans s a z tr ig g er t a tr ig g er t then ther e exists t T tr ans s with a action t Con gur ation C C f out t j t T g in t is reac hed fr om C by me ans z z z z of T t a b t c t ac t b ac z Figure Condition ensures that giv en transitions t t tr ans s b oth ha ving a in their z S trigger t T T t T T t triggered b y the set of signals tr ig g er t t T tr ans s S action t tr ig g er t then there do es not exist an y transition t z t T tr ans b tr ans s with t T T and a action t The reason is that if the statec hart ha ving s as ro ot state p erforms t and transition t is triggered then either a transition in tr ans s comm unicates a signal that disallo ws t or t is p erformed Condition ensures that giv en transitions t t tr ans s with t T and t T and a signal a z with a tr ig g er t and a tr ig g er t then signal a is pro duced b y another transition of s The reason is that if s when view ed as a complete statec hart p erforms t then it needs to pro duce a transition ha ving a in its action in order to trigger t De nition Given c on gur ations C C C a set of signals sets of tr ansitions n T T such that n T is a micr ostep for z in c on gur ation C sets of tr ansitions T T set of i i i signals factions t jt T T g i n i C is r e ache d fr om C by me ans of T i n i i i ther e do es not exist any micr ostep T for z in c on gur ation C sets of n tr ansitions T T set of signals factions t jt T T g n n T T T is a step for z in c on gur ation C and C is the c on gur ation reac hed n n fr om C by me ans of T As an example let us consider statec hart z in Fig in its initial con guration If the en vironmen t prompts the empt y set of signals the rst microstep is ft g the next is ft g No w ft g ft g is a step computed as sequence of microsteps ft g ft g T ransition t is triggered but all p ositiv e signals app earing in the trigger and in the action of t and in the trigger of t trigger t whic h is not triggered due to the presence of signal a pro duced b y t So ft g is not a microstep for condition of Def Prop osition The semantics of de nitions and is pr oje ctable Pro of Let us supp ose that T T T is a step from con guration C of statec hart n S z where s C No w let us consider the set of signals fa tr ig g er t t T tr ans s action t j t T tr ans s a tr ig g er t g F or suc h en vironmen t state s z view ed as a complete statec hart can execute the sequence of microsteps tr ans s T tr ans s T Let us consider the set of transitions T T tr ans s and n k the sequence of red sets of transitions T T tr ans s T tr ans s for k some k n The set T satis es condition in Def In fact if there exists S a transition t T s t t is not triggered b y action t then T do es not k t T satisfy condition of Def The fact that T satis es conditions and of k Def implies that T satis es the same conditions No w assume that the sequence of microsteps tr ans s T tr ans s T is not maximal Then there exists a transition n t tr ans s t T whic h is triggered b y fa j t T tr ans s a action t g So there m ust b e a tr ig g er t suc h that a action t for some t T tr ans s z No w there can b e t w o cases t T tr ans s with a tr ig g er t In this case w e put fag and reiterate the reasoning t T tr ans s with a tr ig g er t In this case condition of Def is not satis ed for some microstep in T This completes the pro of F ollo wing w e could easily giv e a comp ositional formalization of the seman tics of de nitions and b y means of Lab eled T ransition Systems Note that in general comp ositionalit y do es not imply pro jectabilit y as it is sho wn b y the comp ositional seman tics in where a reaction of a comp ound system is obtained b y com bining incomplete reactions of its subsystems In global consisten t seman tics all transitions in a step T m ust b e triggered b y signals comm uni cated b y b oth the en vironmen t and transitions of T As already noticed in global consistency and mo dularit y lead to seman tical problems Assume that w e ha v e hfa g fbgi hfbg fagi S S and S S No reaction is de ned when the comp ound system S k S is prompted with the empt y set of signals In this case it is said that S k S has a non r e active b eha vior in the sense that the system is not able to resp ond to the en vironmen t Esterel and Argos reject programs that ma y ha v e non reactiv e b eha viors a b a b a b t t t t R R z z Figure The philosoph y of Statec harts seems to b e con trary to rejecting b eha viors at the syn tactical lev el The original seman tics of pro vides the lac k of a reaction in cases lik e the one of the example ab o v e Tw o seman tics ha v e b een prop osed that enforce reactivit y namely that assign a reactiv e b eha vior to ev ery sp eci cation see and According to the seman tics of the comp ound system S k S as ab o v e w ould react to the empt y input b y comm uni cating signal b and b e rewritten in to S k S The approac h in is that S k S reacts to the empt y input b y p erforming the empt y reaction i e it comm uni cates no signal and it is rewritten in to itself So for b oth the seman tics when one comp oses t w o statec harts the comp ound step do es alw a ys exist Ho w ev er suc h seman tics ma y pro vide that in some en vironmen t one comp onen t of the system do es not mak e an y transition ev en though for eac h en vironmen t suc h comp onen t considered as a whole system nev er p erforms the empt y step F or this reason one cannot exp ect to ha v e pro jectabilit y Prop osition No glob al c onsistent semantics c an enfor c e r e activity c ausality pr oje ctability and synchr onous hyp othesis Pro of Let us consider the t w o statec harts z and z in Fig If w e consider z for eac h input set of signals either t or t is triggered and therefore p erformed Analogously if w e consider z for eac h input set of signals either t or t is triggered and therefore p erformed No w let us consider the statec hart z obtained b y comp osing z and z in parallel Assume that z p erforms step T from its default con guration for the empt y input set of signals Pro jectabilit y implies that eac h step T m ust satisfy the follo wing condition T ft t g T ft t g Global consistency implies that T ft t g and T ft t g Causalit y implies that T ft t g and T ft t g Therefore no step T exists References M v on der Beek A Comp arison of State charts V ariants Lecture Notes in Computer Science pp Springer Berlin G Berry and G Gon thier The ESTEREL Synchr onous Pr o gr amming L anguage Design Semantics Implementation Science of Computer Programming pp D Harel and A Pn ueli On the Development of R e active Systems In K R Apt editor Logic and Mo dels of Concurren t Systems NA TO ASI pp Springer Berlin D Harel State charts A Visual F ormalism for Complex Systems Science of Computer Programming pp D Harel A Pn ueli J P Sc hmidt and R Sherman On the formal Semantics of State charts In Pro c Second IEEE Symp on Logic in Computer Science pp IEEE Computer So ciet y Press New Y ork C Huizing and R Gerth Semantics of R e active Systems in A bstr act Time Lecture Notes in Computer Science Springer Berlin pp J J M Ho oman S Ramesh and W P de Ro ev er A Comp ositional Axiomatization of State charts Theoretical Computer Science pp F Maraninc hi Op er ational and Comp ositional Semantics of Synchr onous A utomaton Comp osition In Pro c of CONCUR Lecture Notes in Computer Science pp Springer Berlin A Maggiolo Sc hettini A P eron and S Tini Equivalenc e of State charts In Pro c of CONCUR Lecture Notes in Computer Science pp Springer Berlin J Philipps and P Sc holtz Comp ositional Sp eci cation of Em b edded Systems with Statec harts In Pro c of T APSOFT Lecture Notes in Computer Science pp Springer Berlin A Pn ueli and M Shalev What is in a Step on the Semantics of State charts Lecture Notes in Computer Science pp Springer Berlin A C Uselton and S A Smolk a A Pr o c ess A lgebr aic Semantics for State charts In Pro c of CONCUR Lecture Notes in Computer Science pp Springer Berlin Strict Lo w er Bounds for Mo del Chec king BP A Ric hard Ma yr Institut f ur Informatik T ec hnisc he Univ ersit at M unc hen Arcisstr D M unc hen German y e mail mayrri in for mat ik tu mu enc he n d e fax W eb http www i nf orm ati k t u mue nch en de m ayr ri Abstract W e sho w strict lo w er b ounds for the complexit y of sev eral mo del c hec king problems for BP A and branc hing time logics Mo del c hec king with Hennessy Milner Logic PSP A CE hard while mo del c hec king with the mo dal calculus is EXPTIME hard By com bining these results with already established upp er b ounds it follo ws that the mo del c hec king problems are PSP A CE complete and EXPTIME complete resp ec tiv ely In tro duction Basic Pro cess Algebra BP A pro cesses w ere de ned b y Bergstra and Klop in BK They are transition systems asso ciated with Greibac h normal form GNF con text free grammars in whic h only left most deriv ations are p ermitted BP A pro cesses are also called c ontext fr e e pr o c esses They are a sub class of pushdo wn pro cesses where the nite con trol of the pushdo wn automaton has only one state It has b een kno wn for some time that mo del c hec king pushdo wn pro cesses with the mo dal calculus is EXPTIME complete W al a W al b F urthermore the problem is ev en EXPTIME hard for a xed form ula in the alternation free mo dal calculus F or the m uc h simpler logic EF the mo del c hec king problem for pushdo wn pro cesses is PSP A CE complete BEM Again the hardness result ev en holds for a xed EF form ula F or CTL the complexit y is only kno wn to b e b et w een PSP A CE and EXPTIME There is an imp ortan t di erence b et w een BP A and pushdo wn pro cesses in the complexit y of mo del c hec king Burk art and Ste en BS sho w ed that for ev ery xed form ula in the alternation free mo dal calculus the mo del c hec king problem is p olynomial in the size of the BP A pro cess Later W alukiewicz W al a W al b generalized this result to the full mo dal calculus The algorithms for BP A w ere only exp onen tial in the size of the form ula So far there ha v e b een no hardness results for mo del c hec king BP A not ev en for the full mo dal calculus On the other hand mo del c hec king nite state systems with the alternation free mo dal calculus is linear SC SW and mo del c hec king nite state systems with the full mo dal calculus is in N P co N P EJS SW Mad and so migh t b e p olynomial as w ell It has th us b een conjectured that at least some mo del c hec king problems for BP A migh t b e p olynomial Here w e sho w that this is not the case Ev en for the simple Hennessy Milner Logic mo del c hec king BP A is PSP A CE hard F or the mo dal calculus mo del c hec king is EXPTIME hard In fact this hardness result ev en holds for the alternation free mo dal calculus The rest of the pap er is structured as follo ws In Section w e de ne BP A and the logics that are used here In Section w e sho w the hardness result for Hennessy Milner Logic and in Section w e sho w the hardness result for the alternation free mo dal calculus In Section w e presen t the general picture of the complexit y of mo del c hec king BP A Preliminaries a W e describ e BP A pro cesses b y nite sets of rewrite rules of the form X where X is a single sym b ol a A ct is an atomic action and is a sequence of sym b ols The rewriting formalism is pre x rewriting whic h means that the rules are only applied at the leftmost p osition in the term The form ulae of Hennessy Milner Logic ha v e the follo wing syn tax true j j j hai The denotation of a form ula is a subset of the set of states that is de ned inductiv ely as follo ws true a hai fs j s s s s g The mo dal calculus Koz is a xp oin t logic It is the extension of Hennessy Milner Logic b y v ariables and xp oin t op erators The seman tics of form ulae is de ned w r t a v aluation V V ar that assigns ev ery v ariable X in the logic a set of states whic h satisfy it X V X V The syn tax and seman tics of the minimal xp oin t op erator is de ned b y X fS j S g V V X S where V X if X X V X S X S if X X In mo del c hec king w e use only close d formulae These are the form ulae where ev ery v ariable is b ound b y a xp oin t op erator Also there is the restriction that ev ery v ariable o ccurs within the scop e of an ev en n um b er of negations The prop ert y that s is also denoted b y s j Hardness of Hennessy Milner Logic In this section w e sho w that mo del c hec king BP A with Hennessy Milner Logic is PSP A CE hard W e do this b y reducing the problem of quan ti ed b o olean form ulae QBF to the mo del c hec king problem Let n I N and x x b e b o olean v ariables W r w e assume that n is ev en A literal n is either a v ariable or the negation of a v ariable A clause is a disjunction of literals The quan ti ed b o olean form ula Q is giv en b y Q x x x x x Q Q n n k where the Q are clauses The problem is if Q is v alid W e reduce this problem to the i mo del c hec king problem The in tuition is that rst w e nondeterministically c ho ose v alues for the v ariables and then c hec k if these c hoices satisfy Q The existen tial or univ ersal nature of these c hoices is handled b y the Hennessy Milner Logic form ula No w w e de ne a BP A with initial sym b ol Z c Z Z X c Z Z X c Z Z X c Z Z X c n Z Z X n n n c n Z Z X n n n z n Z n q j F urthermore w e add rules X X if the literal x is in the clause Q for an y i n i i i j and j k q j In the same w a y w e add rules X X if the literal x is in the clause Q for an y i i i j i n and j k i No w w e construct the Hennessy Milner Logic form ula W e use the abbreviation hdi for hdi hdi i times The form ula is hc i c hc i c hc i c hz i n n n k where i hdi hq itrue j j i n It follo ws that Q is v alid i Z j Note that the size of is O n k Th us is not a xed form ula but gro ws p olynomially with the size of Q Also the BP A pro cess has size O nk Since QBF is PSP A CE complete w e get the follo wing lemma Lemma Mo del che cking BP A with Hennessy Milner L o gic is PSP A CE har d It w as sho wn in BEM that ev en for the more general logic EF and pushdo wn pro cesses mo del c hec king can b e done in p olynomial space Th us w e get the follo wing theorem Theorem Mo del che cking BP A with EF or Hennessy Milner L o gic is PSP A CE c omplete Hardness of the Mo dal Calculus W alukiewicz W al a W al b has sho wn that mo del c hec king pushdo wn pro cesses with the mo dal calculus is EXPTIME complete EXPTIME hardness ev en holds for a xed form ula in the alternation free mo dal calculus This hardness result do es not carry o v er to BP A In fact for ev ery xed mo dal calculus form ula mo del c hec king is p olynomial in the size of the BP A pro cess Here w e sho w that mo del c hec king BP A with general non xed form ulae in the alternation free mo dal calculus is EXPTIME hard This is sho wn b y a reduction from the acceptance problem for linearly space b ounded alternating T uring mac hines An alternating T uring mac hine A TM is describ ed b y a tuple Q q l where Q are the states of the nite con trol the tap e sym b ols the transition relation q the initial state and l is a function that lab els states as existen tial univ ersal accepting or rejecting The computation of an A TM is de ned just lik e the computation of a normal T uring mac hine but the acceptance condition is more complex Since the mac hine is nondeterministic the computation can b e represen ted as a computation tree in whic h the branc hes represen t di eren t p ossible computations The states of the nite con trol of the A TM are assigned lab els b y the function l as existen tial univ ersal accepting or rejecting No w the states in the computation tree are lab eled as accepting or rejecting b y the follo wing rules A leaf of the computation tree is lab eled accepting rejecting if the nite con trol of the A TM in this state is accepting rejecting An in ternal no de where the nite con trol is lab eled univ ersal existen tial is accepting if and only if all at least one of its successor no des are is accepting Otherwise it is rejecting A no de is lab eled unde ned if the lab el cannot b e determined b y the other rules This only happ ens if there are in nite branc hes Without loss of generalit y let j q a j for ev ery univ ersal state q and sym b ol a W e c ho ose an arbitrary order on the t w o elemen ts of q a and call them the rst and second successor con guration of q a An A TM M is called linearly b ounded if there is a constan t k suc h that for ev ery w ord w in the language of M M has an accepting computation that uses at most k jw j space Let n k jw j W e only consider linearly b ounded A TMs and th us a v oid the problem of in nite branc hes and unde ned lab els The acceptance problem for linearly b ounded alternating T uring mac hines is EXPTIME complete vL The idea is to guess a sequence of con gurations of the A TM and to store this sequence in a BP A pro cess term A form ula in the alternation free mo dal calculus is used to c hec k if this sequence represen ts an accepting computation of the A TM Let M Q q l b e the A TM w the input w ord and n k jw j the length of the tap e Let M s head b e o v er the rst cell of the tap e W e construct in p olynomial time a BP A with initial state q w and an alternation free mo dal calculus form ula s t M accepts w i q w j w r t The rules for the BP A are as follo ws put T a for ev ery a put T T a for ev ery a i n i i put T T q for ev ery q Q i n i i put T T a for ev ery a i n i i put T n a a for ev ery a q q for ev ery q Q dr op a for ev ery a dr op q for ev ery q Q dr op The size of this set of rules is O n No w in ev ery state where the sym b ol is at the top the state has the form d d d where the d are con gurations of the A TM m i Ev ery d has the form u q u where q Q is the state u is the con ten ts of the tap e under i the head and to the righ t of it and u is the con ten ts of the tap e to the left of the head u can b e empt y but u cannot Also w e ha v e that length u length u n No w w e de ne some auxiliary form ulae Let Q Q b e the set of accepting states ac c Q Q b e the set of univ ersal states and Q Q b e the set of existen tial states The univ ex form ula ac c ept means that the top sym b ol is and the state in the upp ermost con guration d is accepting i ac c ept h i hdr op i hq itrue i n q Q ac c The form ulae univ and ex are de ned in the same w a y with Q or Q resp ectiv ely univ ex These form ulae ha v e size O n The form ula suc c enco des the prop ert y that the state has the form d d d for m some m and that the con guration d is a successor con guration of d The actual construction is cum b ersome and dep ends on the A TM M Ho w ev er it is easy to see that it can b e done with the help of the follo wing form ulae Let x Q and i f ng means that the i th sym b ol in d is x x i i h ihdr op i hxitrue x i means that the i th sym b ol in d is x x i n i h ihdr op i hxitrue x i Note that b oth d and d ha v e length n b ecause the state q coun ts to o In the same w a y form ulae suc c suc c can b e constructed that mean that the con guration d is the rst successor second successor of d if d is a univ ersal con guration The form ulae x i ha v e size O n and the form ulae suc c suc c and suc c ha v e size O n x i No w w e are ready to construct the form ula X ac c ept n univ hput i suc c X n hput i suc c X n ex hput i suc c X Note that is a v ery simple form ula since it uses only one xp oin t op erator Th us it is a form ula in the alternation free mo dal calculus The size of is O n W e ha v e that q w j i M accepts w Lemma Mo del che cking BP A with the alternation fr e e mo dal c alculus is EXPTIME har d Con tainmen t in EXPTIME has b een sho wn in W al a W al b Th us w e get the follo wing theorem Theorem Mo del che cking BP A with the ful l mo dal c alculus and the alternation fr e e mo dal c alculus is EXPTIME c omplete Conclusion The results on the complexit y of mo del c hec king BP A can b e summarized as follo ws BP A general xed form ula Hennessy Milner Logic PSP A CE complete P EF PSP A CE complete P alt free mo dal calc EXPTIME complete P mo dal calc EXPTIME complete P In comparison mo del c hec king pushdo wn pro cesses is harder in the case of xed form ulae Pushdo wn general xed form ula Hennessy Milner Logic PSP A CE complete P EF PSP A CE complete PSP A CE complete alt free mo dal calc EXPTIME complete EXPTIME complete mo dal calc EXPTIME complete EXPTIME complete These results solv e most complexit y questions for branc hing time logics except for CTL The EXPTIME hardness pro of in Section do es not carry o v er to CTL F or b oth BP A and pushdo wn pro cesses mo del c hec king with CTL is only kno wn to b e b et w een PSP A CE and EXPTIME T o complete the picture mo del c hec king pushdo wn pro cesses with L TL and the linear time calculus is EXPTIME complete but p olynomial for ev ery xed form ula BEM It has b een sho wn in Ma y that EXPTIME hardness ev en holds for BP A and L TL References BEM A Boua jjani J Esparza and O Maler Reac habilit y analysis of pushdo wn automata application to mo del c hec king In International Confer enc e on Con curr ency The ory CONCUR v olume of LNCS Springer V erlag BK J A Bergstra and J W Klop Algebra of comm unicating pro cesses with ab straction The or etic al Computer Scienc e TCS BS O Burk art and B Ste en Mo del c hec king for con text free pro cesses In Pr o c of CONCUR v olume of LNCS pages EJS E Emerson C S Jutla and A Sistla On mo del c hec king for fragmen ts of calculus In Pr o c e e dings of CA V v olume of LNCS pages Springer V erlag Koz D Kozen Results on the prop ositional calculus TCS Mad A Mader V eri c ation of Mo dal Pr op erties Using Bo ole an Equation Systems PhD thesis TU M unc hen Ma y R Ma yr De cidability and Complexity of Mo del Che cking Pr oblems for In nite State Systems PhD thesis TU M unc hen SC B Ste en and R Clea v eland A linear time mo del c hec king algorithm for the alternation free mo dal m u calculus International Journal on F ormal Metho ds in System Design SW C Stirling and D W alk er Lo cal mo del c hec king in the mo dal calculus The or etic al Computer Scienc e vL J v an Leeu w en editor Handb o ok of The or etic al Computer Scienc e V olume A A lgorithms and Complexity Elsevier W al a I W alukiewicz Pushdo wn pro cesses games and mo del c hec king In International Confer enc e on Computer A ide d V eri c ation CA V v olume of LNCS Springer V erlag W al b I W alukiewicz Pushdo wn pro cesses games and mo del c hec king T ec hnical Rep ort RS BRICS Aarh us Denmark Longer v ersion of a CA V pap er Derivation of Characteristic Formulae Markus M¨uller-Olm Department of Computer Science University of Dortmund 44221 Dortmund, Germany e-mail: mmo@ls5.informatik.uni-dortmund.de Abstract We show how modal mu-calculus formulae characterizing finite-state processes up to strong or weak bisimulation can be derived directly from the well-known greatest fixpoint characterizations of the bisimulation relations. Our derivation simplifies ear- lier proofs for the strong bisimulation case and, by virtue of derivation, immediately generalizes to various other bisimulation-like relations, in particular weak bisimula- tion. 1 Introduction By a classic result of Hennessy and Milner [2, 7] two (image-finite) processes are strongly bisimilar if and only if they satisfy exactly the same formulae of a simple modal logic, now often called Henessy-Milner-Logic (HML). In particular, for any two non-bisimilar processes P, Q there is an HML formula satisfied by P but not by Q. This result shows that HML is sufficiently expressive for distinguishing processes up to strong bisimulation. In another sense, however, the expressiveness of HML is too poor: there is in general no single formula, i.e. no characteristic formula, satisfied by just the processes bisimilar to a given process P . Bisimulation classes are thus only characterized by sets of formulae. Graf and Sifakis [1] show that characteristic formulae can be constructed for finite, i.e. non-cyclic, CCS processes in the modal mu-calculus, an extension of HML with fixpoint for- mulae. This result has been extended to finite-state processes by Steffen and Ing´olfsd´ottir [9, 10]. While Graf and Sifakis considered strong bisimulation and observational congru- ence, Steffen and Ing´olfsd´ottir are concerned with the so-called strong divergence preorder of CCS, a variant of strong bisimulation that takes information about divergence (i.e. in- ternal non-termination) into account. It is not difficult to modify the latter in order to obtain characteristic formulae for strong bisimulation. It is, however, less obvious how to construct characteristic formulae for weak bisimulation-like relations. Actually, [9] pro- poses to treat weak bisimulation by transforming the processes in such a way that weak bisimilarity of the original processes corresponds to strong bisimulation of the transformed ones. Then the characteristic formulae for strong bisimulation could be applied on the transformed processes. This approach, however, due to the necessity of transformation does not lead to actual characteristic formulae. The contribution of this paper is a direct derivation of characteristic formulae from the classic greatest fixpoint characterization of (strong and weak) bisimulation. On the one hand, this provides a more elegant proof of the characterization property. On the other hand it immediately indicates how to construct characteristic formulae for other bisimulation-like process relations, like the various divergence relations discussed in [12], in particular for the weak versions. We proceed as follows. In the next section we define the modal mu-calculus and labeled transition systems as basic model of processes and introduce equation systems. Section 3 defines the notion of strong bisimulation. In the following section we derive a character- istic equation system of a finite-state process from the fixpoint characterization of strong bisimulation. Section 5 generalizes this to weak bisimulation. In the section thereafter we indicate how to construct actual characteristic formulae from characteristic equation systems. The paper finishes with some concluding remarks. 2 Modal mu-Calculus, Processes, and Equation Sys- tems The modal mu-calculus [4] is a small, yet expressive process logic. It is defined over a given finite set A of actions. We consider in this paper modal mu-calculus formulae in positive normal form which are constructed according to the following grammar: ::= true | false | 1 2 | 1 2 | a | [a] | X | µX . | X . Here, X ranges over an infinite set Var of variables and a over the assumed action set A. The two fixpoint operators µX and X bind the respective variable X and we will apply the usual terminology of free and bound variables in a formula, closed formula etc. Moreover, we write for a finite set M of formulae M and M for the conjunction and disjunction of the formulae in M. As usual, we agree that = true and = false. Modal mu-calculus formulae are interpreted over processes, which are modeled by la- beled transition systems with a designated start state. Formally, a process is a structure P = (S, A, P, s0), where S is a set of states, A is the above (finite) set of actions, P S × A × S is a transition relation, and s0 is the initial state. Throughout this paper we assume that the constituting parts of a process named P are S, A, P, and s0 and the ones of a process named Q are T , A, Q and t0. A process P is called finite-state if the underlying state set S is finite. Suppose given a process P for the remainder of this section. The subset of states that satisfy a formula , denoted by MP ( )( ), is inductively defined in Fig. 1. As usual we refer to environments, partial mappings : Var part. 2S, which interpret at least the free variables of by subsets of S, in order to explain the meaning of open formulas. For a set MP (true)( ) = S MP (false)( ) = MP ( 1 2)( ) = MP ( 1)( ) MP ( 2)( ) MP ( 1 2)( ) = MP ( 1)( ) MP ( 2)( ) MP ( a )( ) = {s | s : s a s s MP ( )( )} MP ([a] )( ) = {s | s : s a s s MP ( )( )} MP (X)( ) = (X) MP (µX . )( ) = {x S | MP ( )( [X x]) x} MP ( X . )( ) = {x S | MP ( )( [X x]) x} Figure 1: Semantics of modal mu-calculus x S and a variable X Var we write [X x] for the environment that maps X to x and that is defined on a variable Y = X iff is defined on Y and maps Y then to (Y ). Intuitively, true and false hold for all resp. no states and and are interpreted by conjunction and disjunction. As in HML, a holds for a state s if there is an a-successor of s which satisfies , and [a] holds for s if all its a-successors, satisfy . The interpretation of a variable X is as prescribed by the environment. The formula µX . , called a least fixpoint formula, is interpreted by the smallest subset x of S that recurs when is interpreted with the substitution of x for X. Similarly, X . , called greatest fixpoint formula, is interpreted by the largest such set. Existence of such sets as well as their characterization used in Fig. 1 follows from the well-known Knaster-Tarski fixpoint theorem [11]. As the meaning of a closed formula does not depend on the environment, we sometimes write MP ( ) for MP ( )( ) where is an arbitrary environment. The set of processes satisfying a given closed formula is P ( ) = {Q | t0 MQ( )}. We shall also refer to (closed) equation systems of modal mu-calculus formulae, E : X1 = 1 ... Xn = n , where X1, . . . , Xn are mutually distinct variables and 1, . . . , n are mu-calculus formulae having at most X1, . . . , Xn as free variables. An environment : {X1, . . . , Xn} 2S is a solution of an equation system E, if (Xi) = MP ( i)( ). That solutions always exist, is again a consequence of the Knaster- Tarski fixpoint theorem. For, consider the set of environments that are candidates for solutions, EnvP = { | : {X1, . . . , Xn} 2S}. EnvP together with the lifting of the inclusion order on 2S, defined by iff (Xi) (Xi) for i = 1, . . . , n forms a complete lattice. Now, we can define the equation functional FE P : EnvP EnvP by F E P ( )(Xi) = MP ( i)( ) for i = 1, . . . , n, the fixpoints of which are just the solutions of E. Certainly, FE P is monotonic as MP ( i) is monotonic such that the Knaster-Tarski fixpoint theorem guarantees existence of solutions. In particular, there is the largest solution FE P of E (w.r.t. ), in which we are particularly interested and which we denote by MP (E). This definition interprets equation systems on the states of a given process P . We lift this to processes by agreeing that a process satisfies an equation system E, if its initial state is in the largest solution of the first equation. Thus the set of processes satisfying equation system E is P (E) = {Q | t0 MQ(E)(X1)}. 3 Strong Bisimulation As transition systems provide a too fine-grained model of processes, various equivalences have been studied in the literature that identify processes on the basis of their behavior. A classic example is strong bisimulation [8, 7] denoted by . Suppose given two processes P and Q. Bisimulation is first defined as a relation between the state sets S and T and then lifted to the processes themselves. A relation R S × T is called a (strong) bisimulation if for all (s, t) R the following two conditions hold: a) a, s : s a P s t : t a Q t (s , t ) R, and b) a, t : t a Q t s : s a P s (s , t ) R. Now, is defined to be the union of all bisimulations R. The processes P and Q are called bisimilar if s0 t0. By abuse of notation we denote this relationship by P Q and view also as a relation between processes. The relation S × T can also be characterized as the greatest fixpoint F of the following monotonic functional F on the complete lattice of relations R S × T ordered by set inclusion: F (R) def = {(s, t) | s, t satisfy the two bisimulation conditions a) and b)} . For, it is easy to see that a relation R is a bisimulation iff R F (R), i.e. if R is a post- fixpoint of F . And, by the Knaster-Tarski fixpoint theorem, F is just the union of all post-fixpoints of F , i.e. bisimulations, and, therefore, equals . This also establishes the well-known fact, that is again a bisimulation, viz. the largest one, as the largest fixpoint of F clearly is also its largest post-fixpoint. 4 Characteristic Equation Systems Assume now, that a finite-state process P is given, that s1, . . . , sn are its |S| = n states, and that s1 = s0 is its initial state. The goal of this paper is to show how a formula char- acterizing P up to strong bisimulation can be derived from the fixpoint characterization of bisimulation. While the existence and construction of such formulae is well-known [9, 10], their derivation rather than postulation provides a more elegant proof of the characteriza- tion property and shows, moreover, how corresponding formulae for other bisimulation-like equivalences and preorders may be constructed. We illustrate this point by treating also weak bisimulation (see Section 5). Our derivation of characteristic formulae proceeds via a characteristic equation system E : Xs = 1 s1 ... Xs = n sn consisting of one equation for each of the states s1, . . . , sn S. The construction of actual characteristic formulae from the characteristic equation system is deferred to Section 6. The goal is to define the formulae s such that the largest solution MQ(E ) of E on an arbitrary process Q associates the variables Xs just with the states of Q bisimilar to s, i.e. such that MQ(E )(Xs) = {t T | s t}. The construction of E is based on the observation that EnvQ, the set of candidates for solutions of E , is order-isomorphic to 2S×T, the set of relations that are candidates to be bisimulations between S and T . Actually, the mapping : EnvQ 2S×T defined by ( ) = {(s, t) S × T | t (Xs)} is an order isomorphism between EnvQ and 2S×T, the inverse of which is the mapping : 2S×T EnvQ defined by (R)(Xs) = {t T | (s, t) R}. The idea is now to define E such that F , the bisimulation functional, and FE Q , the functional belonging to E , are equal up to the isomorphism induced by ( , ), i.e. such that F E Q = F . (1) Then their largest fixpoints are also related by the isomorphism, which yields MQ(E )(Xs) = [Definition of MQ(E )] ( F E Q )(Xs) = [Fixpoints of FE Q and F are related by the isomorphism] ( F )(Xs) = [Definition of ] {t T | (s, t) ( F )} = [ equals F ] {t T | s t} , as required. By the definition of FE Q , (1) amounts to defining s such that t MQ( s)( ) iff t ( F )( )(Xs) . The strategy for achieving this equivalence is to start a calculation with the right hand side and to stepwise transform it into the direction of a formula: t ( F )( )(Xs) iff [Definition of ] (s, t) (F )( ) iff [Definition of F ] a : s : s a P s t : t a Q t (s , t ) ( ) , and a : t : t a Q t s : s a P s (s , t ) ( ) iff [Definition of ] a : s : s a P s t : t a Q t t (Xs ) , and a : t : t a Q t s : s a P s t (Xs ) iff [Definition of MQ(Xs )] a : s : s a P s t : t a Q t t MQ(Xs )( ) , and a : t : t a Q t s : s a P s t MQ(Xs )( ) iff [Definition a , Definition ] a : s : s a P s t MQ( a Xs )( ) , and a : t : t a Q t t MQ( {Xs | s a P s })( ) iff [Definition , Definition [a]] a : t MQ( { a Xs | s a P s })( ) , and a : t MQ([a] {Xs | s a P s })( ) iff [Definition ] t MQ( { { a Xs | s a P s } | a A})( ) , and t MQ( {[a] {Xs | s a P s } | a A})( ) iff [Definition ] t MQ( { { a Xs | s a P s } | a A} {[a] {Xs | s a P s } | a A})( ) . Thus, (1) becomes valid if we define s by def s = { { a Xs | s a P s } | a A} {[a] {Xs | s a P s } | a A} and this gives us the desired theorem. P: b a s t u a c Figure 2: An example process. Theorem 1 (Char. eq. system on states) MQ(E )(Xs) = {t T | s t}. This theorem holds for all processes Q as E does not depend on Q. In particular, a process Q is bisimilar to P iff its initial state t0 is contained in MQ(E )(Xs ) (recall that 1 s1 is the initial state of P ). Thus we have the following corollary. Corollary 1 (Char. eq. system on processes) P (E ) = {Q | P Q}. For illustration, we consider the small process pictured in Fig. 2 with state set S = {s, t, u} and action alphabet A = {a, b, c}. After removing conjuncts reading false, its characteristic equation system reads as follows: E : Xs = b Xt [a]false [b]Xt [c]false Xt = a Xs a Xu [a](Xs Xu) [b]false [c]false Xu = c Xt [a]false [b]false [c]Xt 5 Weak Bisimulation Strong bisimulation requires that every step of a process is matched by a corresponding step of a bisimilar process. Weak bisimulation [7] denoted by relaxes this requirement for internal computation steps represented by a distinguished action A, which can be matched by zero of more internal steps. The definition of weak bisimulations relies on a derived transition relation a that allows arbitrarily many -transitions before and after an a-transition. In addition, the relation is used that represents zero or more -transitions: def = a def = ; a ; Here, the operator ; denotes relational composition. Now, a relation R S × T between the state sets of two processes P and Q is called a weak bisimulation [7] if for all (s, t) R the following two conditions hold: a) a, s : s a P s t : t a Q t (s , t ) R, and b) a, t : t a Q t s : s a P s (s , t ) R. is defined to be the union of all weak bisimulations R and is the largest weak bisimulation. As for strong bisimulation, P and Q are called bisimilar, P Q for short, if s0 t0. Again, we can define a monotonic functional F : 2S×T 2S×T on relations from the two conditions in the definition of weak bisimulations, the greatest fixpoint of which equals . Moreover, an equation system characterizing a process up to weak bisimulation, E : Xs = 1 s1 ... Xs = , n sn i.e. that satisfies MQ(E )(Xs) = {t | s t}, can be constructed along the lines of the construction for strong bisimulation. The only difference is the occurrence of the derived transition relations a in the corresponding places. In order to tackle them we rely on `weak' analogies a of the modality a , which can be introduced as abbreviations: def = µX . X a def = a . The following proposition shows that they indeed correspond to and a . Proposition 1 (Weak diamond) * MP ( )( ) = {s | s : s P s s MP ( )( )} . * MP ( a )( ) = {s | s : s a P s s MP ( )( )} . Using these weak modalities it is now straightforward to redo the calculation that lead to an adequate definition of s also for weak bisimulation, which results in the following definition for s: def s = { { a Xs | s a P s } | a A} {[a] {Xs | s a P s } | a A} . The derivation shows in particular where to use strong and weak modalities and which set construction have to range over strong and weak successors. Theorem 2 (Char. eq. system on states) MQ(E )(Xs) = {t T | s t}. Corollary 2 (Char. eq. system on processes) P (E ) = {Q | P Q}. 6 Towards Characteristic Formulae Up to now processes were characterized up to strong or weak bisimulation by an ap- propriately defined equation system. Actual characteristic formulae, i.e. single formulae characterizing processes can be constructed by applying simple semantics-preserving trans- formation rules on equation systems, which are provided in this section. Together these rules allow to reduce an equation system stepwise by ever more equations. These rules are F : X1 = 1 G : X1 = 1[ n/Xn] H : X1 = 1 .. . . . .. .. Xn-1 = n-1 Xn-1 = n-1[ n/Xn] Xn-1 = n-1 Xn = Xn . n Xn = n Figure 3: Results of the transformation rules similar to the ones used by A. Mader in [6] as a means of solving Boolean equation systems (with alternation) by means of Gauss elimination. In Fig. 3 we show the equation systems resulting from applying each of our three transformation rules on an equation system of the form E : X1 = 1 ... Xn = n . For notational convenience, we describe the transformations only w.r.t. the last equation in an equation system. The first rule, transforming E to F , allows to remove the recursive dependency of the right hand side formula in an equation from the left hand side variable of that same equation. It is not difficult to show that, albeit F might have fewer solutions than E, their greatest solutions coincide on every process Q. Proposition 2 MQ(E) = MQ(F ). The second rule, that transforms E to G, allows to replace the variable on the left hand side of an equation by the formula on the right hand side in the other equations. As usual, [ /X] denotes the substitution of for the free occurrences of X in . Being an instance of a substitution of `equals for equals', E and G have the same solutions, as expected. Proposition 3 E and G have the same solutions, in particular, MQ(E) = MQ(G). Our third and last rule, transforming E to H, allows to remove unnecessary equations from an equation system. It relies on the side condition that the variable Xn does not appear free in 1, . . . , n. Note that by this side condition H is indeed a closed equation system. Removal of unnecessary equations does not affect the interpretation of the other variables in solutions. Proposition 4 Suppose Xn does not appear free in 1, . . . , n. An environment is a solution of H if and only if [Xn MQ( n)( )] is a solution of E. In particular, MQ(E) = MQ(H)[Xn MQ( n)(MQ(H))]. Now, applying to an equation system E the first rule followed by the second rule results in an equation system that satisfies the side condition of the third rule. Thus the last equation can be removed; the result is the equation system: E : X1 = 1[ Xn . n/Xn] ... Xn-1 = n-1[ Xn . n/Xn] . This procedure can be iterated until an equation system with just one equation X1 = is obtained. A final application of the first rule results in the equation system with just the equation X1 = X1 . . The only solution of this equation system on a process Q is the environment defined by (X1) = MQ( X1 . ) as X1 . is a closed formula. By the correctness of the transformation rules, X1 . is thus a formula, the interpretation of which coincides with the interpretation of X1 in the greatest solution of the original equation system E. Therefore any set of processes that can be characterized by an equation system can also be characterized by a single formula. Note, however, that the iterated application of the second transformation rule can lead to an exponential blow-up of the size of the formula. Theorem 3 For any equation system E there is a formula such that P (E) = P ( ). This procedure can, in particular, be applied to E and E which shows that there are indeed characteristic formulae describing processes up to strong or weak bisimulation. Theorem 4 (Characteristic formulae) For any process P there are modal mu-calculus formulae and such that P ( ) = {Q | P Q} and P ( ) = {Q | P Q}. 7 Conclusion We have shown how equation systems and formulae that characterize finite-state processes up to strong or weak bisimulation can be derived directly from the well-known greatest fixpoint characterizations of these relations. The existence of such formulae for strong bisimulation was well-known. By virtue of derivation, however, our simpler and more elegant proof generalizes immediately to weak bisimulation and can, moreover, easily be adapted to various other behavioral equivalences and preorders (like simulation and the preorders studied in [12]). Do characteristic formulae exist also for some class of infinite-state processes? The answer is no. Any mu-calculus formula representing a certain process P e.g. up to bisimulation has ­ by the finite model property of the modal mu-calculus [5] ­ also a finite model Q. Thus P must be bisimilar to Q, i.e. be a finite process up to bisimulation. What is the use of characteristic equation systems and formulae? On the theoreti- cal side, their existence provides specific expressiveness results for the modal mu-calculus. Combined with the fact that model checking the modal mu-calculus is decidable for cer- tain classes of infinite-state processes, in particular push-down processes, this immediately implies that strong and weak bisimulation (and various other relations for which character- istic formulae can easily be constructed, e.g. simulation) are decidable between finite-state processes and push-down processes. More far-reaching decidability results of this kind have recently been studied by Jan car, Ku cera, and Mayr [3]. On the practical side, characteristic formulae allow to employ model checkers as bisimu- lation checkers. For this application the exponential blow-up experienced in the transition from characteristic equation systems to characteristic formulae seems to be particularly unfortunate. However, many model checkers are based on equation systems rather than formulae, such that they can be applied directly on characteristic equation systems. Acknowledgment. I thank Bernhard Steffen for a number of discussions on topics related to this paper and three anonymous referees of MFCS for comments that helped to improve this paper. References [1] S. Graf and J. Sifakis. A modal characterization of observational congruence on finite terms of CCS. Information and Control, 68:125­145, 1986. [2] M. C. B. Hennessy and R. Milner. Algebraic laws for nondeterminism and concurrency. JACM, 32(1):137­161, 1985. [3] P. Jan car, A. Ku cera, and R. Mayr. Deciding bisimulation-like equivalences with finite-state processes. In Proceedings of ICALP'98, 1998. To appear in Springer LNCS series. [4] D. Kozen. Results on the propositional mu-calculus. TCS, 27:333­354, 1983. [5] D. Kozen. A finite model theorem for the propositional µ-calculus. Studia Logica, 47:233­241, 1988. [6] A. Mader. Modal µ-calculus, model checking and Gauss elimination. Volume 1019 of Lecture Notes in Computer Science, pages 72­88. Springer-Verlag, 1995. [7] R. Milner. Communication and Concurrency. Prentice Hall, 1989. [8] D. M. R. Park. Concurrency and automata on infinite sequences. Volume 154 of Lecture Notes in Computer Science, pages 561­572. Springer-Verlag, 1981. [9] B. Steffen. Characteristic formulae. Volume 372 of Lecture Notes in Computer Science, pages 723­732. Springer-Verlag, 1989. [10] B. Steffen and A. Ing´olfsd´ottir. Characteristic formulae for processes with divergence. In- formation and Computation, 110(1):149­163, 1994. [11] A. Tarski. A lattice-theoretical fixpoint theorem and its application. Pacific Journal of Mathematics, 5:285­309, 1955. [12] D. J. Walker. Bisimulations and divergence in CCS. Information and Computation, 85(2):202­241, 1990. Construction of an Abstract State Space from a P artial Order Represen tation of the Concrete One Ulric h Nitsc he Departmen t of Electronics and Computer Science Univ ersit y of Southampton Southampton SO BJ United Kingdom email un ecs soton ac uk Abstract There are sev eral approac hes to reduce a state space whic h represen ts the b eha viour of a system that can b e classi ed in to t w o main concepts abstr ac tion te chniques and p artial or der metho ds Abstraction reduces the state space b y reducing the div ersit y of actions P artial order metho ds ignore particular in terlea vings of concurren t b eha vioural patterns Both concepts ha v e cer tain b ene ts and dra wbac ks W e th us presen t in this pap er a rst concept to com bine partial order metho ds and abstraction enabling us to b ypass an exhaustiv e construction of a state space when constructing an abstract repre sen tation of it In tro duction In practice the size of automata descriptions of the b eha viour of realistic systems limits the application of v eri cation concepts to rather small sp eci cations T o mak e v eri cation accessible to a m uc h larger group of systems of practical in terest one has to deal with what is kno wn as state sp ac e explosion There are sev eral approac hes to reduce a state space whic h represen ts the b eha viour of a system The aim of state space reduction is to impro v e the e ciency of v eri cation algorithms Basically t w o main concepts for the construction of a reduced state space exist abstr action te chniques and p artial or der metho ds Abstraction reduces the state space b y ignoring particular actions of the system or reducing the div ersit y of actions P artial order metho ds ignore particular in ter lea vings of concurren t b eha vioural patterns P artial order metho ds ha v e the dra w bac k that they are not applicable to some prop ert y classes e g liv eness prop erties abstraction metho ds require a construction of the complete concrete state space of a system s b eha viour b efore collapsing it whic h can b e to o complex in practice W e presen t in this pap er a rst concept for the use of partial order metho ds to de ne a reduced concrete state space of a giv en sp eci cation ha ving the same abstract state space as the complete state space P artial order metho ds can enable us to b ypass an exhaustiv e construction of the state space of a sp eci cation when constructing a represen tation of its abstract b eha viour Preliminaries The b ehaviour of a reactiv e concurren t system can b e represen ted b y a set of in nitely long sequences of actions Actions are atomic acts the system p erforms W e consider the set of actions to b e nite from a su cien tly abstract p oin t of view Th us a b eha viour is an language on the set of actions It represen ts all sequences of actions that the system can p erform in an in nite amoun t of time W e call eac h in nite sequence of actions that the system can p erform a c omputation of the system The sequences of actions that the system can p erform in a nite amoun t of time are the p artial c omputations of the system The p artial b ehaviour of a system is the set of nitely long sequences of actions that the system can p erform i e it is a language on the set of actions Since all pre xes of a partial computation of a system are also partial computations of the system w e require that a partial b eha viour is a pr e x close d language subsequen tly let b e the nite set of atomic actions that the system ma y p erform De nition L et L b e a language on L et pr e L designate the set of al l pr e xes of wor ds in L L is pr e x close d if and only if pr e L L The b eha viour of a system is determined b y its partial b eha viour con tin ued to in nit y The idea of the in nite con tin uation of a partial b eha viour can b e de ned in terms of formal language theory b y the notion of the Eilenb er g limit of a language De nition L et L b e language The Eilenb er g limit l im L of L is de ne d as l im L fx j w pr e x w Lg R e ad as ther e exist in nitely many di er ent W e consider in this pap er only r e gular b eha viours i e b eha viours that can b e represen ted b y a nite automaton W e th us de ne De nition A b ehaviour of a system is the Eilenb er g limit of a pr e x close d r e gular language Pre x closed regular languages and their Eilen b erg limits can b e represen ted b y deterministic nite automata with only accepting states The minimal automata represen tation of a b eha v oiur is called its state sp ac e A b eha viour satis es a line ar pr op erty if and only if all its computations satisfy it In tuitiv ely a prop ert y partitions the set in to the set Y of the computations that satisfy the prop ert y and the set N of computations that do not T o de ne a prop ert y formally w e simply iden tify the prop ert y with the set Y of computations that satisfy it De nition A pr op erty P over is a subset of henc e it is an language over We say that a b ehaviour l im L L and L pr e L satis es P written l im L j P if and only if l im L P T o in tro duce an implicit fairness assumption in to the satisfaction relation w e de ne r elative liveness pr op erties of b eha viours as an appr oximate satis faction relation for prop erties T o do so w e rst ha v e to in tro duce the notion of a leftquotien t De nition L et w and let L The leftquotients of L and l im L by w ar e de ne d as cont w L fv j w v Lg and cont w l im L fx j w x l im L g De nition We c al l the pr op erty P a r elative liveness pr op erty of l im L written l im L j P if and only if RL w pr e l im L x cont w l im L w x P Note If l im L then the de nitions of a r elative liveness pr op erty is e quivalent to the de nition of a liveness pr op erty in Usually relativ e liv eness and the related concept of mac hine closure is used to classify prop erties with resp ect to other prop erties In con trast w e consider relativ e liv eness as a satisfaction relation with an inheren t fairness condition that w e call appr oximate satisfaction De nition If P is a r elative liveness pr op erty of l im L we say that l im L satis es P appr oximately The name appr oximate satisfaction is motiv ated b y observing that P is a relativ e liv eness prop ert y of l im L if and only if l im L P is a dense set in the Can tor top ology on l im L W e can also giv e an alternativ e set inclusion c harac terization of an appro ximately satis ed prop ert y whic h establishes the decidabilit y of appro ximate satisfaction for regular b eha viours and prop erties Lemma l im L satis es P appr oximately if and only if pr e l im pr e l im L P F rom an in tuitiv e p oin t of view appro ximate satisfaction and satisfaction of prop erties under fairness are closely related But appro ximate satisfaction can di er from satisfaction under particular fairness concepts One can sho w that a nite state implemen tation of a b eha viour suc h that all strongly fair computations of the implemen tation satisfy the prop ert y can alw a ys b e found Unfortunately this nite state implemen tation can b e m uc h larger pro duct of the state spaces of the b eha viour and the prop ert y than the minimal nite state system accepting l im L and th us is an incon v enien t represen tation of l im L Therefore appro ximate satisfaction can b e regarded as satisfaction under fairness that allo ws a v ery compact represen tation of a system s b eha viour Abstraction When turning to v eri cation whic h is c hec king whether a b eha viour satis es giv en prop erties a requiremen t sp eci cation the size of the state space of the b eha viour limits the applicabilit y of automatic v eri cation tec hniques On the other hand a system usually p erforms actions whic h need not b e considered in the v eri cation pro cess or whic h need not b e distinguished from other actions resp ectiv ely Hence w e can try to reduce the state space b y ignoring unimp ortan t actions or b y giving a common name to actions whic h need not b e distinguished from one another These t w o concepts are kno wn as action hiding and action r enaming resp ectiv ely The so de ned t yp e of simpli cation is called abstr action On the lev el of formal language theory the concepts of action hiding and re naming are w ell established in alphab etic language homomorphisms Alphab etic language homomorphisms are language homomorphisms mappings from the Kleene closure of an alphab et to the Kleene closure of another alphab et whic h are compat ible with concatenation whic h tak e letters to letters action renaming or to the empt y w ord action hiding They are originally de ned on languages W e ha v e to extend them to languages de ning the notion of an abstr action homomorphisms De nition L et designate L et and b e two nite sets of actions We c al l h an abstr action homomorphism if and only if the fol lowing c onditions hold If we c onstr ain h to a mapping on letters in then we obtain a total function h f g action r enaming and hiding If v w and x then h v w h v h w and h v x h v h x c omp atibility with c onc atenation If we c onstr ain h to a mapping on wor ds over then we obtain a p artial function h no r e duction of in nite se quenc es to nite ones Note that abstraction homomorphisms are partial mappings since they are not de ned on w ords whic h w ould b e mapp ed to nitely long w ords The set of w ords x on suc h that h x is de ned is giv en b y h h Since w e are considering b eha viours that are Eilen b erg limits of pre x closed regular languages w e ha v e to de ne the abstr action of a concrete b eha viour in terms of Eilen b erg limits De nition L et h b e an abstr action homomorphism and let L b e a pr e x close d language We de ne the abstr action of the c oncr ete b ehaviour l im L with r esp e ct to h to b e l im h L This de nition is reasonable since for pre x closed regular L the t w o sets l im h L and h l im L are equal When considering appro ximately satis ed prop erties on an abstract b eha viour abstraction homomorphisms do not establish a suitable abstraction concept since they do not preserv e appro ximately satis ed prop erties Pr eservation of pr op erties designates that a prop ert y whic h holds for the abstraction holds for the concrete b eha viour in a corresp onding w a y T o ensure preserv ation of appro ximately satis ed prop erties an additional require men t m ust b e satis ed b y the abstraction homomorphism whic h is called simplicity of the homomorphism on the b eha viour De nition L et h b e an abstr action L et L b e a p artial b ehaviour h is c al le d simple on L if and only if for al l w we have v cont h w h L cont v cont h w h L cont v h cont w L Abstractions whic h are simple on a partial b eha viour L establish exactly the class of abstractions whic h preserv e relativ e liv eness prop erties Theorem L et L b e a pr e x close d and r e gular language let h b e an abstr acting homomorphism such that h L do es not c ontain maximal wor ds and let P b e a pr op erty Then the c ondition l im h L j P if and only if l im L j h P RL RL holds if and only if h is simple on L According to this theorem w e can deriv e appro ximately satis ed prop erties of the concrete b eha viour b y considering appro ximately satis ed prop erties of its simple abstraction In the subsequen t sections w e will sho w that this can b e done ev en without kno wing the concrete b eha viour completely w L is a maximal w ord in L if and only if cont w L f g P artial Orders of Actions A di eren t w a y to tac kle the state space explosion problem the problem of tremen dously large state spaces of industrial sized sp eci cations is established b y p artial or der metho ds If there are sev eral di eren t partial computations of a b eha viour whic h are equal except for p erm utations of adjacen t indep endent actions indep en den t actions do not in uence one another see b elo w then the represen tation of the b eha viour will b e reduced to one in whic h for eac h class of equiv alen t partial computations only a reduced n um b er of represen tativ es is included P artial order metho ds ignore in terlea vings of particular concurren t b eha vioural patterns and hence reduce the state space b y ignoring in terim states The k ey notion in the de nition of partial order metho ds is the indep endenc e of actions De nition L et b e a nite set of actions A r elation is c al le d an indep endence relation of a nite state system A i e a nite automaton with only ac c epting states if and only if for al l a and a in a a if and only if for al l states q of A if a is enable d in q then if a is taken a wil l stil l b e enable d in the suc c essor state of q after taking a if a and subse quently a is taken in state q the suc c essor state wil l b e the same as if rst a and then a wer e taken W e consider t w o partial computations to b e equiv alen t if and only if w e can trans form one in to the other b y p erm uting adjacen t indep enden t actions The equiv alence classes of this equiv alence relation are called tr ac es De nition L et w b e a p artial c omputation and let b e an indep endenc e r elation The tr ac e w ac c or ding to w and is the set of al l p artial c omputations w such that w c an b e c onstructe d fr om w by p ermutations of adjac ent indep endent actions De nition L et A b e a nite state system and let b e an indep endenc e r elation A tr ac e system A ac c or ding to A and is a nite state system such that F or al l w ac c epte d by A ther e exists w ac c epte d by A such that w w F or al l w a ac c epte d by A w L A and a ther e is no b such that a b and w b L A A l l w ac c epte d by A ar e also ac c epte d by A Lemma L et A b e a nite state system on L et b e an indep endenc e r elation Then for al l w a ac c epte d by A such that w L A and a ther e exists no b such that a b and w b L A if and only if for al l w L A no w w such that w w is in L A Pro of Assume there exist v L A and a b suc h that a b and v a L A and v b L A W e construct w and w in L A suc h that w w Because v a and v b are b oth in L A actions a and b are b oth enabled after the partial computation v o ccured Because they are indep enden t actions b is still enabled after taking a and a is still enabled after taking b Th us b oth v ab and v ba are in L A and v ba v ab Assume that w w L A W e sho w that this implies the existence of v a and v b in L A suc h that v L A and a b Let v b e the longest common pre x of w and w Let a and b b e the actions whic h follo w v in w and w resp ectiv ely Because w w a and b b e m ust b e indep enden t and v a and v b are b oth in L A Compatibilit y of P artial Orders and Abstrac tion When considering abstraction in practice concrete state spaces are in general m uc h to o large to b e constructed exhaustiv ely b efore collapsing them b y an abstraction step Therefore approac hes are needed to construct only a part of the concrete state space whic h is su cien t to compute the abstract state space Then using the results sk etc hed in the preliminaries of this pap er prop erties of a system can b e c hec k ed without constructing its state space exhaustiv ely If in addition simplicit y of the homomorphism can b e c hec k ed on the reduced concrete state space suc h an approac h can also b e established for prop erties under fairness assumptions namely appro ximately satis ed prop erties W e establish in this section suc h a result partly b y com bining abstraction with the concept of a tr ac e system A trace system is de ned v ery rigorously in order to enable us to c hec k simplicit y of a homomorphism on it Unfortunately constructing it from a sp eci cation of a system app ears to b e problematic Ho w ev er without requiring to b e able to c hec k simplicit y of a homomorphism on the complete b eha viour b y lo oking at the trace system the notion of a trace system can b e relaxed easily to one b eing constructible from a sp eci cation using usual partial order metho ds De nition L et h b e an abstr action homomorphism A n indep en denc e r elation is h c omp atible if and only if a b implies h a or h b or h a h b A tr ac e system is c al le d h c omp atible if and only if its underlying indep endenc e r elation is h c omp atible Lemma L et h b e an abstr action homomorphism L et b e a h c omp atible indep endenc e r elation L et w and let w w Then h w h w i Pro of Let w n I N b e a sequence of partial computations suc h that i n n i i w w w w and for all i n w can b e deriv ed from w b e p erm uting exactly one pair of adjacen t indep enden t actions Let a b b e suc h a pair Because is h compatible w e ha v e h a or h b or h a h b i i Hence h ab h ba and consequen tly h w h w for all i n Th us h w h w Lemma L et h b e an abstr action homomorphism let A b e a nite state system and let b e a h c omp atible indep endenc e r elation L et A b e a tr ac e system ac c or ding to A and let w L A and let w L A such that w w Then h L A h L A h cont w L A h cont w L A h cont w L A h cont w L A Pro of Because b y de nition of a trace system all w L A are also in L A w e only ha v e to sho w that h L A h L A Let v b e in L A Then there is v in L A suc h that v v By Lemma h v h v whic h implies h L A h L A Because b y de nition of a trace system all w L A are also in L A w e only ha v e to sho w that h cont w L A h cont w L A Let v b e in cont w L A Then w v L A Th us there is a u L A suc h that w v u By de nition of a trace system w suc h that w w is a pre x of u Hence u w v suc h that v v Th us h v h v This is a sp ecial case of the previous second case set w w Theorem L et A b e a nite state system on alphab et L et h b e an abstr action homomorphism L et A b e a h c omp atible tr ac e system to A Then h is simple on L A if and only if h is simple on L A Pro of Assume that h is simple on L A Let w b e in L A By de nition w is in L A Since h is simple on L A w e kno w that there m ust exist some v cont h w h L A suc h that cont v cont h w h L A is equal to cont v h cont w L A By de nition of a h compatible trace system w e ha v e h L A h L A as w ell as h cont w L A h cont w L A Hence cont v cont h w h L A cont v h cont w L A Conseqen tly h is sim ple on L A Assume that h is simple on L A Let w b e in L A By de nition w is in w for some w L A Since h is simple on L A there m ust exist some v cont h w h L A suc h that cont v cont h w h L A is equal to cont v h cont w L A By de nition of a h compatible trace system w e ha v e h L A h L A and h cont w L A h cont w L A Consequen tly cont v cont h w h L A cont v h cont w L A and h is simple on L A W e can com bine this result with the preserv ation result for appro ximately satis ed prop erties Theorem and Lemma and obtain nally Corollary L et A b e a nite state system on alphab et L et h b e an abstr action homomorphism L et A b e a h c omp atible tr ac e system to A such that h L A do es not c ontain maximal wor ds L et P b e a pr op erty Then the c ondition l im h L A j P if and only if l im L A j h P RL RL holds if and only if h is simple on L A Conclusion W e ha v e sho wn in this pap er Corollary that w e can use a reduced state space a partial order represen tation of a sp eci cation to c hec k prop erties ev en under fairness without constructing the complete state space of the sp eci cation exhaustiv ely This v eri cation includes an in terim abstraction step for whic h it is sho wn that the complete and reduced b eha viour of the sp eci cation lead to the same abstract b eha viour The k ey concept for this approac h is abstr action c omp atibility of the indep endence relation on actions In addition c hec king simplicit y of the abstraction whic h is crucial for the preser v ation of so called appro ximately satis ed prop erties can also b e c hec k ed on the reduced b eha viour on b ehalf of the complete one Ho w ev er this result is limited b y observing that it is not certain whether a trace system as de ned in this pap er is constructible from a giv en sp eci cation The problem lies in the fact that eac h trace is represen ted only b y a single represen tativ e according to Lemma whic h ma y b e a to o strict de nition Without requiring simplicit y of the abstraction the results of this pap er can b e relaxed easily to a de nitely constructiv e de nition of a trace system Since appro ximate satisfaction whic h is an abstract notion of prop ert y satisfaction under fairness is a satisfaction relation of practical necessit y for the v eri cation of co op erating systems it is a topic for further study whether an algorithm for the construction of trace systems from sp eci cation can b e found In case of a negativ e answ er to this question a relaxed de nition of a trace sys tem based on a usual partial order construction has to b e found whic h still enables c hec king simplicit y of an abstraction on the not constructed complete b eha viour of a sp eci cation Consequen tly this pap er presen ts the b order conditions and their implications for the construction of a simple i e appro ximately prop ert y preserving abstraction of a state space from its reduced partial order based represen tation References M Abadi and L Lamp ort The existence of re nemen t mappings SR C Re p ort DEC System Researc h Cen ter July M Abadi and L Lamp ort Comp osing sp eci cations SR C Rep ort DEC System Researc h Cen ter Octob er B Alp ern and F B Sc hneider De ning liv eness Information Pr o c essing L etters Octob er R Alur and T A Henzinger Lo cal liv eness for comp ositional mo deling of fair reactiv e systems In P W olp er editor Computer A ide d V eri c ation CA V v olume of L e ctur e Notes in Computer Scine c e pages Springer J Berstel T r ansductions and Context F r e e L anguages Studien b uc her Infor matik T eubner V erlag Stuttgart rst edition N F rancez F airness Springer V erlag New Y ork rst edition P Go defroid Partial Or der Metho ds for the V eri c ation of Concurr ent Systems A n Appr o ach to the State Explosion Pr oblem PhD thesis Univ ersit e de Li ege Li ege Belgium M A Harrison Intr o duction to F ormal L anguage The ory Addison W esley Reading Mass rst edition T A Henzinger So oner is safer than later Information Pr o c essing L etters J E Hop croft and J D Ullman Intr o duction to A utomata The ory L anguages and Computation Addison W esley Reading Mass rst edition Z Manna and A Pn ueli The T emp or al L o gic of R e active and Concurr ent Systems Sp e ci c ation Springer V erlag New Y ork rst edition U Nitsc he V eri c ation of Co Op er ating Systems and Behaviour A bstr action PhD thesis Univ ersit y of F rankfurt German y U Nitsc he and P Oc hsensc hl ager Appro ximately satis ed prop erties of systems and simple language homomorphisms Information Pr o c essing L etters U Nitsc he and P W olp er Relativ e liv eness and b eha vior abstraction extended abstract In Pr o c e e dings of the th A CM Symp osium on Principles of Dis tribute d Computing PODC pages San ta Barbara CA P Oc hsensc hl ager V eri k ation k o op erierender Systeme mittels sc hlic h ter Ho momorphismen Arb eitspapiere der GMD Gesellsc haft f ur Mathematik und Daten v erarb eitung GMD Darmstadt Oktob er P Oc hsensc hl ager V eri cation of co op erating systems b y simple homomor phisms using the pro duct net mac hine In J Desel A Ob erw eis and W Reisig editors Workshop A lgorithmen und Werkzeuge f ur Petrinetze pages Hum b oldt Univ ersit at Berlin P Oc hsensc hl ager Comp ositional v eri cation of co op erating systems using sim ple homomorphisms In J Desel H Fleisc hhac k A Ob erw eis and M Sonnen sc hein editors Workshop A lgorithmen und Werkzeuge f ur Petrinetze pages Univ ersit at Olden burg P W olp er and P Go defroid P artial order metho ds for temp oral v eri cation In E Best editor CONCUR v olume of L e ctur e Notes in Computer Scienc e pages Springer V erlag Characterizing bisimilarit y of v alue passing pro cesses with con text free con trol P a w e l P a czk o wski Institute of Mathematics Univ ersit y of Gda nsk ul Wita St w osza Gda nsk P oland matpmp univ gda pl June In tro duction W e consider a v alue passing v ersion of con text free pro cesses where pro cess b eha viours dep end on a global state of data v ariables Accordingly the seman tics and bisim ulation dep end on v aluations of data v ariables In this w ork w e searc h for a form ula c haracterizing those v aluations of data v ariables for whic h t w o giv en pro cesses are bisimilar W e extend the results of where regular pro cesses w ere dealt with The tec hniques used in these references cannot b e directly applied to pro cesses with con text free con trol Here w e exploit a tableau based decision pro cedure for bisimilarit y for con text free pro cesses This note presen ts an ongoing w ork Pro cesses The class of pro cesses w e consider is obtained b y extending normed con text free pro cesses as de ned in with v alue passing primitiv es Let X Y Z b e a nite set of pro cess v ariables A con text free pro cesses is de ned b y a nite set of equations of the form n i X X a i m i ij ij j where X are pro cess v ariables a are actions describ ed b elo w and are pro cess v ariable i ij ij sequences of length at most t w o that is w e tak e pro cesses expressed in Greibac h normal form F or ev ery equation w e assume some nite set of data v ariables ranged o v er b y x The actions a can ha v e t w o forms ij b c x s or b c e s where b is a b o olean expression c is a c hannel name dra wn from a xed set of c hannel names x is a data v ariable e is an expression from a presupp osed set of data expressions and s is a sim ultaneous assignmen t x x e e k k In tuitiv ely an action b c x s should b e in terpreted as an input of a v alue from c hannel c under the condition that b o olean b holds b efore the new v alue of x has b een receiv ed after whic h the data v ariables are up dated b y p erforming assignmen t s The output action b c e s di ers in that the v alue of expression e is output to c hannel c Th us so de ned pro cesses ha v e a global state represen ted b y a v aluation of data v ari ables The actions can mo dify the state b y p erforming inputs and assignmen ts the output v alues dep end on the curren t v aluation of data v ariables The set of equations describ es the con text free con trol of the pro cess execution F ormally the seman tics of pro cesses is de ned b y the follo wing t w o step pro cedure Giv en a set of equations w e de ne rst transitions of the form a where are sequences of pro cess v ariables and a is an action as describ ed b y Suc h transitions can b e de ned in a standard manner w e follo w treating our actions just as sym b ols disregarding their structure W e call these transitions symb olic Next w e in terpret the sym b olic transitions with resp ect to v aluations of data v ariables to deriv e semantic tr ansitions of the form c v c v h i h i or h i h i where are v aluations of data v ariables i e functions from data v ariables to a presup p osed set of data v alues c is a c hannel name and v ranges o v er data v alues The actions lab elling the seman tic transitions c v or c v represen t resp ectiv ely an input of v alue v from c hannel c and output of of v alue v on c hannel c The follo wing t w o rules are used to deriv e seman tic transitions W e use the notation s for a v aluation obtained from b y p erforming assignmen t s and w e denote b y e the v alue of expression e under v aluation b c e s j b c e h i h s i b c x s j b for an y v alue v c v h i h x v s i Characterizing Bisimilarit y W e adopt the standard de nition of strong bisim ulation equiv alence b et w een lab elled transition systems see e g denoting it b y Let and b e t w o sets of equations de ning v alue passing con text free pro cesses Assume that pro cess and data v ariables of are disjoin t from pro cess and data v ariables of This can b e alw a ys ac hiev ed b y renaming v ariables Let X and X b e pro cess v ariables app earing resp ectiv ely in and The problem w e consider is to c haracterize those v aluations of data v ariables for whic h h X i is bisimilar to h X i More precisely w e lo ok for a form ula B of the rst order logic built on top of assumed sets b o oleans and X X data expressions suc h that j B i h X i h X i X X In form ulas c haracterizing bisimilarit y in the sense ab o v e ha v e b een studied for regular pro cesses Suc h form ulas w ere found as solutions to systems of equiv alences in a rst order logic extended with explicit substitutions A system of equiv alences consists of a nite set of equiv alences of the form P P P i m i i m where P are predicate v ariables and P P are form ulas of a rst order logic ex i i m tended with explicit substitutions The tec hniques used in do not apply immediately to pro cesses with con text free con trol as in nite sets of equiv alences could arise In this w ork w e observ e that the tableau decision metho d for normed con text free pro cesses describ ed in can b e successfully exploited to extend the results of The tableau decision metho d builds a tableau comp osed of rules of the shap e E E E E E E k k k k P n where E p ossibly decorated is either empt y or stands for a sum of the form a i i j F ollo wing the approac h of w e asso ciate a predicate v ariable B with ev ery equation whose comp onen t E is empt y app earing in a tableau and enco de the tableau as a set of equiv alences E Q whose predicate v ariables are B The crucial p oin t is that tableaux are guaran teed to b e nite for normed con text free pro cesses therefore the systems of equiv alences w e construct are also nite The follo wing Prop osition holds for the case of deterministic normed pro cesses with con text free con trol i e suc h that for ev ery i in the de ning equation in the set of actions fa j j n g c hannels used for inputs are m utually di eren t and c hannels ij i used for outputs are m utually di eren t Prop osition L et b e two sets of e quations that de ne deterministic norme d value p assing pr o c esses with c ontext fr e e c ontr ol One c an e e ctively c onstruct a set of e quiv alenc es E Q of rst or der formulas with explicit substitutions such that any set of pr e dic ates fB g which is a solution to E Q satis es j B i h i h i W e b eliev e that Prop osition ab o v e holds also for the nondeterministic case References H H uttel and C Stirling Actions sp eak louder than w ords pro ving bisimilarit y for con text free pro cesses in Pr o c e e dings of LICS pp IEEE computer So ciet y Press H Lin Sym b olic transition graph with assignmen t in Pr o c e e dings of CONCUR Springer V erlag LNSC R Milner Communic ation and Concurr ency Pren tice Hall P P a czk o wski Characterizing bisimilarit y of v alue passing parametrised pro cesses in B Ste en and T Margaria Eds INFINITY In ternational W orkshop on V eri cation of In nite State Systems Ele ctr onic Notes of The or etic al Computer Scienc e Hardness results for w eak bisimilarit y of simple pro cess algebras Jitk a St r brn a LF CS Departmen t of Computer Science Univ ersit y of Edin burgh UK email js dcs ed ac uk W e do not kno w whether w eak bisimilarit y denoted is decidable for general BP A and BPP but w e ma y try to estimate what w ould b e a least complexit y of a decision pro cedure that migh t exist That is ac hiev ed b y taking problems complete for some complexit y classes and reducing them to In this w a y w e will sho w that the problem of deciding w eak bisimilarit y w ould b e NP hard for BPP and PSP A CE hard for BP A Bac kground There has b een m uc h e ort dev oted to the study of decidabilit y of v arious bisim ulation equiv alences for man y pro cess calculi The ma jorit y of the results concern strong bisimila rit y whic h w as sho wn to b e decidable for the t w o classes of Basic pro cess algebras BP A and Basic parallel pro cess algebras BPP A that w e will b e considering in this pap er Ho w ev er w e w an t to fo cus our atten tion on a more in teresting notion of observ ation that is w eak bisimilarit y So far the decidabilit y of w eak bisimilarit y for the sub class of total ly norme d BPP and BP A w as established in and a semidecision pro cedure for w eak bisimilarit y of BPP w as manifested in The question for general BP A and BPP remains op en ho w ev er w e ma y at least try to establish some lo w er b ounds on a decision pro cedure that migh t exist Decidabilit y of bisim ulation equiv alences so far seems to b e consisten t with p olynomial time decision pro cedures P olynomial algorithms deciding strong bisimilarit y for normed BPP and BP A w ere manifested in and ev en though there is no p olynomial de cision pro cedure for the class of all BPP and BP A there is no lo w er b ound that con tradicts its existence It w ould b e a w eak negativ e result to sho w that w eak bisimilarit y cannot b e decidable in p olynomial time T o our b est kno wledge ev en this w eak result hasn t b een pro v ed y et ho w ev er in this pap er w e pro vide a strong evidence that the problem of decid ing w eak bisimilarit y cannot b e solv ed in p olynomial time More sp eci cally w e will sho w that for w eak bisimilarit y and totally normed BPP and BP A the decision problem is at least NP hard and for general BP A at least PSP A CE hard Before w e pro ceed to demonstrate these claims w e will recall the necessary notions from pro cess algebra and computational complexit y W e will start with the pro cess algebras W e presupp ose a xed set of actions Act fa b c g that con tains a sp ecial silent action and a nite set of pro cess v ariables or atoms fX X g Then w e sa y that a b asic pr o c ess algebr a or BP A is a pair n where is the free monoid generated b y and fX P j X P Actg is a nite set of transitions W e call w ords from BP A pro cesses The transition rules of determine a transition relation on general BP A pro cesses in this w a y X Q P Q if there is a rule X P in i i n A b asic p ar al lel pr o c ess algebr a or BPP A is a pair where fX X j n i i Ng is the comm utativ e algebra generated b y and fX P j X n P Actg is a nite set of transitions W e call m ultisets from basic parallel pro cesses or BPP In the algebra there is a natural op eration whic h w e shall call p ar al lel c omp osition and denote with k i j j i i j i j n n n n P k Q X X where P X X and Q X X n n n W e can extend the rules of to all BPP in the ob vious w a y P k X k Q P k R k Q if there is a rule X R in F or b oth BP A and BPP A w e use capital letters X Y to range o v er pro cess v ariables and P Q R to range o v er pro cesses A pro cess v ariable X is said to b e total ly norme d if there is no transition X and s if there exists a deriv ation X for some non empt y sequence of actions s A pro cess algebra is totally normed if all its v ariables are totally normed No w w e will in tro duce the concepts of strong and w eak bisimilarit y W e sa y that a binary relation R o v er pairs of pro cesses is a str ong bisimulation r elation if the follo wing condition holds for ev ery pair P Q from R and ev ery action from Act for ev ery P P there exists Q Q so that P Q R for ev ery Q Q there exists P P so that P Q R Tw o pro cesses P and Q are strongly bisimilar if there exists a strong bisim ulation relation con taining the pair P Q The union of all bisim ulation relations giv es rise to the maximal bisim ulation whic h is denoted b y A we ak bisimulation r elation is de ned analogously as a strong bisim ulation relation with the single transitions b eing replaced with where is an abbreviation of in case of and in case of Then w e sa y that pro cesses P and Q are w eakly bisimilar if there exists a w eak bisim ulation relation con taining the pair P Q There also exists a maximal w eak bisim ulation relation whic h is obtained as a union of all w eak bisim ulation relations and it is denoted b y No w w e will recall some notions from computational complexit y consult and for more details Informally w e sa y that a problem P is C hard for some complexit y class C if to solv e P is as di cult as to solv e an y problem from C If on top of that w e kno w that the complexit y of solving P is C in other w ords P b elongs to C w e sa y that P is C complete Often when w e try to estimate a lo w er b ound on a complexit y of some problem P w e transform another problem P to P where w e kno w the complexit y of P already F or this purp ose w e use the concept of r e duction Assume t w o languages L o v er some alphab et and L o v er an alphab et A r e duction from L to L is a function f from to suc h that for all w w L f w L When reducing one problem to another w e need a function that can b e e cien tly computed As w e will see later it su ces for the reduction f to b e p olynomial time that is w e can construct a p olynomial time b ound T uring mac hine that computes the function f W e will denote the fact that L is p olynomial time reducible to L b y L L W e sa y that a language L is c omplete for a class C with resp ect to p olynomial time reduction if L is in C and ev ery language in C is reducible to L A language L is har d for C wrt p olynomial time reduction if ev ery language in C is reducible to L but L is not necessarily in C The complexit y classes that w e will b e dealing with are the classes NP and PSP A CE The follo wing theorem con rms that p olynomial time reduction is suitable for our purp oses Lemma If L P and L L then also L P wher e P is the class of pr oblems that c an b e solve d in p olynomial time W eak bisimilarit y of BPP is NP hard There is a plethora of kno wn problems that fall in to the class of NP complete problems W e need to c ho ose a problem that is in some w a y related to the principle of bisimilarit y Clearly an y t w o pro cesses that are bisimilar m ust b e capable of p erforming sequences of actions of iden tical lengths therefore w e will reduce a coun ting problem to w eak bisimilarit y One problem that suits our purp ose is Knapsa ck whic h reads as follo ws giv en a se quence of v alues m m m and a total t w e w an t to nd out whether w e can c ho ose n a subsequence m m that adds up to t That brings us to the idea of ha ving t w o i i k pro cesses one sim ulating the total t b y b eing de ned as a trace of the length of t and the other sim ulating the c hoices of subsequences of m m m and hence b eing equi n v alen t to a tree whose branc hes corresp ond to traces of lengths sp eci ed b y the individual subsequences Knapsa ck is kno wn to b e NP complete cf and w e will demonstrate a p olynomial time reduction to w eak bisimilarit y of basic parallel pro cesses As w e ha v e explained earlier that will establish that the problem of deciding for BPP is at least NP hard The formal de nition of Knapsa ck is as follo ws De nition Knapsa ck is the fol lowing pr oblem Instanc e t m m m N n P n Question i i i f g i m t n j j j The fact that this simple problem is NP complete is due to the fact that there ma y o ccur arbitrarily large n um b ers on the input If w e consider the input enco ded in unary then w e can nd an algorithm that solv es Knapsa ck in time p olynomial in size of the input The p ossibilit y of arbitrarily large v alues of m or t will require a tric k in the de nition of i pro cesses so that w e remain within the limits of p olynomial time reduction W e will no w pro ceed to demonstrate a p olynomial time man y one reduction of Knapsa ck to w eak bisimilarit y of BPP Lemma Knapsa ck Pro of Let t m m m N b e an instance of Knapsa ck W e will demonstrate n t w o basic parallel pro cesses P and Q suc h that there exist i i i f g with n P i m t if and only if P Q F ollo wing the afore men tioned idea the pro cess P will j j j sim ulate branc hing de ned b y individual subsequences and the pro cess Q will sim ulate the trace of length t F or the purp ose of coun ting w e will use a single visible action a that will help us to test if there is a branc h in the tree de ned b y P of length t ie equiv alen t with Q F or eac h m resp t w e will in tro duce a pro cess v ariable M resp T that will b e j j a able to p erform exactly a sequence of transitions of length m resp t The pro cess P j then will b e capable of generating an y subset of fM M g whereas the pro cess Q will n b e able to ev olv e in to T Finally w e will demonstrate that P is w eakly bisimilar to Q if and only if the answ er to the resp ectiv e instance is y es No w w e will presen t the transition rules that de ne the pro cess v ariables P and Q P P k k P Q P P M j n n j j Q T P j n j In order to complete the de nitions of P and Q w e ha v e to de ne pro cess v ariables M and j T Our only concern is that the resulting reduction is p olynomial time hence w e ha v e to use a little tric k in the de nition W e de ne a sequence of v ariables S S S in this w a y k a S S S k S for i k where k is tak en to b e blog max ft m m g c i i i n i m Th us w e ha v e obtained v ariables suc h that S a where w e use the expression a in the i e e e k ob vious meaning No w w e can de ne T S k k S k S where e e e is the k k binary enco ding of t The v ariables M M are de ned in a similar fashion M n j e e e k j j j S k k S k S where e e is the binary enco ding of m for j n T o k j j j k summarise w e only need k extra v ariables in order to de ne the pro cesses T and M j a It is easily seen from the construction that P can only p erform sequences of tran P sitions of length i m for some i i i f g Therefore if this sum nev er adds j j n j up to t the pro cess Q can b ecome T and th us force non bisimilarit y with P On the other P hand if there exist i i i f g suc h that i m t the pro cess P will generate n j j j i i n the comp osition M k k M as an answ er to the mo v e Q T and preserv e w eak n bisimilarit y If it is P that tak es the initiativ e then the pro cess Q simply mak es use of the rule Q P and then copies an y mo v e of P It is quite easy to v erify that the actual reduction can b e carried out in p olynomial time ho w ev er w e will not presen t the full details of the reduction here W e can nally conclude with the follo wing theorem Theorem The de cidability of we ak bisimilarity of b asic p ar al lel pr o c esses is NP har d W e ha v e to remark that the result w e ha v e just presen ted seems rather unimp ortan t since w e do not kno w whether w eak bisimilarit y of BPP is decidable at all W e can ho w ev er adjust the reduction for the sub class of totally normed BPP That means w e ha v e to get rid of zero normed pro cesses that are presen t in the pro cess algebra constructed ab o v e The problematic pro cesses are P since they ha v e at their disp osal the transition rules P i i Ho w ev er w e can c hange the instance of Knapsa ck sligh tly in order to disp ose of suc h P P P pro cesses W e can consider the instance i m m t m to whic h the answ er j j j j is y es if and only if the answ er to the original instance is y es That means a shift in the required v alues of i from i f g to i f g whic h is expressed in terms of the j j j transitions as P M k M P M and w e also need to alter the de nition of Q i i i i i to Q T k M k k M This c hange do esn t ha v e an y impact on the size of the n reduction as it can still b e done in p olynomial time Hence w e ha v e remo v ed all zero norm pro cesses and w e can assert that is NP hard ev en for totally normed pro cesses Theorem The de cidability of we ak bisimilarity of total ly norme d b asic p ar al lel pr o c esses is NP har d W eak bisim ulation of BP A is PSP A CE hard When w e lo ok carefully at the reduction of Knapsa ck on to w eak bisim ulation of BPP w e can see that it could b e easily mo di ed in to a reduction to w eak bisim ulation of BP A There are these transition rules whic h con tain parallel comp osition the de nitions of P and eac h M and T and the auxiliary v ariables S Ho w ev er in the whole pro cess algebra there is j i only a single visible action whic h is a and moreo v er the pro cess v ariables M M and n a T eac h determine a single string of mo v es with no a v ailable branc hing Therefore it do esn t mak e an y di erence to comp ose suc h pro cesses in the sequen tial or parallel fashion The nal impro v em en t when w e remo v e all zero norm pro cesses also w orks for BP A and hence w e come to the conclusion that deciding w eak bisimilarit y for totally normed BP A is NP hard Sequen tial comp osition ho w ev er enables us to go ev en further With the sequen tial structure of BP A pro cesses w e are able to enco de nite automata and hence ac hiev e a stronger result W e will use the totality pr oblem for nite automata Tot whic h is PSP A CE complete and construct a p olynomial time reduction on to w eak bisimilarit y of BP A Th us w e will sho w that this problem is at least PSP A CE hard First w e will de ne the totalit y problem for nite automata De nition Tot is the fol lowing pr oblem Instanc e A nondeterministic nite automaton A over some alphab et Question Is L A the language ac c epte d by A e qual to the total language This problem is PSP A CE complete ev en a t w o letter alphab et cf hence in the follo wing w e will assume that fa bg W e will in fact demonstrate a linear time reduction of Tot on to w eak bisimilarit y of BP A Theorem Tot No w w e will explain the main idea b ehind the reduction W e presupp ose a nondeterministic nite automaton A Q q fq g where fa bg is the input alphab et Q k fq q q g is the set of states with q b eing the initial and q the nal states and k k Q Q is the transition function W e will write q x q to express the fact i j that the state q b elongs to the set q x with x b eing either a or b Also note that wlog j i w e can assume a single nal state q k W e will sim ulate w ords o v er fa bg b y in tro ducing t w o v ariables A and B suc h that A can a b only p erform the transition A and B can only p erform the transition B Then an y pro cess o v er A and B will determine a single w ord from the alphab et T o sim ulate the total language w e will in tro duce a pro cess P that will b e capable of pro ducing an y string of atoms A and B Next w e w ould lik e to de ne a pro cess Q that can generate all strings from L A Ho w ev er since w e are only allo w ed the leftmost deriv ation in case of BP A pro cesses w e will de ne a pro cess that generates exactly all the rev erse w ords from L A Still w e will b e able to sho w that L A if and only if P Q F or eac h state q q q of the automaton A w e de ne a v ariable Q Q Q k k using the follo wing rules if q a q then Q Q A and if q b q then Q Q B i j i j i j i j s F or the v ariable Q that corresp onds to the nal state q w e add a sp ecial rule Q k k k where s is a sp ecial initial action The purp ose of s is to sync hronise the t w o pro cesses P and Q Finally w e put Q Q It is quite straigh tforw ard to observ e that a w ord w is in L A if and only if w e can via a sequence from the v ariable Q generate the pro cess Q R k w where R fA B g and there is a unique transition sequence R with w b eing the rev erse of w T o complete the reduction it remains to de ne the pro cess P whose task is to b e able to generate all strings from fA B g and sim ulate the pro cess Q and the v ariables A resp B that sim ulate the letters a resp b a P QT P P A A T T s b P P PB B F or tec hnical reasons w e need a pro cess that will blo c k an y sequence of v ariables that the pro cess P ma y ha v e generated The pro cess T forms suc h a blo c k since it is de ned as a lo op and therefore it is clear that T R for an y pro cess R The presence of T in the algebra means that the algebra fails to b e totally normed whic h op ens the question ab out the complexit y of w eak bisimilarit y for totally normed pro cesses The nal step is to sho w the correctness of the reduction Theorem Assume a given automaton A and P and Q de ne d as ab ove Then L A fa bg i P Q Pro of One implication is straigh tforw ard Assume that L A fa bg and let w fa bg n L A Since P is constructed to generate all strings of a and b it can pro duce a R sequence of v ariables capable of p erforming the w ord sw Ho w ev er as Q sim ulates the automaton A it cannot pro duce this string and th us P Q In order to sho w the other direction w e need to analyze the mo v es of P and Q The idea is that P will w ait for Q to mak e a mo v e and then resp ond b y doing P QT whic h blo c ks an ything whic h P ma y ha v e generated in the mean tim e Clearly Q QT R for an y pro cess R b ecause w e can nev er get past T On the other hand Q has to resp ond only when P decides to generate a sequence of A s and B s and then disapp ear Hence the resp onses of Q are P P R R fA B g in this case Q do es the empt y sequence Q Q P QT R R fA B g in this case Q QT R and hence again the resp onse is Q Q s P R R fA B g since Q can generate all strings o v er the alphab et fA B g it s will b e able to generate the pro cess R via Although this analysis is quite informal w e could easily construct a binary relation as a union of three binary relations eac h corresp onding to one case of the ab o v e analysis and v erify that it is a w eak bisim ulation relation That only requires to test that it is closed under expansion with whic h w ould again follo w the structure of the pro of Therefore w e ha v e P and Q w eakly bisimilar Finally w e can conclude that the automaton generates the total language if and only if the pro cesses P and Q are w eakly bisimilar It is not di cult to c hec k that this construction can b e done in time linear in the size of the input automaton as for eac h p ossible transition of the input automaton w e construct a single rule of the pro cess algebra and also the n um b er of states only increases b y a constan t Therefore w e can conclude that the problem of deciding w eak bisimilarit y for BP A is PSP A CE hard Conclusion W e cannot dra w an y strong conclusions from the results presen ted in this pap er Although w eak bisimilarit y seems a rather complex notion and hence w e migh t hop e to pro v e that if indeed it w as decidable for BP A and BPP the complexit y of a decision pro cedure w ould b e rather high there seem to b e obstacles that prev en t us from doing so The idea of the Knapsa ck reduction to w eak bisimilarit y of BPP ma y b e applied to more complex problems one of them migh t b e the v eri cation of Presburger sen tences whic h is kno wn to require at least doubly exp onen tial space T o conclude this pap er w e can dra w the follo wing comparisons for strong bisim ulation and normed BPP and BP A there exist p olynomial decision pro cedures When w e mo v e to totally normed BPP and BP A for whic h w eak bisim ulation is decidable the problem of deciding w eak bisimilarit y is NP hard whic h is to b e exp ected since w e are dealing with a more in tricate notion F or general BP A pro cesses if w eak bisimilarit y w as decidable then the decision problem w ould b e PSP A CE hard Ac kno wledgemen t I w ould lik e to thank m y advisor Mark Jerrum for suggesting this line of researc h and for helpful discussions throughout m y w ork on the results presen ted in this pap er References Christensen S Hirshfeld Y and Moller F Bisimulation Equivalenc e is De cidable for Basic Par al lel Pr o c esses in Pro ceedings of CONCUR LNCS Christensen S H uttel H and Stirling C Bisimulation e quivalenc e is de cidable for al l c ontext fr e e pr o c esses in Pro ceedings of CONCUR LNCS Esparza J Petri nets c ommutative c ontext fr e e gr ammars and b asic p ar al lel pr o c esses In F undamen tals of Computation Theory LNCS Springer V erlag Garey M R and Johnson D S Computers and Intr actability A Guide to the The ory of NP c ompletness F reeman San F rancisco Hirshfeld Y Bisimulation T r e es and the De cidability of We ak Bisimulations Draft of a pap er Hirshfeld Y Jerrum M and Moller F A p olynomial time algorithm for de ciding bisimulation e quivalenc e of norme d Basic Par al lel Pr o c esses In LF CS Rep ort Series Univ ersit y of Edin burgh Hirshfeld Y Jerrum M and Moller F A p olynomial time algorithm for de ciding bisimulation e quivalenc e of norme d Basic Par al lel Pr o c esses In Math Struct in Comp Science Cam bridge Univ ersit y Press Hirshfeld Y Jerrum M and Moller F A p olynomial algorithm for de ciding bisimilarity of norme d c ontext fr e e pr o c esses In LF CS Rep ort Series Univ ersit y of Edin burgh Hop croft J E and Ullman J D Intr o duction to A utomata The ory L anguages and Computation Addison W esley Milner R Communic ation and Concurr ency Pren tice Hall P apadimitriou C H Computational Complexity Addison W esley Place Bisim ulation Equiv alences for Design of Concurren t Systems Igor V T arasyuk A P Ersho v Institute of Informatics Systems Acad La vren tiev a v e No v osibirsk Russia F ax E mail itar iis nsk s u Abstract In this pap er w e supplemen t the set of basic and bac k forth b eha vioural equiv a lences for P etri nets considered in b y place bisim ulation ones The relationships of all the equiv alence notions are examined and their preserv ation b y re nemen ts is in v estigated to nd out whic h of these relations ma y b e used in top do wn de sign It is demonstrated that the place bisim ulation equiv alences ma y b e used for the comp ositional and history preserving reduction of P etri nets In tro duction The notion of equiv alence is cen tral to an y theory of systems Equiv alences allo w one to compare and reduce systems taking in to accoun t particular asp ects of their b eha viour P etri nets b ecame a p opular formal mo del for design of concurren t and distributed systems In recen t y ears a wide range of b eha vioural equiv alences w as prop osed in the concurrency theory The equiv alencs can b e classi ed dep ending of seman tics of concurrency they imp ose In interle aving seman tics a concurren t happ ening of actions is in terpreted as their o ccurrence in an y p ossible order In step seman tics a concurrency of actions is a basic notion but their causal dep endencies are not resp ected In p artial wor d seman tics causal dep endencies of actions are resp ected in part via partially ordered m ultisets p omsets of actions and a p omset ma y b e mo delled b y a less sequen tial one i e ha ving less strict partial order In p omset seman tics causal dep endencies of actions are fully resp ected and p omsets of actions should coincide to mo del eac h other In pr o c ess seman tics a structure of a pro cess causal net is resp ected The w ork is supp orted b y V olksw agen Stiftung gran t I INT AS RFBR gran t and the F oundation for Promotion to Y oung Scien tists of Sib erian Division of the Russian Academ y of Sciences The follo wing basic notions of b eha vioural equiv alences w ere prop osed T r ac e e quivalenc es they resp ect only proto cols of b eha viour of systems in terlea ving step partial w ord p omset and pro cess i s pw pom pr Usual bisimulation e quivalenc es they resp ect branc hing structure of b eha viour of systems in terlea ving step partial w ord p omset i s pw pom and pro cess pr ST bisimulation e quivalenc es they resp ect the duration or maximal it y of ev en ts in b eha viour of systems in terlea ving partial w ord p omset iS T pw S T and pro cess pomS T pr S T History pr eserving bisimulation e quivalenc es they resp ect the history of b eha viour of systems p omset and pro cess pomh pr h Con ict pr eserving e quivalenc es they completely resp ect con icts of ev en ts in sys tems m ulti ev en t structure and o ccurrence mes occ Isomorphism i e coincidence of systems up to renaming of their comp onen ts Another imp ortan t group of equiv alences are bac k forth bisim ulation ones whic h are based on the idea that a bisim ulation relation should not only require systems to sim ulate eac h other b eha viour in the forw ard direction but also when going bac k in the history By no w the set of all p ossible bac k forth equiv alence notions w as prop osed in in terlea ving step partial w ord and p omset seman tics Most of them coincide with basic or with other bac k forth relations The follo wing new notions w ere obtained step bac k step forth sbsf step bac k partial w ord forth and step bac k p omset forth sbpw f sbpomf bisim ulation equiv alences In w e supplemen ted them b y sev eral new relations in pro cess seman tics step bac k pro cess forth and p omset bac k pro cess forth sbpr f pombpr f bisim ulation equiv alences The third imp ortan t group of equiv alences are place bisim ulation ones in tro duced in They are relations b et w een places instead of markings or pro cesses The relation on markings is obtained using the lifting of relation on places The main application of place bisim ulation equiv alences is an e ectiv e global b eha viour preserving reduction tec hnique for P etri nets based on them In in terlea ving place bisim ulation equiv alence w as i prop osed In this pap er strict in terlea ving place bisim ulation equiv alence w as de ned i also b y imp osing the additional requiremen t stating that corresp onding transitions of nets m ust b e related b y the bisim ulation In step partial w ord p omset s pw pro cess place bisim ulation equiv alences and their strict analogues pom pr s pw w ere prop osed The coincidence of and w as established It w as pom pr i s pw sho wn that all strict bisim ulation equiv alences coincide with Th us only three di eren t pr equiv alences remain and In addition in these pap ers the p olynomial i pom pr algorithm of a net reduction mo dulo and w as prop osed i pr T o c ho ose appropriate b eha vioural viewp oin t on systems to b e mo delled it is imp or tan t to ha v e a complete set of equiv alence notions in all seman tics and understand their in terrelations T reating equiv alences for preserv ation b y re nemen ts allo ws one to decide whic h of them ma y b e used for top do wn design In this pap er w e obtain a n um b er of results on solution these problems for place bisim ulation equiv alences The rst result is a diagram of in terrelations of place equiv alences with basic and bac k forth b eha vioural notions from W e pro v e that implies and answ er the pr pr h question from it is no sense to de ne history preserving place bisim ulation equiv a lence Another consequence is the algorithm of a net reduction from based on pr preserv es histories of the b eha viour of the initial net The second result is concerned a notion of transition re nemen t In SM re nemen t op erator for P etri nets w as prop osed whic h replaces their transitions b y SM nets a sub class of state mac hine nets W e treat all the considered equiv alence notions for preserv ation b y SM re nemen ts and establish that is the only place bisim ulation equiv alence whic h pr is preserv ed b y SM re nemen ts Th us this equiv alence ma y b e used for the comp ositional reduction of nets Basic de nitions In this section w e presen t some basic de nitions used further Nets Let Act fa b g b e a set of action names De nition A lab elled net is a quadruple N hP T F l i wher e N N N N P fp q g is a set of places N T ft u g is a set of transitions N F P T T P N is the o w relation with weights N denotes a set N N N N N of natur al numb ers l T Act is a lab elling of tr ansitions with action names N N Giv en lab elled nets N and N A mapping P T P T is an isomorphism N N N N b et w een N and N denoted b y N N if is a bijectiv e renaming of places and transitions of N s t the nets N and N coincide up to it Tw o lab elled nets N and N are isomorphic denoted b y N N if N N Giv en a lab elled net N and some transition t T the pr e c ondition and p ostc ondition N of t denoted b y t and t resp ectiv ely are the m ultisets de ned in suc h a w a y t p F p t and t p F t p Analogous de nitions are in tro duced for places p t N N F t p and p t F p t Let N fp P j p g is the set of input places of N N N N and N fp P j p g is the set of output places of N N A lab elled net N is acyclic if there exist no transitions t t T s t t t n N i i i n and t t A lab elled net N is or dinary if p P p and p are prop er n N sets not m ultisets Let N hP T F l i b e an acyclic ordinary lab elled net and x y P T Let N N N N N N us in tro duce the follo wing notions x y xF y where F is a transitiv e closure of F the strict c ausal dep endenc e N N N N relation x fy P T j y xg the set of strict pr e de c essors of x N N N N A set T T is left close d in N if t T t T T N N N W e denote the set of al l nite multisets o v er a set X b y M X A marking of a lab elled net N is a m ultiset M M P N De nition A mark ed net is a tuple N hP T F l M i wher e N N N N N hP T F l i is a lab el le d net and M M P is the initial marking N N N N N N Let M M P b e a marking of a net N A transition t T is r able in M if N N f t M If t is rable in M its ring yields a new marking M M t t denoted b y t f M M P artially ordered sets De nition A lab elled partially ordered set lp oset is a triple hX l i wher e X fx y g is some set X X is a strict p artial or der irr e exive tr ansitive r elation over X l X Act is a lab elling function Let hX l i and hX l i b e lp osets A mapping X X is a homomorphism b et w een and denoted b y v if it is a bijection and x y X x y x y x X l x l x W e write v if v A mapping X X is an isomorphism b et w een and denoted b y if v and v Tw o lp osets and are isomorphic denoted b y if De nition P artially ordered m ultiset p omset is an isomorphism class of lp osets Pro cesses De nition A causal net is an acyclic or dinary lab el le d net C hP T F l i s t C C C C r P j r j and jr j i e plac es ar e unbr anche d C x P T j xj i e a set of c auses is nite C C C Let us note that on the basis of an y causal net C one can de ne lp oset hT C C N T T l i C C C The fundamen tal prop ert y of causal nets is if C is a causal net then there exists v v n a sequence of transition rings a ful l exe cution of C s t C L L C s t n n L P i n P L and T fv v g i C C i C n