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, USF) Comp Sys Verification 1 / 43
Computation Tree Logic Hao Zheng Department of Computer Science and - - PowerPoint PPT Presentation
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, USF) Comp Sys Verification 1 / 43
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) Comp Sys Verification 1 / 43
1
2
3
4
Hao Zheng (CSE, USF) Comp Sys Verification 2 / 43
1
2
3
4
Hao Zheng (CSE, USF) Comp Sys Verification 3 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 4 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 4 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 4 / 43
s1 s2 s3 {x = 0} {x = 0} {x 6= 0} {x = 1,x 6= 0}
(s0,0) (s1,1) (s2,2) (s3,2) (s3,3) (s2,3) (s3,3) (s2,4) (s3,4) (s3,4) (s2,4) (s3,4)
s0
Hao Zheng (CSE, USF) Comp Sys Verification 5 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 6 / 43
1
2
3
4
Hao Zheng (CSE, USF) Comp Sys Verification 7 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 8 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 8 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 9 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 10 / 43
8♦red 8(yellowUred) 9(yellowUred) 9red 8red 9♦red
Hao Zheng (CSE, USF) Comp Sys Verification 11 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 12 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 13 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 14 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 15 / 43
0 |
Hao Zheng (CSE, USF) Comp Sys Verification 16 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 17 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 18 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 19 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 20 / 43
{a} {b}
s00 s0 s
Hao Zheng (CSE, USF) Comp Sys Verification 21 / 43
1
2
3
4
Hao Zheng (CSE, USF) Comp Sys Verification 22 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 23 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 24 / 43
Ψ′′
Sat(Φ)
Sat(Ψ)
Sat(Ψ′) a b
Sat(Ψ′′)
c
Hao Zheng (CSE, USF) Comp Sys Verification 25 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 26 / 43
1 Sat(Ψ) ⊆ T
2 (s ∈ Sat(Φ) and Post(s) ∩ T = ∅) implies s ∈ T
1 T ⊆ Sat(Φ)
2 s ∈ T implies Post(s) ∩ T = ∅
Hao Zheng (CSE, USF) Comp Sys Verification 27 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 28 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 29 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 30 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 31 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 32 / 43
(a) (d) (b) (c) { q, r } { p, q, r } { p, q } { p, r } { p } { q } { r } ∅ K[q] SCC
Hao Zheng (CSE, USF) Comp Sys Verification 33 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 34 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 35 / 43
1
2
3
4
Hao Zheng (CSE, USF) Comp Sys Verification 36 / 43
[Clarke & Draghicescu]
Hao Zheng (CSE, USF) Comp Sys Verification 37 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 38 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 39 / 43
0 violates it Hao Zheng (CSE, USF) Comp Sys Verification 39 / 43
s2
s0 s3 s4 s1
Hao Zheng (CSE, USF) Comp Sys Verification 40 / 43
s2
s0 s3 s4 s1
Hao Zheng (CSE, USF) Comp Sys Verification 40 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 41 / 43
Aspect Linear Time Branching Time “behavior” path-based: state-based: in a state s trace(s) computation tree of s temporal LTL: path formulas ϕ CTL: state formulas logic s | = ϕ iff existential path quantification ∃ϕ ∀π ∈ ρ(s). π | = ϕ universal path quantification: ∀ϕ complexity of the PSPACE–complete PTIME model checking problems O
O (|TS| · |Φ|) implementation- trace inclusion and the like simulation and bisimulation relation (proof is PSPACE-complete) (proof in polynomial time) fairness no special techniques special techniques needed
Hao Zheng (CSE, USF) Comp Sys Verification 42 / 43
Hao Zheng (CSE, USF) Comp Sys Verification 43 / 43