130 likes | 318 Views
Clock equivalence and regions. Andres Lips. Clock equivalence (1). Definition: Satisfiability for a timed automaton A if and only if M(A), (s 0 ,w 0 ) where w 0 (y) = 0 for all formula clocks y. M(A) is basis for model checking State space L x V(C) is infinite.
E N D
Clock equivalence and regions Andres Lips
Clock equivalence (1) • Definition: Satisfiability for a timed automaton A if and only if M(A), (s0,w0) where w0(y) = 0 for all formula clocks y. • M(A) is basis for model checking • State space L x V(C) is infinite.
Clock equivalence (2) • Introducing appropriate equivalence relation, • Correctness • Finitness • M(A), ((l, v), w) if and only if M(A), ((l, v’ ), w’ ) for vw v’ w’ .
Clock equivalence (3) • Paths starting at states which • agree on integer parts of all clock values • agree on ordering of the fractional parts of all clocks • are very similar. • Exceeding maximal constant -> value does not matter.
Clock equivalence (4) • Finite state model -> region automaton • Equivalence classes -> regions • Model checking a timed automaton against TCTL-formula amounts to model checking its regions automaton against CTL-formula.
Clock equivalence (5) • Basic recipe for model checking • Determine regions • Construct the region automaton R(A) • Apply CTL-model checking • A if and only if [s0,w0] SatR()
Clock equivalence (6) • Definition: Clock equivalence. v v’ if and only if • v(x)=v’(x) or v(x)>cx and v’(x)>cx • frac(v(x))frac(v(y)) iff frac(v’(x))frac(v’(y)) where v(x)cx and v(y)cy • frac(v(x))=0 iff frac(v’(x))=0 where v(x)cx • Example begins...
Region automata (1) • Definition: Region • A region r is a pair (l, [v]) with location lL and valuation vV(C) • Abbreviations: • [s]=(l,[v]) • [s,w]=(l,[v w])
Region automata (2) • Let s,s’S such that s,w s’,w’For any TCTL-formula , we have:M(A), (s,w) iff M(A), (s’,w’) • Using regions as states we construct finite-state automaton • Two types of transitions • due to the passage of time (solid arrows) • transitions of the timed automaton (dotted arrows) • Example continues...
Region automata (3) • Definittion: Delay-successor region • Let r,r’ be two distinct regions. r’ is the delay successor of r, if there exists a dR+such that for each r=[s] we have and r’=[s+d] and for all 0d’<d:[s+d’]rr’
Region automata (4) • Definition: Unbounded region • Region r is an unbounded region if for all clock valuations v such that r=[v] we have v(x)>cx for all xC.
Region automata (5) • Region automaton • r=S/={[s]|sS} • r0=[s0] • rr’ iff • r is an unbounded region and r=r’, or • rr’ and r’=delsucc(r).
Thank you andres.lips@mail.ee