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 213<br />

ai<br />

such that for all i > 0, qi−1 → qi. Anexecution of A ′ is an execution fragment<br />

that beg<strong>in</strong>s with the <strong>in</strong>itial state q0 of A ′ .Astateqof A ′ is reachable if it is<br />

the last state of some f<strong>in</strong>ite execution of A ′ . σ is a dist<strong>in</strong>guish<strong>in</strong>g trace of<br />

q and q ′ if it is either a trace of q but not of q ′ , or the other way around (for<br />

the def<strong>in</strong>ition of traces see Appendix: Label Transition Systems). If δ ∈ E and<br />

δ =(q, a, q ′ )wedenotesrc(δ) =q, act(δ) =a and trg(δ) =q ′ .<br />

Def<strong>in</strong>ition 8.16. Let B be an LTS. A relation R ⊆ QB × QB is a bisimulation<br />

on B iff whenever R(q1, q2), then<br />

• q1<br />

a<br />

• q2<br />

a<br />

→ q ′ 1 implies that there is a q′ 2 ∈ QB such that q2 → q ′ 2 and R(q′ 1 , q′ 2 )<br />

→ q ′ 2 implies that there is a q′ 1 ∈ QB<br />

a<br />

such that q1 → q ′ 1 and R(q′ 1 , q′ 2 )<br />

States q, q ′ of LTSs B and B ′ , respectively, are bisimilar if there exists a bisimulation<br />

R on the disjo<strong>in</strong>t union of B and B ′ (with arbitrary <strong>in</strong>itial state) that<br />

relates q to q ′ .Insuchacase,wewrite:q � q ′ .LTSsB and B ′ are bisimilar,<br />

notation B � B ′ ,ifq0 � q ′ 0 for q0 the <strong>in</strong>itial state of B and q ′ 0 the <strong>in</strong>itial states<br />

of B ′ .<br />

It is well known that if B is determ<strong>in</strong>istic, for all states q, q ′ of B, B : q � q ′<br />

if and only if traces (q) =traces(q ′ ). As a consequence, two determ<strong>in</strong>istic LTSs<br />

B and B ′ are bisimilar iff they have the same sets of traces.<br />

Let C be a set of clocks with c ∈ C , then def<strong>in</strong>e dom(c) def<br />

= J ∪{∞},<br />

were J is a bounded <strong>in</strong>terval over R with <strong>in</strong>fimum and supremum <strong>in</strong> Z and<br />

<strong>in</strong>tv(c) def<br />

= dom(c)−{∞}.Theterms over C (denoted as T (C )) are expressions<br />

generated by the grammar e := c | k | e+k,withc∈C and k ∈ Z∞ , i.e. Z∪{∞}.<br />

Let F (C ) be the boolean comb<strong>in</strong>ations of <strong>in</strong>equalities of the form e ≤ e ′ or e < e ′<br />

with e, e ′ ∈ T (C ). A (simultaneous) assignment over C is a function µ from C<br />

to T (C ), the set of all these functions is denoted as M (C ). If ϕ is a constra<strong>in</strong>t<br />

over C and µ an assignment, then ϕ[µ] denotes the constra<strong>in</strong>t obta<strong>in</strong>ed from ϕ<br />

by replac<strong>in</strong>g each variable c ∈ C by µ(c). F<strong>in</strong>ally a clock valuation over C<br />

is a map ν that assigns to each clock c ∈ C a value <strong>in</strong> its doma<strong>in</strong> (this set of<br />

valuations is denoted as V (C )). We say that ν satisfies ϕ, notation ν � ϕ, ifϕ<br />

evaluates to true under valuation ν.<br />

In the next def<strong>in</strong>ition is presented the tim<strong>in</strong>g annotation for a f<strong>in</strong>ite automaton,<br />

which is a set of clocks, a set of <strong>in</strong>variants for each state, a set of guards,<br />

which allowed the transition to be made of not, Ass the assignments for each<br />

transition, and ν0 the <strong>in</strong>itial clock valuation.<br />

Def<strong>in</strong>ition 8.17. A tim<strong>in</strong>g annotation for a given f<strong>in</strong>ite automaton A ′ =<br />

〈Q, q0, E〉 is a tuple T = 〈C , Inv,Φ,Ass,ν0〉, where<br />

• C is a f<strong>in</strong>ite set of clocks<br />

• Inv : Q → F (C ) associates an <strong>in</strong>variant to each state<br />

• Φ : E → F (C ) associates a guard to each transition<br />

a

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

Saved successfully!

Ooh no, something went wrong!