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

Similar documents
Definition of Büchi Automata

We define the multi-step transition function T : S Σ S as follows. 1. For any s S, T (s,λ) = s. 2. For any s S, x Σ and a Σ,

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

Great Theoretical Ideas in Computer Science. Lecture 4: Deterministic Finite Automaton (DFA), Part 2

DM17. Beregnelighed. Jacob Aae Mikkelsen

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

Computer Science & Engineering Department. IIT Kharagpur. Theory of Computation: CS41001 Lecture I

Finite Automata and Regular languages

Inf2A: Converting from NFAs to DFAs and Closure Properties

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism

More on Finite Automata and Regular Languages. (NTU EE) Regular Languages Fall / 41

Theory of Computation (I) Yijia Chen Fudan University

Büchi Automata and Their Determinization

3515ICT: Theory of Computation. Regular languages

CS243, Logic and Computation Nondeterministic finite automata

CS 154. Finite Automata, Nondeterminism, Regular Expressions

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,

Automata and Languages

Computational Models - Lecture 3 1

Intro to Theory of Computation

Equivalence of DFAs and NFAs

Lecture Notes On THEORY OF COMPUTATION MODULE -1 UNIT - 2

CS 455/555: Finite automata

Finite Automata and Regular Languages

Theory of Computation

T (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is,

CS 530: Theory of Computation Based on Sipser (second edition): Notes on regular languages(version 1.1)

Logic and Automata I. Wolfgang Thomas. EATCS School, Telc, July 2014

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS

CS 154 Introduction to Automata and Complexity Theory

2. Elements of the Theory of Computation, Lewis and Papadimitrou,

Computational Models - Lecture 4

COM364 Automata Theory Lecture Note 2 - Nondeterminism

HKN CS/ECE 374 Midterm 1 Review. Nathan Bleier and Mahir Morshed

Theory of Computation (II) Yijia Chen Fudan University

Introduction to the Theory of Computation. Automata 1VO + 1PS. Lecturer: Dr. Ana Sokolova.

What we have done so far

Computational Models: Class 3

Lecture 3: Nondeterministic Finite Automata

Lecture 1: Finite State Automaton

Introduction to the Theory of Computation. Automata 1VO + 1PS. Lecturer: Dr. Ana Sokolova.

Advanced Automata Theory 2 Finite Automata

Automata extended to nominal sets

Theory of Computation

UNIT-II. NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: SIGNIFICANCE. Use of ε-transitions. s t a r t. ε r. e g u l a r

COMP-330 Theory of Computation. Fall Prof. Claude Crépeau. Lec. 5 : DFA minimization

Regular Languages. Problem Characterize those Languages recognized by Finite Automata.

Advanced Automata Theory 7 Automatic Functions

Deterministic Finite Automata (DFAs)

CS 154, Lecture 3: DFA NFA, Regular Expressions

Unit 6. Non Regular Languages The Pumping Lemma. Reading: Sipser, chapter 1

1 More finite deterministic automata

Sri vidya college of engineering and technology

NOTES ON AUTOMATA. Date: April 29,

Nondeterministic Finite Automata

Automata on Infinite words and LTL Model Checking

Theory of Computation 4 Non-Deterministic Finite Automata

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

COMP-330 Theory of Computation. Fall Prof. Claude Crépeau. Lec. 9 : Myhill-Nerode Theorem and applications

Deterministic Finite Automata (DFAs)

Computational Models #1

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET

CSE 311 Lecture 23: Finite State Machines. Emina Torlak and Kevin Zatloukal

Pushdown automata. Twan van Laarhoven. Institute for Computing and Information Sciences Intelligent Systems Radboud University Nijmegen

Properties of Regular Languages. BBM Automata Theory and Formal Languages 1

Fooling Sets and. Lecture 5

COMP4141 Theory of Computation

Computation Histories

Non-deterministic Finite Automata (NFAs)

Finite State Automata

Computational Models Lecture 2 1

On Recognizable Languages of Infinite Pictures

CS 154. Finite Automata vs Regular Expressions, Non-Regular Languages

Chapter 3. Regular grammars

Obtaining the syntactic monoid via duality

Closure Properties of Regular Languages

Theory of Languages and Automata

On Recognizable Languages of Infinite Pictures

Computational Models Lecture 2 1

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

Automata on linear orderings

Finite Automata and Regular Languages (part III)

Theory of Computation p.1/?? Theory of Computation p.2/?? Unknown: Implicitly a Boolean variable: true if a word is

Closure under the Regular Operations

Hierarchy among Automata on Linear Orderings

Uses of finite automata

ACS2: Decidability Decidability

Computational Models - Lecture 3 1

The Pumping Lemma and Closure Properties

Non-emptiness Testing for TMs

CSE 105 THEORY OF COMPUTATION

CPSC 421: Tutorial #1

Theory of Computation 3 Deterministic Finite Automata

TDDD65 Introduction to the Theory of Computation

Chapter Five: Nondeterministic Finite Automata

Definition: A binary relation R from a set A to a set B is a subset R A B. Example:

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

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

Chapter 5. Finite Automata

Transcription:

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

Motivation Conventional programs accept input, compute, output result, then terminate Reactive program : not expected to terminate react to their environment continuously eg: discrete event controllers, schedulers, operating systems, network protocols, infinite computation involving multiple agents etc...

Modelling infinite computations of reactive systems An infinite string ( word) α over Σ is a mapping N Σ and is shown by the infinite sequence a 0,a 1,a 2. Set of all words over Σ is denoted by Σ ω = {a 1 a 2 a 3 a i ϵ Σ} A subset L Σ ω is called -language

Examples Let Σ = {a,b}, L = {α α ϵ Σ ω, α has infinitely many b s} Then L is an language and α = a * b ω ϵ L, β = (ab) ω ϵ L and γ = (ba) ω ϵ L.

Büchi Automata - Formal Definition Let = {a, b,...} be a finite alphabet. By we denote the set of all infinite words over. A non-deterministic Büchi automaton (NBA) over is a tuple A = <Q, I, T, F>, where: Q is a finite set of states, I Q is a set of initial states, T Q Q is a transition relation, F Q is a set of final states.

Acceptance Condition A run of a Büchi automaton is defined over an infinite word ω : α 1 α 2... as an infinite sequence of states π : q 0 q 1 q 2... such that: q 0 I and (q i, α i+1, q i+1 ) T, for all i N. Let inf(π) = {q q appears infinitely often on π }. Run π of A is said to be accepting iff inf(π) F ɸ.

Example The following finite ω - automata with F = {q 1,q 2 } accept the ω - language A = { α ϵ {a,b} ω α ends with either a ω or (ab) ω } = * a ω * (ab) ω

Closure Properties Whether a Büchi automaton is closed under the following operations?? union intersection concatenation complementation

Closure Under Union Lemma : If L 1 and L 2, languages over, are recognised by Büchi automata B 1 = (Q 1, I 1, T 1, F 1 ) and B 2 = (Q 2, I 2, T 2, F 2 ) respectively, then L 1 L 2 is also recognised by a Büchi automaton. Proof : w.l.o.g we assume that Q 1 Q 2 = ɸ - Recogniser for L is B = (Q 1 Q 2, I 1 I 2, T 1 T 2, F 1 F 2 ). - Claim : Any α ϵ L 1 L 2 is accepted by B If α has an successful run on B 1, then it also has a successful run on B. Similar is the case if has a successful run on B 2.In the other direction, if has a successful run on B, then it must have a successful run on B 1 or B 2 component of B. By our construction these two components are disjoint.

Example Consider the following two languages: L 1 : each string has either exactly one 0 or exactly one 1. L 2 : there are finitely many 1 s in each sequence. The automaton for L = L 1 L 2 is

Closure Under Intersection Lemma : If L 1 and L 2, languages over, are recognised by Büchi automata B 1 = (Q 1, I 1, F 1, T 1 ) and B 2 = (Q 2, I 2, F 2, T 2 ) respectively, then L 1 L 2 is also recognised by a Büchi automaton. Proof : using product construction - Recogniser for L is B = (Q, I, T, F) where Q - Q 1 X Q 2 X {1,2} I - I 1 X I 2 X {1} T - Δ 1 Δ 2 Δ 1 = {( (q 1,q 2,1), a, (q' 1,q' 2,i) ) (q 1,a,q' 1 ) Δ 1 and (q 2,a,q' 2 ) Δ 2 and if q 1 F 1 then i=2 else i=1 } Δ 2 = {( (q 1,q 2,2), a, (q' 1,q' 2,i) ) (q 1,a,q' 1 ) Δ 1 and (q 2,a,q' 2 ) Δ 2 and if q 2 F 2 then i=1 else i=2 } F - { (Q 1, Q 2, 2 ) Q 2 F 2 }

Claim : By construction r' = (q 0 1,q0 2,i0 ), (q 1 1,q1 2,i1 ),... is a run of automaton B on input word ω iff r 1 =q 0 1, q1 1,... is run of B 1 on ω and r 2 =q0 2, q1 2,...,... is run of B 2 on ω. r 1 is accepting and r 2 is accepting iff r' is concatenation of an infinite series of finite segments of 1-states and 2-states alternatively. There is such a series of segments of r' iff r' is accepted by B.

Closure Under Concatenation Lemma : If L 1 and L 2, languages over, are recognised by Büchi automata B 1 = (Q 1, I 1, T 1, F 1 ) and B 2 = (Q 2, I 2, T 2, F 2 ) respectively, then L 1. L 2 is also recognised by a Büchi automaton. Proof : w.l.o.g we assume that Q 1 Q 2 = ɸ - Recogniser for L is B = (Q 1 Q 2, I, T, F 1 F 2 ). T = T 1 T 2 { (q,a,q') q' I 2 and f F 1. (q,a,f) T 1 } if I 1 F 1 is empty then I = I 1 otherwise I = I 1 I 2

Buildup for Complementation Buchi Characterization Lemma 1 : If a regular language is accepted by a DFA M = {Q,s,δ,F} over, there is an equivalent DFA M = {Q,s,δ,F } with no incoming transitions to start state. Lemma 2 : If language L * is recognized by M, then there is a Buchi automaton for L ω Lemma 3 : If L 1,L 2 are regular, then L 1 L 2 ω is Buchi recognizable.

Buildup for Complementation Theorem 1: An ω language is Buchi recognizable iff L = L i K i ω where L i, K i Σ* are regular. Corollary : Any non-empty Buchi recognizable language contains an ultimate periodic word of the form uvvv

Buildup for Complementation Equivalence Classes: Define a binary relation ~ B on Σ*. Let x,y Σ *, then x ~ B y iff i ) (p,q) Q, p x q iff p y q ii ) (p,q) Q, p F x q iff p F y q Lemma 4: ~ B is an equivalence relation (reflexive, symmetric and transitive) Lemma 5: ~ B is a congruence relation (due to transitivity)

Buildup for Complementation Lemma 6: ~ B has finite index i.e. partitions Σ * in finite number of equivalence classes. Corollary : From Myhill-Nerode theorem, if there is an equivalence relation of finite index over Σ *, and the relation is a congruence relation, then the equivalence classes are regular languages. Lemma 7: Given a Buchi automaton B = {Q,s,δ,F}, the equivalence class [x] ~B is the intersection of all languages of the form L p,q, L p,q F, Σ * \L p,q and Σ * \L p,q F.

Complementation Approach to show closure under complementation : we have already shown construction of a congruence relation ~ B ~ B divides Σ * into finite number of equivalence classes, each of which is regular. For any 2 equivalence classes L 1 and L 2, L 1 L 2 ω is Buchi recognizable. Given a Buchi automaton B, we will show that if L 1 L 2 ω L ω (B) Φ then L 1 L 2 ω L ω (B). We also need to show that each α L ω (B) belongs to some L 1 L 2 ω where L 1 and L 2 are equivalence classes.

Buildup for Complementation Lemma 8 : ~ B defined on Σ * saturates L if for any pair of equivalence classes L 1 and L 2, whenever L 1 L 2 ω L ω Φ then L 1 L 2 ω L Lemma 9 : Given a Buchi automata B = (Q,s,δ,F) and an ω- string α, we define a binary relation on the positions in the string, or on the set of positive integers N as follows: k ~ α l, if there is a position m > k, l, such that α k,m ~ α α l,m Clearly ~ α is reflexive and symmetric. It is also transitive.

Buildup for Complementation Lemma 10 : Given a Buchi automata B = (Q,s,δ,F) and an ω-string α, the equivalence relation ~ α has finite index i.e. it divides N in finite number of equivalence classes. Corollary : As there are infinite number of letters in an ω- string α, but only finitely many equivalence classes, there must be an equivalence class with infinite number of positions in it. We define two subsets of Σ * as follows: L 1 = {x Σ * : x ~ B α 1,p0 }, L 2 = {x Σ * : x ~ B α p0,p1 }. Clearly L 1 and L 2 are two equivalence classes under ~ B.

Closure Under Complementation Lemma 11 : The ω-string α L 1 L 2 ω Lemma 12 : Let B be a Buchi automaton over Σ. The language Σ ω \ L ω (B) is Buchi recognizable. In the previous theorem we proved that any ω-string is a member of some L 1 L 2 ω. So, the complement language, Σ ω \ L ω (B) = UL 1 L 2 ω, where L 1 and L 2 are equivalence classes generated by B, and the union is over all pairs of such L 1 and L 2 such that L 1 L 2 ω L ω (B) = Φ. So Buchi recognisable languages are closed under complementation.

References Automata theory and its applications by Anil Nerode and Bakhadyr Khoussainov Lecture Notes by Gautam Biswas, IIT Kgp K Narayan Kumar, CMI