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.

s1<br />

s3<br />

a/0<br />

b/0<br />

a/1<br />

s2<br />

s4<br />

3 State Verification 77<br />

b/1<br />

Fig. 3.5. The <strong>in</strong>ference graph of the mach<strong>in</strong>e <strong>in</strong> Figure 3.3.<br />

Proposition 3.6 (Inference [Nai97]). Let G be the transition graph of a Mealy<br />

mach<strong>in</strong>e M. If state si is reachable from state sj <strong>in</strong> the <strong>in</strong>ference graph GI ,and<br />

si has a UIO sequence, then sj has a UIO sequence.<br />

Proof. Let x be a UIO sequence for state si, andx ′ the sequence of <strong>in</strong>puts<br />

along a path from sj to si <strong>in</strong> GI . The claim is that x ′ · x is a UIO sequence<br />

for sj . 4 Suppose this is not the case, i.e., λ(sk , x ′ · x )=λ(sj , x ′ · x )forsome<br />

state sk �= sj . We first show that the unique path with label x ′ from sk must<br />

end <strong>in</strong> si. Ifitended<strong>in</strong>someotherstatesl �= si, thenλ(sl, x )=λ(si, x ), s<strong>in</strong>ce<br />

λ(sk , x ′ · x )=λ(sj , x ′ · x ), but this is impossible, s<strong>in</strong>ce x is a UIO sequence for<br />

si.<br />

Next, we show that <strong>in</strong> fact there can be no state sk �= sj such that λ(sk , x ′ ·<br />

x )=λ(sj , x ′ · x ). Aga<strong>in</strong> assume that there is. Let sj = sj1, sj2,...,sjm = si and<br />

sk = sk1, sk2,...,skm = si be the two paths with <strong>in</strong>put label x ′ from sj and sk ,<br />

respectively. Consider the smallest i such that sji and ski are identical. The edges<br />

from sji−1 to sji and from ski−1 to sji <strong>in</strong> G must have the same label and end up<br />

<strong>in</strong> the same state. Therefore, they are converg<strong>in</strong>g, and none of them belongs <strong>in</strong><br />

the <strong>in</strong>ference graph GI . This means that si cannot be reachable from sj along a<br />

path with <strong>in</strong>put label x ′ and output label λ(sj , x ′ )<strong>in</strong>GI . This is a contradiction,<br />

and we conclude that λ(sj , x ′ · x ) �= λ(sk , x ′ · x ) for all sk �= sj .Thusx ′ · x is a<br />

UIO sequence for sj .<br />

As an example, once we know that b is a UIO sequence for s3 <strong>in</strong> the mach<strong>in</strong>e<br />

from Figure 3.3, we can use the <strong>in</strong>ference graph <strong>in</strong> Figure 3.5 to conclude that<br />

ab must be a UIO sequence for state s1.<br />

The <strong>in</strong>ference graph can also be used to obta<strong>in</strong> negative answers to the question<br />

whether a state has a UIO sequence.<br />

4 The dot operator for sequences (X · Y ) denotes concatenation.

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

Saved successfully!

Ooh no, something went wrong!