1 Finite Model Theory Lecture 16 L  1  Summary and 0/1 Laws.

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

Some important properties Lectures of Prof. Doron Peled, Bar Ilan University.
Propositional Predicate
The Logic of Quantified Statements
2005conjunctive-ii1 Query languages II: equivalence & containment (Motivation: rewriting queries using views)  conjunctive queries – CQ’s  Extensions.
Lecture 11: Datalog Tuesday, February 6, Outline Datalog syntax Examples Semantics: –Minimal model –Least fixpoint –They are equivalent Naive evaluation.
CPSC 504: Data Management Discussion on Chandra&Merlin 1977 Laks V.S. Lakshmanan Dept. of CS UBC.
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.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Everything You Need to Know (since the midterm). Diagnosis Abductive diagnosis: a minimal set of (positive and negative) assumptions that entails the.
Efficient Query Evaluation on Probabilistic Databases
. Hidden Markov Model Lecture #6. 2 Reminder: Finite State Markov Chain An integer time stochastic process, consisting of a domain D of m states {1,…,m}
Complexity 11-1 Complexity Andrei Bulatov Space Complexity.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
Random Graphs and The Parity Quantifier Phokion G. Kolaitis Swastik Kopparty UC Santa Cruz MIT & & IBM Research-Almaden Institute for Advanced Study.
1 Finite Model Theory Lecture 10 Second Order Logic.
. Hidden Markov Model Lecture #6 Background Readings: Chapters 3.1, 3.2 in the text book, Biological Sequence Analysis, Durbin et al., 2001.
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.
CMSC 250 Discrete Structures Number Theory. 20 June 2007Number Theory2 Exactly one car in the plant has color H( a ) := “ a has color”  x  Cars –H(
So far we have learned about:
From Chapter 4 Formal Specification using Z David Lightfoot
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
Computability and Complexity 10-1 Computability and Complexity Andrei Bulatov Gödel’s Incompleteness Theorem.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 12 Number theory Mathematical induction Proof by induction Examples.
Monadic Predicate Logic is Decidable Boolos et al, Computability and Logic (textbook, 4 th Ed.)
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
Predicates and Quantifiers
Abstract State Machines and Computationally Complete Query Languages Andreas Blass,U Michigan Yuri Gurevich,Microsoft Research & U Michigan Jan Van den.
Deciding a Combination of Theories - Decision Procedure - Changki pswlab Combination of Theories Daniel Kroening, Ofer Strichman Presented by Changki.
Plan Lecture 3: 1. Fraisse Limits and Their Automaticity: a. Random Graphs. a. Random Graphs. b. Universal Partial Order. b. Universal Partial Order. 2.
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
Institute for Experimental Physics University of Vienna Institute for Quantum Optics and Quantum Information Austrian Academy of Sciences Undecidability.
CS151 Complexity Theory Lecture 13 May 11, Outline proof systems interactive proofs and their power Arthur-Merlin games.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
CSE 636 Data Integration Conjunctive Queries Containment Mappings / Canonical Databases Slides by Jeffrey D. Ullman Fall 2006.
1 Finite Model Theory Lecture 3 Ehrenfeucht-Fraisse Games.
Naïve Set Theory. Basic Definitions Naïve set theory is the non-axiomatic treatment of set theory. In the axiomatic treatment, which we will only allude.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
Lecture 7: Foundations of Query Languages Tuesday, January 23, 2001.
1 Finite Model Theory Lecture 1: Overview and Background.
1 CSE544 Monday April 26, Announcements Project Milestone –Due today Next paper: On the Unusual Effectiveness of Logic in Computer Science –Need.
1 Finite Model Theory Lecture 14 Proof of the Pebble Games Theorem.
1 CSE 326: Data Structures: Graphs Lecture 24: Friday, March 7 th, 2003.
1 Finite Model Theory Lecture 12 Regular Expressions, FO k.
1 Finite Model Theory Lecture 5 Turing Machines and Finite Models.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
2.5 The Fundamental Theorem of Game Theory For any 2-person zero-sum game there exists a pair (x*,y*) in S  T such that min {x*V. j : j=1,...,n} =
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Theory of Computational Complexity Probability and Computing Ryosuke Sasanuma Iwama and Ito lab M1.
Extensions of Datalog Wednesday, February 13, 2001.
Lecture 9: Query Complexity Tuesday, January 30, 2001.
1 Finite Model Theory Lecture 9 Logics and Complexity Classes (cont’d)
3. The Logic of Quantified Statements Summary
Finite Model Theory Lecture 8
Alternating tree Automata and Parity games
Finite Model Theory Lecture 15
Finite Model Theory Lecture 19
Finite Model Theory Lecture 2
Lecture 10: Query Complexity
MA/CSSE 474 More Math Review Theory of Computation
Finite Model Theory Lecture 4
Switching Lemmas and Proof Complexity
CSE544 Wednesday, March 29, 2006.
Presentation transcript:

1 Finite Model Theory Lecture 16 L  1  Summary and 0/1 Laws

2 Outline Summary on L  1  –All you need to know in 5 slides ! Start 0/1 Laws: Fagin’s theorem –Will continue next time Infinitary Logics and 0-1 Laws, Kolaitis&Vardi, 1992 New paper:

3 Summary on L  1  Notation Comes from in classical logic L  = formulas where: –Conjunctions/disjunctions of ordinal <  Ç i 2   i, Æ  2 , where  <  –Quantifier chains of ordinal <  9 i 2  x i. , where  <  Hence, L 1  = [  L 

4 Summary on L  1  Motivation Any algorithmic computation that applies FO formulas is expressible in L  1  Relational machines While-programs with statements R :=  Fixpoint logics: LFP, IFP, PFP, etc, etc Consequence: cannot express EVEN, HAMILTONEAN

5 Summary on L  1  Canonical Structure Any algorithmic computation on A can be decomposed Compute the ¼ k equivalence relation on k-tuples, and order the equivalence classes ) in LFP [how do we choose k ???] Then compute on ordered structure ) any complexity Consequence: PTIME=PSPACE iff IFP=PFP But note that DTC  TC yet L  ? NL [ why ?]

6 Summary on L  1  Pebble Games: with k pebbles Notation: A  1  k B if duplicator wins Theorem 1. For any two structures A, B: A, B are L k 1  equivalent iff A  1  k B Theorem 2. If A, B are finite: A, B are FO k equivalent iff A, B are L k 1  equivalent iff A  1  k B

7 Summary on L  1  Definability of FO k types FO k types are the same as L k 1  types [ why ?] Theorem [Dawar, Lindell, Weinstein] The type of A (or of (A, a)) can be expressed by some  2 FO k B ²  [b] iff Tp k (A,a) = Tp k (B,b) Difficult result: was unknown to Kolaitis&Vardi

8 0/1 Laws in Logic Motivation: random graphs 0/1 law for FO proven by Glebskii et al., then rediscovered by Fagin (and with nicer proof) –Only for constant probability distribution Later extended to other logics, and other probability distributions Why we care: applications in degrees of belief, probabilistic databases, etc.

9 Definitions Let  = a vocabulary Let n ¸ 0, and A n µ STRUCT[  ] be all models over domain {0, 1, …, n-1} Uniform probability distribution on A n Given sentence , denote  n (  ) its probability

10 Definition Denote  (  ) = lim n ! 1  n (  ) if it exists Definition A logic L has a convergence law if for every sentence ,  (  ) exists Definition A logic L has a 0/1 law if for every sentence ,  (  ) exists and is 0 or 1

11 Theorems Suppose  has no constants Theorem [Fagin 76, Glebskii et al. 69] FO admits a 0/1 law Theorem [Kolaitis and Vardi 92] L  1  admits a 0/1 law

12 Application What does this tell us for database query processing ? Don’t bother evaluating a query: it’s either true or false, with high probability

13 Examples [ in class ] Compute  n (  ), then  (  ): R(0,1) /* I’m using constants here */ R(0,1) Æ R(0,3) Æ : R(1,3) 9 x.R(2,x) : ( 9 x. 9 y.R(x,y)) 8 x. 8 y.( 9 z.R(x,z) Æ R(z,y))

14 Types We only need rank-0 types (i.e. no quantifiers) Recall the definition Definition A type t(x) over variables (x 1, …, x m ) is conjunction of a maximally consistent set of atomic formulas over x 1, …, x m

15 Types The type t(x) says: For each i, j whether x i = x j or x i  x j For each R and each x i 1, …, x i p whether R(x i 1, …, x i p ) or : R(x i 1, …, x i p )

16 Extension Axioms Definition Type s(x, z) extends the type t(x) if {s, t} is consistent; Equivalently: every conjunct in t occurs in s Definition The extension axiom for types t, s is the formula  t,s = 8 x 1 … 8 x k (t(x) ) 9 z.s(x, z))

17 Example of Extension Axiom t(x 1, x 2, x 3 ) = x 1  x 2 Æ x 2  x 3 Æ x 1  x 3 Æ R(x 1,x 2 ) Æ R(x 2,x 3 ) Æ R(x 2,x 2 ) Æ : R(x 1, x 1 ) Æ : R(x 2, x 1 ) Æ … x1x1 x2x2 x3x3 s(x 1, x 2, x 3, z) = t(x 1, x 2, x 3 ) Æ z  x 1 Æ z  x 2 Æ z  x 3 Æ R(z,x 1 ) Æ R(x 3,z) Æ R(z,z) Æ : R(x 1, z) Æ : (z, x 2 ) Æ … z

18 Example of Extension Axiom 8 x 1. 8 x 2. 8 x 3. (t(x 1, x 2, x 3 ) ) 9 z. s(x 1, x 2, x 3, z))  t,s =

19 The Theory T Let T be the set of all extension axioms –Studied by Gaifman Is T consistent ? –In a model of T the duplicator always wins [ why ? ] Does it have finite models ? Does it have infinite models ?

20 The Theory T Let  k be the conjunction of all extension axioms for types with up to k variables There exists a finite model for  k [why ?] Hence any finite subset of T has a model Hence T has a model. [can it be finite ?]

21 The Model(s) of T T has no finite models, hence it must have some infinite model By Lowenheim-Skolem, it has a countable model

22 The Theory T Theorem T is  -categorical Proof: let A, B be two countable model. Idea: use a back-and-forth argument to find an isomorphism f : A ! B

23 The Theory T Theorem T is  -categorical Proof: (cont’d) A = {a 1, a 2, a 3, ….} B = {b 1, b 2, b 3, ….} Build partial isomorphisms f 1 µ f 2 µ f 3 µ … such that: 8 n. 9 m. a n 2 dom(f m ) and 8 n. 9 m. b n 2 rng(f m ) [in class] Then f = ( [ m ¸ 1 f m ) : A ! B is an isomorphism

24 The Theory T Corollary T has a unique countable model R R = the Rado graph = the “random” graph Corollary The theory Th(T) is complete

25 0/1 Law for FO Lemma For every extension axiom ,  (  ) = lim n  n (  ) = 1 Proof: later Corollary For any m extension axioms  1, …,  m :  (  1 Æ … Æ  m ) = 1 Proof  n ( : (  1 Æ … Æ  m )) =  n ( :  1 Ç … Ç :  m ) ·  n ( :  1 ) + … +  n ( :  m ) ! 0

26 Fagin’s 0/1 Law for FO Theorem For every  2 FO, either  (  ) = 0 or  (  ) = 1. Proof. Case 1: R ² . Then there exists m extension axioms s.t.  1, …,  m ² . Then  n (  ) ¸  n (  1 Æ … Æ  m ) ! 1 Case 2: R 2 . Then R ² : , hence  ( :  ) = 1, and  (  ) = 0

27 Proof for the Extension Axioms Let  = 8 x. t(x) ) 9 z.s(x, z) Assume wlog that t asserts x i  x j forall i  j. Denote  (x) the formula Æ i < j x i  x j –Hence t(x) =  (x) Æ t’(x) Similarly, s asserts z  x i forall i. Denote  (x, z) = Æ i x i  z –Hence s(x, z) = t(x) Æ  (x, z) Æ s’(x, z) where all atomic predicates in s’(x, z) contain z Hence:  = 8 x.(  (x) Æ t’(x) ) 9 z.  (x,z) Æ s’(x, z))

28 Proof for the Extension Axioms :  = 9 x.(  (x) Æ t’(x) Æ 8 z.(  (x, z) ) : s’(x, z)))  n ( :  ) ·  n ( 9 x.(  (x) Æ 8 z.(  (x, z) ) : s’(x, z))))

29 Proof for the Extension Axioms  n ( :  ) ·  n ( 9 x.(  (x) Æ 8 z.(  (x, z) ) : s’(x, z)))) ·  a 1,..., a k 2 {1, …, n}  n ( 8 z. (  (x, z) ) : s’(a 1, …, a k, z))) = n(n-1)…(n-k+1)  n ( 8 z.  (x, z) ) : s’(1, 2, …, k, z)) · n k  n ( 8 z.  (x, z) ) : s’(1, 2, …, k, z)) = = n k  z=k+1, n : s’(1,2,…,k,z) /* by independence !! */ = n k ( / 2 2k+1 ) n-k /* since s’ is about 2k+1 edges */ ! 0 when n ! 1

30 Complexity Theorem [Grandjean] The problem whether  (  ) = 0 or 1 is PSPACE complete

31 Discussion Old way to think about formulas and models: finite satsfiability/ validity FO  unsatisfiable  valid Undecidable

32 Discussion New way to think about formulas and models: probability FO  unsatisfiable  valid PSPACE  )=0  )=1