Finite Model Theory Lecture 4

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
Some important properties Lectures of Prof. Doron Peled, Bar Ilan University.
1 First order theories (Chapter 1, Sections 1.4 – 1.5)
COMPLEXITY THEORY CSci 5403 LECTURE XVI: COUNTING PROBLEMS AND RANDOMIZED REDUCTIONS.
Techniques for Proving the Completeness of a Proof System Hongseok Yang Seoul National University Cristiano Calcagno Imperial College.
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
II. Linear Independence 1.Definition and Examples.
A Semantic Characterization of Unbounded-Nondeterministic Abstract State Machines Andreas Glausch and Wolfgang Reisig 1.
1 Finite Model Theory Lecture 10 Second Order Logic.
1 2. Constraint Databases Next level of data abstraction: Constraint level – finitely represents by constraints the logical level.
1 Finite Model Theory Lecture 13 FO k, L k 1, ,L  1, , and Pebble Games.
FSM Decomposition using Partitions on States 290N: The Unknown Component Problem Lecture 24.
מבנה המחשב + מבוא למחשבים ספרתיים תרגול 1#
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
¹ -Calculus Based on: “Model Checking”, E. Clarke and O. Grumberg (ch. 6, 7) “Symbolic Model Checking: 10^20 States and Beyond”, Burch, Clark, et al “Introduction.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 12 Number theory Mathematical induction Proof by induction Examples.
1 A Combination Method for Generating Interpolants by G. Yorsh and M. Masuvathi Presentation by: Emilia Katz.
Lattice and Boolean Algebra
Algebra Algebra – defined by the tuple:  A, o 1, …, o k ; R 1, …, R m ; c 1, …, c k  Where: A is a non-empty set o i is the function, o i : A p i  A.
Operations on Sets – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Operations on Sets Reading: Kolman, Section 1.2.
Section Section Summary Introduction to Boolean Algebra Boolean Expressions and Boolean Functions Identities of Boolean Algebra Duality The Abstract.
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Discrete Mathematics CS 2610 February 12, Agenda Previously Finished functions Began Boolean algebras And now Continue with Boolean algebras.
1 Finite Model Theory Lecture 3 Ehrenfeucht-Fraisse Games.
Boolean Algebras Lecture 27 Section 5.3 Wed, Mar 7, 2007.
2.1 Sets 2.2 Set Operations –Set Operations –Venn Diagrams –Set Identities –Union and Intersection of Indexed Collections 2.3 Functions 2.4 Sequences and.
Lecture 2 Plan: 1. Automatic Boolean Algebras 2. Automatic Linear Orders 3. Automatic Trees 4. Automatic Versions of König’s lemma 5. Intrinsic Regularity.
LDK R Logics for Data and Knowledge Representation ClassL (part 2): Reasoning with a TBox 1.
1 Finite Model Theory Lecture 1: Overview and Background.
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
Discrete Mathematics CS 2610 February 10, Agenda Previously Functions And now Finish functions Start Boolean algebras (Sec. 11.1)
1 Finite Model Theory Lecture 14 Proof of the Pebble Games Theorem.
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Deciding Combined Theories.
1 Finite Model Theory Lecture 16 L  1  Summary and 0/1 Laws.
Set Theory Concepts Set – A collection of “elements” (objects, members) denoted by upper case letters A, B, etc. elements are lower case brackets are used.
1 Finite Model Theory Lecture 5 Turing Machines and Finite Models.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
Lecture 9: Query Complexity Tuesday, January 30, 2001.
1 Finite Model Theory Lecture 9 Logics and Complexity Classes (cont’d)
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Quick Course Overview Quick review of logic and computational problems
From Classical Proof Theory to P vs. NP
Unit-III Algebraic Structures
14:332:231 DIGITAL LOGIC DESIGN Boolean Algebra
Logics for Data and Knowledge Representation
Finite Model Theory Lecture 8
Week 7 - Monday CS322.
LATTICES AND BOOLEAN ALGEBRA
Math 344 Winter 07 Group Theory Part 1: Basic definitions and Theorems
Set Operations Section 2.2.
Sets and Logic…. Chapter 3
Steven Lindell Scott Weinstein
Logics for Data and Knowledge Representation
Finite Model Theory Lecture 15
Finite Model Theory Lecture 11
Finite Model Theory Lecture 2
Finite Model Theory Lecture 6
Lecture 10: Query Complexity
MA/CSSE 474 More Math Review Theory of Computation
Recap lecture 26 Example of nonregular language, pumping lemma version I, proof, examples,
CSE 20: Lecture 8 Boolean Postulates and Theorems CK Cheng
Finite Model Theory Lecture 7
Clements MAΘ October 30th, 2014
Logics for Data and Knowledge Representation
Presentation transcript:

Finite Model Theory Lecture 4 Ordered Structures, Gaifman’s Theorem

Outline Order-invariant queries Gaifman’s theorem (time permitting) Gurevitch’s theroem Gaifman’s theorem (time permitting)

Invariant Queries Idea: Use some innocuous additional information to express a query “Forget” the extra information Need to check that the query is invariant w.r.t. to the extra info

Example Recall: EVEN(A) is not expressible in FO Let s<,+ = {<,+} Consider A 2 STRUCT[s<,+] s.t. < is interpreted as a linear order a1 < … < an (ai, aj, ak) 2 + iff i+j=k Then, we can write a sentence f that checks EVEN(A) [ HOW ?? ]

Example (cont’d) f = 9 x. 9 y.(x+x=y Æ : 9 z(y < z)) For any vocabulary s and A 2 STRUCT[s], if A’ is any structure over the same universe and vocabulary s<,+ then (A, A’) ² f iff EVEN(A)

C-Invariance Let s, s’ be two disjoint vocabularies, and C a class of s’-structures (C µ STRUCT[s’]) Definition A sentence f over s [ s’ is called C-invariant if for any A 2 STRUCT[s] and A’, A’’ 2 C, s.t. A=A’=A” (i.e. same universes) (A,A’) ² f iff (A,A’’) ² f Notation f 2 (FO+C)inv

C-Invariance (cont’d) We have seen that EVEN 2 (FO + (<,+))inv Main question for today: Is (FO + <)inv more powerful than FO ?

Order-Invariant FO Theorem (Gurevich) There are properties in (FO + <)inv that are not in FO. FO & (FO + <)inv

The Proof Idea: recall that we can express EVEN in MSO(<). Let S(x,y) = :(9 z.x<z Æ z<y) Æ x < y We can’t say 9 P in FO. Instead, we will use a vocabulary s that allows to assert the existence of all 2n sets P. 9 P.( 8 x.y.(S(x,y) ) (P(x)Æ: P(y) Ç : P(x)ÆP(y)) Æ P(min) Æ : P(max)) EVEN=

The Proof 3 Steps Design s, fB s.t. A ² fB iff A is an atomic boolean algebra, A = (2X, µ) Let EVENB = (EVEN(|X|) Æ fB Show that EVENB 2 (FO + <)inv Prove (using EF-games) that EVENB Ï FO

Boolean Algebras Background: two alternative definitions Definition 1. A boolean algebra is A = (A, µ) s.t.: µ is a partial order 8 x, y 2 A 9 inf(x,y); will denote it x Å y 8 x,y 2 A 9 sup(x,y); will denote it x [ y There are minimal, maximal elements: ?, > 2 A 8 x, there exists x 2 A s.t. x Å x = ?, x [ x = >.

Boolean Algebras (con’t) Definition 2. A BA is an algebra (A,[, Å, ?, >, ) s.t. [, Å = commutative, associative, idempotent, distributive x Å ? = ?, x [ ? = x, x Å > = x, x [ > = > x Å x = ?, x [ x = >

Boolean Algebra’s (cont’d) Proposition. The two definitions are equivalent Proof: From µ to Å, [: define x Å y = inf(x,y), x [ y = sup(x,y) From Å, [ to µ: define x µ y to mean x Å y = x

Boolean Algebras (cont’d) Define: atom(x) = (x ¹ ?) Æ 8 y. (y µ x ) y=? Ç y = x) Proposition. Let A be finite. Let X = {x | x 2 A, atom(x)}. Then (A,µ) is isomorphic to (2X, µ) [why ?]

Step 1 Define fB to consists of the axioms of a boolean algebra (using Definition 1)

Step 2 Show that EVENB 2 (FO + <)inv Recall: 9 P.( 8 x.y.(S(x,y) ) (P(x)Æ: P(y) Ç : P(x)ÆP(y)) Æ P(min) Æ : P(max)) EVEN = 9 p.( 8 x.y.(atom(x) Æ atom(y) Æ S(x,y) ) (x µ p Æ: (y µ p) Ç : (x µ p) Æ y µ p) Æ minatom µ p Æ : (maxatom µ p) EVENB =

Step 3 Now we prove that EVENB Ï FO Proposition. Let |X|, |Y| ¸ 2k. Then: (2X, µ) k (2Y, µ) We prove it using two lemmas.

Step 3 Lemma. Assume (2X, µ) k (2Y, µ). Then the duplicator has a winning strategy where he responds to ; with ;, to Y with X, to X with Y. [Why ?] Lemma. Assume X1 Å X2 = ;, Y1 Å Y2 = ; and that (2X1, µ) k (2Y1, µ), (2X2, µ) k (2Y2, µ). Then: (2X1 [ X2, X1, X2, µ) k (2Y1 [ Y2, Y1, Y2, µ) [How do prove the proposition ?]

Summary Having < seems to add lots of extra power Will see this later, for fixpoint logics In FO(<) it is even more surprising The extra structure (boolean algebra) seems quite artificial. Can we get rid of it ? Open problem: does < add extra power over strings ?

Gaifman’s Theorem Let A 2 STRUCT[s] Recall the r-ball (also called r-sphere): Br(x) = {y | d(x,y) · r} Br(x) can be expressed in FO (obviously)

Gaifman’s Theorem Definition A formula f(x) is r-local if all its quantifiers are bounded to Br(x): 9 z.y  9 z. (z 2 Br(x)) Æ y 8 z.y  8 z.(z 2 Br(x)) ) y) We write f(r) to emphasize that f is r-local.

Gaifman’s Theorem Theorem [Gaifman] Let s be relational. Then every FO sentence over s is equivalent to a Boolean combination of sentences of the form: 9 x1 … 9 xs(Æi=1,sa(r)(xi)) Æ (Æ1 · i < j · s d>2r(xi, xj))