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

Similar documents
Timo Latvala. March 7, 2004

Chapter 3: Linear temporal logic

Classes and conversions

Büchi Automata and Their Determinization

Automata on Infinite words and LTL Model Checking

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

Advanced Automata Theory 7 Automatic Functions

Weak Alternating Automata Are Not That Weak

FAMILIES OF DFAS AS ACCEPTORS OF ω-regular LANGUAGES

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

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

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

Automata Theory and Model Checking

Equivalence of DFAs and NFAs

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

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

Definition of Büchi Automata

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

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

3515ICT: Theory of Computation. Regular languages

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

Automata-based Verification - III

Theory of Computation

Deterministic Finite Automata. Non deterministic finite automata. Non-Deterministic Finite Automata (NFA) Non-Deterministic Finite Automata (NFA)

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

Automata-based Verification - III

Automata-Theoretic LTL Model-Checking

CSE 311: Foundations of Computing. Lecture 23: Finite State Machine Minimization & NFAs

CMPSCI 250: Introduction to Computation. Lecture #22: From λ-nfa s to NFA s to DFA s David Mix Barrington 22 April 2013

CSE 105 THEORY OF COMPUTATION

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

SETH FOGARTY AND MOSHE Y. VARDI

September 7, Formal Definition of a Nondeterministic Finite Automaton

Harvard CS 121 and CSCI E-207 Lecture 4: NFAs vs. DFAs, Closure Properties

Lecture Notes on Emptiness Checking, LTL Büchi Automata

Sri vidya college of engineering and technology

Representing Arithmetic Constraints with Finite Automata: An Overview

Logic Model Checking

On the Succinctness of Nondeterminizm

COM364 Automata Theory Lecture Note 2 - Nondeterminism

Finite Automata. Mahesh Viswanathan

Computer Sciences Department

1 More finite deterministic automata

Foundations of Informatics: a Bridging Course

C2.1 Regular Grammars

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

CS 455/555: Finite automata

Lecture 1: Finite State Automaton

C2.1 Regular Grammars

CSE 135: Introduction to Theory of Computation Equivalence of DFA and NFA

A Tight Lower Bound for Determinization of Transition Labeled Büchi Automata

Notes on State Minimization

Computational Theory

2. Syntactic Congruences and Monoids

Computational Models Lecture 2 1

CS 154. Finite Automata, Nondeterminism, Regular Expressions

Finite Automata (contd)

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

CS 121, Section 2. Week of September 16, 2013

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,

CSC236 Week 11. Larry Zhang

Automata, Logic and Games: Theory and Application

Automata: a short introduction

Theory of Computation (II) Yijia Chen Fudan University

Theory of Computation 4 Non-Deterministic Finite Automata

CS 208: Automata Theory and Logic

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Theory of Computation (I) Yijia Chen Fudan University

Inf2A: Converting from NFAs to DFAs and Closure Properties

Lecture 23 : Nondeterministic Finite Automata DRAFT Connection between Regular Expressions and Finite Automata

PSL Model Checking and Run-time Verification via Testers

Applied Automata Theory

Closure under the Regular Operations

Automata, Logic and Games: Theory and Application

CSE 105 THEORY OF COMPUTATION

Complexity of infinite tree languages

Decision, Computation and Language

Finite Automata and Languages

Rabin Theory and Game Automata An Introduction

Computational Models Lecture 2 1

Homework Assignment 6 Answers

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

Theory of Computation

Finite Automata Part Two

The theory of regular cost functions.

Intro to Theory of Computation

Nondeterministic Finite Automata

Finite Automata. Finite Automata

Büchi Automata and Linear Temporal Logic

Decidability and Undecidability

arxiv: v2 [cs.fl] 29 Nov 2013

Advanced Automata Theory 2 Finite Automata

Nondeterministic Finite Automata

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

Chapter Five: Nondeterministic Finite Automata

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK

arxiv: v3 [cs.fl] 2 Jul 2018

Let us first give some intuitive idea about a state of a system and state transitions before describing finite automata.

CPSC 421: Tutorial #1

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET

Transcription:

ω-automata

ω-automata Automata that accept (or reject) words of infinite length. Languages of infinite words appear: in verification, as encodings of non-terminating executions of a program. in arithmetic, as encodings of sets of real numbers.

ω-languages An ω-word is an infinite sequence of letters. The set of all ω-words is denoted by Σ. An ω-language is a set of ω-words, i.e., a subset of Σ. A language L can be concatenated with an ω-language L to yield the ω-language L L, but two ω-languages cannot be concatenated. The ω-iteration of a language L Σ, denoted by L, is an ω-language. Observe: = ε =

ω-regular Expressions ω-regular expressions have syntax s = r rs s + s where r is an (ordinary) regular expression. The ω-language L (s) of an ω-regular expression s is inductively defined by L r = L r L rs = L r L (s ) L s + s = L s L (s ) A language is ω-regular if it is the language of some ω-regular expression.

Büchi Automata Invented by J.R. Büchi, swiss logician.

Büchi Automata Same syntax as DFAs and NFAs, but different acceptance condition. A run of a Büchi automaton on an ω-word is an infinite sequence of states and transitions. A run is accepting if it visits the set of final states infinitely often. Final states renamed to accepting states. A DBA or NBA A accepts an ω-word if it has an accepting run on it; the ω-language L A of A is the set of ω-words it accepts.

Some examples

From ω-regular Expressions to NBAs

From ω-regular Expressions to NBAs

From ω-regular Expressions to NBAs

From NBAs to ω-regular Expressions Lemma: Let A be a NFA, and let q, q be states of A. The language L of words with runs leading from q to q and visiting q exactly once is regular. Let r denote a regular expression for L.

From NBAs to ω-regular Expressions Example:

From NBAs to ω-regular Expressions Given a NBA A, we look at it as a NFA, and compute regular expressions r. We show: L A = L r r An ω-word belongs to L A iff it is accepted by a run that starts at q and visits some accepting state q infinitely often.

From NBAs to ω-regular Expressions Example: L A = r r + r r

DBAs are less expressive than NBAs Prop.: The ω-language a + b b is not recognized by any DBA. Proof: By contradiction. Assume some DBA recognizes a + b b. DBA accepts b DFA accepts b DBA accepts b a b DFA accepts b a b DBA accepts b a b ab DFA accepts b a b a b etc. By determinism and finite number of states, the DBA accepts b a b a b a b ab ab which does not belong to a + b b.

Generalized Büchi Automata Same power as Büchi automata, but more adequate for some constructions. Several sets of accepting states. A run is accepting if it visits each set of accepting states infinitely often.

From NGAs to NBAs Important fact: All the sets F,, F are visited infinitely often is equivalent to F is eventually visited and every visit to F is eventually followed by a visit to F

From NGAs to NBAs F NGA with 3 sets of accepting states F F Equivalent NBA with 3 copies of the NGA F F F F F F F F F

DGAs have the same expressive power as DBAs, and so are not equivalent to NGAs. Question: Are there other classes of omegaautomata with the same expressive power as NBAs or NGAs, and with equivalent deterministic and nondeterministic versions? We are only willing to change the acceptance condition!

Co-Büchi automata A nondeterministic co-büchi automaton (NCA) is syntactically identical to a NBA, but a run is accepting iff it only visits accepting states finitely often.

Which are the languages?

Determinizing co-büchi automata Given a NCA A we construct a DCA B such that L A = L B. We proceed in three steps: We assign to every ω-word w a directed acyclic graph dag(w) that ``contains all runs of A on w. We prove that w is accepted by A iff dag(w) is infinite but contains only finitely many breakpoints. We construct a DCA B that accepts an ω-word w iff dag(w) is infinite and contains finitely many breakpoints.

Running example:

dag(aba ) dag ab

A accepts w iff some infinite path of dag w only visits accepting states finitely often

Levels of a dag Level 0 Level 1 Level 2 Level 3 Level 4

Breakpoints of a dag We defined inductively the set of levels that are breakpoints: Level 0 is always a breakpoint If level l is a breakpoint, then the next level l such that every path between l and l visits an accepting state is also a breakpoint.

Only two breakpoints Infinitely many breakpoints

Lemma: A accepts w iff dag w is infinite and has only finitely many breakpoints. Proof: If A accepts w, then it has at least one run on w, and so dag w is infinite. Moreover, the run visits accepting states only finitely often, and so after it stops visiting accepting states there are no further breakpoints. If dag w is infinite, then it has an infinite path, and so A has at least one run on w. Since dag w has finitely many breakpoints, then every infinite path visits accepting states only finitely often.

Constructing the DCA If we could tell if a level is a breakpoint by looking at it, we could take the set of breakpoints as states of the DCA. However, we also need some information about its ``history. Solution: add that information to the level!

Constructing the DCA States: pairs [P, O] where: P is the set of states of a level, and O P is the set of states ``that owe a visit to the set of accepting states. Formally: q O if q is the endpoint of a path starting at the last breakpoint that has not yet visited any accepting state.

Constructing the DCA States: pairs [P, O] Initial state: pair [ q, ] if q F, and [ q, q ] otherwise. Transitions: δ P, Q, a = [P, O ] where P = δ(p, a), and O = δ O, a F if O (automaton updates set of owing states) O = δ P, a F if O = (automaton starts search for next breakpoint) Accepting states: pairs [P, ] (no owing states)

Complexity: at most 3 states

Running example

Recall... Question: Are there other classes of omegaautomata with the same expressive power as NBAs or NGAs, and with equivalent deterministic and nondeterministic versions? Are co-büchi automata a positive answer?

Unfortunately no... Lemma: No DCA recognizes the language b a. Proof: Assume the contrary. Then the same automaton seen as a DBA recognizes the complement a + b b. Contradiction. So the quest goes on...

Muller automata A nondeterministic Muller automaton (NMA) has a collection F, F,, F of sets of accepting states. A run is accepting if the set of states it visits infinitely often is equal to one of the sets in the collection.

From Büchi to Muller automata Let A be a NBA with set F of accepting states. A set of states of A is good if it contains some state of F. Let G be the set of all good sets of A. Let A be "the same automaton" as A, but with Muller condition G. Let ρ be an arbitrary run of A and A. We have iff iff iff ρ is accepting in A inf (ρ) contains some state of F inf (ρ) is a good set of A ρ is accepting in A

From Muller to Büchi automata Let A be a NMA with condition F, F,, F. Let A,, A be NMAs with the same structure as A but Muller conditions F, F,, F respectively. We have: L A = L A We proceed in two steps: L A 1. we construct for each NMA A an NGA A such that L A = L(A ) 2. we construct an NGA A such that L A = L A L A

F NMA Transitions leaving F are duplicated and resent to the copy of F q q q q NGA with accepting condition { q,, q }

Equivalence of NMAs and DMAs Theorem (Safra): Any NBA with n states can be effectively transformed into a DMA of size n ( ). Proof: Omitted. DMA for a + b b : with accepting condition q

Question: Are there other classes of omegaautomata with the same expressive power as NBAs or NGAs, and with equivalent deterministic and nondeterministic versions? Answer: Yes, Muller automata

Is the quest over? Recall the translation NBA NMA The NMA has the same structure as the NBA; its accepting condition are all the good sets of states. The translation has exponential complexity. New question: Is there a class of ω-automata with the same expressive power as NBAs, equivalent deterministic and nondeterministic versions, and polynomial conversions to and from Büchi automata?

Rabin automata The acceptance condition is a set of pairs { F, G,, F, G } A run ρ is accepting if there is a pair F, G such that ρ visits the set F infinitely often and the set G finitely often. Translations NBA NRA and NRA NBA are left as an exercise. Theorem (Safra): Any NBA with n states can be effectively transformed into a DRA with n states and O(n) accepting pairs.

Is the quest over? The accepting condition of Rabin automata is not closed under negation: the negation of i 1,, m : inf ρ F inf ρ G = is of the form i 1,, m : inf ρ F = inf ρ G or, equivalently i 1,, m : inf ρ G = inf ρ F = This is the Streett condition. The Büchi condition is a special case of the Streett condition. However, the translation from Streett to Bchi is exponential.

Is the quest over? New question: Is there a class of ω-automata with the same expressive power as NBAs, equivalent deterministic and nondeterministic versions, polynomial conversions to and from Büchi automata, and an accepting condition closed under negation?

Parity automata The acceptance condition is a sequence (F,, F ) of sets of states such that F F F = Q. NBA NPA. F (, F, Q, Q) NPA NBA. NPA NRA NBA. NPA NRA. (F,, F ) F, F,, F, F, F, F Theorem (Safra,Piterman): Any NBA with n states can be effectively transformed into a DPA with n states and O(n) accepting sets. Complementation of NPAs. (F,, F ) (, F,, F, Q)

Parity automata New question: Is there a class of ω-automata with the same expressive power as NBAs, equivalent deterministic and nondeterministic versions, polynomial conversions to and from Büchi automata, and an accepting condition closed under negation? Answer: Yes, parity automata