07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7 I/O-automata Based Test<strong>in</strong>g 183<br />

Under the restrictions of fair approximability and fair cont<strong>in</strong>uity we can show<br />

that the fair preorder and the quiescent preorder are equivalent for strongly<br />

converg<strong>in</strong>g IOA (we need strong convergence to rule out divergence).<br />

Theorem 7.9. Let i, s ∈ IOA be strongly convergent.<br />

i ⊑F s ⇒ i ⊑Q s<br />

If p1 is fair approximable, and p2 is fair cont<strong>in</strong>uous, then p1 ⊑Q p2 ⇒<br />

p1 ⊑F p2<br />

In the next part of this section we will <strong>in</strong>troduce may and must test<strong>in</strong>g for<br />

systems with <strong>in</strong>puts and outputs. First we quickly recapitulate some of this<br />

theory. The method for compar<strong>in</strong>g transition systems that was <strong>in</strong>itiated by De<br />

Nicola and Hennessy is based on the observation of the <strong>in</strong>teractions between a<br />

transition system and an external experimenter as <strong>in</strong>troduced <strong>in</strong> Chapter 5. An<br />

experimenter e for a transition system p is a transition system that is compatible<br />

with p. The <strong>in</strong>put actions of e are the output actions of p (<strong>in</strong>(e) =out(p)) and<br />

the output actions of e are the <strong>in</strong>put actions of p, plus an action w called the<br />

success action (out(e) =<strong>in</strong>(p) ∪{w}). The experimenter e runs <strong>in</strong> parallel with<br />

p and synchronizes its output actions with <strong>in</strong>put actions of p and vice versa<br />

(except w). An experiment x is an execution of p�e which is <strong>in</strong>f<strong>in</strong>ite or ends <strong>in</strong><br />

a deadlocked state. We say that the experiment is successful if w is enabled <strong>in</strong><br />

at least one state of the execution x . If there is a successful experiment of p�e<br />

we use the notation p may e. If every experiment of p�e is successful we use<br />

the notation p must e. On this notion of may and must we can def<strong>in</strong>e preorder<br />

relations. We will start with the may preorder.<br />

Def<strong>in</strong>ition 7.10 (MAY preorder). Let i, s ∈ IOA:<br />

s ⊑MAY i ⇔∀e : s may e ⇒ i may e<br />

Hennessy has shown that the may preorder and external trace <strong>in</strong>clusion are<br />

equivalent [Hen88].<br />

Theorem 7.11. Let i, s ∈ IOA: s ⊑MAY i ⇔ etraces(s) ⊆ etraces(i)<br />

For the must preorder we need a little more work. Segala uses the follow<strong>in</strong>g<br />

def<strong>in</strong>ition of the must relation [Seg97]:<br />

Def<strong>in</strong>ition 7.12 (MUST). GivenanIOAp, a set of states Q1 and a set of<br />

external actions A.<br />

Q1 must A ⇔<br />

(1) A ∩ <strong>in</strong>(p) �= ∅, or<br />

(2) for each q ∈ Q1:<br />

(a) wenabled(q) ∩ out(p) ⊆ A, and<br />

(b) wenabled(q) ∩ A �= ∅

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!