1 Finite Model Theory Lecture 10 Second Order Logic.

Slides:



Advertisements
Similar presentations
Automated Theorem Proving Lecture 1. Program verification is undecidable! Given program P and specification S, does P satisfy S?
Advertisements

Completeness and Expressiveness
CSE 311 Foundations of Computing I
Theory Of Automata By Dr. MM Alam
CPSC 121: Models of Computation Unit 6 Rewriting Predicate Logic Statements Based on slides by Patrice Belleville and Steve Wolfman.
Complexity Theory Lecture 3 Lecturer: Moni Naor. Recap Last week: Non deterministic communication complexity Probabilistic communication complexity Their.
Adjunct Elimination in Context Logic for Trees Cristiano Calcagno Thomas Dinsdale-Young Philippa Gardner Imperial College, London.
Global Flow Optimization (GFO) in Automatic Logic Design “ TCAD91 ” by C. Leonard Berman & Louise H. Trevillyan CAD Group Meeting Prepared by Ray Cheung.
Introduction to Computability Theory
1 Introduction to Computability Theory Lecture2: Non Deterministic Finite Automata Prof. Amos Israeli.
Foundations of (Theoretical) Computer Science Chapter 1 Lecture Notes (more on Section 1.4) David Martin This work is licensed under.
R. Bar-Yehuda © 1 קומבינטוריקה למדעי - המחשב – הרצאה #17 Chapter 2: TREES מבוסס על הספר : S. Even, "Graph Algorithms",
Transparency No. 4-1 Formal Language and Automata Theory Chapter 4 Patterns, Regular Expressions and Finite Automata (include lecture 7,8,9) Transparency.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
1 Finite Model Theory Lecture 13 FO k, L k 1, ,L  1, , and Pebble Games.
CS5371 Theory of Computation Lecture 5: Automata Theory III (Non-regular Language, Pumping Lemma, Regular Expression)
1 Single Final State for NFAs and DFAs. 2 Observation Any Finite Automaton (NFA or DFA) can be converted to an equivalent NFA with a single final state.
EXPANDER GRAPHS Properties & Applications. Things to cover ! Definitions Properties Combinatorial, Spectral properties Constructions “Explicit” constructions.
1 Regular Grammars Generate Regular Languages. 2 Theorem Regular grammars generate exactly the class of regular languages: If is a regular grammar then.
CSE 421 Algorithms Richard Anderson Lecture 4. What does it mean for an algorithm to be efficient?
CS5371 Theory of Computation Lecture 1: Mathematics Review I (Basic Terminology)
Theory of Computing Lecture 22 MAS 714 Hartmut Klauck.
03/01/2005Tucker, Sec Applied Combinatorics, 4th Ed. Alan Tucker Section 3.1 Properties of Trees Prepared by Joshua Schoenly and Kathleen McNamara.
1 A Single Final State for Finite Accepters. 2 Observation Any Finite Accepter (NFA or DFA) can be converted to an equivalent NFA with a single final.
CS2420: Lecture 36 Vladimir Kulyukin Computer Science Department Utah State University.
Second Order Monadic Theory of One Successor Presented By: Tamar Aizikowitz Spring 2007 Automata Seminar.
Induction and recursion
10.4 How to Find a Perfect Matching We have a condition for the existence of a perfect matching in a graph that is necessary and sufficient. Does this.
Languages of nested trees Swarat Chaudhuri University of Pennsylvania (with Rajeev Alur and P. Madhusudan)
Lecture 05: Theory of Automata:08 Kleene’s Theorem and NFA.
Circuit Lower Bounds via Ehrenfeucht- Fraïssé Games Michal Koucký Joint work with: Clemens Lautemann, Sebastian Poloczek, Denis Thérien.
Introduction to Planarity Test W. L. Hsu. 2/21 Plane Graph A plane graph is a graph drawn in the plane in such a way that no two edges intersect –Except.
1 Finite Model Theory Lecture 3 Ehrenfeucht-Fraisse Games.
Pumping with Al and Izzy Richard Beigel CIS Temple University.
1 Finite Model Theory Lecture 1: Overview and Background.
Supercompilation and Normalisation by Evaluation Gavin Mendel-Gleason & Geoff Hamilton Dublin City University.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 25.
1 Finite Model Theory Lecture 14 Proof of the Pebble Games Theorem.
Mathematical Induction Section 5.1. Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If.
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
Transparency No. 4-1 Formal Language and Automata Theory Chapter 4 Patterns, Regular Expressions and Finite Automata (include lecture 7,8,9) Transparency.
1 Finite Model Theory Lecture 16 L  1  Summary and 0/1 Laws.
CS Lecture 26 Monochrome Despite Himself. Pigeonhole Principle: If we put n+1 pigeons into n holes, some hole must receive at least 2 pigeons.
Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1 Chapter 0 Introduction Some slides are in courtesy of Prof.
Church’s Problem and a Tour through Automata Theory Wolfgang Thomas Pillars of Computer Science. Springer Berlin Heidelberg, 2008.
1 Finite Model Theory Lecture 5 Turing Machines and Finite Models.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
Chapter 5 With Question/Answer Animations 1. Chapter Summary Mathematical Induction - Sec 5.1 Strong Induction and Well-Ordering - Sec 5.2 Lecture 18.
Lecture 09: Theory of Automata:2014 Asif NawazUIIT, PMAS-Arid Agriclture University Rawalpindi. Kleene’s Theorem and NFA.
Lecture 9: Query Complexity Tuesday, January 30, 2001.
Lecture 06: Theory of Automata:08 Finite Automata with Output.
1 Finite Model Theory Lecture 9 Logics and Complexity Classes (cont’d)
1 Proofs by Counterexample & Contradiction There are several ways to prove a theorem:  Counterexample: By providing an example of in which the theorem.
Costas Busch - LSU 1 More NP-complete Problems. Costas Busch - LSU 2 Theorem: If: Language is NP-complete Language is in NP is polynomial time reducible.
Kleene’s Theorem and NFA
Finite Model Theory Lecture 8
More NP-complete Problems
CSE 421: Introduction to Algorithms
More NP-complete Problems
Finite Model Theory Lecture 15
Finite Model Theory Lecture 11
Finite Model Theory Lecture 2
Finite Model Theory Lecture 6
Finite Model Theory Lecture 4
CSE 311 Foundations of Computing I
Existence of 3-factors in Star-free Graphs with High Connectivity
Finite Model Theory Lecture 7
Richard Anderson Lecture 5 Graph Theory
CSE544 Wednesday, March 29, 2006.
Presentation transcript:

1 Finite Model Theory Lecture 10 Second Order Logic

2 Outline Chapter 7 in the textbook: SO, MSO, 9 SO, 9 MSO Games for SO Reachability Buchi’s theorem

3 Second Order Logic Add second order quantifiers: 9 X.  or 8 X.  All 2nd order quantifiers can be done before the 1st order quantifiers [ why ?] Hence: Q 1 X 1. … Q m X m. Q 1 x 1 … Q n x n. , where  is quantifier free

4 Fragments MSO = X 1, … X m are all unary relations 9 SO = Q 1, …, Q m are all existential quantifiers 9 MSO = [ what is that ? ] 9 MSO is also called monadic NP

5 Games for MSO The MSO game is the following. Spoiler may choose between point move and set move: Point move Spoiler chooses a structure A or B and places a pebble on one of them. Duplicator has to reply in the other structure. Set move Spoiler chooses a structure A or B and a subset of that structure. Duplicator has to reply in the other structure.

6 Games for MSO Theorem The duplicator has a winning strategy for k moves if A and B are indistinguishable in MSO[k] [ What is MSO[k] ? ] Both statement and proof are almost identical to the first order case.

7 EVEN  MSO Proposition EVEN is not expressible in MSO Proof: Will show that if  = ; and |A|, |B| ¸ 2 k then duplicator has a winning strategy in k moves. We only need to show how the duplicator replies to set moves by the spoiler [why ?]

8 EVEN  MSO So let spoiler choose U µ A. –|U| · 2 k-1. Pick any V µ B s.t. |V| = |U| –|A-U| · 2 k-1. Pick any V µ B s.t. |V| = |U| –|U| > 2 k-1 and |A-U| > 2 k-1. We pick a V s.t. |V| > 2 k-1 and |A-V| > 2 k-1. By induction duplicator has two winning strategies: –on U, V –on A-U, A-V Combine the strategy to get a winning strategy on A, B. [ how ? ]

9 EVEN 2 MSO + < Why ?

10 MSO Games Very hard to prove winning strategies for duplicator I don’t know of any other application of bare-bones MSO games !

11 9 MSO Two problems: Connectivity: given a graph G, is it fully connected ? Reachability: given a graph G and two constants s, t, is there a path from s to t ? Both are expressible in 8 MSO [ how ??? ] But are they expressible in 9 MSO ?

12 9 MSO Reachability: Try this:  = 9 X.  Where  says: – s, t 2 X –Every x 2 X has one incoming edge (except t) –Every x 2 X has one outgoing edge (except s)

13 9 MSO For an undirected graph G: s, t are connected, G ²  Hence Undirected-Reachability 2 9 MSO

14 9 MSO For an undirected graph G: s, t are connected, G ²  But this fails for directed graphs: Which direction fails ? s t

15 9 MSO Theorem Reachability on directed graphs is not expressible in 9 MSO What if G is a DAG ? What if G has degree · k ?

16 Games for 9 MSO The l,k-Fagin game on two structures A, B : Spoiler selects l subsets U 1, …, U l of A Duplicator replies with L subsets V 1, …, V l of B Then they play an Ehrenfeucht-Fraisse game on ( A, U 1, …, U l ) and ( B, V l, …, V l )

17 Games for 9 MSO Theorem If duplicator has a winning strategy for the l,k-Fagin game, then A, B are indistinguishable in MSO[l, k] MSO[l,k] = has l second order 9 quantifiers, followed by  2 FO[k] Problem: the game is still hard to play

18 Games for 9 MSO The l, k – Ajtai-Fagin game on a property P Duplicator selects A 2 P Spoiler selects U 1, …, U l µ A Duplicator selects B  P, then selects V 1, …, V l µ B Next they play EF on (A, U 1, …, U l ) and (B, V 1, …, V l )

19 Games for 9 MSO Theorem If spoiler has winning strategy, then P cannot be expressed by a formula in MSO[l, k] Application: prove that reachability is not in 9 MSO [ in class ? ]

20 MSO and Regular Languages Let  = {a, b} and  = (<, P a, P b ) Then  * ' STRUCT[  ] What can we express in FO over strings ? What can we express in MSO over strings ?

21 MSO on Strings Theorem [Buchi] On strings: MSO = regular languages. Proof [in class; next time ?] Corollary. On strings: MSO = 9 MSO = 8 MSO

22 MSO and TrCl Theorem On strings, MSO = TrCl 1 However, TrCl 2 can express a n.b n [ how ? ] Question: what is the relationship between these languages: MSO on arbitrary graphs and TrCl 1 MSO on arbitrary graphs and TrCl