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.

8 Test Derivation from Timed Automata 217<br />

number <strong>in</strong> G n that is not greater than t, and⌈t⌉n for the smallest number <strong>in</strong><br />

G n that is not smaller than t. Wewrite[t]n for the fraction (⌊t⌋n + ⌈t⌉n)/2,<br />

note that [t]n ∈ G n+1 .ForaTIOAA and its OS(A ) associated, write Q n for<br />

the set of states (s,ν) ∈ Q such that, for each clock c,ν(c) ∈ G n ∪{∞}.<br />

The follow<strong>in</strong>g lemma shown that given any state (q) <strong>in</strong>G n for all a ∈ Σ and<br />

d ∈ G n , labels of a transition <strong>in</strong> the semantic (↣), the target state (q ′ )ofthat<br />

transition is also <strong>in</strong> G n .<br />

Lemma 8.22. Let q ∈ Q n ,then<br />

• If q a<br />

↣ q ′ with a ∈ Σ then q ′ ∈ Q n<br />

• If q d<br />

↣ q ′ with d ∈ Gn then q ′ ∈ Q n .<br />

Moreover, for a dist<strong>in</strong>guish<strong>in</strong>g trace of length m for two states <strong>in</strong> Q n ,atrace<br />

can be derived <strong>in</strong> which all delay actions are <strong>in</strong> the grid set G n+m .<br />

Theorem 8.23. Let A , B be TIOAs and theirs associated semantics OS(A ),<br />

OS(B), let(r, r ′ ) ∼ = (s, s ′ ) for states r ∈ QA , r ′ ∈ QB, s ∈ Q n A and s ′ ∈ Q n B ,<br />

and let σ = a1a2 ...am be a dist<strong>in</strong>guish<strong>in</strong>g trace for r and r ′ . Then there exists a<br />

dist<strong>in</strong>guish<strong>in</strong>g trace τ = b1b2 ...bm for s and s ′ such that, for all j ∈ [1,...,m],<br />

if aj is an <strong>in</strong>put or output action then bj = aj ,andifaj is a delay action then<br />

bj ∈ G n+j with ⌊aj ⌋≤bj ≤⌈aj ⌉.<br />

This theorem allows to transform each dist<strong>in</strong>guish<strong>in</strong>g trace <strong>in</strong>to one <strong>in</strong> which<br />

all delay actions are <strong>in</strong> a grid set, and shown that there is a dependency between<br />

the length of the trace and the granularity of the grid: the longer the trace the<br />

f<strong>in</strong>er the grid. This is due to the fact that the dist<strong>in</strong>guish power of a dist<strong>in</strong>guish<strong>in</strong>g<br />

trace for two states r and r ′ entirely depends on the regions traversed when<br />

apply<strong>in</strong>g σ to r and r ′ , respectively. Moreover, we can conclude that the grid<br />

size depends on the number of states, not just on the number of clocks.<br />

In order to obta<strong>in</strong> a grid size that is f<strong>in</strong>e enough to dist<strong>in</strong>guish all pairs of<br />

different states, the follow<strong>in</strong>g theorem establishes an upper bound on the length<br />

of m<strong>in</strong>imal dist<strong>in</strong>guish<strong>in</strong>g traces.<br />

Theorem 8.24. Suppose A and B are TIOAs with the same <strong>in</strong>put actions,<br />

and r and s are states of OS(A ) and OS(B), respectively : r �� s (with �<br />

denot<strong>in</strong>g bisimilarity 8.16). Then, there exists a dist<strong>in</strong>guish<strong>in</strong>g trace for r and<br />

s of length at most the number of regions of QA × QB.<br />

F<strong>in</strong>ally, we are <strong>in</strong> position of def<strong>in</strong>e the Grid Automaton. For each TIOA<br />

A and natural number n, the grid automaton G (A , n) is def<strong>in</strong>ed as the subautomaton<br />

of OS(A ) <strong>in</strong> which each clock value is <strong>in</strong> the set G n ∪{∞},andthe<br />

only delay action is 2 −n . Note that s<strong>in</strong>ce <strong>in</strong> the <strong>in</strong>itial state of OS(A )allclocks<br />

take values <strong>in</strong> Z ∞ , it is always <strong>in</strong>cluded as a state of G (A , n). Moreover, s<strong>in</strong>ce<br />

G (A , n) has a f<strong>in</strong>ite number of states and actions, G (A , n) is a f<strong>in</strong>ite automaton.<br />

Def<strong>in</strong>ition 8.25. Let A = 〈S,Σ,s0, E〉 be a TIOA, its OS(A )=〈Q, L, q0, ↣〉<br />

and n ∈ N . The grid automaton G (A , n) istheLTSA ′′ = 〈Q ′ , L ′ , q ′ 0, ↣ ′ 〉 given<br />

by

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

Saved successfully!

Ooh no, something went wrong!