More general families of infinite graphs

Similar documents
The Caucal Hierarchy of Infinite Graphs in Terms of Logic and Higher-order Pushdown Automata

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

CONTEXT-SENSITIVE LANGUAGES, RATIONAL GRAPHS AND DETERMINISM

Chapter 2 Finite Automata

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

Normal Forms for Context-free Grammars

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

CHAPTER 1 Regular Languages. Contents

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research

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

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

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

First Midterm Examination

Let's start with an example:

Non-Deterministic Finite Automata

1.4 Nonregular Languages

CISC 4090 Theory of Computation

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

CS 275 Automata and Formal Language Theory

Minimal DFA. minimal DFA for L starting from any other

Table of contents: Lecture N Summary... 3 What does automata mean?... 3 Introduction to languages... 3 Alphabets... 3 Strings...

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

Theory of Computation Regular Languages

CS 275 Automata and Formal Language Theory

Contextual graph grammars characterising Rational Graphs

Convert the NFA into DFA

a b b a pop push read unread

Non-deterministic Finite Automata

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

Thoery of Automata CS402

Formal Languages and Automata

Hierarchy of pushdown graphs

NFAs continued, Closure Properties of Regular Languages

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

Java II Finite Automata I

Finite-State Automata: Recap

Deterministic Finite Automata

Formal Language and Automata Theory (CS21004)

Designing finite automata II

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

Lecture 08: Feb. 08, 2019

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

Fundamentals of Computer Science

Coalgebra, Lecture 15: Equations for Deterministic Automata

2. Lexical Analysis. Oscar Nierstrasz

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

Formal languages, automata, and theory of computation

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

Context-Free Grammars and Languages

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

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

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

Agenda. Agenda. Regular Expressions. Examples of Regular Expressions. Regular Expressions (crash course) Computational Linguistics 1

CS 330 Formal Methods and Models

CMSC 330: Organization of Programming Languages

NFAs continued, Closure Properties of Regular Languages

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS

CS375: Logic and Theory of Computing

On Rational Graphs. Christophe Morvan. IRISA, Campus de Beaulieu, Rennes, France

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

Automata and Languages

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

CDM Automata on Infinite Words

1 Nondeterministic Finite Automata

Tutorial Automata and formal Languages

Lexical Analysis Finite Automate

CSC 311 Theory of Computation

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

Closure Properties of Regular Languages

A tutorial on sequential functions

Finite Automata-cont d

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages

Lecture 9: LTL and Büchi Automata

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

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

Converting Regular Expressions to Discrete Finite Automata: A Tutorial

Lexical Analysis Part III

On Determinisation of History-Deterministic Automata.

CS 330 Formal Methods and Models

Software Engineering using Formal Methods

Deterministic Finite-State Automata

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

5.1 Definitions and Examples 5.2 Deterministic Pushdown Automata

BACHELOR THESIS Star height

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.

CS 330 Formal Methods and Models

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

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

Lecture 6 Regular Grammars

The Cayley-Hamilton Theorem For Finite Automata. Radu Grosu SUNY at Stony Brook

DFA Minimization and Applications

Worked out examples Finite Automata

Second Lecture: Basics of model-checking for finite and timed systems

4 Deterministic Büchi Automata

Regular languages refresher

In-depth introduction to main models, concepts of theory of computation:

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

Nondeterminism and Nodeterministic Automata

The Value 1 Problem for Probabilistic Automata

Exercises Chapter 1. Exercise 1.1. Let Σ be an alphabet. Prove wv = w + v for all strings w and v.

Transcription:

More generl fmilies of infinite grphs Antoine Meyer Forml Methods Updte 2006 IIT Guwhti

Prefix-recognizle grphs Theorem Let G e grph, the following sttements re equivlent: G is defined y reltions of the form (U V ) Id W G is the prefix rewriting grph of recognizle rewriting system (+ regulr restriction) G is the trnsition grph of pushdown utomton with ε-trnsitions G is the result of unfolding finite grph nd pplying regulr sustitution

Prefix-recognizle grphs (2) Properties Rechility reltions nd sets of rechle vertices re effectively computle The lnguges of prefix recognizle grphs re the context-free lnguges The mondic second order theory of ny prefix-recognizle grph is decidle

Extensions nd vrints More generl rewriting systems (term rewriting systems) More generl computtion models (higher-order pushdown utomt) More powerful or iterted trnsformtions More generl finitely presented inry reltions (utomtic or rtionl reltions)

Extensions nd vrints More generl rewriting systems (term rewriting systems) More generl computtion models (higher-order pushdown utomt) More powerful or iterted trnsformtions More generl finitely presented inry reltions (utomtic or rtionl reltions)

Term rewriting Term: expression over function symols nd vriles f f (g(x),f (k,y)) g f ((c(x)))) c x k y x Term rewriting system: set R of pirs of terms (l,r) Ground rewriting: l r for ll (l,r) R

Ground term rewriting grphs Definition A grph G is (recognizle) ground rewriting grph if ech of its set of edges is the ground rewriting reltion of (recognizle) ground term rewriting system R. Exmple The two-dimensionl grid Properties Rechility reltions nd sets of rechle vertices re effectively computle The first order theory with rechility of ny ground rewriting grph is decidle The lnguges of ground rewriting grphs re...?

Extensions nd vrints More generl rewriting systems (term rewriting systems) More generl computtion models (higher-order pushdown utomt) More powerful or iterted trnsformtions More generl finitely presented inry reltions (utomtic or rtionl reltions)

Definition Higher-order stck: Higher-order pushdown stcks level 1: sequence of stck symols (ordinry stck) level n: (non-empty) sequence of level n 1 stcks Exmple c Level 1 store s with on top c c c Level 2 store with s on top

Higher-order pushdown utomt Definition Higher-order (level n) pushdown utomton: pushdown utomton + higher order opertions push k : duplicte top-most level k stck pop k : destroy top-most level k stck Exmple Automton ccepting the lnguge {ww w N } Interesting strct model for higher-order recursive sequentil progrms (e.g. ML, Scheme,...)

Higher-order prefix-recognizle grphs Theorem Let G e grph, the following sttements re equivlent: G is the trnsition grph of level n pushdown utomton G is the result of pplying (unfolding + sustitution) n times to finite grph Properties Rechility reltions nd sets of rechle vertices re effectively computle The lnguges of these grphs re the IO lnguges The mondic second order theory of ny such grph is decidle

Extensions nd vrints More generl rewriting systems (term rewriting systems) More generl computtion models (higher-order pushdown utomt) More powerful or iterted trnsformtions More generl finitely presented inry reltions (utomtic or rtionl reltions)

A grph c c c c

Rtionl reltions Definition A inry reltion over words is clled rtionl if it is the set of pirs ccepted y finite trnsducer Exmple A/A B/B ε/a q 0 q 1 ccepts the reltion {(A n B m,a n+1 B m ) m,n 0}

Rtionl grphs Definition A rtionl grph is grph whose edge reltions re rtionl Properties Rechility reltions nd sets of rechle vertices re non-recursive The lnguges of rtionl grphs re the context-sensitive lnguges There exist some rtionl grphs whose first order theory is undecidle

A hierrchy of infinite utomt regulr finite context-free pushdown, prefix-recognizle... context-sensitive rtionl recursively enumerle computle

A hierrchy of infinite utomt regulr finite context-free pushdown, prefix-recognizle... context-sensitive rtionl recursively enumerle computle

Appendix: lnguges of rtionl grphs (proof)

Sufmilies of rtionl grphs Synchronized trnsducer: ll runs of the form 1 / 1 q 0... n/ n ε/ n+1... ε/ n+k qf 1 / 1 or q 0... n/ n n+1/ε... n+k /ε q f Automtic grphs: rtionl grphs defined y synchronized trnsducers Synchronous trnsducer: no ε ppering on ny trnsition Synchronous grphs: rtionl grphs defined y letter-to-letter trnsducers

Lnguges of rtionl grphs Existing proof uses the Penttonen norml form for context-sensitive grmmrs Techniclly non-trivil No link to complexity No notion of determinism Our contriutions: New syntcticl proof using tiling systems Chrcteriztion of lnguges for su-fmilies of grphs Chrcteriztion of grphs for su-fmilies of lnguges

Tiling systems Definition A frmed tiling system is finite set of 2 2 pictures (tiles) with order symol # Picture: rectngulr rry of symols Picture lnguge of : set of ll frmed pictures with only tiles in Word lnguge of : set of ll first row contents in the picture lnguge of Proposition [Ltteux&Simplot97] The lnguges of tiling systems re precisely the context-sensitive lnguges

A tiling system # # # # # # # # # # # # # # # # # # # # # # # #

A tiling system # # # # # # # # # # # # # # # # # # # # # # # #

Proof technique Proof in three steps: 1 Trce-equivlence of rtionl nd synchronous grphs 2 Simultion of synchronous grph y tiling systems 3 Simultion of tiling system y synchronous grph 1 Rtionl Synchronous Tiling system 2 1 relies on elimintion of ε in trnsducers 2 nd 3 rely on identifying sequences of vertices with pictures 3

Rtionl synchronous grph Proof ide Allow ll trnsducers sttes to idle (ε/ε loops) Mterilize ε s fresh symol # ( synchronous grph) Define I nd F s the shuffle of i nd F y #

Rtionl synchronous grph B/B B/B ε A A 2 T : q 0 ε/a q 1 B AB A 2 B T : A/A q 0 ε/a B/B q 1 B 2 AB 2 A 2 B 2

Rtionl synchronous grph ε/ε A/A ε/ε B/B T : q 0 ε/a q 1 ε/ε A/A ε/ε B/B T : q 0 ε/a q 1

Rtionl synchronous grph #/# A/A #/# B/B T : q 0 #/A q 1 #/# A/A #/# B/B T : q 0 #/B q 1

Rtionl synchronous grph T : #/# A/A q 0 #/# A/A #/A #/# B/B q 1 #/# B/B ### ##B #B# B## ##A #A# A## #AB A#B AB# #AA A#A AA# AAB AAA T : q 0 #/B q 1 #BB B#B BB# ABB BBB

Synchronous grph tiling system Proof ide Identify grph vertices nd picture columns Estlish ijection etween ccepting pths nd pictures Deduce ijection etween synchronous grphs nd tiling systems 1 n v 1 0 2 v1 n vn v 0 v 1 v n