Model Checking Algorithms

Size: px
Start display at page:

Download "Model Checking Algorithms"

Transcription

1 Model Checking Algorithms Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan November 14, 2018 Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

2 Outline 1 Model-checking algorithms The CTL model-checking algorithm CTL model checking with fairness The LTL model-checking algorithm 2 The fixed-point characterisation of CTL Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

3 The Model Checking Problem Let M = (S,, L) be a model, s S a state, and φ a temporal logic formula. The model checking problem is to decide whether M, s φ holds. We will discuss two model checking algorithms: one for LTL, the other for CTL. These algorithms help us understand basic principles of various verification tools (such as NuSMV). NuSMV does not implement the algorithms we discuss here. Yet the basic ideas are not very different. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

4 Outline 1 Model-checking algorithms The CTL model-checking algorithm CTL model checking with fairness The LTL model-checking algorithm 2 The fixed-point characterisation of CTL Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

5 The CTL Model Checking Algorithm I Let us first consider deciding whether M, s 0 φ where M is a finite transition system and φ a CTL formula. That is, M = (S,, L) with S a finite set of states. There are algorithms that solve the model checking problem for certain infinite transition systems. Our algorithm in fact computes all states that satisfy the top CTL formula. That is, it computes the set {s S M, s φ}. After computing all states satisfying the given CTL formula, the model checking problem is solved easily. We simply check if s0 {s S M, s φ}. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

6 The CTL Model Checking Algorithm II In our algorithm, we only consider temporal connectives {EX, AF, EU}. {EX, AF, EU} is adequate. For each state, we label it with subformulae of the given CTL formula. A state satisfies all subformulae in its label. Start from smallest subformulae; the algorithm works on each subformula until the given CTL formula. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

7 The CTL Model Checking Algorithm III Input: M = (S,, L) : a mode; φ : a CTL formula Output: {s S M, s φ} foreach subformula ψ of φ do switch ψ do case : do continue; case p: do label all s with p if p L(s); case ψ 1 ψ 2 : do label all s with ψ if it is lablled with ψ 1, ψ 2 ; case ψ 1 : do label all s with ψ if it is not labelled with ψ 1 ; case EXψ 1 : do label all s with ψ if one of its successors is labelled with ψ 1 ; case AFψ 1 : do label all s with ψ if it is labelled with ψ 1, or all successors of s are labeleed with ψ until no change ; case E[ψ 1 U ψ 2 ]: do label all s with ψ if it is labelled with ψ 2, or s is labelled with ψ 1 and one of its successors is labelled with ψ until no change ; Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

8 The CTL Model Checking Algorithm IV Let φ be the number of connectives in φ. Let M = (S,, L) be a transition system. The complexity of the algorithm is O( φ S ( S + )). There are O( φ ) subformulae. For AFψ 1 and E[ψ 1 U ψ 2 ], each iteration takes O( S + ) steps; there are at most O( S ) iterations. We now present the pseudo algorithm SAT(M, φ). Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

9 SAT(M, φ) switch φ do case : do return S ; case : do return ; case p: do return {s S φ L(s)} ; case φ 1 : do return S SAT(M, φ 1 ) ; case φ 1 φ 2 : do return SAT(M, φ 1 ) SAT(M, φ 2 ) ; case EXφ 1 : do return SAT EX (M, φ 1 ) ; case E[φ 1 U φ 2 ]: do return SAT EU (M, φ 1, φ 2 ) ; case AFφ 1 : do return SAT AF (M, φ 1 ) ; Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

10 pre (M, Y ) and pre (M, Y ) In order to give the pseudo algorithm for SAT EX (M, φ), SAT EU (M, φ, ψ), and SAT AF (M, φ), we need two functions: pre (M, Y ) pre (M, Y ) = {s S there exists s (s s and s Y )} = {s S for all s (s s implies s Y )} pre (M, Y ) consists of states whose successors intersect Y is not empty. pre (M, Y ) consists of states whose successors are contained in Y. Observe that pre (M, Y ) = S pre (M, S Y ) Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

11 SAT EX (M, φ) X SAT(M, φ); Y pre (M, X ); return Y ; Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

12 SAT AF (M, φ) Y SAT(M, φ); repeat X Y ; Y Y pre (M, Y ); until X = Y ; return Y ; Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

13 SAT EU (M, φ, ψ) W SAT(M, φ); Y SAT(M, ψ); repeat X Y ; Y Y (W pre (M, Y )); until X = Y ; return Y ; Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

14 A More Efficient Model Checking Algorithm Using backward breadth-first search, we can in fact do better. We use the adequate set {EX, EG, EU} instead. Observe that EXψ 1 and E[ψ 1 U ψ 2 ] can be labelled in time O( S + ) if we perform backward breadth-first search. For the case EGψ 1, Consider the subgraph with states satisfying ψ1 ; Find maximal strongly connected components (SCC s) in the subgraph; Use backward breadth-first search on the subgraph to find states that can reach an SCC. The new algorithm takes time O( φ ( S + )). Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

15 The State Explosion Problem Although the complexity of CTL model checking algorithm is linear in the number of states, the number of states can be exponential in the number of variables and the number of components of the system. Adding a Boolean variable can double the number of states. This is called the state explosion problem. Lots of researches try to overcome the state explosion problem. Efficient data structures. Abstraction. Partial order reduction. Induction. Compositional reasoning. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

16 Outline 1 Model-checking algorithms The CTL model-checking algorithm CTL model checking with fairness The LTL model-checking algorithm 2 The fixed-point characterisation of CTL Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

17 Fairness I We often simplify the system when we build a model for it. This is called abstraction. Abstraction sometimes introduces unrealistic model behaviors. For instance, a process may stay in its critical section forever. Such unrealistic behaviors may disprove intended properties. For instance, it is possible that the other process won t get to its critical section forever. In order to consider realistic model behaviors, we impose fairness constraints. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

18 Fairness II We consider only fair computation paths specified by fair constraints. Instead of standard path quantifiers A (for all) and E (for some), we use their variants A C (for all fair paths) and E C (for some fair paths). As an example, we can ask a process will eventually be permitted to enter its critical section if it requests so along all fair paths. Clearly, we have to slightly modify the CTL model checking algorithm. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

19 Fair Computation Paths Definition Let C = {ψ 1, ψ 2,..., ψ n } be fairness constraints. A computation path s 0 s 1 is fair with respect to C if for every i there are infinitely s j s such that s j ψ i. We write A C and E C for the path quantifers A and E restricted to fair paths. For example, M, s 0 A C Gφ if φ holds in every state along all fair paths. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

20 CTL Model Checking Algorithm with Fairness Constraints Let C = {ψ 1, ψ 2,..., ψ n } be a set of fairness constraints. We consider the adequate set {E C U, E C G, E C X}. Observe that E C [φ U ψ] E[φ U (ψ E C G )] E C Xφ EX(φ E C G ). Note that a computation path is fair iff all its suffixes are fair. M, s E C G ensures that s is on a fair path. Since E C U and E C X can be reduced to E C G, it remains to compute {s S M, s E C Gφ}. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

21 Computing {s S M, s E C Gφ} It turns out that the algorithm for computing E C G is similar for computing EG. Let C = {ψ 1, ψ 2,..., ψ n } be a set of fairness constraints. To compute {s S M, s E C Gφ}, do the following: Consider the subgraph with states satisfying φ; Find maximal strongly connected components (SCC s) in the subgraph; Remove an SCC if it does not contain a state satisfying ψi for some i. The remaining SCC s are fair SCC s; Use backward breadth-first search on the subgraph to find states that can reach a fair SCC. The complexity of the algorithm with fairness constraints is O( C φ ( S + )). Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

22 Fairness in NuSMV In NuSMV two different types of fair paths can be specified. Justice Let C = {p1, p 2,..., p n } be a set of atomic formulae. A path s0 s 1 satisfies the justice constraint C if for every i, there are infinitely s j s such that s j p i. NuSMV uses the keywords FAIRNESS or JUSTICE. Compassion Let C = {(p1, q 1 ), (p 2, q 2 ),..., (p n, q n )} be a set of pairs of atomic formulae. A path s0 s 1 satisfies the compassion constraint C if for every i, there are infinitely s j s such that s j p i then there are infinitely s j s such that s j q i. NuSMV uses the keyword COMPASSION. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

23 Outline 1 Model-checking algorithms The CTL model-checking algorithm CTL model checking with fairness The LTL model-checking algorithm 2 The fixed-point characterisation of CTL Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

24 LTL Model Checking Algorithm The CTL model checking algorithm is rather straightforward. It labels each state by satisfied subformulae. It works because CTL formulae specify state properties. LTL formulae, on the other hand, specify path properties. Labelling states no longer work. We need a formal model for paths. Automata theory is required! Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

25 Paths and Traces Let M = (S,, L) be a model. Recall that a path s 0 s 1 is a sequence of states such that s i s i+1 for every i 0. A trace is a sequence of valuations of propositional atoms. The trace of a path s 0 s 1 is L(s 0 )L(s 1 ). Recall that L S 2 Atoms. L(si ) is the set of propositional atoms that hold in s i. L(si ) hence is a valuation of propositional atoms. Note that different paths may have the same trace. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

26 Basic Ideas Let M = (S,, L) be a model, s S, and φ an LTL formula. We check whether M, s φ holds as follows. 1 Construct an automaton A φ. A φ accepts the traces satisfying φ; 2 Construct the combination of the automaton A φ and M. Each path of the combination is a path of A φ and also a path of M. 3 Check if there is an accepting path starting from a combined state including s. Such a path is a path of M from s. Moreover its trace satisfying φ. If an accepting path is found, we report M, s / φ ; Otherwise, M, s φ. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

27 Illustration I init (a) := 1; init (b) := 0; next (a) := case!a : 0; b : 1; 1 : { 0, 1 }; esac; next (b) := case a & next (a) :!a : 1; 1 : { 0, 1 }; esac;!b; s 1 s 3 ab ab ab ab s 2 s 4 M = (S,, L) with Atoms = {a, b} and φ = (a U b) Does M, s 3 φ hold? Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

28 Illustration II q 1 q 2 abψ abψ A trace t is accepting if there is a path π whose trace is t such that an accepting state occurs infinitely often. q 3 abψ abψ abψ q 4 {a}{a}{a, b}{a}{a} is accepting. {a}{a} is not. q 3 φ = (a U b), ψ = (a U b) and A ψ Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

29 Illustration III (s 1, q 1 ) abψ abψ (s 3, q 3 ) abψ (s 3, q 3 ) (s 2, q 2 ) abψ abψ (s 4, q 4 ) (s 3, q 3 )(s 2, q 2 ) is accepting. Hence M, s 3 / (a U b) because of the path s 3 s 2. In fact, s 3 s 4 s 3 s 4 is another counterexample. Combination of M and A ψ Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

30 Construct A φ I Let φ be an LTL formula. We want to construct an automaton A φ such that A φ accepts precisely traces on which φ holds. We assume φ contains only the temporal connectives U and X. Recall that {U, X} is adequate. Define the closure C(φ) of an LTL formula φ by C(φ) = {ψ, ψ ψ is a subformula of φ} where we identify ψ and ψ. Example: C(a U b) = {a, b, a, b, a U b, (a U b)}. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

31 Construct A φ II Let φ be an LTL formula. A maximal subset q of C(φ) satisfies the following: for all (non-negated) ψ C(φ), either ψ q or ψ q; ψ1 ψ 2 q iff ψ 1 q or ψ 2 q; Conditions for other Boolean connectives are similar; If ψ1 U ψ 2 q, then ψ 2 q or ψ 1 q; and If (ψ1 U ψ 2 ) q, then ψ 2 q. The states of A φ are the maximal subsets of C(φ). That is, {q C(φ) q is maximal}. Informally, ψ q means ψ C is true at state q. The initial states of A φ are those containing φ. Formally, {q C(φ) q is maximal and φ q}. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

32 Construct A φ III The transition relation δ of A φ is defined as follows. (q, q ) δ if Xψ q implies ψ q ; Xψ q implies ψ q ; ψ 1 U ψ 2 q and ψ 2 / q imply ψ 1 U ψ 2 q ; and (ψ1 U ψ 2 ) q and ψ 1 q imply (ψ 1 U ψ 2 ) q. Informally, ψ q enforces certain ψ q. Recall the definition of maximal subsets of C(φ). Observe that ψ1 U ψ2 ψ2 (ψ1 X(ψ1 U ψ2) (ψ 1 U ψ 2 ) ψ 2 ( ψ 1 X (ψ 1 U ψ 2 )). Consider C(a U b) = {a, a, b, b, a U b, (a U b)}. Let q = {a, b, a U b} be a maximal subset of C(a U b). We have (q, q) δ, the transition relation of A aub. Informally, a U b q means a U b holds at all traces from q. Apparently, qq does not satisfy a U b. We define acceptance conditions to disallow such traces. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

33 Construct A φ IV Let χ 1 U ψ 1,..., χ k U ψ k be all formulae of this form in C(φ). The acceptance condition of A φ is as follows. A state q of A φ is i-accepting if { (χ i U ψ i ), ψ i } q. A path π is accepted if for every 1 i k, π has infinitely many i-accepting states. A state can be i-accepting for every 1 i k. To see why it works, consider a path π = q 0 q 1 with only finitely many i-accepting states. Hence for some h, we have π h = q h q h+1 with q j { (χ i U ψ i ), ψ i } = for every j h. By the maximality of q j, we have {χ i U ψ i, ψ i } q j for every j h. The path π is precisely what we wan to eliminate. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

34 Construct A φ V q 1 abψ abψ q 2 C(a U b) = {a, a, b, b, aub, (aub)}. Maximal subsets of C(a U b): q 3 abψ q 3 abψ abψ q 4 q 1 = { a, b, (a U b)} q 2 = { a, b, a U b} q 3 = {a, b, a U b} q 3 = {a, b, (a U b)} q 4 = {a, b, a U b} Accepting states are {q i (a U b) q i or b q i }. ψ = a U b and A ψ Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

35 Construct A φ VI q 1 q 2 (a U b), ( a U b), a, b, ψ a U b, ( a U b), a, b, ψ q 5 a U b, a U b, a, b, ψ a U b, a U b, a, b, ψ q 6 For a U b, the accepting states are {q 1, q 3, q 4, q 5, q 6 }. For a U b, the accepting states are {q 1, q 2, q 3, q 5, q 6 }. q 3 (a U b), ( a U b), a, b, ψ q 4 (a U b), a U b, a, b, ψ ψ = (a U b) ( a U b) and A ψ Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

36 LTL Model Checking with Fairness Constraints Our CTL model checking algorithm is slightly modified to check CTL properties with fairness constraints. However, it is not necessary for LTL model checking. Consider, for example, checking an LTL formula φ with a justice constraint ψ. Recall that a justice constraint ψ considers only paths that ψ occurs infinitely often. We would like to check if φ holds on all fair paths. This is equivalent to checking GFψ φ. because LTL can specify justice constraints. Hence the LTL model checking algorithm works even if there are fairness constraints. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

37 NuSMV LTL Model Checking Algorithm We can in fact implement the LTL model checking algorithm by the CTL model checking algorithm with justice constraints. Let M be a NuSMV model and φ an LTL formula. Here is how it works: Construct A φ as a NuSMV model. Construct M A φ. Check EG with justice constraint (χ U ψ) ψ for each χ U ψ in φ. The NuSMV LTL model checking algorithm uses justice constraints to search paths accepted by M A φ. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

38 Outline 1 Model-checking algorithms 2 The fixed-point characterisation of CTL Monotone functions The correctness of SAT EG The correctness of SAT EU Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

39 The CTL Model Checking Algorithm Revisited I We have presented a CTL model checking algorithm. Let M = (S,, L) be a transition system. The algorithm computes the set [φ] for any CTL formula φ, where We use the following equations: [φ] = {s S M, s φ}. [p ] = {s S p L(s)} [ ] = [ φ] = S [φ] [φ ψ ] = [φ] [ψ ] [EXφ] = pre (M, [φ]) [AFφ] = [φ] pre (M, [AFφ]) [E[φ U ψ]] = [ψ ] ([φ] pre (M, [E[φ U ψ]])) The last two recursive equations are puzzling. Circular definitions are always problematic! Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

40 The CTL Model Checking Algorithm Revisited II To simplify our presentation, we will use a different adequate set of temporal connectives {EX, EG, EU}. To get rid of pre (, ). Hence we use the following puzzling equations: [EGφ] = [φ] pre (M, [EGφ]) [E[φ U ψ]] = [ψ ] ([φ] pre (M, [E[φ U ψ]])) We will explain them by fixed-point theory. The theory will also establish the correctness of the algorithm. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

41 Outline 1 Model-checking algorithms 2 The fixed-point characterisation of CTL Monotone functions The correctness of SAT EG The correctness of SAT EU Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

42 Monotone Functions Definition Let S be a set of states and F 2 S 2 S. 1 F is monotone if X Y implies F (X ) F (Y ) for every X, Y S; 2 X S is a fixed point of F if F (X ) = X. Examples: let S = {s 0, s 1 }. F (Y ) = Y {s0 }. F (Y ) is monotone. {s 0 } and {s 0, s 1 } are fixed points of F (Y ). G(Y ) = { {s 1} if Y = {s 0 }. G(Y ) is not monotone. G(Y ) has no {s 0 } otherwise fixed points. Let F 2 S 2 S. We write F i (X ) for the expression i F (F F (X ) ). Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

43 Fixpoint Theorem I Theorem Let S be a set with S = n. If F 2 S 2 S is a monotone function, F n ( ) is the least fixed point of F and F n (S) is the greatest fixed point of F (by set inclusion order). Proof. Since F ( ) and F is monotone, F ( ) F 2 ( ). More generally, F ( ) F 2 ( ) F n ( ) F n+1 ( ). Since S = n and F is monotone, there is 1 k n that F k ( ) = F k+1 ( ). Thus F n ( ) is a fixed point of F. Suppose H = F (H) is a fixed point of F. Since H, F ( ) F (H) = H. F 2 ( ) F (H) = H. Hence F i ( ) H for every i. Particularly, F n ( ) H. The case for the greatest fixed point is similar. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

44 Fixpoint Theorem II Knaster-Tarski theorem in fact shows the least and greatest fixed points exist for any (not necessarily finite) set. Our fixpoint theorem is a special case of Knaster-Tarski theorem. The fixpoint theorem shows how to compute least and greatest fixed points for monotone functions over finite sets. We will show [EGφ] and [E[φ U ψ]] are in fact greatest and least fixed points of certain monotone functions respectively. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

45 Outline 1 Model-checking algorithms 2 The fixed-point characterisation of CTL Monotone functions The correctness of SAT EG The correctness of SAT EU Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

46 Computing [EGφ] Recall that EGφ φ EXEGφ. Hence [EGφ] = [φ] pre (M, [EGφ]). [EGφ] is a fixed point of F (X ) = [φ] pre (M, X ). We will show that [EGφ] is in fact a greatest fixed point of F. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

47 [EGφ] as a Greatest Fixed Point Theorem Let M = (S,, L) be a model with S = n and F (X ) = [φ] pre (M, X ). Then F is monotone, [EGφ] is the greatest fixed point of F, and [EGφ] = F n (S). Proof. Let X, Y S and X Y, and s F (X ). Then s [φ] and there is an s such that s s and s X Y. That is, s F (Y ) and hence F (X ) F (Y ). F is monotone. Since [EGφ] = F ([EGφ]), [EGφ] is a fixed point of F. It remains to show that [EGφ] is the greatest fixed point of F. Consider any X S with X = F (X ). Let s 0 X. Then s 0 F (X ) = [φ] pre (M, X ). s 0 [φ] and there is an s 1 with s 0 s 1 such that s 1 X. By induction, we have a path s 0 s 1 such that s i [φ] for s 0. Hence s 0 [EGφ]. Therefore X [EGφ] for every fixed point X of F. The greatest fixed point of F is F n (S). Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

48 SAT EG (M, φ) I Y SAT(φ); X ; repeat X Y ; Y Y pre (M, Y ); until X = Y ; return (Y ); Note that SAT EG (M, φ) does not apply the previous theorem exactly. Recall that F (X ) = [φ] pre (M, X ). Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

49 SAT EG (M, φ) II By the theorem, we would have Y 0 = F 0 (S) = S Y 1 = F (Y 0) = [φ] pre (M, Y 0) = [φ] Y 2 = F (Y 1) = Y 1 pre (M, Y 1) Y 3 = F (Y 2) = Y 1 pre (M, Y 2) where Y 0 Y 1 Y 2 SAT EG(M, φ) on the other hand computes Y 0 = [φ] = Y 1 Y 1 = Y 0 pre (M, Y 0) = Y 1 pre (M, Y 1) = Y 2 Y 2 = Y 1 pre (M, Y 1) = Y 1 pre (M, Y 1) pre (M, Y 2) = Y 1 pre (M, Y 2) = Y 3 Y 3 = Y 2 pre (M, Y 2) = Y 1 pre (M, Y 2) pre (M, Y 3) = Y 1 pre (M, Y 3) = Y 4 Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

50 Outline 1 Model-checking algorithms 2 The fixed-point characterisation of CTL Monotone functions The correctness of SAT EG The correctness of SAT EU Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

51 Computing [E[φ U ψ]] Recall that E[φ U ψ] ψ (φ EXE[φ U ψ]). Hence [E[φ U ψ]] = [ψ ] ([φ] pre (M, [E[φ U ψ]])). [E[φ U ψ]] is a fixed point of G(X ) = [ψ ] ([φ] pre (M, X )). We will show that [E[φ U ψ]] is in fact a least fixed point of G. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

52 [E[φ U ψ]] as a Least Fixed Point Theorem Let M = (S,, L) be a model with S = n and G(X ) = [ψ ] ([φ] pre (M, X )). Then G is monotone, [E[φ U ψ]] is the least fixed point of G, and [E[φ U ψ]] = G n ( ). Proof. Since pre (M, X ) is monotone, G is monotone. Since G n ( ) is the least fixed point of G, it remains to show that [E[φ U ψ]] = G n ( ). Recall M, s E[φ U ψ] if for some path s 0(= s) s 1 there is i 0 that M, s i ψ and for every 0 j < i we have M, s j φ. Observe that G 1 ( ) = [ψ ] ([φ] pre (M, )) = [ψ ]. s G 1 ( ) iff M, s E[φ U ψ] by taking i = 0. Similarly, G 2 ( ) = G(G 1 ( )) = [ψ ] ([φ] pre (M, G 1 ( ))). That is, s G 2 ( ) iff M, s E[φ U ψ] by taking i = 0, 1. By induction, one can show s G k ( ) iff M, s E[φ U ψ] by taking i = 0,..., k 1. Hence [E[φ U ψ]] = G i ( ). i N Now recall that G 0 ( ) G 1 ( ) G 2 ( ) and G n ( ) is a fixed point. We have i N G i ( ) = G n ( ). That is, [E[φ U ψ]] = G n ( ). Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

53 SAT EU (M, φ, ψ) Revisited I W SAT(M, φ); X S; Y SAT(M, ψ); repeat X Y ; Y Y (W pre (M, Y )); until X = Y ; return Y ; Note again that SAT EU (M, φ, ψ) does not exactly follow the theorem. Recall G(X ) = [ψ ] ([φ] pre (M, X )). Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

54 SAT EU (M, φ, ψ) Revisited II By the theorem, we would have Y 0 = G 0 ( ) = Y 1 = G(Y 0) = [ψ ] ([φ] pre (M, Y 0)) = [ψ ] Y 2 = G(Y 1) = [ψ ] ([φ] pre (M, Y 1)) = Y 1 ([φ] pre (M, Y 1)) Y 3 = G(Y 2) = Y 1 ([φ] pre (M, Y 2)) where Y 0 Y 1 Y 2 SAT EU(M, φ, ψ) on the other hand computes Y 0 = [ψ ] = Y 1 Y 1 = Y 0 ([φ] pre (M, Y 0)) = Y 1 ([φ] pre (M, Y 1)) = Y 2 Y 2 = Y 1 ([φ] pre (M, Y 1)) = Y 1 ([φ] pre (M, Y 1)) ([φ] pre (M, Y 2)) = Y 1 ([φ] pre (M, Y 2)) = Y 3 Y 3 = Y 2 ([φ] pre (M, Y 2)) = Y 1 ([φ] pre (M, Y 2)) ([φ] pre (M, Y 3)) = Y 1 ([φ] pre (M, Y 3)) = Y 4 Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

55 Example I s 0 q s 2 s 1 s 4 p q s 3 Compute [EFp ]. Since [EFp ] = [E[ U p]], consider G(X ) = [p ] ([ ] pre (M, X )) = {s 3 } pre (M, X ). G 1 ( ) = {s 3 }, G 2 ( ) = G({s 3 }) = {s 3, s 1 }, G 3 ( ) = G({s 1, s 3 }) = {s 3, s 0, s 2, s 1 }, G 4 ( ) = G({s 0, s 1, s 2, s 3 }) = {s 3, s 0, s 2, s 1 } = G 3 ( ). Hence [EFp ] = {s 0, s 1, s 2, s 3 }. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

56 Example II s 0 q s 2 s 1 s 4 p q s 3 Compute [EGq ]. Consider F (X ) = [q ] pre (M, X ) = {s 0, s 4 } pre (M, X ). F 1 (S) = {s 0, s 4 }. F 2 (S) = F ({s 0, s 4 }) = {s 0, s 4 } {s 3, s 0, s 2, s 4 } = {s 0, s 4 } = F 1 (S). Hence [EGq ] = {s 0, s 4 }. Bow-Yaw Wang (Academia Sinica) Model Checking Algorithms November 14, / 56

Computation Tree Logic (CTL)

Computation Tree Logic (CTL) Computation Tree Logic (CTL) Fazle Rabbi University of Oslo, Oslo, Norway Bergen University College, Bergen, Norway fazlr@student.matnat.uio.no, Fazle.Rabbi@hib.no May 30, 2015 Fazle Rabbi et al. (UiO,

More information

Computation Tree Logic (CTL) & Basic Model Checking Algorithms

Computation Tree Logic (CTL) & Basic Model Checking Algorithms Computation Tree Logic (CTL) & Basic Model Checking Algorithms Martin Fränzle Carl von Ossietzky Universität Dpt. of Computing Science Res. Grp. Hybride Systeme Oldenburg, Germany 02917: CTL & Model Checking

More information

Model Checking with CTL. Presented by Jason Simas

Model Checking with CTL. Presented by Jason Simas Model Checking with CTL Presented by Jason Simas Model Checking with CTL Based Upon: Logic in Computer Science. Huth and Ryan. 2000. (148-215) Model Checking. Clarke, Grumberg and Peled. 1999. (1-26) Content

More information

Overview. overview / 357

Overview. overview / 357 Overview overview6.1 Introduction Modelling parallel systems Linear Time Properties Regular Properties Linear Temporal Logic (LTL) Computation Tree Logic syntax and semantics of CTL expressiveness of CTL

More information

Chapter 6: Computation Tree Logic

Chapter 6: Computation Tree Logic Chapter 6: Computation Tree Logic Prof. Ali Movaghar Verification of Reactive Systems Outline We introduce Computation Tree Logic (CTL), a branching temporal logic for specifying system properties. A comparison

More information

Temporal Logic. Stavros Tripakis University of California, Berkeley. We have designed a system. We want to check that it is correct.

Temporal Logic. Stavros Tripakis University of California, Berkeley. We have designed a system. We want to check that it is correct. EE 244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Fall 2016 Temporal logic Stavros Tripakis University of California, Berkeley Stavros Tripakis (UC Berkeley) EE 244, Fall 2016

More information

FORMAL METHODS LECTURE V: CTL MODEL CHECKING

FORMAL METHODS LECTURE V: CTL MODEL CHECKING FORMAL METHODS LECTURE V: CTL MODEL CHECKING Alessandro Artale Faculty of Computer Science Free University of Bolzano Room 2.03 artale@inf.unibz.it http://www.inf.unibz.it/ artale/ Some material (text,

More information

Models. Lecture 25: Model Checking. Example. Semantics. Meanings with respect to model and path through future...

Models. Lecture 25: Model Checking. Example. Semantics. Meanings with respect to model and path through future... Models Lecture 25: Model Checking CSCI 81 Spring, 2012 Kim Bruce Meanings with respect to model and path through future... M = (S,, L) is a transition system if S is a set of states is a transition relation

More information

Temporal logics and explicit-state model checking. Pierre Wolper Université de Liège

Temporal logics and explicit-state model checking. Pierre Wolper Université de Liège Temporal logics and explicit-state model checking Pierre Wolper Université de Liège 1 Topics to be covered Introducing explicit-state model checking Finite automata on infinite words Temporal Logics and

More information

Linear Temporal Logic and Büchi Automata

Linear Temporal Logic and Büchi Automata Linear Temporal Logic and Büchi Automata Yih-Kuen Tsay Department of Information Management National Taiwan University FLOLAC 2009 Yih-Kuen Tsay (SVVRL @ IM.NTU) Linear Temporal Logic and Büchi Automata

More information

Chapter 4: Computation tree logic

Chapter 4: Computation tree logic INFOF412 Formal verification of computer systems Chapter 4: Computation tree logic Mickael Randour Formal Methods and Verification group Computer Science Department, ULB March 2017 1 CTL: a specification

More information

Computation Tree Logic

Computation Tree Logic Computation Tree Logic Hao Zheng Department of Computer Science and Engineering University of South Florida Tampa, FL 33620 Email: zheng@cse.usf.edu Phone: (813)974-4757 Fax: (813)974-5456 Hao Zheng (CSE,

More information

Temporal Logic. M φ. Outline. Why not standard logic? What is temporal logic? LTL CTL* CTL Fairness. Ralf Huuck. Kripke Structure

Temporal Logic. M φ. Outline. Why not standard logic? What is temporal logic? LTL CTL* CTL Fairness. Ralf Huuck. Kripke Structure Outline Temporal Logic Ralf Huuck Why not standard logic? What is temporal logic? LTL CTL* CTL Fairness Model Checking Problem model, program? M φ satisfies, Implements, refines property, specification

More information

CTL Model checking. 1. finite number of processes, each having a finite number of finite-valued variables. Model-Checking

CTL Model checking. 1. finite number of processes, each having a finite number of finite-valued variables. Model-Checking CTL Model checking Assumptions:. finite number of processes, each having a finite number of finite-valued variables.. finite length of CTL formula Problem:Determine whether formula f 0 is true in a finite

More information

Temporal Logic Model Checking

Temporal Logic Model Checking 18 Feb, 2009 Thomas Wahl, Oxford University Temporal Logic Model Checking 1 Temporal Logic Model Checking Thomas Wahl Computing Laboratory, Oxford University 18 Feb, 2009 Thomas Wahl, Oxford University

More information

Model for reactive systems/software

Model for reactive systems/software Temporal Logics CS 5219 Abhik Roychoudhury National University of Singapore The big picture Software/ Sys. to be built (Dream) Properties to Satisfy (caution) Today s lecture System Model (Rough Idea)

More information

Topics in Verification AZADEH FARZAN FALL 2017

Topics in Verification AZADEH FARZAN FALL 2017 Topics in Verification AZADEH FARZAN FALL 2017 Last time LTL Syntax ϕ ::= true a ϕ 1 ϕ 2 ϕ ϕ ϕ 1 U ϕ 2 a AP. ϕ def = trueu ϕ ϕ def = ϕ g intuitive meaning of and is obt Limitations of LTL pay pay τ τ soda

More information

Normal Forms of Propositional Logic

Normal Forms of Propositional Logic Normal Forms of Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 12, 2017 Bow-Yaw Wang (Academia Sinica) Normal Forms of Propositional Logic September

More information

Computation Tree Logic

Computation Tree Logic Computation Tree Logic Computation tree logic (CTL) is a branching-time logic that includes the propositional connectives as well as temporal connectives AX, EX, AU, EU, AG, EG, AF, and EF. The syntax

More information

Introduction to Model Checking

Introduction to Model Checking Introduction to Model Checking Fabio Somenzi Department of Electrical, Computer, and Energy Engineering University of Colorado at Boulder July 25, 2009 Outline 1 Introduction 2 Modeling Systems and Properties

More information

Computer-Aided Program Design

Computer-Aided Program Design Computer-Aided Program Design Spring 2015, Rice University Unit 3 Swarat Chaudhuri February 5, 2015 Temporal logic Propositional logic is a good language for describing properties of program states. However,

More information

Natural Deduction for Propositional Logic

Natural Deduction for Propositional Logic Natural Deduction for Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 10, 2018 Bow-Yaw Wang (Academia Sinica) Natural Deduction for Propositional Logic

More information

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either

Introduction to Temporal Logic. The purpose of temporal logics is to specify properties of dynamic systems. These can be either Introduction to Temporal Logic The purpose of temporal logics is to specify properties of dynamic systems. These can be either Desired properites. Often liveness properties like In every infinite run action

More information

Model Checking. Temporal Logic. Fifth International Symposium in Programming, volume. of concurrent systems in CESAR. In Proceedings of the

Model Checking. Temporal Logic. Fifth International Symposium in Programming, volume. of concurrent systems in CESAR. In Proceedings of the Sérgio Campos, Edmund Why? Advantages: No proofs Fast Counter-examples No problem with partial specifications can easily express many concurrency properties Main Disadvantage: State Explosion Problem Too

More information

NPTEL Phase-II Video course on. Design Verification and Test of. Dr. Santosh Biswas Dr. Jatindra Kumar Deka IIT Guwahati

NPTEL Phase-II Video course on. Design Verification and Test of. Dr. Santosh Biswas Dr. Jatindra Kumar Deka IIT Guwahati NPTEL Phase-II Video course on Design Verification and Test of Digital VLSI Designs Dr. Santosh Biswas Dr. Jatindra Kumar Deka IIT Guwahati Module IV: Temporal Logic Lecture I: Introduction to formal methods

More information

FAIRNESS FOR INFINITE STATE SYSTEMS

FAIRNESS FOR INFINITE STATE SYSTEMS FAIRNESS FOR INFINITE STATE SYSTEMS Heidy Khlaaf University College London 1 FORMAL VERIFICATION Formal verification is the process of establishing whether a system satisfies some requirements (properties),

More information

Explicit State Model Checking Algorithm for CTL. CSE 814 CTL Explicit-State Model Checking Algorithm

Explicit State Model Checking Algorithm for CTL. CSE 814 CTL Explicit-State Model Checking Algorithm Explicit State Model Checking for CTL 1 CTL Model Checking Problem Given A model describing the behaviors of a system A set of specifications expressed in CTL ically Check that every behavior satisfies

More information

Algorithms for Model Checking (2IW55)

Algorithms for Model Checking (2IW55) Algorithms for Model Checking (2IW55) Lecture 2 Fairness & Basic Model Checking Algorithm for CTL and fair CTL based on strongly connected components Chapter 4.1, 4.2 + SIAM Journal of Computing 1(2),

More information

LTL and CTL. Lecture Notes by Dhananjay Raju

LTL and CTL. Lecture Notes by Dhananjay Raju LTL and CTL Lecture Notes by Dhananjay Raju draju@cs.utexas.edu 1 Linear Temporal Logic: LTL Temporal logics are a convenient way to formalise and verify properties of reactive systems. LTL is an infinite

More information

An Introduction to Temporal Logics

An Introduction to Temporal Logics An Introduction to Temporal Logics c 2001,2004 M. Lawford Outline Motivation: Dining Philosophers Safety, Liveness, Fairness & Justice Kripke structures, LTS, SELTS, and Paths Linear Temporal Logic Branching

More information

Automata on Infinite words and LTL Model Checking

Automata on Infinite words and LTL Model Checking Automata on Infinite words and LTL Model Checking Rodica Condurache Lecture 4 Lecture 4 Automata on Infinite words and LTL Model Checking 1 / 35 Labeled Transition Systems Let AP be the (finite) set of

More information

First-order resolution for CTL

First-order resolution for CTL First-order resolution for Lan Zhang, Ullrich Hustadt and Clare Dixon Department of Computer Science, University of Liverpool Liverpool, L69 3BX, UK {Lan.Zhang, U.Hustadt, CLDixon}@liverpool.ac.uk Abstract

More information

Verification. Arijit Mondal. Dept. of Computer Science & Engineering Indian Institute of Technology Patna

Verification. Arijit Mondal. Dept. of Computer Science & Engineering Indian Institute of Technology Patna IIT Patna 1 Verification Arijit Mondal Dept. of Computer Science & Engineering Indian Institute of Technology Patna arijit@iitp.ac.in Introduction The goal of verification To ensure 100% correct in functionality

More information

Homework 2: Temporal logic

Homework 2: Temporal logic ICS-E5010 Computer-Aided Verification and Synthesis, Spring 2016 Stavros Tripakis Homework 2: Temporal logic Assigned: January 20, 2016 Due: February 1, 2016 Total: 235 points. 1. (20 points) Two formulae

More information

Chapter 5: Linear Temporal Logic

Chapter 5: Linear Temporal Logic Chapter 5: Linear Temporal Logic Prof. Ali Movaghar Verification of Reactive Systems Spring 94 Outline We introduce linear temporal logic (LTL), a logical formalism that is suited for specifying LT properties.

More information

Alan Bundy. Automated Reasoning LTL Model Checking

Alan Bundy. Automated Reasoning LTL Model Checking Automated Reasoning LTL Model Checking Alan Bundy Lecture 9, page 1 Introduction So far we have looked at theorem proving Powerful, especially where good sets of rewrite rules or decision procedures have

More information

T Reactive Systems: Temporal Logic LTL

T Reactive Systems: Temporal Logic LTL Tik-79.186 Reactive Systems 1 T-79.186 Reactive Systems: Temporal Logic LTL Spring 2005, Lecture 4 January 31, 2005 Tik-79.186 Reactive Systems 2 Temporal Logics Temporal logics are currently the most

More information

Overview. Discrete Event Systems Verification of Finite Automata. What can finite automata be used for? What can finite automata be used for?

Overview. Discrete Event Systems Verification of Finite Automata. What can finite automata be used for? What can finite automata be used for? Computer Engineering and Networks Overview Discrete Event Systems Verification of Finite Automata Lothar Thiele Introduction Binary Decision Diagrams Representation of Boolean Functions Comparing two circuits

More information

Tecniche di Specifica e di Verifica. Automata-based LTL Model-Checking

Tecniche di Specifica e di Verifica. Automata-based LTL Model-Checking Tecniche di Specifica e di Verifica Automata-based LTL Model-Checking Finite state automata A finite state automaton is a tuple A = (Σ,S,S 0,R,F) Σ: set of input symbols S: set of states -- S 0 : set of

More information

Crash course Verification of Finite Automata CTL model-checking

Crash course Verification of Finite Automata CTL model-checking Crash course Verification of Finite Automata CTL model-checking Exercise session - 07.12.2016 Xiaoxi He 1 Reminders Big picture Objective Verify properties over DES models Formal method Absolute guarantee!

More information

Linear Temporal Logic (LTL)

Linear Temporal Logic (LTL) Linear Temporal Logic (LTL) Grammar of well formed formulae (wff) φ φ ::= p (Atomic formula: p AP) φ (Negation) φ 1 φ 2 (Disjunction) Xφ (successor) Fφ (sometimes) Gφ (always) [φ 1 U φ 2 ] (Until) Details

More information

Symmetry Reductions. A. Prasad Sistla University Of Illinois at Chicago

Symmetry Reductions. A. Prasad Sistla University Of Illinois at Chicago Symmetry Reductions. A. Prasad Sistla University Of Illinois at Chicago Model-Checking Concurrent PGM Temporal SPEC Model Checker Yes/No Counter Example Approach Build the global state graph Algorithm

More information

Multi-Valued Symbolic Model-Checking

Multi-Valued Symbolic Model-Checking Multi-Valued Symbolic Model-Checking MARSHA CHECHIK, BENET DEVEREUX, STEVE EASTERBROOK AND ARIE GURFINKEL University of Toronto This paper introduces the concept of multi-valued model-checking and describes

More information

Timo Latvala. February 4, 2004

Timo Latvala. February 4, 2004 Reactive Systems: Temporal Logic LT L Timo Latvala February 4, 2004 Reactive Systems: Temporal Logic LT L 8-1 Temporal Logics Temporal logics are currently the most widely used specification formalism

More information

Automata-based Verification - III

Automata-based Verification - III COMP30172: Advanced Algorithms Automata-based Verification - III Howard Barringer Room KB2.20: email: howard.barringer@manchester.ac.uk March 2009 Third Topic Infinite Word Automata Motivation Büchi Automata

More information

Lecture Notes on Emptiness Checking, LTL Büchi Automata

Lecture Notes on Emptiness Checking, LTL Büchi Automata 15-414: Bug Catching: Automated Program Verification Lecture Notes on Emptiness Checking, LTL Büchi Automata Matt Fredrikson André Platzer Carnegie Mellon University Lecture 18 1 Introduction We ve seen

More information

Gerwin Klein, June Andronick, Ramana Kumar S2/2016

Gerwin Klein, June Andronick, Ramana Kumar S2/2016 COMP4161: Advanced Topics in Software Verification {} Gerwin Klein, June Andronick, Ramana Kumar S2/2016 data61.csiro.au Content Intro & motivation, getting started [1] Foundations & Principles Lambda

More information

Optimal Decision Procedures for Satisfiability in Fragments of Alternating-time Temporal Logics

Optimal Decision Procedures for Satisfiability in Fragments of Alternating-time Temporal Logics Optimal Decision Procedures for Satisfiability in Fragments of Alternating-time Temporal Logics Valentin Goranko a,b Steen Vester a 1 a Department of Applied Mathematics and Computer Science Technical

More information

From Liveness to Promptness

From Liveness to Promptness From Liveness to Promptness Orna Kupferman Hebrew University Nir Piterman EPFL Moshe Y. Vardi Rice University Abstract Liveness temporal properties state that something good eventually happens, e.g., every

More information

A Tableau-Based Decision Procedure for Right Propositional Neighborhood Logic (RPNL )

A Tableau-Based Decision Procedure for Right Propositional Neighborhood Logic (RPNL ) A Tableau-Based Decision Procedure for Right Propositional Neighborhood Logic (RPNL ) Davide Bresolin Angelo Montanari Dipartimento di Matematica e Informatica Università degli Studi di Udine {bresolin,

More information

Model Checking I. What are LTL and CTL? dack. and. dreq. and. q0bar

Model Checking I. What are LTL and CTL? dack. and. dreq. and. q0bar Model Checking I What are LTL and CTL? and dack q0 or D dreq D q0bar and 1 View circuit as a transition system (dreq, q0, dack) (dreq, q0, dack ) q0 = dreq dack = dreq and (q0 or (not q0 and dack)) q0

More information

AVACS Automatic Verification and Analysis of Complex Systems REPORTS. of SFB/TR 14 AVACS. Editors: Board of SFB/TR 14 AVACS

AVACS Automatic Verification and Analysis of Complex Systems REPORTS. of SFB/TR 14 AVACS. Editors: Board of SFB/TR 14 AVACS AVACS Automatic Verification and Analysis of Complex Systems REPORTS of SFB/TR 14 AVACS Editors: Board of SFB/TR 14 AVACS Symbolic Model Checking for Incomplete Designs with Flexible Modeling of Unknowns

More information

Lecture Notes on Model Checking

Lecture Notes on Model Checking Lecture Notes on Model Checking 15-816: Modal Logic André Platzer Lecture 18 March 30, 2010 1 Introduction to This Lecture In this course, we have seen several modal logics and proof calculi to justify

More information

Valentin Goranko Stockholm University. ESSLLI 2018 August 6-10, of 33

Valentin Goranko Stockholm University. ESSLLI 2018 August 6-10, of 33 ESSLLI 2018 course Logics for Epistemic and Strategic Reasoning in Multi-Agent Systems Lecture 4: Logics for temporal strategic reasoning with complete information Valentin Goranko Stockholm University

More information

Theoretical Foundations of the UML

Theoretical Foundations of the UML Theoretical Foundations of the UML Lecture 17+18: A Logic for MSCs Joost-Pieter Katoen Lehrstuhl für Informatik 2 Software Modeling and Verification Group moves.rwth-aachen.de/teaching/ws-1718/fuml/ 5.

More information

Chapter 3: Linear temporal logic

Chapter 3: Linear temporal logic INFOF412 Formal verification of computer systems Chapter 3: Linear temporal logic Mickael Randour Formal Methods and Verification group Computer Science Department, ULB March 2017 1 LTL: a specification

More information

Models for Efficient Timed Verification

Models for Efficient Timed Verification Models for Efficient Timed Verification François Laroussinie LSV / ENS de Cachan CNRS UMR 8643 Monterey Workshop - Composition of embedded systems Model checking System Properties Formalizing step? ϕ Model

More information

Büchi Automata and Linear Temporal Logic

Büchi Automata and Linear Temporal Logic Büchi Automata and Linear Temporal Logic Joshua D. Guttman Worcester Polytechnic Institute 18 February 2010 Guttman ( WPI ) Büchi & LTL 18 Feb 10 1 / 10 Büchi Automata Definition A Büchi automaton is a

More information

An On-the-fly Tableau Construction for a Real-Time Temporal Logic

An On-the-fly Tableau Construction for a Real-Time Temporal Logic #! & F $ F ' F " F % An On-the-fly Tableau Construction for a Real-Time Temporal Logic Marc Geilen and Dennis Dams Faculty of Electrical Engineering, Eindhoven University of Technology P.O.Box 513, 5600

More information

PSL Model Checking and Run-time Verification via Testers

PSL Model Checking and Run-time Verification via Testers PSL Model Checking and Run-time Verification via Testers Formal Methods 2006 Aleksandr Zaks and Amir Pnueli New York University Introduction Motivation (Why PSL?) A new property specification language,

More information

Model Checking: An Introduction

Model Checking: An Introduction Model Checking: An Introduction Meeting 3, CSCI 5535, Spring 2013 Announcements Homework 0 ( Preliminaries ) out, due Friday Saturday This Week Dive into research motivating CSCI 5535 Next Week Begin foundations

More information

Automata-Theoretic Verification

Automata-Theoretic Verification Automata-Theoretic Verification Javier Esparza TU München Orna Kupferman The Hebrew University Moshe Y. Vardi Rice University 1 Introduction This chapter describes the automata-theoretic approach to the

More information

Principles. Model (System Requirements) Answer: Model Checker. Specification (System Property) Yes, if the model satisfies the specification

Principles. Model (System Requirements) Answer: Model Checker. Specification (System Property) Yes, if the model satisfies the specification Model Checking Princiles Model (System Requirements) Secification (System Proerty) Model Checker Answer: Yes, if the model satisfies the secification Counterexamle, otherwise Krike Model Krike Structure

More information

3-Valued Abstraction-Refinement

3-Valued Abstraction-Refinement 3-Valued Abstraction-Refinement Sharon Shoham Academic College of Tel-Aviv Yaffo 1 Model Checking An efficient procedure that receives: A finite-state model describing a system A temporal logic formula

More information

SMV the Symbolic Model Verifier. Example: the alternating bit protocol. LTL Linear Time temporal Logic

SMV the Symbolic Model Verifier. Example: the alternating bit protocol. LTL Linear Time temporal Logic Model Checking (I) SMV the Symbolic Model Verifier Example: the alternating bit protocol LTL Linear Time temporal Logic CTL Fixed Points Correctness Slide 1 SMV - Symbolic Model Verifier SMV - Symbolic

More information

Logic Model Checking

Logic Model Checking Logic Model Checking Lecture Notes 10:18 Caltech 101b.2 January-March 2004 Course Text: The Spin Model Checker: Primer and Reference Manual Addison-Wesley 2003, ISBN 0-321-22862-6, 608 pgs. the assignment

More information

Decision Procedures for CTL

Decision Procedures for CTL Decision Procedures for CTL Oliver Friedmann 1 Markus Latte 1 1 Dept. of Computer Science, Ludwig-Maximilians-University, Munich, Germany CLoDeM Edinburgh, 15 July 2010 Introduction to CTL Origin: Emerson

More information

Tecniche di Specifica e di Verifica. Automata-based LTL Model-Checking

Tecniche di Specifica e di Verifica. Automata-based LTL Model-Checking Tecniche di Specifica e di Verifica Automata-based LTL Model-Checking Finite state automata A finite state automaton is a tuple A = (S,S,S 0,R,F) S: set of input symbols S: set of states -- S 0 : set of

More information

Guest lecturer: Prof. Mark Reynolds, The University of Western Australia

Guest lecturer: Prof. Mark Reynolds, The University of Western Australia Università degli studi di Udine Corso per il dottorato di ricerca: Temporal Logics: Satisfiability Checking, Model Checking, and Synthesis January 2017 Lecture 01, Part 02: Temporal Logics Guest lecturer:

More information

The algorithmic analysis of hybrid system

The algorithmic analysis of hybrid system The algorithmic analysis of hybrid system Authors: R.Alur, C. Courcoubetis etc. Course teacher: Prof. Ugo Buy Xin Li, Huiyong Xiao Nov. 13, 2002 Summary What s a hybrid system? Definition of Hybrid Automaton

More information

Verification Using Temporal Logic

Verification Using Temporal Logic CMSC 630 February 25, 2015 1 Verification Using Temporal Logic Sources: E.M. Clarke, O. Grumberg and D. Peled. Model Checking. MIT Press, Cambridge, 2000. E.A. Emerson. Temporal and Modal Logic. Chapter

More information

Automata-based Verification - III

Automata-based Verification - III CS3172: Advanced Algorithms Automata-based Verification - III Howard Barringer Room KB2.20/22: email: howard.barringer@manchester.ac.uk March 2005 Third Topic Infinite Word Automata Motivation Büchi Automata

More information

Model Checking I. What are LTL and CTL? dack. and. dreq. and. q0bar

Model Checking I. What are LTL and CTL? dack. and. dreq. and. q0bar Model Checking I What are LTL and CTL? q0 or and dack dreq q0bar and 1 View circuit as a transition system (dreq, q0, dack) (dreq, q0, dack ) q0 = dreq and dack = dreq & (q0 + ( q0 & dack)) q0 or and D

More information

Symbolic Model Checking Property Specification Language*

Symbolic Model Checking Property Specification Language* Symbolic Model Checking Property Specification Language* Ji Wang National Laboratory for Parallel and Distributed Processing National University of Defense Technology *Joint Work with Wanwei Liu, Huowang

More information

What is Temporal Logic? The Basic Paradigm. The Idea of Temporal Logic. Formulas

What is Temporal Logic? The Basic Paradigm. The Idea of Temporal Logic. Formulas What is Temporal Logic? A logical formalism to describe sequences of any kind. We use it to describe state sequences. An automaton describes the actions of a system, a temporal logic formula describes

More information

CS256/Spring 2008 Lecture #11 Zohar Manna. Beyond Temporal Logics

CS256/Spring 2008 Lecture #11 Zohar Manna. Beyond Temporal Logics CS256/Spring 2008 Lecture #11 Zohar Manna Beyond Temporal Logics Temporal logic expresses properties of infinite sequences of states, but there are interesting properties that cannot be expressed, e.g.,

More information

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford Probabilistic Model Checking Michaelmas Term 2011 Dr. Dave Parker Department of Computer Science University of Oxford Overview Temporal logic Non-probabilistic temporal logic CTL Probabilistic temporal

More information

LTL with Arithmetic and its Applications in Reasoning about Hierarchical Systems

LTL with Arithmetic and its Applications in Reasoning about Hierarchical Systems This space is reserved for the EPiC Series header, do not use it LTL with Arithmetic and its Applications in Reasoning about Hierarchical Systems Rachel Faran and Orna Kupferman The Hebrew University,

More information

A Hierarchy for Accellera s Property Specification Language

A Hierarchy for Accellera s Property Specification Language A Hierarchy for Accellera s Property Specification Language Thomas Türk May 1st, 2005 Diploma Thesis University of Kaiserslautern Supervisor: Prof. Dr. Klaus Schneider Vorliegende Diplomarbeit wurde von

More information

Model Checking & Program Analysis

Model Checking & Program Analysis Model Checking & Program Analysis Markus Müller-Olm Dortmund University Overview Introduction Model Checking Flow Analysis Some Links between MC and FA Conclusion Apology for not giving proper credit to

More information

CS357: CTL Model Checking (two lectures worth) David Dill

CS357: CTL Model Checking (two lectures worth) David Dill CS357: CTL Model Checking (two lectures worth) David Dill 1 CTL CTL = Computation Tree Logic It is a propositional temporal logic temporal logic extended to properties of events over time. CTL is a branching

More information

Bounded Model Checking with SAT/SMT. Edmund M. Clarke School of Computer Science Carnegie Mellon University 1/39

Bounded Model Checking with SAT/SMT. Edmund M. Clarke School of Computer Science Carnegie Mellon University 1/39 Bounded Model Checking with SAT/SMT Edmund M. Clarke School of Computer Science Carnegie Mellon University 1/39 Recap: Symbolic Model Checking with BDDs Method used by most industrial strength model checkers:

More information

MODEL CHECKING TIMED SAFETY INSTRUMENTED SYSTEMS

MODEL CHECKING TIMED SAFETY INSTRUMENTED SYSTEMS TKK Reports in Information and Computer Science Espoo 2008 TKK-ICS-R3 MODEL CHECKING TIMED SAFETY INSTRUMENTED SYSTEMS Jussi Lahtinen ABTEKNILLINEN KORKEAKOULU TEKNISKA HÖGSKOLAN HELSINKI UNIVERSITY OF

More information

Trace Diagnostics using Temporal Implicants

Trace Diagnostics using Temporal Implicants Trace Diagnostics using Temporal Implicants ATVA 15 Thomas Ferrère 1 Dejan Nickovic 2 Oded Maler 1 1 VERIMAG, University of Grenoble / CNRS 2 Austrian Institute of Technology October 14, 2015 Motivation

More information

Introduction to Model Checking. Debdeep Mukhopadhyay IIT Madras

Introduction to Model Checking. Debdeep Mukhopadhyay IIT Madras Introduction to Model Checking Debdeep Mukhopadhyay IIT Madras How good can you fight bugs? Comprising of three parts Formal Verification techniques consist of three parts: 1. A framework for modeling

More information

MODEL CHECKING. Arie Gurfinkel

MODEL CHECKING. Arie Gurfinkel 1 MODEL CHECKING Arie Gurfinkel 2 Overview Kripke structures as models of computation CTL, LTL and property patterns CTL model-checking and counterexample generation State of the Art Model-Checkers 3 SW/HW

More information

Model checking for LTL (= satisfiability over a finite-state program)

Model checking for LTL (= satisfiability over a finite-state program) Model checking for LTL (= satisfiability over a finite-state program) Angelo Montanari Department of Mathematics and Computer Science, University of Udine, Italy angelo.montanari@uniud.it Gargnano, August

More information

CTL Model Checking. Wishnu Prasetya.

CTL Model Checking. Wishnu Prasetya. CTL Model Checking Wishnu Prasetya wishnu@cs.uu.nl www.cs.uu.nl/docs/vakken/pv Background Example: verification of web applications à e.g. to prove existence of a path from page A to page B. Use of CTL

More information

On the coinductive nature of centralizers

On the coinductive nature of centralizers On the coinductive nature of centralizers Charles Grellois INRIA & University of Bologna Séminaire du LIFO Jan 16, 2017 Charles Grellois (INRIA & Bologna) On the coinductive nature of centralizers Jan

More information

An Introduction to Multi Valued Model Checking

An Introduction to Multi Valued Model Checking An Introduction to Multi Valued Model Checking Georgios E. Fainekos Department of Computer and Information Science University of Pennsylvania, Philadelphia, PA 19104, USA E-mail: fainekos (at) grasp.cis.upenn.edu

More information

Decision Procedures for CTL

Decision Procedures for CTL Decision Procedures for CTL Oliver Friedmann and Markus Latte Dept. of Computer Science, University of Munich, Germany Abstract. We give an overview over three serious attempts to devise an effective decision

More information

Finite-State Model Checking

Finite-State Model Checking EECS 219C: Computer-Aided Verification Intro. to Model Checking: Models and Properties Sanjit A. Seshia EECS, UC Berkeley Finite-State Model Checking G(p X q) Temporal logic q p FSM Model Checker Yes,

More information

Partially Ordered Two-way Büchi Automata

Partially Ordered Two-way Büchi Automata Partially Ordered Two-way Büchi Automata Manfred Kufleitner Alexander Lauser FMI, Universität Stuttgart, Germany {kufleitner, lauser}@fmi.uni-stuttgart.de June 14, 2010 Abstract We introduce partially

More information

Characterizing Fault-Tolerant Systems by Means of Simulation Relations

Characterizing Fault-Tolerant Systems by Means of Simulation Relations Characterizing Fault-Tolerant Systems by Means of Simulation Relations TECHNICAL REPORT Ramiro Demasi 1, Pablo F. Castro 2,3, Thomas S.E. Maibaum 1, and Nazareno Aguirre 2,3 1 Department of Computing and

More information

Lecture 9 Synthesis of Reactive Control Protocols

Lecture 9 Synthesis of Reactive Control Protocols Lecture 9 Synthesis of Reactive Control Protocols Nok Wongpiromsarn Singapore-MIT Alliance for Research and Technology Richard M. Murray and Ufuk Topcu California Institute of Technology EECI, 16 May 2012

More information

ESE601: Hybrid Systems. Introduction to verification

ESE601: Hybrid Systems. Introduction to verification ESE601: Hybrid Systems Introduction to verification Spring 2006 Suggested reading material Papers (R14) - (R16) on the website. The book Model checking by Clarke, Grumberg and Peled. What is verification?

More information

On simulations and bisimulations of general flow systems

On simulations and bisimulations of general flow systems On simulations and bisimulations of general flow systems Jen Davoren Department of Electrical & Electronic Engineering The University of Melbourne, AUSTRALIA and Paulo Tabuada Department of Electrical

More information

Monodic fragments of first-order temporal logics

Monodic fragments of first-order temporal logics Outline of talk Most propositional temporal logics are decidable. But the decision problem in predicate (first-order) temporal logics has seemed near-hopeless. Monodic fragments of first-order temporal

More information

Automata and Reactive Systems

Automata and Reactive Systems Automata and Reactive Systems Lecture WS 2002/2003 Prof. Dr. W. Thomas RWTH Aachen Preliminary version (Last change March 20, 2003) Translated and revised by S. N. Cho and S. Wöhrle German version by M.

More information

Logic in Automatic Verification

Logic in Automatic Verification Logic in Automatic Verification Javier Esparza Sofware Reliability and Security Group Institute for Formal Methods in Computer Science University of Stuttgart Many thanks to Abdelwaheb Ayari, David Basin,

More information