Introduction to ω-autamata

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

Fundamentals of Computer Science

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38

Theory of Computation Regular Languages

CS:4330 Theory of Computation Spring Regular Languages. Equivalences between Finite automata and REs. Haniel Barbosa

Deterministic Finite-State Automata

Finite-State Automata: Recap

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1

Lecture 08: Feb. 08, 2019

CS375: Logic and Theory of Computing

Nondeterminism and Nodeterministic Automata

Non Deterministic Automata. Formal Languages and Automata - Yonsei CS 1

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

Lecture 9: LTL and Büchi Automata

Deterministic Finite Automata

Anatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute

Non-deterministic Finite Automata

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck.

Non-deterministic Finite Automata

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University

CHAPTER 1 Regular Languages. Contents

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

Lecture 6 Regular Grammars

Myhill-Nerode Theorem

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh

Formal Language and Automata Theory (CS21004)

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

Formal Methods in Software Engineering

Finite Automata-cont d

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh

Nondeterminism. Nondeterministic Finite Automata. Example: Moves on a Chessboard. Nondeterminism (2) Example: Chessboard (2) Formal NFA

Chapter 2 Finite Automata

a,b a 1 a 2 a 3 a,b 1 a,b a,b 2 3 a,b a,b a 2 a,b CS Determinisitic Finite Automata 1

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science

Non-Deterministic Finite Automata

More on automata. Michael George. March 24 April 7, 2014

Streamed Validation of XML Documents

Automata, Games, and Verification

5.1 Definitions and Examples 5.2 Deterministic Pushdown Automata

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Good-for-Games Automata versus Deterministic Automata.

Regular expressions, Finite Automata, transition graphs are all the same!!

Designing finite automata II

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

Convert the NFA into DFA

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!)

NFAs continued, Closure Properties of Regular Languages

1 Nondeterministic Finite Automata

Homework 3 Solutions

Let's start with an example:

Section: Other Models of Turing Machines. Definition: Two automata are equivalent if they accept the same language.

Minimal DFA. minimal DFA for L starting from any other

80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES. 2.6 Finite State Automata With Output: Transducers

NFA DFA Example 3 CMSC 330: Organization of Programming Languages. Equivalence of DFAs and NFAs. Equivalence of DFAs and NFAs (cont.

Lexical Analysis Finite Automate

CS 267: Automated Verification. Lecture 8: Automata Theoretic Model Checking. Instructor: Tevfik Bultan

3 Regular expressions

Software Engineering using Formal Methods

On Determinisation of History-Deterministic Automata.

1.3 Regular Expressions

1 From NFA to regular expression

1.4 Nonregular Languages

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers

Homework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama

CISC 4090 Theory of Computation

Learning Moore Machines from Input-Output Traces

Harvard University Computer Science 121 Midterm October 23, 2012

Automata and Languages

Worked out examples Finite Automata

CSC 473 Automata, Grammars & Languages 11/9/10

CMSC 330: Organization of Programming Languages

CDM Automata on Infinite Words

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages

Formal Languages and Automata

Converting Regular Expressions to Discrete Finite Automata: A Tutorial

Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Regular Expressions (RE) Kleene-*

CS 275 Automata and Formal Language Theory

State Minimization for DFAs

CS 311 Homework 3 due 16:30, Thursday, 14 th October 2010

Lexical Analysis Part III

Scanner. Specifying patterns. Specifying patterns. Operations on languages. A scanner must recognize the units of syntax Some parts are easy:

Nondeterministic Biautomata and Their Descriptional Complexity

1 Structural induction, finite automata, regular expressions

Closure Properties of Regular Languages

Nondeterministic Automata vs Deterministic Automata

4 Deterministic Büchi Automata

Kleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem 2/16/15

input tape head moves current state

Regular languages refresher

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA)

Languages & Automata

Lecture 09: Myhill-Nerode Theorem

FABER Formal Languages, Automata and Models of Computation

Finite Automata Part Three

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY. FLAC (15-453) - Spring L. Blum

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Transcription:

Fridy 25 th Jnury, 2013

Outline From finite word utomt ω-regulr lnguge ω-utomt Nondeterministic Models Deterministic Models Two Lower Bounds Conclusion Discussion Synthesis Preliminry

From finite word utomt We ssume ll re fmilir with NFA, DFA, regulr lnguges nd the reltionships mong them.

From finite word utomt We ssume ll re fmilir with NFA, DFA, regulr lnguges nd the reltionships mong them. In CS we need to formlize the infinite behviors for non-terminting systems.

From finite word utomt We ssume ll re fmilir with NFA, DFA, regulr lnguges nd the reltionships mong them. In CS we need to formlize the infinite behviors for non-terminting systems. How does these behviors be described?

From finite word utomt We ssume ll re fmilir with NFA, DFA, regulr lnguges nd the reltionships mong them. In CS we need to formlize the infinite behviors for non-terminting systems. How does these behviors be described? Wht re the new models (utomt) which cn ccept these behviors?

ω-regulr lnguge Let ω denote the set of non-negtive integers, i.e. ω = {0, 1, 2,...}. And let REG be the clss of regulr lnguges. Definition (ω-regulr lnguge) The ω-kleene closure of the clss of regulr lnguge (short for ω-regulr lnguge) hs the form L = 1 i k U iv i k with k ω nd U i, V i REG.

ω-regulr lnguge Let ω denote the set of non-negtive integers, i.e. ω = {0, 1, 2,...}. And let REG be the clss of regulr lnguges. Definition (ω-regulr lnguge) The ω-kleene closure of the clss of regulr lnguge (short for ω-regulr lnguge) hs the form L = 1 i k U iv i k with k ω nd U i, V i REG. Exmple Let Σ = {, b}, then n finite trce ξ Σ ω cn be {} ω, ({}{, b}) ω, {}{b}{, b} ω nd etc.

ω-regulr lnguge Let ω denote the set of non-negtive integers, i.e. ω = {0, 1, 2,...}. And let REG be the clss of regulr lnguges. Definition (ω-regulr lnguge) The ω-kleene closure of the clss of regulr lnguge (short for ω-regulr lnguge) hs the form L = 1 i k U iv i k with k ω nd U i, V i REG. 2 21 11 10 12 20 n 2m' 1 30 3m'' 1m 3 31 32

ω-utomt Definition An ω-utomton A = (Q, Σ, δ, q I, Acc) where Q is the set of sttes; Σ is finite lphbet; δ is the trnsition funtion: δ : Q Σ 2 Q for nondeterministic model, nd δ : Q Σ Q for deterministic model. q I is the initil stte; Acc is the cceptnce component (to be explicted)

ω-utomt Definition An ω-utomton A = (Q, Σ, δ, q I, Acc) where Q is the set of sttes; Σ is finite lphbet; δ is the trnsition funtion: δ : Q Σ 2 Q for nondeterministic model, nd δ : Q Σ Q for deterministic model. q I is the initil stte; Acc is the cceptnce component (to be explicted) A run of A on n ω-word α = 1 2... Σ ω is n infinite stte sequence ρ = ρ(0)ρ(1)... Q ω such tht: ρ(0) = q I ; ρ(i) δ(ρ(i 1), i ) for nondeterministic model, nd ρ(i) = δ(ρ(i 1), i ) for deterministic model.

Comments The ω-utomt is introduced to ccept the clss of ω-regulr lnguges.

Comments The ω-utomt is introduced to ccept the clss of ω-regulr lnguges. How cn the ω-utomt identify their ccepting infinite words? 2 21 11 10 12 20 n 2m' 1 30 3m'' 1m 3 31 32

Comments The ω-utomt is introduced to ccept the clss of ω-regulr lnguges. How cn the ω-utomt identify their ccepting infinite words? 2 21 11 10 12 20 n 2m' 3 30 3m'' 1m 1 By one stte in cycle. (Büchi) 31 32

Comments The ω-utomt is introduced to ccept the clss of ω-regulr lnguges. How cn the ω-utomt identify their ccepting infinite words? 2 21 11 10 12 20 n 2m' 30 3 31 3m'' 32 1m 1 By one stte in cycle. (Büchi) By ll sttes in cycle. (Muller)

Comments The ω-utomt is introduced to ccept the clss of ω-regulr lnguges. How cn the ω-utomt identify their ccepting infinite words? 2 21 11 10 12 20 n 2m' 30 3 31 3m'' 32 1m 1 By one stte in cycle. (Büchi) By ll sttes in cycle. (Muller) By some sttes in nd some not in cycle. (Rbin/Streett)

Nondeterministic Models (1) Büchi Acceptnce

Nondeterministic Models (1) Büchi Acceptnce Definition A is clled Büchi utomton if Acc = F nd F stisfies: 1. F Q, nd 2. A word α Σ ω is ccepted by A iff there is run ρ on α such tht Inf (ρ) F.

Nondeterministic Models (1) Büchi Acceptnce Definition A is clled Büchi utomton if Acc = F nd F stisfies: 1. F Q, nd 2. A word α Σ ω is ccepted by A iff there is run ρ on α such tht Inf (ρ) F. Muller Acceptnce

Nondeterministic Models (1) Büchi Acceptnce Definition A is clled Büchi utomton if Acc = F nd F stisfies: 1. F Q, nd 2. A word α Σ ω is ccepted by A iff there is run ρ on α such tht Inf (ρ) F. Muller Acceptnce Definition A is clled Muller utomton if Acc = F nd F stisfies: 1. F 2 Q, nd 2. A word α Σ ω is ccepted by A iff there is run ρ on α such tht Inf (ρ) F.

Nondeterministic Models (2) Rbin Acceptnce

Nondeterministic Models (2) Rbin Acceptnce Definition A is clled Rbin utomton if Acc = Ω nd Ω stisfies: 1. Ω = {(E 1, F 1 ),..., (E k, F k )} with E i, F i Q, nd 2. A word α Σ ω is ccepted by A iff there is run ρ on α such tht (Inf (ρ) E i = ) (Inf (ρ) F i ) for some (E i, F i ).

Nondeterministic Models (2) Rbin Acceptnce Definition A is clled Rbin utomton if Acc = Ω nd Ω stisfies: 1. Ω = {(E 1, F 1 ),..., (E k, F k )} with E i, F i Q, nd 2. A word α Σ ω is ccepted by A iff there is run ρ on α such tht (Inf (ρ) E i = ) (Inf (ρ) F i ) for some (E i, F i ). Streett Acceptnce

Nondeterministic Models (2) Rbin Acceptnce Definition A is clled Rbin utomton if Acc = Ω nd Ω stisfies: 1. Ω = {(E 1, F 1 ),..., (E k, F k )} with E i, F i Q, nd 2. A word α Σ ω is ccepted by A iff there is run ρ on α such tht (Inf (ρ) E i = ) (Inf (ρ) F i ) for some (E i, F i ). Streett Acceptnce Definition A is clled Streett utomton if Acc = Ω nd Ω stisfies: 1. Ω = {(E 1, F 1 ),..., (E k, F k )} with E i, F i Q, nd 2. A word α Σ ω is ccepted by A iff there is run ρ on α such tht (Inf (ρ) E i ) (Inf (ρ) F i = ) for every (E i, F i ). (or if Inf (ρ) F i then Inf (ρ) E i )

Nondeterministic Models (3) Prity Acceptnce Consider specil cse for Rbin ccepting pirs: E 1 F 1 E 2 F 2... E n F n.

Nondeterministic Models (3) Prity Acceptnce Definition A is clled Prity utomton if Acc = c nd c stisfies: 1. c : Q {1,..., k} (k ω), nd 2. A word α Σ ω is ccepted by A iff there is run ρ on α such tht min{c(q) q Inf (ρ)} is even.

Nondeterministic Models (4) Trnsformtion Büchi Rbin Prity Muller Streett

Nondeterministic Models (4) Trnsformtion How to trnslte Büchi utomt to Muller utomt? Theorem Let A = (Q, Σ, δ, q I, F ) be Buchi utomton. Define the Muller utomton A = (Q, Σ, δ, q I, F) with F = {G 2 Q G F }. Then L(A) = L(A ).

Nondeterministic Models (4) Trnsformtion How to trnslte Büchi utomt to Muller utomt? Theorem Let A = (Q, Σ, δ, q I, F ) be Buchi utomton. Define the Muller utomton A = (Q, Σ, δ, q I, F) with F = {G 2 Q G F }. Then L(A) = L(A ). Proof. (Sketch). ( ) Consider ξ = ω 0 ω 1... be n ccepting run of A. It will run ccross set of S Q infinitely such tht S F. So S F, i.e. ξ cn be ccepted by A ; ( ) If ξ is ccepted by A, then there is S F such tht ξ will run ccross S infinitely. Since S F, thus it cn be lso be ccepted by A.

Nondeterministic Models (4) Trnsformtion How to trnslte Rbin/Streett utomt to Muller utomt? Theorem Let A = (Q, Σ, δ, q I, Ω) be Rbin utomton, respectively Streett utomton. Define the Muller utomton A = (Q, Σ, δ, q I, F) with F = {G 2 Q (E, F ) Ω G E = G F }, respectively with F = {G 2 Q (E, F ) Ω G E G F = }. Then L(A) = L(A ).

Nondeterministic Models (4) Trnsformtion How to trnslte Prity utomt to Rbin utomt, nd vice vers? Theorem Let A = (Q, Σ, δ, q I, c) be Prity utomton with c : Q {0,..., k}. Define the Rbin utomton A = (Q, Σ, δ, q I, Ω) with Ω = {(E 0, F 0 ),..., (E r, F r )} with r = k/2, E i = {q Q c(q) < 2i} nd F i = {q Q c(q) 2i}. Then L(A) = L(A ).

Nondeterministic Models (4) Trnsformtion How to trnslte Muller utomt to Büchi utomt? Theorem Let A = (Q, Σ, δ, q I, F) be Muller utomton. Define A = (Q, Σ, δ, q I, F ) be the Büchi utomton with: Q = Q G F (G 2G ); δ (q 1, ) = 1. δ(q 1, ) if q 1 Q nd every q 2 δ(q 1, ) is not in F; 2. δ(q 1, ) {(q 2, )} if q 1 Q nd there exists q 2 δ(q 1, ) nd q 2 F; 3. {(q 2, S {q 2})} if q 1 = (q1, S) nd q1 G q2 G for some G F 4. if q 1 = (q1, S) nd there is no G F such tht q1 G s well s every q 2 δ(q 1, ) is lso in G. F = {(q G, )}; Then L(A) = L(A ).

Nondeterministic Models (4) Trnsformtion How to trnslte Muller utomt to Rbin/Streett utomt? How to trnslte Rbin utomt to Streett utomt, nd vice vers?

Exmple 1 strt s 0 s 1 ξ = ( ) ω

Exmple 1 strt s 0 Büchi: F = {s 1 }; s 1

Exmple 1 strt s 0 s 1 Büchi: F = {s 1 }; Muller: F = {{s 1 }};

Exmple 1 strt s 0 s 1 Büchi: F = {s 1 }; Muller: F = {{s 1 }}; Rbin: Ω = {(, {s 1 })};

Exmple 1 strt s 0 s 1 Büchi: F = {s 1 }; Muller: F = {{s 1 }}; Rbin: Ω = {(, {s 1 })}; Streett: Ω = {({s 0 }, )}??

Exmple 1 strt s 0 s 1 Büchi: F = {s 1 }; Muller: F = {{s 1 }}; Rbin: Ω = {(, {s 1 })}; Streett: Ω = {({s 0 }, )}?? Prity: c(s 0 ) = 1; c(s 1 ) = 2??

Exmple (cont ) strt s 0 s 1 ξ = ( ) ω

Exmple (cont ) strt s 0 s 1 Büchi: F = {s 1 }?? ;

Exmple (cont ) strt s 0 s 1 Büchi: F = {s 1 }?? ; Muller: F = {{s 1 }}?? ;

Exmple (cont ) strt s 0 s 1 Büchi: F = {s 1 }?? ; Muller: F = {{s 1 }}?? ; Rbin: Ω = {(, {s 1 })}??;

Exmple (cont ) strt s 0 s 1 Büchi: F = {s 1 }?? ; Muller: F = {{s 1 }}?? ; Rbin: Ω = {(, {s 1 })}??; Streett: Ω = {({s 0 }, )}??

Exmple (cont ) strt s 0 s 1 Büchi: F = {s 1 }?? ; Muller: F = {{s 1 }}?? ; Rbin: Ω = {(, {s 1 })}??; Streett: Ω = {({s 0 }, )}?? Prity: c(s 0 ) = 1; c(s 1 ) = 2??

Deterministic Models (1) Büchi Condition becomes weker 1 strt s 0 s 1

Deterministic Models (1) Büchi Condition becomes weker 1 strt s 0 strt s 0 s 1 s 0, s 1

Deterministic Models (1) Büchi Condition becomes weker 1 strt s 0 strt s 0 s 1 s 0, s 1 Why subset construction not work here?

Deterministic Models (2) Trnsformtion Büchi Rbin Prity Muller Streett

Two Lower Bounds 1. The lower bound for trnsformtion from nondeterministic B chi utomt to deterministic Rbin utomt is 2 O(nlogn) ; (Sfr Construction)

Two Lower Bounds 1. The lower bound for trnsformtion from nondeterministic B chi utomt to deterministic Rbin utomt is 2 O(nlogn) ; (Sfr Construction) 2. The lower bound for trnsformtion from deterministic Streett utomt to deterministic Rbin utomt is 2 O(nlogn) ;

Conclusion All the nondeterministic ω utomt ccept the sme clss of ω regulr lnguges. Deterministic Büchi utomt is weker thn other deterministic ω utomt. The bound from nondeterministic utomt to deterministic ones is 2 nlogn.

Discussion Questions?

Synthesis Preliminry Definition (Synthesis) Given Specifiction S, is there progrm (system) P such tht P = S? If so then we cll S is relizble.

Synthesis Preliminry Definition (Synthesis) Given Specifiction S, is there progrm (system) P such tht P = S? If so then we cll S is relizble. We focus here only on the specifiction written by LTL, then wht is the frmework?

Frmework LTL Tbleu (Exp) NBW

Frmework LTL Tbleu (Exp) NBW NBW Sfr (Exp) DRW

Frmework LTL Tbleu (Exp) NBW NBW Sfr (Exp) DRW DRW Exp on pirs DRT

Frmework LTL Tbleu (Exp) NBW NBW Sfr (Exp) DRW DRW Exp on pirs DRT NBW nonempty? REA

Exmple FGp 1 strt s 0 p s 1 p

Exmple FGp 1 p strt s 0 strt s 0 p p p s 1 p s 1 p

Exmple GFp 1 strt s 0 p 1 s 1 p

Exmple GFp 1 p strt s 0 strt s 0 p 1 p p s 1 p s 1 p

Frmework LTL Tbleu (Exp) NBW NBW Sfr (Exp) DRW DRW Exp on pirs DRT NBW nonempty? REA

Discussion Questions?