Transition systems (motivation)

Similar documents
Bisimulation, Games & Hennessy Milner logic

CS 573 Automata Theory and Formal Languages

NON-DETERMINISTIC FSA

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS

System Validation (IN4387) November 2, 2012, 14:00-17:00

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

Convert the NFA into DFA

Arrow s Impossibility Theorem

Arrow s Impossibility Theorem

Coalgebra, Lecture 15: Equations for Deterministic Automata

1 Nondeterministic Finite Automata

Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α

Finite State Automata and Determinisation

Nondeterministic Automata vs Deterministic Automata

Minimal DFA. minimal DFA for L starting from any other

Formal Languages and Automata

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

= state, a = reading and q j

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

Exercises with (Some) Solutions

Bases for Vector Spaces

Lecture 08: Feb. 08, 2019

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

6.5 Improper integrals

Lecture 3: Equivalence Relations

Part 4. Integration (with Proofs)

Chapter 2 Finite Automata

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

Strong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation

For a, b, c, d positive if a b and. ac bd. Reciprocal relations for a and b positive. If a > b then a ab > b. then

Nondeterministic Finite Automata

Behavior Composition in the Presence of Failure

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages

Abstraction of Nondeterministic Automata Rong Su

Lecture 6: Coding theory

p-adic Egyptian Fractions

Introduction to Olympiad Inequalities

Designing finite automata II

Discrete Structures Lecture 11

Nondeterminism and Nodeterministic Automata

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

CM10196 Topic 4: Functions and Relations

Homework 3 Solutions

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

State Minimization for DFAs

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite!

Chapter 4 State-Space Planning

CIT 596 Theory of Computation 1. Graphs and Digraphs

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

STRUCTURE OF CONCURRENCY Ryszard Janicki. Department of Computing and Software McMaster University Hamilton, ON, L8S 4K1 Canada

Matrices SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics (c) 1. Definition of a Matrix

Line Integrals and Entire Functions

Converting Regular Expressions to Discrete Finite Automata: A Tutorial

Logic, Set Theory and Computability [M. Coppenbarger]

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

1.3 SCALARS AND VECTORS

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b

First Midterm Examination

INTEGRATION. 1 Integrals of Complex Valued functions of a REAL variable

Tutorial Automata and formal Languages

More on automata. Michael George. March 24 April 7, 2014

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS

2.4 Theoretical Foundations

Regular expressions, Finite Automata, transition graphs are all the same!!

The Word Problem in Quandles

Ch. 2.3 Counting Sample Points. Cardinality of a Set

3 Regular expressions

CS 491G Combinatorial Optimization Lecture Notes

A Lower Bound for the Length of a Partial Transversal in a Latin Square, Revised Version

Test Generation from Timed Input Output Automata

Harvard University Computer Science 121 Midterm October 23, 2012

Running an NFA & the subset algorithm (NFA->DFA) CS 350 Fall 2018 gilray.org/classes/fall2018/cs350/

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University

Section 1.3 Triangles

2.4 Linear Inequalities and Interval Notation

CMSC 330: Organization of Programming Languages

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18

(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P.

Chapter 3. Vector Spaces. 3.1 Images and Image Arithmetic

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

CS 311 Homework 3 due 16:30, Thursday, 14 th October 2010

Parse trees, ambiguity, and Chomsky normal form

Part I: Study the theorem statement.

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

Name Ima Sample ASU ID

Vectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors:

April 8, 2017 Math 9. Geometry. Solving vector problems. Problem. Prove that if vectors and satisfy, then.

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24

Linear Algebra Introduction

Prefix-Free Regular-Expression Matching

Intermediate Math Circles Wednesday 17 October 2012 Geometry II: Side Lengths

Petri Nets. Rebecca Albrecht. Seminar: Automata Theory Chair of Software Engeneering

Homework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama

Transcription:

Trnsition systems (motivtion) Course Modelling of Conurrent Systems ( Modellierung neenläufiger Systeme ) Winter Semester 2009/0 University of Duisurg-Essen Brr König Tehing ssistnt: Christoph Blume In the following we will look t trnsition systems, whih n e used to represent the ehviour of system in very diret nd expliit wy. 2 3 Brr König Course Modelling of Conurrent Systems Ations nd sequenes of tions We use the following nottion: At: set of tomi tions, often denoted y,,,.... We will sometimes use the internl tion τ, whih should e invisile from outside. At : the set of ll finite words over the lphet At. At ω : the set of ll infinite words over the lphet At. An infinite word w At ω n e represented y mpping w : N0\{0} At. At = At At ω : the set of ll finite nd infinite words over At. Pref(L): given lnguge L At we define the set of ll prefixes of L s follows: Brr König Course Modelling of Conurrent Systems 24 Reltions We use the following nottion for reltions: A reltion R etween the sets A, B is suset of A B, i.e., R A B. Let (, ) A B e pir with (, ) R. Then we lso write R (in words: is relted to ). Pref(L) = {u At w L, v At : w = uv}. Brr König Course Modelling of Conurrent Systems 25 Brr König Course Modelling of Conurrent Systems 26

Trnsition systems Trnsition system (definition) Let At e fixed set of tions. A trnsition system T = (Z, ) over At onsists of A set Z of sttes nd set Z At Z of trnsitions etween sttes. A trnsition system is lled finite if the stte set s well s the set of trnsitions is finite. Insted of (, l, ) we will in the following write l. Furthermore we will revite... n y...n. In ddition ε holds for every stte. Given stte we write if there exists stte with nd if there is no suh stte. Trnsition systems (exmples) A lssil exmple: the te/offee-mhine We wnt to model very simple mhine tht outputs te or offee fter hs een inserted nd utton hs een pressed, n show fulty ehviour nd my potentilly ehve non-deterministilly. Brr König Course Modelling of Conurrent Systems 27 Trnsition systems (exmples) Brr König Course Modelling of Conurrent Systems 28 Trnsition systems (exmples) offee te hnge utton(offee) utton(te) utton(offee) utton(te) offee te A te/offee-mhine. A mhine tht gives k hnge. We distinguish etween input tions of the form nd output tions (lso lled otions) of the form. Brr König Course Modelling of Conurrent Systems 29 Brr König Course Modelling of Conurrent Systems 29

Trnsition systems (exmples) Trnsition systems (exmples) error error offee te utton(offee) utton(te) offee utton(offee) error utton(te) te A mhine with n error. The ourrene of n error is tully rther n internl tion nd ould lterntively e modelled with τ. An (unfir) mhine with fulty ehviour whih my enter the error stte fter hs een inserted. Brr König Course Modelling of Conurrent Systems 29 Trnsition systems (exmples) Brr König Course Modelling of Conurrent Systems 29 Trnsition systems (exmples) repir error offee te utton(offee) utton(te) offee utton(offee) te utton(te) A mhine with n error stte tht n e repired. A mhine with non-deterministi ehviour tht mkes hoie of everges for the user. Brr König Course Modelling of Conurrent Systems 29 Brr König Course Modelling of Conurrent Systems 29

Deterministi trnsition systems Deterministi trnsition system (definition) A trnsition system T = (Z, ) is lled deterministi, if for every stte Z: Remrks: Whenever nd 2, then = 2. All te/offee-mhines, prt from the lst, re deterministi. Opposed to deterministi finite utomt we do not require for deterministi trnsition systems tht every tion is fesile in every stte. Trnsition systems (exmples) The Dining Philosophers prolem onsiders proesses (= philosophers) nd resoures (= forks): Three philosophers re seted t round tle nd there is fork etween eh pir of philosophers sitting side y side. Philosophers eventully get hungry nd need oth djent forks in order to et. Eh philosopher piks up oth forks (in ny order) t n ritrry moment in time, ets nd, fter eting, puts k oth forks. P F3 F F2 P2 P3 Brr König Course Modelling of Conurrent Systems 30 Trnsition systems (exmples) Brr König Course Modelling of Conurrent Systems 3 Trnsition systems (exmples) Question The intention is tht the system runs forever nd never termintes. Cn the system reh dedlok stte in whih no tions re possile? We solve this question y drwing the orresponding trnsition system (t lest prtilly). Sttes: 3-tuples of the form (, 2, 3), where i symolies the stte of fork Fi. It holds tht: {, P, P2} (F is not ssigned, ssigned to P or to P2) 2 {, P2, P3} (nlogous mening) 3 {, P3, P} (nlogous mening) Hene the trnsition system hs 3 3 = 27 sttes. Ations: t(pi, Fj): philosopher Pi tkes fork Fj. ei: philosopher Pi ets. ri: philosopher Pi returns oth forks. Brr König Course Modelling of Conurrent Systems 32 Brr König Course Modelling of Conurrent Systems 33

Trnsition systems (exmples) Exerpt from the trnsition system: r (,, ) t(p, F) (P,, ) t(p, F3) t(p2, F2) Trnsition systems (exmples) Exerpt from the trnsition system: r (,, ) t(p, F) (P,, ) t(p, F3) t(p2, F2) e (P,, P) (P, P2, ) e (P,, P) (P, P2, ) t(p2, F2) t(p3, F3) t(p2, F2) t(p3, F3) e2 e (P, P2, P) t(p2, F) (P2, P2, ) (, P2, ) r (P, P2, P3) e2 e (P, P2, P) t(p2, F) (P2, P2, ) (, P2, ) r (P, P2, P3) Dedlok! No more trnsitions re possile. Brr König Course Modelling of Conurrent Systems 34 Trnsition systems (exmples) Possile solutions for the dedlok prolem: Avoid dedloks: A philosopher hs to tke oth forks simultneously. Introdution of left-hnded nd right-hnded philosophers. A left-hnded philosopher tkes the left fork first, right-hnded philosopher tkes the right fork first. If we hve left-hnded s well s right-hnded philosophers, no dedloks n our. Order the resoures: F < F2 < F3. The smller resoure with respet to the ordering, the erlier it hs to e tken. Reognie nd resolve dedloks: dedloks hve to e found (y monitoring proess, vi timeouts,... ) nd to e resolved ordingly. Brr König Course Modelling of Conurrent Systems 34 Behviourl equivlenes (tre equivlene) Lnguge of stte (definition) The lnguge of stte is the set of ll words over At, whih orrespond to pths originting from. There re three distint possiilities to define lnguges: S() = {w At Z : w } S ω () = {23 At ω S () = S() S ω () 2 3 2... } The lnguge of stte is lso lled its set of tres. Tre equivlene (definition) Two sttes, Z re lled S-tre equivlent whenever S() = S( ). Anlogously we define S ω - nd S -tre equivlene. Brr König Course Modelling of Conurrent Systems 35 Brr König Course Modelling of Conurrent Systems 36

Behviourl equivlenes (tre equivlene) Tre equivlene hs the following property: Whenever, re S -tre equivlent, then they re lso S- nd S ω -tre equivlent. Reson: S () = S ( ) implies S() = S () At = S ( ) At = S( ). Anlogously: S ω () = S () At ω = S ( ) At ω = S ω ( ). Behviourl equivlenes (tre equivlene) However: Whenever, re S-tre equivlent sind, then they re not neessrily S ω -tre equivlent (nd vie vers). Counterexmples: Sttes, re S-equivlent, ut not S ω -equivlent. (From only finite pths originte.)... Sttes, re S ω -equivlent, ut not S-equivlent.... Brr König Course Modelling of Conurrent Systems 37 Behviourl equivlenes (filures equivlene) Brr König Course Modelling of Conurrent Systems 38 Behviourl equivlenes (filures equivlene) Motivtion: the sttes, of the following two te/offee-mhines re tre equivlent. offee utton(offee) te utton(te) offee utton(offee) te utton(te) However, one does not relly wnt to onsider these two sttes s equl. In one se the mhine works orretly, in the other the mhine keeps the without giving k everge. Therefore: tre equivlene is not suffiient. We lso need wy of expressing tht the rehle sttes llow respetively disllow the sme tions. Brr König Course Modelling of Conurrent Systems 39 Filures equivlene (Definition) Let T = (Z, ) e trnsition system. The set of filure pirs of stte Z is defined s: F() = {(w, A) At P(At) Z : w nd for ll A} Two sttes, Z re lled filure equivlent whenever F() = F( ). Brr König Course Modelling of Conurrent Systems 40

Behviourl equivlenes (filures equivlene) Behviourl equivlenes (filures equivlene) Motivtion: the sttes, of the two following te/offee-mhines re tre equivlent. offee utton(offee) te utton(te) offee utton(offee) te utton(te) In the exmple F( ) ontins the pir (, {utton(offee), utton(te)}) whih is not ontined in F(). Remrks: If pir (w, A) is ontined in the set F(), then we know for every A A tht lso (w, A ) F(). (We lso sy: F() is losed under set inlusion.) Hene it is suffiient to onsider pirs (w, A) where A is mximl. The definition of tivtion equivlene with the following sets A() is not suffiient to distinguish the orret mhine from the fulty one. A() = {(w, A) At P(At) Z : w nd for ll A} Brr König Course Modelling of Conurrent Systems 4 utomt Proess luli Petri nets Grph trnsformtion Introdution Trnsition systems Bühi Behviourl equivlenes (filures equivlene) Another exmple for filures equivlene: It holds tht: F() = {(ε, A) A {, }} {(, A) A {,, }} {(, A) A {,, }} {(, A) A {,, }} = F( ) nd, re hene filure equivlent. Brr König Course Modelling of Conurrent Systems 43 Brr König Course Modelling of Conurrent Systems 42 Behviourl equivlenes (isimilrity) There is nother importnt equivlene whih is slightly finer thn filures equivlene nd usully esier to mehnie: isimilrity or isimultion equivlene. Intuitively we require tht the two sttes, re le to mutully simulte eh other. Bisimultion (definition) Let T = (Z, ) e trnsition system. A reltion R Z Z on sttes is lled isimultion if for every pir (, 2) R nd for every tion At: for every with there exists 2 with 2 2 nd (, 2 ) R. for every 2 with 2 2 there exists with nd (, 2 ) R. Brr König Course Modelling of Conurrent Systems 44

Behviourl equivlenes (isimilrity) Behviourl equivlenes (isimilrity) Bisimilrity (Definition) Two sttes, 2 re lled isimilr if there exists isimultion R with (, 2) R. In this se we write 2. The reltion is lled isimilrity or isimultion equivlene. Exmples: offee te utton(offee) utton(te) offee te utton(offee) utton(te) The two sttes, re not isimilr. Brr König Course Modelling of Conurrent Systems 45 Behviourl equivlenes (isimilrity) Brr König Course Modelling of Conurrent Systems 46 Behviourl equivlenes (isimilrity) Exmples: offee te offee te utton(offee) utton(te) utton(offee) utton(te) The two sttes, re not isimilr. Exmples: d 5 d 2 6 7,, 3 4 8 The two sttes =, = 5 re isimilr. Bisimultion: R = {(, 5), (2, 6), (2, 7), (3, 8), (4, 8)} d Brr König Course Modelling of Conurrent Systems 47 Brr König Course Modelling of Conurrent Systems 48

Behviourl equivlenes (isimilrity) Behviourl equivlenes (isimilrity) Bisimilrity n lso e hrteried s gme: Bisimultion gme Prtiipnts: Plyer I, Plyer II Equipment: 2 tokens, trnsition system Initil sitution: The two tokens re pled on the sttes,. Rules of one round: Plyer I hooses one of the two tokens nd mkes n ritrry (-)trnsition. Plyer II hs to tke the other token nd mke n -trnsition s n nswer. Importnt: In eh round Plyer I n hnge nd hoose the other token! Bisimultion gme (ontinution) Gme plying: Strting with the initil sitution one round fter the other is plyed, until one of the two plyers n not mke nother move. Winning ondition: Plyer I wins if he n mke move tht n not e simulted y Plyer II. Plyer II wins if he n simulte every move of Plyer I. (This n lso men tht the gme ontinues forever.) Brr König Course Modelling of Conurrent Systems 49 Behviourl equivlenes (isimilrity) Brr König Course Modelling of Conurrent Systems 50 Behviourl equivlenes (isimilrity) Corretness of the isimultion gme (proposition) Two sttes, re isimilr if nd only if Plyer II hs winning strtegy in the orresponding isimultion gme, where tokens re initilly pled on,. Remrks: This mens tht Plyer II hs to e le to win if he does not mke mistke. It does not men tht Plyer II will lwys win regrdless of the moves he mkes. The strtegy mentioned ove is isimultion reltion R whih n e used to show tht nd re isimilr. How to desrie winning strtegy for Plyer I? Plyer I mkes the first move. It is possile to set up deision tree tht reords whih moves hve to e mde y Plyer I depending on the nswering moves of Plyer II. The leves of the deision tree re the moves of Plyer I whih n not e nswered y Plyer II. Brr König Course Modelling of Conurrent Systems 5 Brr König Course Modelling of Conurrent Systems 52

Behviourl equivlenes (isimilrity) Behviourl equivlenes (isimilrity) Exmple (winning strtegy for Plyer I): 2 4 Properties of isimilrity: Bisimilrity is isimultion (proposition) 2 3 5 6 Let T = (Z, ) e trnsition system. The isimilrity on Z stisfies: = {R R Z Z, R is isimultion} The isimilrity is isimultion itself. Plyer I: 3 Plyer II: 4 5 4 6 Plyer I: 5 5 3 3 Plyer II: Depending on whether Plyer II nswers with 4 5 or with 4 6, it is neessry for Plyer I to hoose different move. Brr König Course Modelling of Conurrent Systems 53 Behviourl equivlenes (isimilrity) Brr König Course Modelling of Conurrent Systems 54 Behviourl equivlenes (isimilrity) Closure properties (proposition) Let T = (Z, ) e trnsition system nd let R, R2 e isimultions. Then the following reltions re isimultions s well: Id Z = {(, ) Z}. 2 R = {(2, ) (, 2) R} 3 RR2 = {(, 3) 2 : (, 2) R, (2, 3) R2} 4 R R2 The first three sttements of the proposition imply tht isimilrity is n equivlene reltion, i.e., it is reflexive, symmetri nd trnsitive. Similr to the minimition proedure for (deterministi) finite utomt, there exists method for determining isimilr pirs of sttes in trnsition system. Ide: Strt with very orse reltion 0 tht reltes ll possile sttes. Refine this reltion step y step nd onstrut reltions, 2,.... As soon s two susequent reltions ide ( n = n+) we hve found the isimilrity (t lest for finite trnsition systems). Tht is, we hve = n. Brr König Course Modelling of Conurrent Systems 55 Brr König Course Modelling of Conurrent Systems 56

Behviourl equivlenes (isimilrity) Method for determining isimilr pirs of sttes Input: A trnsition system T = (Z, ) Define 0 = Z Z. n+ Z Z, where n+ if nd only if for ll At: For every with there exists 2 suh tht 2 nd n 2. 2 For every 2 with 2 there exists suh tht und n 2. The method termintes s soon s n= n+. Output: n Behviourl equivlenes (isimilrity) Exmple: determine the isimilr pirs of sttes of the following trnsition system 2 3 4 6 7 5 Brr König Course Modelling of Conurrent Systems 57 Behviourl equivlenes (isimilrity) Brr König Course Modelling of Conurrent Systems 58 Behviourl equivlenes (isimilrity) If we represent the equivlene reltions i vi equivlene lsses, then we otin the following sequene 0,, 2= 3. 5 7 5 0 3 2 6 3 2 6 7 4 2 = 3 3 2 5 6 3 2 6 4 5 7 7 4 4 Lemm It holds tht: n is n equivlene reltion for ll n N0. 2 n implies m for ll m n. 3 implies n for ll n N0. 4 n= n+ implies n= m for ll m n. Brr König Course Modelling of Conurrent Systems 59 Brr König Course Modelling of Conurrent Systems 60

Behviourl equivlenes (isimilrity) Behviourl equivlenes (isimilrity) Proposition Let T = (Z, ) e trnsition system whih is finitely rnhing, i.e., for every stte the set is finite. { At: } Then we hve if nd only if n for ll n N0. In other words: = n N0 n. Corollry For every finite trnsition system we hve: The method for determining isimilr pirs of sttes lwys termintes nd 2 returns the orret isimilrity. This proposition does not hold for trnsition systems whih re not finitely rnhing. Brr König Course Modelling of Conurrent Systems 6 Behviourl equivlenes (isimilrity) Brr König Course Modelling of Conurrent Systems 62 Internl tions Remrks onerning the method for determining isimilr pirs of sttes: For n effiient implementtion the reltions 0,, 2,..., should not e stored expliitly. Espeilly this holds for the reltion 0 whih ontins ll pirs of sttes nd hs hene sie Z 2. An effiient implementtion represents the equivlene reltion i vi its equivlene lsses. At the eginning there is only one equivlene lss whih is then refined ordingly (see lso the previous exmple). In the following we regrd τ-tions s speil internl tions whih re invisile from the outside. This mens speifilly: An tion sequene τ τ... 2 looks from outside s if no tion hs een performed. In n tion sequene τ τ...... 2 n externl oserver only sees tion. Brr König Course Modelling of Conurrent Systems 63 Brr König Course Modelling of Conurrent Systems 64

Internl tions Internl tions Hene we define new wek trnsition reltion: Definition For set At of tions we define the following reltions: ε 2 if nd only if ( ) τ 2, i.e., τ τ... 2. For n At we hve 2 if nd only if ε ε 2. Stndrd trnsitions will in the following lso e lled strong trnsitions in order to distinguish them from wek trnsitions. Divergene A trnsition system T = (Z, ) with τ-trnsitions is lled divergent if there exists n infinite run τ τ 2 τ.... It is lled onvergent if there is no suh run. Brr König Course Modelling of Conurrent Systems 65 Internl tions Brr König Course Modelling of Conurrent Systems 66 Internl tions Behviourl equivlenes nd τ-trnsitions Wek tre equivlene, wek filures equivlene nd wek isimilrity re defined on wek trnsitions of the form. In this wy we otin orser ehviourl equivlenes, i.e., more sttes re relted to eh other. Exmple : 3 τ τ τ τ 2 4 5 7 6 8 The two sttes, re wekly tre equivlent. Brr König Course Modelling of Conurrent Systems 67 Brr König Course Modelling of Conurrent Systems 68

Internl tions Internl tions Exmple 2: 3 τ τ 2 4 5 7 τ 6 τ 8 The two sttes, re wekly tre equivlent s well. We will now onsider wek isimilrity in more detil: Wek isimultion (definition) Let T = (Z, ) e trnsition system. A reltion R Z Z on sttes is lled wek isimultion if for every pir (, 2) R nd for every At\{τ} {ε} we hve: For every with there exists 2 with 2 2 nd (, 2 ) R. For every 2 with 2 2 there exists with nd (, 2 ) R. Brr König Course Modelling of Conurrent Systems 69 Internl tions Brr König Course Modelling of Conurrent Systems 70 Internl tions Wek isimilrity (definition) Two sttes, 2 re lled wekly isimilr if there exists wek isimultion R with (, 2) R. In this se we write 2. The reltion is known s wek isimilrity or oservtionl equivlene. Remrk: the definition of isimilrity given ove is not very stisftory for prtil purposes, sine there re usully mny more strong thn wek trnsitions. Hene the following lterntive hrterition is preferle: Alterntive hrkterition of wek isimultion (proposition) A reltion R Z Z is wek isimultion if nd only if for every pir (, 2) R nd for every At: For eh with there exists 2 with 2 â 2 nd (, 2 ) R. For eh 2 with 2 2 there exists with â nd (, 2 ) R. We define â =, whenever At\{τ}, nd ˆτ = ε. Brr König Course Modelling of Conurrent Systems 7 Brr König Course Modelling of Conurrent Systems 72

Internl tions Exmple : τ τ τ 2 3 4 5 7 6 8 The two sttes, re wekly isimilr with isimultion R = {(, 3), (, 4), (, 5), (2, 6), (, 7), (, 8)}. Brr König Course Modelling of Conurrent Systems 73 Internl tions τ Internl tions Exmple 2: τ τ 2 3 4 5 7 6 8 τ τ The two sttes, re not wekly isimilr. Plyer I mkes move = 3 7 tht n e nswered y Plyer II only with = 2. Then Plyer I mkes move 2 nd stte 7 does not llow ny further (wek) -move. Brr König Course Modelling of Conurrent Systems 74 Behviourl equivlenes (omprison) Remrks: The lterntive hrterition of wek isimilrity is more onvenient for showing tht two sttes re wekly isimilr. (Sine Plyer I hs fewer possiilities.) Insted the usul hrterition is more onvenient for showing tht two sttes re not wekly isimilr. (Sine Plyer I hs more possiilities.) The other, less onvenient, hrterition works s well. However it might e neessry to invest more effort. We now show how the vrious ehviourl equivlenes re relted. We first restrit ourselves to strong trnsitions. However, the results hold nlogously lso for the wek equivlenes. Filures equivlene implies S-tre equivlene (proposition) Let, e two filure equivlent sttes, i.e., F() = F( ). Then, re lso S-tre equivlent, i.e., S() = S( ). Remrk: two filure equivlent sttes re not neessrily S ω -tre equivlent. Brr König Course Modelling of Conurrent Systems 75 Brr König Course Modelling of Conurrent Systems 76

Behviourl equivlenes (omprison) Behviourl equivlenes (omprison) Bisimilrity implies filures equivlene nd S ω -tre equivlene (proposition) Let, e two isimilr sttes, i.e., we hve. Then nd re lso filure equivlent nd S ω -tre equivlent. Finlly we ompre strong nd wek isimilrity: Strong isimilrity implies wek isimilrity Let, two (strongly) isimilr sttes, i.e., we hve. Then, re lso wekly isimilr, i.e.,. Reson: Every strong isimultion ist lso wek isimultion (where eh strong trnsition is simulted gin y strong trnsition). Brr König Course Modelling of Conurrent Systems 77 Behviourl equivlenes (omprison) Brr König Course Modelling of Conurrent Systems 78 Preorders Hene we hve the following sitution (eh rrow stnds for n implition): S-equ. S ω -equ. S -equ. fil. equ. isimilr wekly S-equ. wekly S ω -equ. wekly S -equ. wekly fil. equ. wekly isimilr Aprt from the ehviourl equivlenes onsidered so fr there re lso preorders, whih order sttes, depending on whether they exhiit more or less ehviour. The reltions tht we onsider here re not rel orders, ut only preorders (lso lled qusi-orders) sine they re reflexive nd trnsitive, ut usully not nti-symmetri. Brr König Course Modelling of Conurrent Systems 79 Brr König Course Modelling of Conurrent Systems 80

Preorders Preorders Preorders (definition) Let T = (Z, ) e trnsition system nd let, Z e two sttes. The sttes, re ordered with respet to (S-)lnguge inlusion, whenever S() S( ). (Anlogously: S ω -/S -lnguge inlusion) The orresponding preorder is lled tre preorder. The sttes, re ordered with respet to inlusion of the sets of filure pirs, whenever F() F( ). The orresponding preorder is lled filures preorder. The notion of simultion is otined from the definition of isimultion y using only the first of the two onditions. Simultion (definition) Let T = (Z, ) e trnsition system. A reltion R Z Z on sttes is lled simultion whenever for every pir (, 2) R nd for every tion At: For every with there exists 2 with 2 2 nd (, 2 ) R. We sy tht stte 2 simultes stte (in symols: 2) whenever there exists simultion R with (, 2) R. Remrk: 2 implies S() S(2) nd S ω () S ω (2) Brr König Course Modelling of Conurrent Systems 8 Preorders Remrks onerning simultion: Let 2, i.e., 2 simultes. Then it does not neessrily hold tht either F() F(2) or F() F(2). 2 Sine R = {(, 3), (2, 4)} is simultion, we hve 3. However F() F(3) does not hold (sine (, {}) F(3)), nd neither does F(3) F() (sine (, ) F()). 3 4 5 Brr König Course Modelling of Conurrent Systems 83 Brr König Course Modelling of Conurrent Systems 82 Preorders 2 nd 2 do not neessrily imply 2. Tht is, mutul similrity does not imply isimilrity. 2 We hve 3 sine {(, 3), (2, 3)} is simultion, nd 3 sine {(3, )} is simultion ist. However: 3. Intuitive explntion: the two sttes n only e reognied s isimilr if Plyer I swithes to the other token. However, this is not possile for mutul simultion. 3 Brr König Course Modelling of Conurrent Systems 84

Preorders 2 lwys implies 2 nd 2. This is used y the ft tht every isimultion is lso simultion. Brr König Course Modelling of Conurrent Systems 85