Second Order Monadic Theory of One Successor Presented By: Tamar Aizikowitz Spring 2007 Automata Seminar.

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

B ϋ CHIS MONADIC SECOND ORDER LOGIC Verification Seminar V.Sowjanya Lakshmi ( Subhasree M.
Summary Showing regular Showing non-regular construct DFA, NFA
3.2 Pumping Lemma for Regular Languages Given a language L, how do we know whether it is regular or not? If we can construct an FA to accept the language.
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
1 Introduction to Computability Theory Lecture3: Regular Expressions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture4: Regular Expressions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture3: Regular Expressions Prof. Amos Israeli.
Introduction to Computability Theory
Büchi Tree Automata Based on “Weakly definable relations and special automata” By Michael Rabin.
Courtesy Costas Busch - RPI1 Non Deterministic Automata.
1 Finite Model Theory Lecture 10 Second Order Logic.
Transparency No. 4-1 Formal Language and Automata Theory Chapter 4 Patterns, Regular Expressions and Finite Automata (include lecture 7,8,9) Transparency.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong Nondeterminism.
Normal forms for Context-Free Grammars
Computability and Complexity 10-1 Computability and Complexity Andrei Bulatov Gödel’s Incompleteness Theorem.
Transparency No. ?-0 Formal Language and Automata Theory Chapter 6 Homomorphisms (lecture 10) Transparency No. 6-1.
Monadic Predicate Logic is Decidable Boolos et al, Computability and Logic (textbook, 4 th Ed.)
Theory of Computing Lecture 22 MAS 714 Hartmut Klauck.
Fall 2004COMP 3351 Another NFA Example. Fall 2004COMP 3352 Language accepted (redundant state)
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
Non-Deterministic Space is Closed Under Complementation Neil Immerman Richard Szelepcsenyi Presented By: Subhajit Dasgupta.
Basics of automata theory
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
Automatic Structures Bakhadyr Khoussainov Computer Science Department The University of Auckland, New Zealand.
Theory of Computation, Feodor F. Dragan, Kent State University 1 Regular expressions: definition An algebraic equivalent to finite automata. We can build.
Theory of Computing Lecture 17 MAS 714 Hartmut Klauck.
Regular Expressions and Languages A regular expression is a notation to represent languages, i.e. a set of strings, where the set is either finite or contains.
Kleene’s Theorem Group No. 3 Presented To Mam Amina Presented By Roll No Roll No Roll No Roll No Group No. 3 Presented To Mam.
CHAPTER 1 Regular Languages
1 Design and Analysis of Algorithms Yoram Moses Lecture 11 June 3, 2010
Chapter 4 Pumping Lemma Properties of Regular Languages Decidable questions on Regular Languages.
Theory of Computation, Feodor F. Dragan, Kent State University 1 TheoryofComputation Spring, 2015 (Feodor F. Dragan) Department of Computer Science Kent.
Pumping with Al and Izzy Richard Beigel CIS Temple University.
NP-completeness Section 7.4 Giorgi Japaridze Theory of Computability.
CSCI 2670 Introduction to Theory of Computing September 13.
CS 203: Introduction to Formal Languages and Automata
Foundations of (Theoretical) Computer Science Chapter 2 Lecture Notes (Section 2.2: Pushdown Automata) Prof. Karen Daniels, Fall 2010 with acknowledgement.
An Introduction to Rabin Automata Presented By: Tamar Aizikowitz Spring 2007 Automata Seminar.
Grammars A grammar is a 4-tuple G = (V, T, P, S) where 1)V is a set of nonterminal symbols (also called variables or syntactic categories) 2)T is a finite.
The decidability of Presburger Arithmetic By Guillermo Guillen 04/13/05 Dr. Smith COT 6421 FIU Spring 2005.
Transparency No. 4-1 Formal Language and Automata Theory Chapter 4 Patterns, Regular Expressions and Finite Automata (include lecture 7,8,9) Transparency.
Church’s Problem and a Tour through Automata Theory Wolfgang Thomas Pillars of Computer Science. Springer Berlin Heidelberg, 2008.
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
1 Finite Model Theory Lecture 5 Turing Machines and Finite Models.
Complexity and Computability Theory I Lecture #5 Rina Zviel-Girshin Leah Epstein Winter
What do we know? DFA = NFA =  -NFA We have seen algorithms to transform DFA to NFA (trival) NFA to  NFA (trivial) NFA to DFA (subset construction)
Dept. of Computer Science & IT, FUUAST Automata Theory 2 Automata Theory III Properties of Regular Languages 1.Closure 2.Union 3.Concatenation 4.Complement(Negation)
Lecture #5 Advanced Computation Theory Finite Automata.
Complexity 27-1 Complexity Andrei Bulatov Interactive Proofs (continued)
Regular Expression (EXTRA)
CIS Automata and Formal Languages – Pei Wang
Non Deterministic Automata
CSE 105 theory of computation
CSE 105 theory of computation
Introduction to Automata Theory
REGULAR LANGUAGES AND REGULAR GRAMMARS
ICS 353: Design and Analysis of Algorithms
CS 154, Lecture 3: DFANFA, Regular Expressions.
Alternating tree Automata and Parity games
Theory of Computability
Theory of Computability
FORMAL LANGUAGES, AUTOMATA, AND COMPUTABILITY
Chapter 34: NP-Completeness
CSE 105 theory of computation
CSE 105 theory of computation
Instructor: Aaron Roth
CSE 105 theory of computation
CSE 105 theory of computation
CSE 105 theory of computation
Presentation transcript:

Second Order Monadic Theory of One Successor Presented By: Tamar Aizikowitz Spring 2007 Automata Seminar

2 Second Order Monadic Logic Variables: Variables over natural numbers: x, y, z… Variables over sets (functions  → {0,1} ): σ, τ, δ… Constant: The natural number 0 Successor function: S(x) = x + 1 Binary Predicates: σ(x) = 0 σ(x) = 1

3 Examples of MSO Formulae σ is a subset of τ : F(σ,τ) =  x (σ(x) → τ(x)) σ is singleton: F(σ) =  x (σ(x)   y (σ(y) → x=y)) x < y: F(x,y) =  (x=y)   σ [σ(y)   z  z’ (σ(z)  S(z’)=z → σ(z’)) → σ(x)]

4 Theorem 1 Let F(σ 1,…,σ n ) be an MSO formula, then the following infinitry language over the alphabet {0,1} n is ω -regular: L(F) = {σ 1 (0)  σ n (0)  σ 1 (k)  σ n (k)  | F(σ 1,…,σ n )} Proof: (1) Prove that F can be transformed to normal form (2) Prove that a Büchi automata can be built s.t. it accepts L(F), for all normal form F.

5 Part 1 – Normal Form (1) Lemma 1: Every formula F(σ 1,…,σ n,x 1,…,x m ) is equivalent to an MSO formula of the form Q 1  Q i Q i+1  Q j G where: (1) G is a formula with no quantifiers (2) Q 1  Q i are function quantifiers (3) Q i+1  Q j are numerical quantifiers

6 Part 1 – Normal Form (2) Proof of Lemma 1: Assume F is in prennix normal form Q 1  Q k F’ where F’ contains no quantifiers. Q i is out-of-order if it is a number quantifier with a function quantifier after it. Let Q i be the rightmost out-of-order quantifier. The weight of Q i is the number of function quantifiers that appear after it. We prove the claim by induction on the number of out-of-order quantifiers and the weight of the rightmost one.

7 Part 1 – Normal Form (3) Proof of Lemma 1 continued… Assume x quantifier is rightmost out-of-order:  x  σ Q 1  Q k H   σ  x Q 1  Q k H  x  σ Q 1  Q k H   σ  x Q 1  Q k H  x  σ Q 1  Q k H   δ  σ Q 1  Q k  x  y(δ(x)=1  (δ(y)=1→ H))  x  σ Q 1  Q k H   δ  σ Q 1  Q k  x  y(δ(x)=0  (δ(y)=1  H))

8 Part 1 – Normal Form (4) Simple structure:  x  i=1,…,k  j=0,…,n σ i (x+j) = ε ij ; ε ij = 0,1 i.e.  x (σ 1 (x) = ε 10    σ 1 (x+n) = ε 1n   ) Lemma 2: Every formula has an equivalent of the form Q 1  Q k G where Q i are function quantifiers and G is a prepositional combination of simple structures and atomic formulae.

9 Part 2 – Büchi Automata (1) Lemma 3: A is atomic  L(A) is ω -regular. Proof of Lemma 3: A is of the form σ(x) = 0/1 “Count” until x Verify that the value is 0/1 accordingly Go to (non-)accepting sink state Lemma 4: B is a basic structure  L(B) is ω -regular. Proof of Lemma 4: Skip x-1 letters from {1,0} k (“guess x ” non-deterministically) Verify next n+1 letters match ε ij values Go to (non-)accepting sink state

10 Part 2 – Büchi Automata (2) Proof of Theorem 1: Assume F(σ 1,…,σ n ) is in normal form (i.e. Q 1  Q k G ). We prove by induction on the number of Boolean connectives in G that L(G) is ω -regular: Base: G is an atomic formula or a basic structure  the claim follows from Lemmas 3 and 4. Closure: L(G 1  G 2 ) = L(G 1 )  L(G 2 ) L(G 1  G 2 ) = L(G 1 )  L(G 2 ) L(  G) = L(G) C  the claim follows from the closure properties of ω -regular languages.

11 Part 2 – Büchi Automata (3) Proof of Theorem 1 continued… Now we prove the claim for F by induction on the number of quantifiers Q i : Base:no quantifiers  already proven Closure: L(  σ i H(σ 1,…,σ m )) is the language h(L(H)) where h: {0,1} m →({0,1} m-1 ) * is a homomorphism s.t. h(ε 1  ε i-1 ε i ε i+1  ε m ) = ε 1  ε i-1 ε i+1  ε m L(  σH) = L(  σ  H) C

12 Decidability of MSO Corollary 1: An algorithm exists which determines for a given closed formula F whether F is valid. Proof of Corollary 1: Assume F is of the form Qσ G(σ). Therefore: If Q =  then F is valid iff L(G)   If Q =  then F is valid iff L(G) = {0,1} ω, which is equivalent to L(G) C =  The claim follows from the fact that emptiness is decidable for Büchi Automata.