CTL, the branching-time temporal logic

Size: px
Start display at page:

Download "CTL, the branching-time temporal logic"

Transcription

1 CTL, the branching-time temoral logic Cătălin Dima Université Paris-Est Créteil Cătălin Dima (UPEC) CTL 1 / 29

2 Temoral roerties CNIL Safety, termination, mutual exclusion LTL. Liveness, reactiveness, resonsiveness, infinitely reeated behaviors LTL. Available choices, strategies, adversial situations? Tout utilisateur eut demander le retrait de ses données... How do we interret eut? = demander le retrait... Then formula =?? NO! Strategy to win a game Black has a strategy to ut the game in a situation from which White king will never get close to Black awn. Not secifiable in LTL either! Cătălin Dima (UPEC) CTL 2 / 29

3 Comutational Tree Logic (CTL) Syntax: Φ ::= Φ Φ Φ Φ Φ (ΦU Φ) Φ Φ (ΦU Φ) Grammar for the logic: the set of formulas is the set of words obtained by this (context-free!) grammar, with Φ viewed as nonterminal. Syntactic tree for each formula., : ath quantifier (will see why!). U,, : temoral quantifiers. Alternative notations (for the temoral oerators): φ = Gφ, φ = Fφ, φ = Xφ. Each ath quantifier must be followed by a temoral quantifier in the syntactic tree of each formula. Samle formula: ( (U( q q))). Draw its syntactic tree! Strict alternation: A non-ctl formula ( (U( q q))).... because the U is not receded by a ath quantifier. Cătălin Dima (UPEC) CTL 3 / 29

4 CTL resented Intuitive meanings: : in any next state holds. Regardless of the actions of the environment, at the next clock tick holds. : will eretually hold in any continuation from the current state. Whatever the environment does, will hold forever. U q: in any continuation from the current state q eventually holds, and until then must hold. Cătălin Dima (UPEC) CTL 4 / 29

5 CTL formulas Derived oerators: Some intuitive meanings: φ = φ φ = (trueu φ) φ = φ φ = φ (φu ψ) = ( φu( φ ψ)) ψ : there exists a next state in which holds. The environment could make it ossible for to hold at the next clock tick. : there exists a continuation on which holds eretually. : in all continuations eventually holds. There is a guarantee that must eventually hold, whatever the environment does. Cătălin Dima (UPEC) CTL 5 / 29

6 Branching time The root in the following tree satisfies :, q, r The root in the following tree satisfies : q, r Cătălin Dima (UPEC) CTL 6 / 29

7 Branching time, contd. (U q) (U q) q q q q q q q Cătălin Dima (UPEC) CTL 7 / 29

8 Transition systems T = (Q,Π,δ,π, q 0 ) with Q finite set of states. Π finite set of atomic roositions. q 0 Q initial state. δ Q Q transition relation. π : Q 2 Π state labeling. Examle: the hunter/wolf/goat/cabbage uzzle. Nondeterminism: given q Q, there may exist several r 1, r 2,... Q with (q, r 1 ) δ,(q, r 2 ) δ... Who chooses wich successor in each state? CTL answer: the environment does! Cătălin Dima (UPEC) CTL 8 / 29

9 CTL semantics in transition systems Recursively interret each CTL formula in each state of the system Given T = (Q,Π,δ,π, q 0 ) and q Q: q = if π(q). q = φ 1 φ 2 if... q = φ if... q = φ if for all r Q with (q, r) δ, r = φ. Examle: Cătălin Dima (UPEC) CTL 9 / 29

10 CTL semantics in transition systems Recursively interret each CTL formula in each state of the system Given T = (Q,Π,δ,π, q 0 ) and q Q: q = if π(q). q = φ 1 φ 2 if... q = φ if... q = φ if for all r Q with (q, r) δ, r = φ. Examle:, q, r Cătălin Dima (UPEC) CTL 9 / 29

11 CTL semantics in transition systems (contd.) Given T = (Q,Π,δ,π, q 0 ) and q Q: q = φ if for each run ρ in T starting in q with ρ = q = q 0 q 1... q n... (infinite!) we have that q n = φ for all n. In other words, ρ = φ! q = (φ 1 Uφ 2 ) if for each run ρ in T starting in q with ρ = q = q 0 q 1... q n... there exists n 0 with q n = φ 2 and for all 0 m < n, q m = φ 1. In other words, ρ = φ1 U φ 2! (U q) q q q q q q Cătălin Dima (UPEC) CTL 10 / 29

12 Proerty secification CNIL Tout utilisateur eut demander le retrait de ses données... How do we interret eut? = demander le retrait... :. Strategy to win a game Black has a strategy to ut the game in a situation from which White king will never get close to Black awn. q = White king never gets close to Black awn : q. Other roerties related with choices, like noninterference. Cătălin Dima (UPEC) CTL 11 / 29

13 CTL roerties on transition systems Hunter/wolf/goat/cabbage uzzle. Does the initial state satisfy (h = 1 w = 1 g = 1 c = 1)? What is the right roerty that says that the uzzle has a solution? Deadlock freedom: Suose the states of each rocess are 1, 2, 3, res. q 1, q 2, q 3. Deadlock freedom, i.e. all comutations may rogress: (PC 1 = i PC 1 i ) (PC 2 = q i PC 2 q i ) 1 i 3 1 i 3 Cătălin Dima (UPEC) CTL 12 / 29

14 CTL roerties on transition systems Hunter/wolf/goat/cabbage uzzle. Does the initial state satisfy (h = 1 w = 1 g = 1 c = 1)? What is the right roerty that says that the uzzle has a solution? (h = 1 w = 1 g = 1 c = 1) Deadlock freedom: Suose the states of each rocess are 1, 2, 3, res. q 1, q 2, q 3. Deadlock freedom, i.e. all comutations may rogress: (PC 1 = i PC 1 i ) (PC 2 = q i PC 2 q i ) 1 i 3 1 i 3 Cătălin Dima (UPEC) CTL 12 / 29

15 CTL roerties on transition systems Hunter/wolf/goat/cabbage uzzle. Does the initial state satisfy (h = 1 w = 1 g = 1 c = 1)? What is the right roerty that says that the uzzle has a solution? (h = 1 w = 1 g = 1 c = 1) Deadlock freedom: Suose the states of each rocess are 1, 2, 3, res. q 1, q 2, q 3. Deadlock freedom, i.e. all comutations may rogress: (PC 1 = i PC 1 i ) (PC 2 = q i PC 2 q i ) 1 i 3 1 i 3 Cătălin Dima (UPEC) CTL 12 / 29

16 Samle tautologies Tautology : formula that is true regardless of the truth values given to the atomic roositions. Examles: Formulas which are not tautologies: ( q) q ( q) ( q) ( q) q To rove they are not tautologies, give a counter-model! Cătălin Dima (UPEC) CTL 13 / 29

17 Minimal set of oerators All CTL formulas can be exressed using the following set of oerators : Boolean oerators (further reducible, e.g., to and ).. U.. Examles exress the following: (U q).. The dual set of ath-temoral oerators can also be used as minimal set of oerators! Cătălin Dima (UPEC) CTL 14 / 29

18 Other (linear) temoral oerators: weak until, release Weak until W q: W q U q. Release Rq: R q ( U q). Can be extended to CTL oerators: W q, R q, etc. Cătălin Dima (UPEC) CTL 15 / 29

19 Fixoints Globally, forward, until, release can be defined inductively :...?...?...? U q q ( (U q) ) U q...? R q q ( (R q) ) Cătălin Dima (UPEC) CTL 16 / 29

20 Remarks on LTL vs. CTL (to be continued!) Both LTL and CTL formulas are interreted over transition systems. An LTL formula seaks about what haens on one run that starts in a state. Time assage is determined by some suerior entity, choices do not exist and no dilemma about ossible continuations exists. A osteriori analysis of the behavior of a system (but behaviors may be infinite!). A CTL formula seaks about what could haen in various runs that starts in a state. Time is nondeterministic and choices must be taken into account, good/bad things may haen due to good/bad decisions and continuations deend on them. A riori analysis of the ossible evolution of a system. Some LTL formulas (but not all!) can be reresented as CTL formulas: Checking holds at a state q in a transition system requires checking that all runs starting in q satisfy. Hence, from this state-centered oint of view, checking amounts to checking. No longer holds for more comlex formulas! Simly because ( q) is not a CTL formula! Cătălin Dima Each (UPEC) ath quantifier must be followed CTL by a temoral quantifier in the 17 / 29

21 The model-checking roblem Given a CTL formula φ and a finitely resentable model M, does M = φ hold? Finitely resentable tree = transition system over AP. The tree = the unfolding of A. Note the difference with LTL models : A transition system embodies an uncountable set of models for LTL! A transition system embodies a unique model for CTL! Cătălin Dima (UPEC) CTL 18 / 29

22 CTL model-checking instances Which state satisfies? Search for a reachable state labeled with. Which state satisfies? Search for a reachable strongly connected set labeled with. Only states in this SCC satisfy. Cătălin Dima (UPEC) CTL 19 / 29

23 CTL model-checking [Clarke & Emerson] State labeling algorithm: Given formula φ, slit Q into Q φ and Q φ Structural induction on the syntactic tree of φ. Add a new roositional symbol φ for each analyzed φ. Label Q φ with φ and do not label Q φ with φ. Cătălin Dima (UPEC) CTL 20 / 29

24 CTL model-checking (2) For φ = Q = { q Q q δ(q), π(q ) } Q = { q Q q δ(q), π(q ) } Examle... Cătălin Dima (UPEC) CTL 21 / 29

25 CTL model-checking (3) φ =. Q contains state q iff q is labeled with and belongs to a circuit containing only states. Q = Q \ Q. Examle... Cătălin Dima (UPEC) CTL 22 / 29

26 CTL model-checking (4) φ = ( 1 U 2 ) Q (1 U 2 ) contains state q iff q Q s.t.: q q 2 1 Q (1 U 2 )) = Q \ Q (1 U 2 ). Examle... Cătălin Dima (UPEC) CTL 23 / 29

27 CTL model-checking examle, q, q, q U q U q Cătălin Dima (UPEC) CTL 24 / 29

28 Proerties of the (first variant of the) model-checking algorithm It seems that the model-checking algorithm requires grah algorithms Successors for. Reachability analysis for U. Circuits for. But could we take advantage of the fixoint exansions of the temoral oerators? U q q ( (U q) ) Cătălin Dima (UPEC) CTL 25 / 29

29 Fixoint variant of the model-checking algorithm Given a formula φ and a transition system M = (Q, q 0,δ),... denote Sat M (φ) the set of states in Q which satisfy φ.... and denote ost(q) = {r Q (q, r) δ}. Theorem Sat( (φu ψ)) is the smallest subset T of Q such that: 1 Sat(ψ) T and 2 If q Sat(φ) and ost(q) T then q T. Sat( φ) is the largest subset T of Q such that: 3 Sat(ψ) T and 4 If q T then ost(q) T. The last line can also be read as: 4 For any q Q, if ost(q) T = then q T. Cătălin Dima (UPEC) CTL 26 / 29

30 Fixoint variant of the model-checking algorithm How to comute Sat( (φu ψ)): 1 Start with T = Sat(ψ). 2 Aend q to T if q Sat(φ) and ost(q) T until T no longer grows. How to comute Sat( φ): 1 Start with T = Sat(φ). 2 Eliminate, inductively, from T all states for which ost(q) T = until T no longer diminishes. Examles... Cătălin Dima (UPEC) CTL 27 / 29

31 Fixoint variant of the model-checking algorithm, q, q, q ( qu ) Comute Sat( q). Comute Sat( ). Instantiate T = Sat( ). Aend st to T if st Sat( q) and ost(st) T. Cătălin Dima (UPEC) CTL 28 / 29

32 Fixoint variant of the model-checking algorithm, q, q, q ( qu ) ( U q) Cătălin Dima (UPEC) CTL 28 / 29

33 ost and re How to comute Sat( φu ψ): 1 Start with T = Sat(ψ). 2 Aend q to T if q Sat(φ) and ost(q) T. 3 The same with T := re(t) Sat(φ). 4 Here re(t) = {q r Q,(q, r) δ}. How to comute Sat( φ): 1 Start with T = Sat(φ). 2 Eliminate, inductively, from T all states for which ost(q) T =. 3 The same with T := re(t) T 4 Here re(t) = Q \ re(q \ T). 5 In other words, re(t) contains all the states whose successors all belong to T. Cătălin Dima (UPEC) CTL 29 / 29

34 ost and re How to comute Sat( φu ψ): 1 Start with T = Sat(ψ). 2 Aend q to T if q Sat(φ) and ost(q) T. 3 The same with T := re(t) Sat(φ). 4 Here re(t) = {q r Q,(q, r) δ}. How to comute Sat( φ): 1 Start with T = Sat(φ). 2 Eliminate, inductively, from T all states for which ost(q) T =. 3 The same with T := re(t) T 4 Here re(t) = Q \ re(q \ T). 5 In other words, re(t) contains all the states whose successors all belong to T. Cătălin Dima (UPEC) CTL 29 / 29

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

Computation Tree Logic

Computation Tree Logic Comutation Tree Logic Finite State Model Checking of Branching Time Logic Kim Guldstrand Larsen BRICS@Aalborg 1 Tool Suort Finite State Systems System Descrition A Reuirement F CTL TOOL Course Objectives:

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

Finite State Model Checking

Finite State Model Checking Finite State Model Checking Finite State Model Checking Finite State Systems System Descrition A Requirement F CTL TOOL No! Debugging Information Yes, Prototyes Executable Code Test sequences Tools: visualstate,

More information

p,egp AFp EFp ... p,agp

p,egp AFp EFp ... p,agp TUESDAY, Session 2 Temoral logic and model checking, cont 1 Branching time and CTL model checking In a branching time temoral logics, we consider not just a single ath through the Krike model, but all

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

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

DRAFT - do not circulate

DRAFT - do not circulate An Introduction to Proofs about Concurrent Programs K. V. S. Prasad (for the course TDA383/DIT390) Deartment of Comuter Science Chalmers University Setember 26, 2016 Rough sketch of notes released since

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

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

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

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

Memoryfull Branching-Time Logic

Memoryfull Branching-Time Logic Memoryfull Branching-Time Logic Orna Kuferman 1 and Moshe Y. Vardi 2 1 Hebrew University, School of Engineering and Comuter Science, Jerusalem 91904, Israel Email: orna@cs.huji.ac.il, URL: htt://www.cs.huji.ac.il/

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

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

Finite-State Verification or Model Checking. Finite State Verification (FSV) or Model Checking

Finite-State Verification or Model Checking. Finite State Verification (FSV) or Model Checking Finite-State Verification or Model Checking Finite State Verification (FSV) or Model Checking Holds the romise of roviding a cost effective way of verifying imortant roerties about a system Not all faults

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

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

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

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

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

Alternating-Time Temporal Logic

Alternating-Time Temporal Logic Alternating-Time Temporal Logic R.Alur, T.Henzinger, O.Kupferman Rafael H. Bordini School of Informatics PUCRS R.Bordini@pucrs.br Logic Club 5th of September, 2013 ATL All the material in this presentation

More information

SAT based Abstraction-Refinement using ILP and Machine Learning Techniques

SAT based Abstraction-Refinement using ILP and Machine Learning Techniques SAT based Abstraction-Refinement using ILP and Machine Learning Techniques 1 SAT based Abstraction-Refinement using ILP and Machine Learning Techniques Edmund Clarke James Kukula Anubhav Guta Ofer Strichman

More information

Applying the Mu-Calculus in Planning and Reasoning about Action

Applying the Mu-Calculus in Planning and Reasoning about Action Alying the Mu-Calculus in Planning and Reasoning about Action Munindar P. Singh Deartment of Comuter Science Box 7534 North Carolina State University Raleigh, NC 27695-7534, USA singh@ncsu.edu Abstract

More information

Game Specification in the Trias Politica

Game Specification in the Trias Politica Game Secification in the Trias Politica Guido Boella a Leendert van der Torre b a Diartimento di Informatica - Università di Torino - Italy b CWI - Amsterdam - The Netherlands Abstract In this aer we formalize

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

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

MATH 3240Q Introduction to Number Theory Homework 7

MATH 3240Q Introduction to Number Theory Homework 7 As long as algebra and geometry have been searated, their rogress have been slow and their uses limited; but when these two sciences have been united, they have lent each mutual forces, and have marched

More information

Using BDDs to Decide CTL

Using BDDs to Decide CTL Using BDDs to Decide CTL Will Marrero DePaul University, Chicago, IL 60604, USA wmarrero@cs.deaul.edu Abstract. Comutation Tree Logic (CTL) has been used uite extensively and successfully to reason about

More information

ABSTRACT MODEL REPAIR

ABSTRACT MODEL REPAIR Logical Methods in Comuter Science Vol. 11(3:11)2015,. 1 43 www.lmcs-online.org Submitted Jul. 2, 2014 Published Se. 17, 2015 ABSTRACT MODEL REPAIR GEORGE CHATZIELEFTHERIOU a, BORZOO BONAKDARPOUR b, PANAGIOTIS

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

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

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

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

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

ABSTRACT MODEL REPAIR

ABSTRACT MODEL REPAIR ABSTRACT MODEL REPAIR GEORGE CHATZIELEFTHERIOU a, BORZOO BONAKDARPOUR b, PANAGIOTIS KATSAROS c, AND SCOTT A. SMOLKA d a Deartment of Informatics, Aristotle University of Thessaloniki, 54124 Thessaloniki,

More information

Pretest (Optional) Use as an additional pacing tool to guide instruction. August 21

Pretest (Optional) Use as an additional pacing tool to guide instruction. August 21 Trimester 1 Pretest (Otional) Use as an additional acing tool to guide instruction. August 21 Beyond the Basic Facts In Trimester 1, Grade 8 focus on multilication. Daily Unit 1: Rational vs. Irrational

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

Sets of Real Numbers

Sets of Real Numbers Chater 4 Sets of Real Numbers 4. The Integers Z and their Proerties In our revious discussions about sets and functions the set of integers Z served as a key examle. Its ubiquitousness comes from the fact

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

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

MATH 2710: NOTES FOR ANALYSIS

MATH 2710: NOTES FOR ANALYSIS MATH 270: NOTES FOR ANALYSIS The main ideas we will learn from analysis center around the idea of a limit. Limits occurs in several settings. We will start with finite limits of sequences, then cover infinite

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

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

A brief introduction to Logic. (slides from

A brief introduction to Logic. (slides from A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity

More information

Topic 7: Using identity types

Topic 7: Using identity types Toic 7: Using identity tyes June 10, 2014 Now we would like to learn how to use identity tyes and how to do some actual mathematics with them. By now we have essentially introduced all inference rules

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

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

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

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

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

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

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

PROFIT MAXIMIZATION. π = p y Σ n i=1 w i x i (2)

PROFIT MAXIMIZATION. π = p y Σ n i=1 w i x i (2) PROFIT MAXIMIZATION DEFINITION OF A NEOCLASSICAL FIRM A neoclassical firm is an organization that controls the transformation of inuts (resources it owns or urchases into oututs or roducts (valued roducts

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

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

Pretest (Optional) Use as an additional pacing tool to guide instruction. August 21

Pretest (Optional) Use as an additional pacing tool to guide instruction. August 21 Trimester 1 Pretest (Otional) Use as an additional acing tool to guide instruction. August 21 Beyond the Basic Facts In Trimester 1, Grade 7 focus on multilication. Daily Unit 1: The Number System Part

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

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

2. PROPOSITIONAL LOGIC

2. PROPOSITIONAL LOGIC 2. PROPOSITIONAL LOGIC Contents 2.1: Informal roositional logic 2.2: Syntax of roositional logic 2.3: Semantics of roositional logic 2.4: Logical equivalence 2.5: An examle 2.6: Adequate sets of connectives

More information

Binary Decision Diagrams

Binary Decision Diagrams Binary Decision Diagrams Literature Some pointers: H.R. Andersen, An Introduction to Binary Decision Diagrams, Lecture notes, Department of Information Technology, IT University of Copenhagen Tools: URL:

More information

Comp487/587 - Boolean Formulas

Comp487/587 - Boolean Formulas Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested

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

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

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

Reasoning about Memoryless Strategies under Partial Observability and Unconditional Fairness Constraints

Reasoning about Memoryless Strategies under Partial Observability and Unconditional Fairness Constraints Reasoning about Memoryless Strategies under Partial Observability and Unconditional Fairness Constraints Simon Busard a,1, Charles Pecheur a, Hongyang Qu b,2, Franco Raimondi c a ICTEAM Institute, Université

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

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

CSE 311 Lecture 02: Logic, Equivalence, and Circuits. Emina Torlak and Kevin Zatloukal

CSE 311 Lecture 02: Logic, Equivalence, and Circuits. Emina Torlak and Kevin Zatloukal CSE 311 Lecture 02: Logic, Equivalence, and Circuits Emina Torlak and Kevin Zatloukal 1 Toics Proositional logic A brief review of Lecture 01. Classifying comound roositions Converse, contraositive, and

More information

Outline. CS21 Decidability and Tractability. Regular expressions and FA. Regular expressions and FA. Regular expressions and FA

Outline. CS21 Decidability and Tractability. Regular expressions and FA. Regular expressions and FA. Regular expressions and FA Outline CS21 Decidability and Tractability Lecture 4 January 14, 2019 FA and Regular Exressions Non-regular languages: Puming Lemma Pushdown Automata Context-Free Grammars and Languages January 14, 2019

More information

Propositional Logic: Models and Proofs

Propositional Logic: Models and Proofs Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505

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

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

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

Elementary Analysis in Q p

Elementary Analysis in Q p Elementary Analysis in Q Hannah Hutter, May Szedlák, Phili Wirth November 17, 2011 This reort follows very closely the book of Svetlana Katok 1. 1 Sequences and Series In this section we will see some

More information

Temporal Logic and Fair Discrete Systems

Temporal Logic and Fair Discrete Systems Temporal Logic and Fair Discrete Systems Nir Piterman and Amir Pnueli Abstract Temporal logic was used by philosophers to reason about the way the world changes over time. Its modern use in specification

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

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

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Description Logics. Deduction in Propositional Logic.   franconi. Enrico Franconi (1/20) Description Logics Deduction in Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/20) Decision

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

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-Checking Games: from CTL to ATL

Model-Checking Games: from CTL to ATL Model-Checking Games: from CTL to ATL Sophie Pinchinat May 4, 2007 Introduction - Outline Model checking of CTL is PSPACE-complete Presentation of Martin Lange and Colin Stirling Model Checking Games

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

Automata, Logic and Games: Theory and Application

Automata, Logic and Games: Theory and Application Automata, Logic and Games: Theory and Application 1. Büchi Automata and S1S Luke Ong University of Oxford TACL Summer School University of Salerno, 14-19 June 2015 Luke Ong Büchi Automata & S1S 14-19 June

More information

Notes. Corneliu Popeea. May 3, 2013

Notes. Corneliu Popeea. May 3, 2013 Notes Corneliu Popeea May 3, 2013 1 Propositional logic Syntax We rely on a set of atomic propositions, AP, containing atoms like p, q. A propositional logic formula φ Formula is then defined by the following

More information

John Weatherwax. Analysis of Parallel Depth First Search Algorithms

John Weatherwax. Analysis of Parallel Depth First Search Algorithms Sulementary Discussions and Solutions to Selected Problems in: Introduction to Parallel Comuting by Viin Kumar, Ananth Grama, Anshul Guta, & George Karyis John Weatherwax Chater 8 Analysis of Parallel

More information

Lilian Markenzon 1, Nair Maria Maia de Abreu 2* and Luciana Lee 3

Lilian Markenzon 1, Nair Maria Maia de Abreu 2* and Luciana Lee 3 Pesquisa Oeracional (2013) 33(1): 123-132 2013 Brazilian Oerations Research Society Printed version ISSN 0101-7438 / Online version ISSN 1678-5142 www.scielo.br/oe SOME RESULTS ABOUT THE CONNECTIVITY OF

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

RANDOM WALKS AND PERCOLATION: AN ANALYSIS OF CURRENT RESEARCH ON MODELING NATURAL PROCESSES

RANDOM WALKS AND PERCOLATION: AN ANALYSIS OF CURRENT RESEARCH ON MODELING NATURAL PROCESSES RANDOM WALKS AND PERCOLATION: AN ANALYSIS OF CURRENT RESEARCH ON MODELING NATURAL PROCESSES AARON ZWIEBACH Abstract. In this aer we will analyze research that has been recently done in the field of discrete

More information

The Logic of Compound Statements. CSE 2353 Discrete Computational Structures Spring 2018

The Logic of Compound Statements. CSE 2353 Discrete Computational Structures Spring 2018 CSE 2353 Discrete Comutational Structures Sring 2018 The Logic of Comound Statements (Chater 2, E) Note: some course slides adoted from ublisher-rovided material Outline 2.1 Logical Form and Logical Equivalence

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

A tableau-based decision procedure for a branching-time interval temporal logic

A tableau-based decision procedure for a branching-time interval temporal logic A tableau-based decision procedure for a branching-time interval temporal logic Davide Bresolin Angelo Montanari Dipartimento di Matematica e Informatica Università degli Studi di Udine {bresolin, montana}@dimi.uniud.it

More information

Introduction to Probability and Statistics

Introduction to Probability and Statistics Introduction to Probability and Statistics Chater 8 Ammar M. Sarhan, asarhan@mathstat.dal.ca Deartment of Mathematics and Statistics, Dalhousie University Fall Semester 28 Chater 8 Tests of Hyotheses Based

More information

Mobius Functions, Legendre Symbols, and Discriminants

Mobius Functions, Legendre Symbols, and Discriminants Mobius Functions, Legendre Symbols, and Discriminants 1 Introduction Zev Chonoles, Erick Knight, Tim Kunisky Over the integers, there are two key number-theoretic functions that take on values of 1, 1,

More information

Notes on induction proofs and recursive definitions

Notes on induction proofs and recursive definitions Notes on induction proofs and recursive definitions James Aspnes December 13, 2010 1 Simple induction Most of the proof techniques we ve talked about so far are only really useful for proving a property

More information

CSE 599d - Quantum Computing When Quantum Computers Fall Apart

CSE 599d - Quantum Computing When Quantum Computers Fall Apart CSE 599d - Quantum Comuting When Quantum Comuters Fall Aart Dave Bacon Deartment of Comuter Science & Engineering, University of Washington In this lecture we are going to begin discussing what haens to

More information