Overview. overview / 357

Size: px
Start display at page:

Download "Overview. overview / 357"

Transcription

1 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 and LTL CTL model checking fairness, counterexamples/witnesses CTL + and CTL Equivalences and Abstraction 17 / 357

2 Linear vs branching time ctlss4.1-1 transition system T =(S, Act,, S 0, AP, L) state graph + labeling abstraction from actions linear-time view state sequences traces projection on AP branching-time view states & branches computation tree 4 / 357

3 Computation tree ctlss4.1-1c The computation tree of state s 0 in a transition system T =(S, Act,, S 0, AP, L) arisesby: unfolding T s0 =(S, Act,, s 0, AP, L) intoatree abstraction from the actions projection of the states s to their labels L(s) AP s 0 7 / 357

4 Example: computation tree ctlss4.1-1a mutual exclusion with semaphore and AP = {crit 1, crit 2 }: {crit 1 } {crit 2 } {crit 1 } {crit 2 } {crit 1 }{crit 2 }{crit 1 }{crit 2 } path nc 1, nc 2 wait 1, nc 2 crit 1, nc 2 crit 1, wait 2... trace {crit 1 } {crit 1 } / 357

5 Linear vs. branching time ctlss4.1-2 behavior temporal logic model checking impl. relation fairness linear time path based traces LTL path formulas PSPACE-complete O ( size(t ) exp( ϕ ) ) trace inclusion trace equivalence PSPACE-complete can be encoded branching time state based computation tree CTL state formulas PTIME O ( size(t ) Φ ) simulation bisimulation PTIME requires special treatment 16 / 357

6 Computation Tree Logic (CTL) ctlss4.1-4 CTL (state) formulas: Φ ::= true a Φ1 Φ 2 Φ ϕ ϕ CTL path formulas: ϕ ::= Φ Φ1 U Φ 2 19 / 357

7 Computation Tree Logic (CTL) ctlss4.1-4 CTL (state) formulas: Φ ::= true a Φ1 Φ 2 Φ ϕ ϕ CTL path formulas: ϕ ::= Φ Φ1 U Φ 2 eventually: Φ def = Φ Φ = (true U Φ) def = (true U Φ) always: Φ def = Φ =? note: Φ is no CTL formula 24 / 357

8 Computation Tree Logic (CTL) ctlss4.1-4 CTL (state) formulas: Φ ::= true a Φ1 Φ 2 Φ ϕ ϕ CTL path formulas: ϕ ::= Φ Φ1 U Φ 2 eventually: Φ def = Φ Φ = (true U Φ) def = (true U Φ) always: Φ def = Φ Φ = Φ def = Φ note: Φ is no CTL formula 26 / 357

9 Examples for CTL formulas ctlss4.1-3 CTL (state) formulas: Φ ::= true a Φ1 Φ 2 Φ ϕ ϕ CTL path formulas: ϕ ::= Φ Φ1 U Φ 2 Φ Φ mutual exclusion (safety) ( crit 1 crit 2 ) 29 / 357

10 Examples for CTL formulas ctlss4.1-3 CTL (state) formulas: Φ ::= true a Φ1 Φ 2 Φ ϕ ϕ CTL path formulas: ϕ ::= Φ Φ1 U Φ 2 Φ Φ mutual exclusion (safety) ( crit 1 crit 2 ) every request will be answered eventually ( request response ) 30 / 357

11 Examples for CTL formulas ctlss4.1-3 CTL (state) formulas: Φ ::= true a Φ1 Φ 2 Φ ϕ ϕ CTL path formulas: ϕ ::= Φ Φ1 U Φ 2 Φ Φ mutual exclusion (safety) ( crit 1 crit 2 ) every request will be answered eventually ( request response ) traffic lights ( yellow red ) 31 / 357

12 Examples for CTL formulas ctlss4.1-3 CTL (state) formulas: Φ ::= true a Φ1 Φ 2 Φ ϕ ϕ CTL path formulas: ϕ ::= Φ Φ1 U Φ 2 Φ Φ mutual exclusion (safety) ( crit 1 crit 2 ) every request will be answered eventually ( request response ) traffic lights ( yellow red ) reset possiblity start 32 / 357

13 Examples for CTL formulas ctlss4.1-3 CTL (state) formulas: Φ ::= true a Φ1 Φ 2 Φ ϕ ϕ CTL path formulas: ϕ ::= Φ Φ1 U Φ 2 Φ Φ mutual exclusion (safety) ( crit 1 crit 2 ) every request will be answered eventually ( request response ) traffic lights ( yellow red ) reset possiblity start unconditional process fairness crit 1 crit 2 33 / 357

14 Alternative (standard) Syntax for CTL E ( ) there exists a path A ( ) for all paths X ( ) in the next state U until (strong) (W,V,R...) F (<>) finally (eventually) G ([]) generally (always) EFΦ: Φ holds potentially, AFΦ: Φ is inevitable EGΦ: potentially always Φ, AGΦ: invariantly Φ

15 [mutual exclusion] [ ]( crit1 crit2) AG( crit1 crit2) [every request will be answered eventually] []( request <> response ) AG( request AF response ) [traffic light] []( yellow red) AG( yellow AX red ) [reset possiblity] [] <> start AG EF start Alternative (standard) Syntax for CTL E ( ) there exists a path A ( ) for all paths X ( ) in the next state U until (strong) (W,V,R...) F (<>) finally (eventually) G ([]) generally (always) EFΦ: Φ holds potentially, AFΦ: Φ is inevitable EGΦ: potentially always Φ, AGΦ: invariantly Φ

16 Semantics of CTL ctlss define a satisfaction relation = = = for CTL formulas over AP and a given TS T =(S, Act,, S 0, AP, L) without terminal states interpretation of state formulas over the states interpretation of path formulas over the paths (infinite path fragments) 43 / 357

17 Recall: semantics of LTL ctlss4.1-ltl-semantics for infinite path fragment π = s 0 s 1 s 2...: π = true π = a iff s 0 = a,i.e., a L(s 0 ) π = ϕ 1 ϕ 2 iff π = ϕ 1 and π = ϕ 2 π = ϕ iff π = ϕ π = ϕ iff suffix(π, 1) = s 1 s 2 s 3... = ϕ π = ϕ 1 U ϕ 2 iff there exists j 0 such that suffix(π, j) = s j s j+1 s j+2... = ϕ 2 and suffix(π, k) = s k s k+1 s k+2... = ϕ 1 for 0 k < j 44 / 357

18 Satisfaction relation for path formulas ctlss4.1-11a Let π = s 0 s 1 s 2... be an infinite path fragment. π = Φ iff s 1 = Φ π = Φ 1 U Φ 2 iff there exists j 0 such that s j = = = Φ 2 s k = = = Φ 1 for 0 k < j semantics of derived operators: π = Φ iff there exists j 0with π = Φ iff for all j 0wehave: s j = Φ s j = Φ 50 / 357

19 Satisfaction relation for state formulas ctlss s = true s = a iff a L(s) s = Φ 1 Φ 2 iff s = Φ 1 and s = Φ 2 s = Φ iff s = Φ s = ϕ iff there is a path π Paths(s) s.t. π = ϕ s = ϕ iff for each path π Paths(s): π = ϕ satisfaction set for state formula Φ: Sat(Φ) def = { s S : s = Φ } 58 / 357

20 Interpretation of CTL formulas over a TS ctlss4.1-13a satisfaction of state formulas over a TS T : T = Φ iff S 0 Sat(Φ) iff s 0 = Φ for all initial states s 0 of T where S 0 is the set of initial states recall: Sat(Φ) = { s S : s = Φ } 61 / 357

21 Semantics of the next operator ctlss4.1-8 s = Φ iff there exists π = s s 1 s 2... Paths(s) s.t. π = Φ, i.e., s 1 = Φ s = Φ iff for all π = s s 1 s 2... Paths(s): π = Φ, i.e., s 1 = Φ Φ s s 1 Φ s Post(s) Sat(Φ) Post(s) Sat(Φ) 66 / 357

22 Semantics of until and eventually ctlss4.1-9 (Φ 1 U Φ 2 ) (Φ 1 U Φ 2 ) Φ Φ 70 / 357

23 Semantics of eventually and always ctlss Φ Φ Ψ Ψ 73 / 357

24 Specifying infinitely often in CTL ctlss4.1-inf-often.tex If s is a state in a TS and a AP then: iff s = CTL a for all paths π = s 0 s 1 s 2... Paths(s): i 0. s.t. s i = a iff s = LTL a 84 / 357

25 Example: CTL semantics ctlss T start try T = start? lost error delivered Φ 1 = start 85 / 357

26 Example: CTL semantics ctlss T start try T = start? lost error delivered Φ 1 = start Sat( start) = { error } 86 / 357

27 Example: CTL semantics ctlss T start try T = start? lost error delivered Φ 1 = start Sat( start) = { error } Sat( start) =? error 87 / 357

28 Example: CTL semantics T start try ctlss T = start lost error delivered Φ 1 = start error Sat( start) = { error } Sat( start) = Sat( error) = all states 88 / 357

29 Example: CTL semantics ctlss T start try T = start T = start? lost error delivered Φ 2 = start 89 / 357

30 Example: CTL semantics ctlss T start try T = start T = start? lost error delivered Φ 2 = start Sat( start) = {error} 90 / 357

31 Example: CTL semantics ctlss T start try T = start T = start? lost error delivered Φ 2 = start error Sat( start) = {error} Sat( start) = {error, try} 91 / 357

32 Example: CTL semantics ctlss T start try T = start T = start? lost error delivered Φ 2 = start (error try) Sat( start) = {error} Sat( start) = {error, try} Sat( start) =? 92 / 357

33 Example: CTL semantics ctlss T start try T = start T = start lost error delivered Φ 2 = start (error try) Sat( start) = {error} Sat( start) = {error, try} Sat( start) = {error, lost, start} 93 / 357

34 Example: CTL semantics ctlss t s u = {a} = {b} = T = (a U b)? 107 / 357

35 Example: CTL semantics ctlss t s u = {a} = {b} = T = (a U b) as sss... = (a U b) T = (( a)ub)? 110 / 357

36 Example: CTL semantics ctlss t s u = {a} = {b} = T = (a U b) T = (( a)u b) as sss... = (a U b) as t = a, u = a T = (a U ( a U b))? 112 / 357

37 Example: CTL semantics ctlss t s u = {a} = {b} = T = (a U b) as sss... = (a U b) T = (( a)u b) T = (a U ( a U b)) s u a ( a U b) as t = a, u = a... = a U ( a U b) 114 / 357

38 Correct or wrong? ctlss Let T be a transition system and Φ actlformula. Is the following statement correct? answer: no if T = Φ then T = Φ transition system T with 2 initial states: {a} T = a T = a 120 / 357

39 Equivalence of CTL formulas ctlss Φ 1 Φ 2 iff for all transition systems T : T = Φ 1 T = Φ 2 Examples: Φ Φ iff for all transition systems T : Sat(Φ 1 ) = Sat(Φ 2 ) (Φ Ψ) Φ Ψ... Φ Φ 136 / 357

40 Correct or wrong? ctlss (a b) a b wrong, e.g, (a b) a b wrong, e.g., but: (Φ 1 Φ 2 ) Φ 1 Φ 2 (Φ 1 Φ 2 ) Φ 1 Φ / 357

41 Expansion laws ctlss (Φ U Ψ) Ψ (Φ (Φ U Ψ)) (Φ U Ψ) Ψ (Φ (Φ U Ψ)) Ψ Ψ Ψ Ψ Ψ Ψ (Φ W Ψ) Ψ (Φ (Φ W Ψ)) (Φ W Ψ) Ψ (Φ (Φ W Ψ)) Φ Φ Φ Φ Φ Φ 184 / 357

42 Duality laws duality of and : Φ Φ Φ Φ ctlss self-duality of : Φ Φ Φ Φ duality of UandW, e.g.: (Φ U Ψ) ((Φ Ψ) W( Φ Ψ)) (( Ψ) W( Φ Ψ)) (( Ψ)U( Φ Ψ)) Ψ 191 / 357

43 Existential normalform for CTL ctlss For each CTL formula Ψ there is an equivalent CTL formula Φ built by operators of propositional logic the modalities, U and. Φ ::= true a Φ1 Φ 2 Φ Φ (Φ1 U Φ 2 ) Φ transformation Ψ Φ relies on: Ψ Ψ (Ψ 1 U Ψ 2 ) ( Ψ 2 U( Ψ 1 Ψ 2 )) Ψ / 357

44 Overview overview6.2 Introduction Modelling parallel systems Linear Time Properties Regular Properties Linear Temporal Logic (LTL) Computation Tree Logic syntax and semantics of CTL expressiveness of CTL and LTL CTL model checking fairness, counterexamples/witnesses CTL + and CTL Equivalences and Abstraction 1 / 138

45 Equivalence of CTL and LTL formulas comparison4.2-1 Let Φ be a CTL formula and ϕ an LTL formula. Φ ϕ iff for all transition systems T and all states s in T : s = CTL Φ s = LTL ϕ e.g., CTL formula Φ LTL formula ϕ a a (a U b) a a a U b a, b AP 5 / 138

46 More examples CTL formula Φ LTL formula ϕ a a a a (a U b) a U b a a a a (a W b) a W b a a infinitely often a comparison4.2-1a but: a a 10 / 138

47 The CTL formula a comparison4.2-2 s = a iff on each path π from s there is a state t with t = a i.e., all states in the computation tree of t fulfill a a T : a a a T = a 16 / 138

48 a a transition system T comparison4.2-3 computation tree {a} {a} T = LTL a T = CTL a Sat( a) = { } / 138

49 From CTL to LTL, if possible comparison4.2-4 For each CTL formula Φ the following holds: either there is no equivalent LTL formula or Φ ϕ where ϕ is the LTL formula obtained from Φ by removing of all path quantifiers and Φ = a ϕ = a Φ without proof hence: there is no LTL formula equivalent to Φ 29 / 138

50 Expressiveness of LTL and CTL comparison4.2-5 The expressive powers of LTL and CTL are incomparable The CTL formulas (a a), a and a have no equivalent LTL formula The LTL formula a has no equivalent CTL formula LTL a strong fairness a CTL a (a a) a 51 / 138

51 LTL formula a comparison4.2-5b There is no CTL formula which is equivalent to the LTL formula a Proof (sketch): provide sequences (T n ) n 0, (T of transition systems such that for all n 0: n) n 0 (1) T n = a (2) T n = a (3) T n and T n satisfy the same CTL formulas length n 75 / 138

52 Overview overview6.3 Introduction Modelling parallel systems Linear Time Properties Regular Properties Linear Temporal Logic (LTL) Computation Tree Logic syntax and semantics of CTL expressiveness of CTL and LTL CTL model checking fairness, counterexamples/witnesses CTL + and CTL Equivalences and Abstraction 1 / 454

53 CTL model checking ctlmc4.3-1 given: finite TS T =(S, Act,, S 0, AP, L) CTL formula Φ over AP question: does T = Φ hold? idea: compute Sat(Φ) = {s S : s = Φ} check whether S 0 Sat(Φ) 3 / 454

54 CTL model checking ctlmc4.3-1 given: finite TS T =(S, Act,, S 0, AP, L) CTL formula Φ over AP question: does T = Φ hold? inner subformulas first FOR ALL subformulas Ψ of Φ DO compute Sat(Ψ) replace Ψ by a new atomic proposition a Ψ FOR ALL s Sat(Ψ) DO add a Ψ to L(s) OD OD IF S 0 Sat(Φ) THEN output yes ELSE output no FI 7 / 454

55 Example: CTL model checking ctlmc4.3-2 Φ = a (b U c) syntax tree for Φ compute Sat(a), Sat(b), Sat(c) U a b c processed in bottom-up fashion 10 / 454

56 Example: CTL model checking ctlmc4.3-2 Φ = a (b U c) a 1 a 2 }{{}}{{} Φ 1 Φ 1 syntax tree for Φ a 1 U a 2 a b c processed in bottom-up fashion Φ 2 compute Sat(a), Sat(b), Sat(c) Sat(Φ 1 ) =...= = Sat(a 1 ) Sat( c) = S \ Sat(c) Sat(Φ 2 ) =...= = Sat(a 2 ) Φ 1 a 1 replace Φ 1 with a 1 replace Φ 2 with a 2 Sat(Φ) = Sat(a 1 ) Sat(a 2 ) 16 / 454

57 CTL model checking ctlmc4.3-3a given: finite TS T =(S, Act,, S 0, AP, L) CTL formula Φ over AP question: does T = Φ hold? method: regard in bottom-up manner all subformulas Ψ of Φ and compute their satisfaction sets Sat(Ψ) = {s S : s = Ψ} here: explanations for the case that Φ is in existential normal form analogous algorithms can be designed for standard CTL (and the derived operators) 18 / 454

58 Recall: Existential normal form for CTL ctlmc4.3-3 For each CTL formula there is an equivalent formula in -normal form, i.e., a CTL formula with the basis modalities, U,. CTL formulas in -normal form: Ψ ::= true a Ψ Ψ1 Ψ 2 Ψ (Ψ1 1 U Ψ 2 ) Ψ CTL formula CTL formula in -normal form Φ Φ (Φ 1 U Φ 2 ) ( Φ 2 U( Φ 1 Φ 2 )) Φ 2 21 / 454

59 Recursive computation of the satisfaction sets ctlmc4.3-4 Sat(true) Sat(a) Sat( Φ) Sat(Φ 1 Φ 2 ) = S = {s S : a L(s)} = S \ Sat(Φ) Sat(Φ 1 Φ 2 ) = Sat(Φ 1 ) Sat(Φ 2 ) Sat( Φ) = { s S : Post(s) Sat(Φ) } Sat( (Φ 1 U Φ 2 )) =... Sat( Φ) =... treatment of U and : via fixed point computation 28 / 454

60 Least fixed point characterization of U (Φ 1 U Φ 2 ) Φ 2 ( Φ 1 (Φ 1 U Φ 2 ) ) ctlmc4.3-5 Sat( (Φ 1 U Φ 2 )) = Sat(Φ 2 ) { s Sat(Φ1 1 ) : Post(s) Sat( (Φ 1 U Φ 2 )) } satisfies the following conditions: (1) Sat(Φ 2 ) Sat( (Φ 1 U Φ 2 )) (2) If s Sat(Φ 1 ) and Post(s) Sat( (Φ 1 U Φ 2 )) then s Sat( (Φ 1 U Φ 2 )) Sat( (Φ 1 UΦ 2 )) is the smallest set s.t. (1) and (2) hold 33 / 454

61 CTL model checking: until operator ctlmc (Φ 1 U Φ 2 ) Φ 2 (Φ 1 (Φ 1 U Φ 2 )) Sat( (Φ 1 U Φ 2 )) = least set T of states s.t. Sat(Φ 2 ) { s Sat(Φ 1 ) : Post(s) T } T Sat( (Φ 1 U Φ 2 )) 65 / 454

62 CTL model checking: always operator ctlmc expansion law: Φ Φ Φ Sat( Φ) = greatest set T of states with T { s Sat(Φ) : Post(s) T } T 0 := Sat(Φ), T n+1 := { s T n : Post(s) T n } Sat(Φ) 88 / 454

63 Recursive computation of Sat(...) ctlmc4.3-8 Sat(Φ 1 Φ 2 ) = Sat(Φ 1 ) Sat(Φ 2 ) Sat( Φ) = S \ Sat(Φ) Sat( Φ) = {s S : Post(s) Sat(Φ) = } Sat( (Φ 1 U Φ 2 )) = smallest set T of states s.t. Sat(Φ 2 ) T s Sat(Φ 1 ) and Post(s) T = s T Sat( Φ) = greatest set V of states s.t. V Sat(Φ) s V = Post(s) V 57 / 454

64 CTL model checking: treatment of U compute Sat( (Φ 1 U Φ 2 )) via an enumerative backward search ctlmc T := Sat(Φ 2 ) collects all states s = (Φ 1 U Φ 2 ) E := Sat(Φ 2 ) set of states still to be expanded WHILE E DO select a state s E and remove s from E FOR ALL s Pre(s ) DO IF s Sat(Φ 1 ) \ T THEN add s to T and E FI OD OD return T complexity: O(size(T )) 81 / 454

65 Computation of Sat( Φ) ctlmc T := Sat(Φ) organizes the candidates for s = Φ E := S \ T set of states to be expanded WHILE E DO pick a state s E and remove s from E FOR ALL s Pre(s ) DO IF s T and Post(s) T = THEN remove s from T and add s to E FI OD return T naïve implementation: quadratic time complexity 96 / 454

66 Computation of Sat( Φ) using counters ctlmc T := Sat(Φ); E := S \ T FOR ALL s Sat(Φ) DO c[s] := Post(s) OD loop invariant: c[s] = Post(s) (T E) for s T WHILE E DO pick a state s E and remove s from E FOR ALL s Pre(s ) DO complexity: IF s T THEN O(size(T )) c[s] := c[s] 1 IF c[s] =0THEN remove s from T and add s to E FI FI OD 106 / 454

67 Recursive computation of Sat(...) ctlmc4.3-8a Sat(Φ 1 Φ 2 ) = Sat(Φ 1 ) Sat(Φ 2 ) Sat( Φ) = S \ Sat(Φ) Sat( Φ) = {s S : Post(s) Sat(Φ) = } Sat( (Φ 1 U Φ 2 )) = T 0 = Sat(Φ 2 ) T n where T n n 0 T n+1 = { s Sat(Φ 1 ) : Post(s) T n } Sat( Φ) = V n where n 0 V 0 = Sat(Φ); V n+1 = { s V n : Post(s) V n } 118 / 454

68 Complexity of CTL/LTL model checking ctlmc CTL model checking: O ( size(t ) Φ ) LTL model checking: O ( size(t ) exp( ϕ ) ) model complexity, i.e., for fixed specification: CTL and LTL: O ( size(t ) ) If Φ ϕ then often we have: Φ = exp( ϕ ) 130 / 454

69 CTLvsLTL ctlmc4.3-23a If P NP then there is a sequence (ϕ n ) n 0 of LTL formulas such that: ϕ n = O ( poly(n) ) ϕ n has an equivalent CTL formula, but no equivalent CTL formula of polynomial length Proof. Let ϕ n = ϕ n. Then: ϕ n ( n = ϕ n +1=O( n 2) ϕ n has an equivalent CTL formula, e.g., Φ n Suppose there is a CTL formula of polynomial length that is equivalent to ϕ n. Then: Hamilton path problem P and P = NP 168 / 454

70 Overview overview6.4 Introduction Modelling parallel systems Linear Time Properties Regular Properties Linear Temporal Logic (LTL) Computation Tree Logic syntax and semantics of CTL expressiveness of CTL and LTL CTL model checking CTL with fairness counterexamples/witnesses, CTL + and CTL Equivalences and Abstraction 1 / 168

71 Complexity of CTL and LTL model checking ctlfair4.4-1 LTL model checking problem: PSPACE-complete and solvable in time O(size(T ) exp( ϕ )) CTL model checking problem: solvable in polynomial time (even PTIME-complete) O(size(T ) Φ ) 4 / 168

72 Complexity of CTL and LTL model checking ctlfair4.4-1 LTL model checking problem: PSPACE-complete and solvable in time O(size(T ) exp( ϕ )) LTL with fairness: CTL model checking problem: O(size(T ) exp( ϕ ) fair ) solvable in polynomial time (even PTIME-complete) CTL with fairness: O(size(T ) Φ ) O(size(T ) Φ fair ) 6 / 168

73 Recall: LTL fairness assumptions ctlfair4.4-2 are conjunctions of LTL formulas of the form unconditional fairness φ strong fairness ψ φ weak fairness ψ φ where φ, ψ are propositional formulas Reduction of = fair to = = = T = fair ϕ iff π = ϕ for all fair paths π in T iff for all paths π in T : π = fair ϕ 12 / 168

74 CTLfairnessassumptions ctl4.4-4a conjunctions of formulas of the type unconditional fairness: Φ strong fairness: Ψ Φ weak fairness: Ψ Φ where Ψ, Φ are CTL state formulas note: CTL fairness assumptions are not CTL (state or path) formulas just a syntactic formalism to specify fairness assumptions 17 / 168

75 Satisfaction relation for CTL with fairness ctlfair4.4-3 s = fair true s = fair a iff a L(s) s = fair Φ iff s = fair Φ s = fair Φ 1 Φ 2 iff s = fair Φ 1 and s = fair Φ 2 s = fair ϕ iff there exists π Paths(s) with π = fair and π = fair ϕ s = fair ϕ iff for all π Paths(s): π = fair implies π = fair ϕ e.g., s 0 s 1 s 2... = Φ iff i 0s.t.s s i = Φ 23 / 168

76 Preprocessing of FairCTL model checking ctlfair4.4-12a given: question: finite transition system T CTL formula Φ in -normal form CTL fairness assumption fair, e.g., fair = Ψ i,1 Ψ i,2 1 i k does T = fair Φ hold? preprocessing: apply a standard CTL model checker to evaluate the CTL state subformulas of fair compute Sat(Ψ i,1 ) and Sat(Ψ i,2 ) replace Ψ i,1 and Ψ i,2 with fresh atomic propositions b i and c i, respectively 72 / 168

77 Idea of FairCTL model checking ctlfair4.4-12b given: question: finite transition system T CTL formula Φ in -normal form CTL fairness assumption fair does T = fair Φ hold? preprocessing Build the parse tree of Φ and process it in bottom-up-manner. Treatment of: true, a AP,, : asforstandard CTL, U: : via standard CTL model checking via analysis of SCCs 78 / 168

78 Summary: fairness in CTL ctlfair CTL fairness assumptions: formulas similar to LTL e.g., fair = ( Ψ i Φ i ) 1 i k CTL satisfaction relation with fairness: s = fair ϕ iff there exists π Paths(s) with π = fair and π = fair ϕ model checking for CTL with fairness:, U,, via CTL model checker analysis of SCCs for, U complexity: O(size(T ) Φ fair ) 286 / 168

79 Overview overview6.5 Introduction Modelling parallel systems Linear Time Properties Regular Properties Linear Temporal Logic (LTL) Computation Tree Logic syntax and semantics of CTL expressiveness of CTL and LTL CTL model checking fairness, counterexamples/witnesses CTL + and CTL Equivalences and Abstraction 1 / 286

80 Combining LTL and CTL CTL ctlst4.6-1 CTL* LTL a a a... a CTL a 3 / 286

81 Syntax of CTL* ctlst4.6-4 state formulas: Φ ::= true a Φ1 Φ 2 Φ ϕ path formulas: ϕ ::= Φ ϕ1 ϕ 2 ϕ ϕ ϕ1 U ϕ 2 derived operators:,, etc. eventually, always as in LTL: ϕ = true U ϕ, ϕ = ϕ universal quantification: ϕ = ϕ 10 / 286

82 Semantics of CTL* ctlst4.6-2 Let T =(S, Act,, S 0, AP, L) be a transition system without terminal states. define by structural induction: a satisfaction relation = = = for states s S and CTL* state formulas a satisfaction relation = = = for infinite path fragments π in T and CTL* path formulas 12 / 286

83 Semantics of CTL* state formulas ctlst4.6-2a s = true s = a iff a L(s) s = Φ iff s = Φ s = Φ 1 Φ 2 iff s = Φ 1 and s = Φ 2 s = ϕ iff there exists a path π Paths(s) such that π = ϕ satisfaction relation = = = for CTL* path formulas 15 / 286

84 Semantics of CTL* path formulas ctlst4.6-2b let π = s 0 s 1 s 2... be an infinite path fragment in T π = Φ iff s 0 = Φ π = ϕ iff π = ϕ π = ϕ 1 ϕ 2 iff π = ϕ 1 satisfaction relation for CTL* state formulas π = ϕ 1 and π = ϕ 2 π = ϕ iff suffix(π, 1) = ϕ π = ϕ 1 U ϕ 2 iff there exists j 0 such that ϕ 2 suffix(π, j) = = = ϕ 2 suffix(π, i) = = = ϕ 1 for 0 i < j suffix(π, k) = s k s k+1 s k / 286

85 Examples of CTL*-formulas ctlst4.6-3 mutual exclusion: safety ( crit 1 crit 2 ) liveness crit 1 crit 2 progress property, e.g., (request response) persistence property, e.g., a CTL* formulas with existential quantification, e.g., Hamilton path problem (for fixed initial state) ( ( v (v v)) ) v V 26 / 286

86 Expressiveness of CTL, LTL and CTL* ctlst4.6-4a CTL is a sublogic of CTL* LTL is a sublogic of CTL* CTL* is more expressive than LTL and CTL a b CTL* LTL a a a a a... CTL b 34 / 286

87 Equivalence of CTL*-formulas ctlst ϕ ϕ ϕ ϕ e.g., a a e.g., a a (ϕ 1 ϕ 2 ) ϕ 1 ϕ 2 (ϕ 1 ϕ 2 ) ϕ 1 ϕ 2 but: (ϕ 1 ϕ 2 ) ϕ 1 ϕ 2 (ϕ 1 ϕ 2 ) ϕ 1 ϕ 2 ϕ ϕ ϕ ϕ but: ϕ ϕ ϕ ϕ 71 / 286

88 CTL* model checking ctlst given: finite TS T =(S, Act,, S 0, AP, L) CTL* formula Φ question: does T = Φ hold? main procedure as for CTL: FOR ALL subformulas Ψ of Φ DO compute Sat(Ψ) = {s S : s = Ψ} OD IF S 0 Sat(Φ) THEN return yes ELSE return no FI 75 / 286

89 Recursive computation of satisfaction sets ctlst4.6-24a Sat(true) = S Sat(a) = {s S : a L(s)} as for CTL Sat(Φ 1 Φ 2 ) = Sat(Φ 1 ) Sat(Φ 2 ) Sat( Φ) = S \ Sat(Φ) Sat( ϕ) = Sat LTL (ϕ) } using an LTL Sat( ϕ) = S \ Sat LTL ( ϕ) model checker 80 / 286

90 Complexity of CTL/LTL/CTL* model checking ctlst CTL PTIMEcomplete = = = O(size(T ) Φ ) LTL and CTL* PSPACE - complete O(size(T ) exp( ϕ )) = fair O(size(T ) Φ fair ) O(size(T ) exp( ϕ ) fair ) model complexity, i.e., for fixed formula: O( size(t ) ) 119 / 286

91 Relationships among logics modal μ-calculus ω-tree automata CTL* ω-word automata Büchi automata (never claims) LTL CTL LTL LTL without X same box means equally expressive single arrow means more expressive than no arrow means expressiveness is not comparable 2

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

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

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

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. 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

Linear-Time Logic. Hao Zheng

Linear-Time Logic. Hao Zheng Linear-Time 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, USF)

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

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

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

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

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

Verification. Lecture 9. Bernd Finkbeiner Peter Faymonville Michael Gerke

Verification. Lecture 9. Bernd Finkbeiner Peter Faymonville Michael Gerke Verification Lecture 9 Bernd Finkbeiner Peter Faymonville Michael Gerke REVIEW: Overview of LTL model checking System Negation of property Model of system LTL-formula φ model checker GeneralisedBüchiautomatonG

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

Model Checking Algorithms

Model Checking Algorithms 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, 2018 1 / 56 Outline

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

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

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 20 Dr. Dave Parker Department of Computer Science University of Oxford Overview PCTL for MDPs syntax, semantics, examples PCTL model checking next, bounded

More information

Lecture 16: Computation Tree Logic (CTL)

Lecture 16: Computation Tree Logic (CTL) Lecture 16: Computation Tree Logic (CTL) 1 Programme for the upcoming lectures Introducing CTL Basic Algorithms for CTL CTL and Fairness; computing strongly connected components Basic Decision Diagrams

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

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

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

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

Temporal & Modal Logic. Acronyms. Contents. Temporal Logic Overview Classification PLTL Syntax Semantics Identities. Concurrency Model Checking

Temporal & Modal Logic. Acronyms. Contents. Temporal Logic Overview Classification PLTL Syntax Semantics Identities. Concurrency Model Checking Temporal & Modal Logic E. Allen Emerson Presenter: Aly Farahat 2/12/2009 CS5090 1 Acronyms TL: Temporal Logic BTL: Branching-time Logic LTL: Linear-Time Logic CTL: Computation Tree Logic PLTL: Propositional

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

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 Probabilistic model checking System Probabilistic model e.g. Markov chain Result 0.5

More information

Summary. Computation Tree logic Vs. LTL. CTL at a glance. KM,s =! iff for every path " starting at s KM," =! COMPUTATION TREE LOGIC (CTL)

Summary. Computation Tree logic Vs. LTL. CTL at a glance. KM,s =! iff for every path  starting at s KM, =! COMPUTATION TREE LOGIC (CTL) Summary COMPUTATION TREE LOGIC (CTL) Slides by Alessandro Artale http://www.inf.unibz.it/ artale/ Some material (text, figures) displayed in these slides is courtesy of: M. Benerecetti, A. Cimatti, M.

More information

FORMAL METHODS LECTURE IV: COMPUTATION TREE LOGIC (CTL)

FORMAL METHODS LECTURE IV: COMPUTATION TREE LOGIC (CTL) Alessandro Artale (FM First Semester 2007/2008) p. 1/37 FORMAL METHODS LECTURE IV: COMPUTATION TREE LOGIC (CTL) Alessandro Artale Faculty of Computer Science Free University of Bolzano artale@inf.unibz.it

More information

Computation Tree Logic

Computation Tree Logic Chapter 6 Computation Tree Logic Pnueli [88] has introduced linear temporal logic to the computer science community for the specification and verification of reactive systems. In Chapter 3 we have treated

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

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

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

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

Chapter 5: Linear Temporal Logic

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

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

Systems Verification. Alessandro Abate. Day 1 January 25, 2016

Systems Verification. Alessandro Abate. Day 1 January 25, 2016 Systems Verification Alessandro Abate Day 1 January 25, 2016 Outline Course setup Intro to formal verification Models - labelled transition systems Properties as specifications - modal logics Model checking

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

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

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

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

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

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

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

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

Model checking (III)

Model checking (III) Theory and Algorithms Model checking (III) Alternatives andextensions Rafael Ramirez rafael@iua.upf.es Trimester1, Oct2003 Slide 9.1 Logics for reactive systems The are many specification languages for

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

Linear-time Temporal Logic

Linear-time Temporal Logic Linear-time Temporal Logic Pedro Cabalar Department of Computer Science University of Corunna, SPAIN cabalar@udc.es 2015/2016 P. Cabalar ( Department Linear oftemporal Computer Logic Science University

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

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

CTL, the branching-time temporal logic

CTL, the branching-time temporal logic CTL, the branching-time temoral logic Cătălin Dima Université Paris-Est Créteil Cătălin Dima (UPEC) CTL 1 / 29 Temoral roerties CNIL Safety, termination, mutual exclusion LTL. Liveness, reactiveness, resonsiveness,

More information

Abstractions and Decision Procedures for Effective Software Model Checking

Abstractions and Decision Procedures for Effective Software Model Checking Abstractions and Decision Procedures for Effective Software Model Checking Prof. Natasha Sharygina The University of Lugano, Carnegie Mellon University Microsoft Summer School, Moscow, July 2011 Lecture

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

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

Reasoning about Strategies: From module checking to strategy logic

Reasoning about Strategies: From module checking to strategy logic Reasoning about Strategies: From module checking to strategy logic based on joint works with Fabio Mogavero, Giuseppe Perelli, Luigi Sauro, and Moshe Y. Vardi Luxembourg September 23, 2013 Reasoning about

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

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

SFM-11:CONNECT Summer School, Bertinoro, June 2011

SFM-11:CONNECT Summer School, Bertinoro, June 2011 SFM-:CONNECT Summer School, Bertinoro, June 20 EU-FP7: CONNECT LSCITS/PSS VERIWARE Part 3 Markov decision processes Overview Lectures and 2: Introduction 2 Discrete-time Markov chains 3 Markov decision

More information

Efficient Model-Checking of Weighted CTL with Upper-Bound Constraints

Efficient Model-Checking of Weighted CTL with Upper-Bound Constraints Software Tools for Technology Transfer manuscript No. (will be inserted by the editor) Efficient Model-Checking of Weighted CTL with Upper-Bound Constraints Jonas Finnemann Jensen, Kim Guldstrand Larsen,

More information

The State Explosion Problem

The State Explosion Problem The State Explosion Problem Martin Kot August 16, 2003 1 Introduction One from main approaches to checking correctness of a concurrent system are state space methods. They are suitable for automatic analysis

More information

Safety and Liveness Properties

Safety and Liveness Properties Safety and Liveness Properties Lecture #6 of Model Checking Joost-Pieter Katoen Lehrstuhl 2: Software Modeling and Verification E-mail: katoen@cs.rwth-aachen.de November 5, 2008 c JPK Overview Lecture

More information

Modal and Temporal Logics

Modal and Temporal Logics Modal and Temporal Logics Colin Stirling School of Informatics University of Edinburgh July 23, 2003 Why modal and temporal logics? 1 Computational System Modal and temporal logics Operational semantics

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

The Complexity of Satisfiability for Fragments of CTL and CTL 1

The Complexity of Satisfiability for Fragments of CTL and CTL 1 The Complexity of Satisfiability for Fragments of CTL and CTL 1 Arne Meier a Martin Mundhenk b Michael Thomas a Heribert Vollmer a a Theoretische Informatik Gottfried Wilhelm Leibniz Universität Appelstr.

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

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

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

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

Model checking, verification of CTL. One must verify or expel... doubts, and convert them into the certainty of YES [Thomas Carlyle]

Model checking, verification of CTL. One must verify or expel... doubts, and convert them into the certainty of YES [Thomas Carlyle] Chater 5 Model checking, verification of CTL One must verify or exel... doubts, and convert them into the certainty of YES or NO. [Thomas Carlyle] 5. The verification setting Page 66 We introduce linear

More information

Transition Systems and Linear-Time Properties

Transition Systems and Linear-Time Properties Transition Systems and Linear-Time Properties Lecture #1 of Principles of Model Checking Joost-Pieter Katoen Software Modeling and Verification Group affiliated to University of Twente, Formal Methods

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

Linear Temporal Logic (LTL)

Linear Temporal Logic (LTL) Chapter 9 Linear Temporal Logic (LTL) This chapter introduces the Linear Temporal Logic (LTL) to reason about state properties of Labelled Transition Systems defined in the previous chapter. We will first

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

Reasoning about Time and Reliability

Reasoning about Time and Reliability Reasoning about Time and Reliability Probabilistic CTL model checking Daniel Bruns Institut für theoretische Informatik Universität Karlsruhe 13. Juli 2007 Seminar Theorie und Anwendung von Model Checking

More information

Alternating Time Temporal Logics*

Alternating Time Temporal Logics* Alternating Time Temporal Logics* Sophie Pinchinat Visiting Research Fellow at RSISE Marie Curie Outgoing International Fellowship * @article{alur2002, title={alternating-time Temporal Logic}, author={alur,

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

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

CS477 Formal Software Dev Methods

CS477 Formal Software Dev Methods CS477 Formal Software Dev Methods Elsa L Gunter 2112 SC, UIUC egunter@illinois.edu http://courses.engr.illinois.edu/cs477 Slides based in part on previous lectures by Mahesh Vishwanathan, and by Gul Agha

More information

On the Expressiveness and Complexity of ATL

On the Expressiveness and Complexity of ATL On the Expressiveness and Complexity of ATL François Laroussinie, Nicolas Markey, Ghassan Oreiby LSV, CNRS & ENS-Cachan Recherches en vérification automatique March 14, 2006 Overview of CTL CTL A Kripke

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 CSL model checking basic algorithm untimed properties time-bounded until the

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

Chapter 5: Linear Temporal Logic

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

More information

Abstraction for Falsification

Abstraction for Falsification Abstraction for Falsification Thomas Ball 1, Orna Kupferman 2, and Greta Yorsh 3 1 Microsoft Research, Redmond, WA, USA. Email: tball@microsoft.com, URL: research.microsoft.com/ tball 2 Hebrew University,

More information

MODEL-CHECKING IN DENSE REAL-TIME SHANT HARUTUNIAN

MODEL-CHECKING IN DENSE REAL-TIME SHANT HARUTUNIAN MODEL-CHECKING IN DENSE REAL-TIME SHANT HARUTUNIAN 1. Introduction These slides are for a talk based on the paper Model-Checking in Dense Real- Time, by Rajeev Alur, Costas Courcoubetis, and David Dill.

More information

Temporal Logics for Specification and Verification

Temporal Logics for Specification and Verification Temporal Logics for Specification and Verification Valentin Goranko DTU Informatics FIRST Autumn School on Modal Logic November 11, 2009 Transition systems (Labelled) transition system (TS): T = S, {R

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

Automata-Theoretic Model Checking of Reactive Systems

Automata-Theoretic Model Checking of Reactive Systems Automata-Theoretic Model Checking of Reactive Systems Radu Iosif Verimag/CNRS (Grenoble, France) Thanks to Tom Henzinger (IST, Austria), Barbara Jobstmann (CNRS, Grenoble) and Doron Peled (Bar-Ilan University,

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

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

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

FORMAL METHODS LECTURE III: LINEAR TEMPORAL LOGIC

FORMAL METHODS LECTURE III: LINEAR TEMPORAL LOGIC Alessandro Artale (FM First Semester 2007/2008) p. 1/39 FORMAL METHODS LECTURE III: LINEAR TEMPORAL LOGIC Alessandro Artale Faculty of Computer Science Free University of Bolzano artale@inf.unibz.it http://www.inf.unibz.it/

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

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

Quantitative Verification

Quantitative Verification Quantitative Verification Chapter 3: Markov chains Jan Křetínský Technical University of Munich Winter 207/8 / 84 Motivation 2 / 84 Example: Simulation of a die by coins Knuth & Yao die Simulating a Fair

More information

PSPACE-completeness of LTL/CTL model checking

PSPACE-completeness of LTL/CTL model checking PSPACE-completeness of LTL/CTL model checking Peter Lohmann April 10, 2007 Abstract This paper will give a proof for the PSPACE-completeness of LTLsatisfiability and for the PSPACE-completeness of the

More information

Syntax and Semantics of Propositional Linear Temporal Logic

Syntax and Semantics of Propositional Linear Temporal Logic Syntax and Semantics of Propositional Linear Temporal Logic 1 Defining Logics L, M, = L - the language of the logic M - a class of models = - satisfaction relation M M, ϕ L: M = ϕ is read as M satisfies

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

Stochastic Model Checking

Stochastic Model Checking Stochastic Model Checking Marta Kwiatkowska, Gethin Norman, and David Parker School of Computer Science, University of Birmingham Edgbaston, Birmingham B15 2TT, United Kingdom Abstract. This tutorial presents

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

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

Tecniche di Verifica. Introduction to Propositional Logic

Tecniche di Verifica. Introduction to Propositional Logic Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called

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