


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



ECE 598: Modeling and Verification of Real-time and Hybrid Systems Fall 2008
Prof. Sayan Mitra Scribe: YOUR NAME
We complete the discussion on model checking of finite state systems.
Ef 1 = GF P (f 1 ∧ EXZ) E[f 1 Uf 2 ] = LF P (f 2 ∨ (f 1 ∧ EXZ))
In the first part of the course we studied the Hybrid I/O automaton modelIn particular, we looked at the semantics of the model and some examples of how it can be used to specify systems with both discrete and continuous evolution. HIOA is a very general framework; it imposes few restric- tions on the discrete and the continuous behavior. (E.g., almost any program can be embedded within an eff clause of a transition, almost any set of differential and algebraic equations can be written in the evolve clause.). In the next few lectures we will restric HIOAs and explore techniques for automatic verification.
A Timed Automaton allows a set of clocks that can evolve continuously and can be reset along a finite number of discrete states.
9.1.1 Clocks
A clock variable x is variable of type real such that along any trajectory τ of x, for all t ∈ τ.dom, (τ ↓ x)(t) = t. For a set Xc of clock variables, the set Φ(X) of integral clock constraints g is inductively defined as g ::= x ≤ q|x ≥ |¬g|g 1 ∧ g 2 ,
where q ∈ Z and x ∈ Xc. Thus, x = 10, x ∈ [2, 5), true are valid clock constraints.
Recall, a valuation for Xc is a function xc that assigns a real value to each x ∈ Xc. A valuation xc satisfies a clock constraint g over Xc iff g evaluates to true using the values assigned to the clocks at xc. We will use the shorthand xc + t for some t ∈ R, to denote the valuation where for each x ∈ Xc is assigned xc.x + t.
9.1.2 Integral Timed Automata
Definition 1. A integral timed automaton is a HIOA A = 〈V, Q, Q 0 , A, D, T 〉 where
Example:Light Switch The Light Switch can be turned on whenever at least 2 time units have elapsed since the last turn off. Switches off automatically 15 time units after the last on. Clock variables Xc = {x, y}. Discrete states Ł = {on, of f }. Actions A = {push, pop}. An execu- tion:
〈off , x = 0, y = 0〉 τ (3.2) → 〈off , 3. 2 , 3. 2 〉 push → 〈on, 0 , 0 〉 τ (t 1 ), 2 ≤t 1 ≤ 9 → 〈on, t 1 , t 1 〉 push → 〈on, 0 , t 1 〉 τ (t 2 ),t 1 +t 2 = → 〈on, t 2 , 15 〉 pop → 〈off , 0 , 9 〉.
off on y ≤ 15
push : x ≥ 2; x := y := 0
pop : y = 15; x := 0
push : x ≥ 2; x := 0
Figure 1: Light Switch.
timing properties such as “the orange light stays on for at most 15 time units”. A natural way to specify these properties is to augment CTL with formula clocks. The resulting logic is called Timed CTL (TCTL). Informally, a formula clock is a stopwatch that runs along with the timed automaton A, and you, as the observers of the system, are allowed to reset the clock at any time. This allows you to measure the elapsed time between events of interest.
9.2.1 Syntax
Let AP be a set of atomic propositions and L be a labelling function Q → 2 AP^ , and Z be a collection of formula clocks.
TCTL formulas have two new constructs (over CTL): (1) assertions tions about automaton clocks and formula clocks, and (2) the reset operator for formula clocks. The next state operator X is not allowed in TCTL^1 Syntax of TCTL:
f := true|p|γ|¬f 1 |f 1 ∧ f 2 |z in f 1 |E[f 1 Uf 2 ]
where p ∈ AP, γ ∈ Φ(Xc ∪ Z), and z ∈ Z.
9.2.2 Semantics
Given time automaton A, a state q ∈ Q of A is a valuation of l and the variables in Xc. That is, q = 〈l, x〉, where l ∈ Ł and x ∈ Rn ≥ 0. A valuation of the formula clocks Z is denoted by z ∈ R|≥Z 0 |. A given state q and a valuation of formula clocks z satisfy a CTL formula if
9.2.3 Derived Operators
A[f 1 U≤tf 2 ] =∆ z in A[(f 1 ∧ z ≤ t)Uf 2 ]: Along all paths f 1 holds continuously until within t time units f 2 becomes true. E < 5 f 1 =∆ z in E (z < 5 ∧ f 1 ): There exists a path along which before 5 time units f 1 becomes true.
(^1) in a timed automaton the notion of a next state does not make sense.