Büchi Automata and Linear Temporal Logic

Similar documents
Computer-Aided Program Design

Automata-based Verification - III

Sanjit A. Seshia EECS, UC Berkeley

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

Automata-Theoretic LTL Model-Checking

Automata-based Verification - III

Automata on Infinite words and LTL Model Checking

Introduction. Büchi Automata and Model Checking. Outline. Büchi Automata. The simplest computation model for infinite behaviors is the

Timo Latvala. March 7, 2004

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

Büchi Automata and their closure properties. - Ajith S and Ankit Kumar

Linear Temporal Logic and Büchi Automata

Timo Latvala. February 4, 2004

CHURCH SYNTHESIS PROBLEM and GAMES

Temporal Logic Model Checking

From Liveness to Promptness

T Reactive Systems: Temporal Logic LTL

Fast LTL to Büchi Automata Translation

Chapter 3: Linear temporal logic

Visibly Linear Dynamic Logic

Type Preservation and Normalization: Two Consequences

Alan Bundy. Automated Reasoning LTL Model Checking

Specifying and Verifying Systems of Communicating Agents in a Temporal Action Logic

Helsinki University of Technology Laboratory for Theoretical Computer Science Research Reports 66

Efficient Model Checking of Safety Properties

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

LTL Model Checking. Wishnu Prasetya.

Syntax and Semantics of Propositional Linear Temporal Logic

ω-automata Automata that accept (or reject) words of infinite length. Languages of infinite words appear:

Rabin Theory and Game Automata An Introduction

Languages, logics and automata

Automata and Reactive Systems

Logic Model Checking

Automata, Logic and Games: Theory and Application

Classes and conversions

On Recognizable Languages of Infinite Pictures

PSL Model Checking and Run-time Verification via Testers

Deterministic ω-automata for LTL: A safraless, compositional, and mechanically verified construction

Sri vidya college of engineering and technology

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

Definition of Büchi Automata

The theory of regular cost functions.

LTL is Closed Under Topological Closure

Games with Costs and Delays

Real-Time Systems. Lecture 15: The Universality Problem for TBA Dr. Bernd Westphal. Albert-Ludwigs-Universität Freiburg, Germany

Automata-Theoretic Verification

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

Computation Tree Logic (CTL) & Basic Model Checking Algorithms

On Recognizable Languages of Infinite Pictures

An Introduction to Modal Logic III

Lattice Automata. Orna Kupferman and Yoad Lustig

Tableau-Based Automata Construction for Dynamic Linear Time Temporal Logic

A Hierarchy for Accellera s Property Specification Language

Applied Automata Theory

Alternating Time Temporal Logics*

Automata, Logic and Games. C.-H. L. Ong

COM364 Automata Theory Lecture Note 2 - Nondeterminism

Model Checking Algorithms

Büchi Automata and Their Determinization

Chapter 5: Linear Temporal Logic

EECS 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization

Finite-state machines (FSMs)

Embedded systems specification and design

Games and Synthesis. Nir Piterman University of Leicester Telč, July-Autugst 2014

Impartial Anticipation in Runtime-Verification

On the Accepting Power of 2-Tape Büchi Automata

Property Checking of Safety- Critical Systems Mathematical Foundations and Concrete Algorithms

Chapter 5. Finite Automata

Weak Alternating Timed Automata

Finite Universes. L is a fixed-length language if it has length n for some

CDS 270 (Fall 09) - Lecture Notes for Assignment 8.

Monadic Second Order Logic and Automata on Infinite Words: Büchi s Theorem

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Quasi-Weak Cost Automata

LTL with Arithmetic and its Applications in Reasoning about Hierarchical Systems

The State Explosion Problem

Revisiting Synthesis of GR(1) Specifications

Peled, Vardi, & Yannakakis: Black Box Checking

Lecture Notes on Emptiness Checking, LTL Büchi Automata

Model Checking of Safety Properties

Recitation 2 - Non Deterministic Finite Automata (NFA) and Regular OctoberExpressions

Automata Construction for PSL

Languages. A language is a set of strings. String: A sequence of letters. Examples: cat, dog, house, Defined over an alphabet:

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

Formal Verification Techniques. Riccardo Sisto, Politecnico di Torino

Synthesis of Distributed Control and Communication Schemes from Global LTL Specifications

Automata-Theoretic Model Checking of Reactive Systems

Deterministic Finite Automata

Variable Automata over Infinite Alphabets

On the bisimulation invariant fragment of monadic Σ 1 in the finite

Modal logics and their semantics

Computation Tree Logic (CTL)

Course Runtime Verification

Automata Theory and Model Checking

Automata, Logic and Games. C.-H. L. Ong

Alternating nonzero automata

Automata, Logic and Games: Theory and Application

a Hebrew University b Weizmann Institute c Rice University

Advanced Automata Theory 7 Automatic Functions

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

Transcription:

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

Büchi Automata Definition A Büchi automaton is a (non-deterministic) finite automaton. Guttman ( WPI ) Büchi & LTL 18 Feb 10 2 / 10

Büchi Automata Definition A Büchi automaton is a (non-deterministic) finite automaton. A = Q, Σ, δ, Q s, F where: Q is a finite set called the states Σ is a finite set called the alphabet δ Q Σ Q, is called the transition relation Q s Q is called the set of initial states F Q is called the set of accepting states Guttman ( WPI ) Büchi & LTL 18 Feb 10 2 / 10

Büchi Automata: Runs, acceptance, language Let W be an infinite sequence w 0, w 1,... with w i Σ A run R of A for W : an infinite sequence r 0, r 1,... with r i Q where 1 r 0 Q s 2 (r i, w i, r i+1 ) δ Guttman ( WPI ) Büchi & LTL 18 Feb 10 3 / 10

Büchi Automata: Runs, acceptance, language Let W be an infinite sequence w 0, w 1,... with w i Σ A run R of A for W : an infinite sequence r 0, r 1,... with r i Q where 1 r 0 Q s 2 (r i, w i, r i+1 ) δ A accepts W iff there is some run R for W where: {i : r i F } is infinite Guttman ( WPI ) Büchi & LTL 18 Feb 10 3 / 10

Büchi Automata: Runs, acceptance, language Let W be an infinite sequence w 0, w 1,... with w i Σ A run R of A for W : an infinite sequence r 0, r 1,... with r i Q where 1 r 0 Q s 2 (r i, w i, r i+1 ) δ A accepts W iff there is some run R for W where: {i : r i F } is infinite The language accepted by A, written lang(a), is {W : A accepts W } Guttman ( WPI ) Büchi & LTL 18 Feb 10 3 / 10

Some Büchi Automata, 1 Σ = {a, b} b 1 F = {2} a b a 2 Guttman ( WPI ) Büchi & LTL 18 Feb 10 4 / 10

Some Büchi Automata, 1 Σ = {a, b} b 1 F = {2} a b a 2 Accepts W iff W has infinitely many as Guttman ( WPI ) Büchi & LTL 18 Feb 10 4 / 10

Some Büchi Automata, 2 Σ = {a, b} F = {2} 1 b 2 a 3 Guttman ( WPI ) Büchi & LTL 18 Feb 10 5 / 10

Some Büchi Automata, 2 Σ = {a, b} F = {2} 1 b 2 a 3 Accepts W iff W has finitely many as Can transition to state 2 after last a received Guttman ( WPI ) Büchi & LTL 18 Feb 10 5 / 10

Testing Non-Emptiness F = {2} 1 b 2 a 3 Guttman ( WPI ) Büchi & LTL 18 Feb 10 6 / 10

Testing Non-Emptiness F = {2} 1 b 2 a 3 There exists a W lang(a) if there is a q with 1 a path from a start state to q 2 a cycle q + q Guttman ( WPI ) Büchi & LTL 18 Feb 10 6 / 10

Closure Conditions on Languages Suppose given Büchi automata A 1, A 2 there exist Büchi automata with languages: lang(a 1 ) lang(a 2 ) lang(a 1 ) lang(a 2 ) Σ ω \ lang(a 1 ) Guttman ( WPI ) Büchi & LTL 18 Feb 10 7 / 10

Büchi Automata Representing LTL formula ϕ ϕ contains atomic formulas L Σ: Input letters are prop. logic models M L Q: Each subformula of ϕ is a state, plus,,... δ(ψ, M): depends on form of ψ:, if ψ in prop. logic and M = ψ, if ψ in prop. logic and M = ψ Guttman ( WPI ) Büchi & LTL 18 Feb 10 8 / 10

Büchi Automata Representing LTL formula ϕ ϕ contains atomic formulas L Σ: Input letters are prop. logic models M L Q: Each subformula of ϕ is a state, plus,,... δ(ψ, M): depends on form of ψ:, if ψ in prop. logic and M = ψ, if ψ in prop. logic and M = ψ χ, if ψ is X (χ) and, Guttman ( WPI ) Büchi & LTL 18 Feb 10 8 / 10

Büchi Automata Representing LTL formula ϕ ϕ contains atomic formulas L Σ: Input letters are prop. logic models M L Q: Each subformula of ϕ is a state, plus,,... δ(ψ, M): depends on form of ψ:, if ψ in prop. logic and M = ψ, if ψ in prop. logic and M = ψ χ, if ψ is X (χ) and, if ψ is αuβ, δ(β, M) (δ(α, M) (αuβ)) Guttman ( WPI ) Büchi & LTL 18 Feb 10 8 / 10

Büchi Automata Representing LTL formula ϕ ϕ contains atomic formulas L Σ: Input letters are prop. logic models M L Q: Each subformula of ϕ is a state, plus,,... δ(ψ, M): depends on form of ψ:, if ψ in prop. logic and M = ψ, if ψ in prop. logic and M = ψ χ, if ψ is X (χ) and, if ψ is αuβ, δ(β, M) (δ(α, M) (αuβ)) F : {ψ Q : ψ = (αuβ)} Guttman ( WPI ) Büchi & LTL 18 Feb 10 8 / 10

Model Checking, 1: What? Suppose we are given: A Kripke structure K Represents a system An LTL formula ϕ Represents a specification correctness condition Guttman ( WPI ) Büchi & LTL 18 Feb 10 9 / 10

Model Checking, 1: What? Suppose we are given: A Kripke structure K Represents a system An LTL formula ϕ Represents a specification correctness condition Does every execution of K satisfy ϕ? Guttman ( WPI ) Büchi & LTL 18 Feb 10 9 / 10

Model Checking, 1: What? Suppose we are given: A Kripke structure K Represents a system An LTL formula ϕ Represents a specification correctness condition Does every execution of K satisfy ϕ? For every π over graph K, does π = ϕ hold? Guttman ( WPI ) Büchi & LTL 18 Feb 10 9 / 10

Model Checking, 2: How? Let α be an LTL formula over atoms L Let K = (S, I, T, L) be a finite Kripke structure with L(s) L α determines an automaton A Guttman ( WPI ) Büchi & LTL 18 Feb 10 10 / 10

Model Checking, 2: How? Let α be an LTL formula over atoms L Let K = (S, I, T, L) be a finite Kripke structure with L(s) L α determines an automaton A K determines a Büchi automaton B = S, Σ, δ, I, S where S = S {fail} Σ = 2 L, and δ(s, M) = {s T (s): L(s) = M} {fail: s = fail or L(s) M} Guttman ( WPI ) Büchi & LTL 18 Feb 10 10 / 10

Model Checking, 2: How? Let α be an LTL formula over atoms L Let K = (S, I, T, L) be a finite Kripke structure with L(s) L α determines an automaton A K determines a Büchi automaton B = S, Σ, δ, I, S where S = S {fail} Σ = 2 L, and? = lang(a) lang(b) δ(s, M) = {s T (s): L(s) = M} {fail: s = fail or L(s) M} Guttman ( WPI ) Büchi & LTL 18 Feb 10 10 / 10