Finite Model Theory Lecture 15

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

2005conjunctive-ii1 Query languages II: equivalence & containment (Motivation: rewriting queries using views)  conjunctive queries – CQ’s  Extensions.
Lecture 24 MAS 714 Hartmut Klauck
Assertion Checking Unified Sumit Gulwani Microsoft Research, Redmond Ashish Tiwari SRI.
1 Finite Model Theory Lecture 10 Second Order Logic.
Automated Theorem Proving Lecture 4.   Formula := A |  |    A  Atom := b | t = 0 | t < 0 | t  0 t  Term := c | x | t + t | t – t | ct | Select(m,t)
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(
Monadic Predicate Logic is Decidable Boolos et al, Computability and Logic (textbook, 4 th Ed.)
October 1, 2009Theory of Computation Lecture 8: Primitive Recursive Functions IV 1 Primitive Recursive Predicates Theorem 6.1: Let C be a PRC class. If.
Definition: Let M be a deterministic Turing Machine that halts on all inputs. Space Complexity of M is the function f:N  N, where f(n) is the maximum.
Math 3121 Abstract Algebra I Lecture 3 Sections 2-4: Binary Operations, Definition of Group.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
Chapter 9 Theory of Differential and Integral Calculus Section 1 Differentiability of a Function Definition. Let y = f(x) be a function. The derivative.
Computably Enumerable Semigroups, Algebras, and Groups Bakhadyr Khoussainov The University of Auckland New Zealand Research is partially supported by Marsden.
1 Finite Model Theory Lecture 3 Ehrenfeucht-Fraisse Games.
Cardinality with Applications to Computability Lecture 33 Section 7.5 Wed, Apr 12, 2006.
1 Finite Model Theory Lecture 1: Overview and Background.
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 16 L  1  Summary and 0/1 Laws.
1 Finite Model Theory Lecture 12 Regular Expressions, FO k.
September1999 CMSC 203 / 0201 Fall 2002 Exam #1 Review – 27 September 2002 Prof. Marie desJardins.
1 Finite Model Theory Lecture 5 Turing Machines and Finite Models.
Methods of Proof Lecture 4: Sep 20 (chapter 3 of the book, except 3.5 and 3.8)
Lecture 9: Query Complexity Tuesday, January 30, 2001.
Predicate Calculus CS 270 Math Foundations of Computer Science Jeremy Johnson Presentation uses material from Huth and Ryan, Logic in Computer Science:
1 Finite Model Theory Lecture 9 Logics and Complexity Classes (cont’d)
Complexity 27-1 Complexity Andrei Bulatov Interactive Proofs (continued)
Math 1304 Calculus I 2.8 – The Derivative. Definition of Derivative Definition: The derivative of a function f at a number a, denoted by f’(a) is given.
1 Week 11 Numerical methods for ODEs 1.The basics: finite differences, meshes 2.The Euler method.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Cardinality with Applications to Computability
4.2 The Mean Value Theorem.
Chapter 7. Propositional and Predicate Logic
3. The Logic of Quantified Statements Summary
Another Word on PRC Classes
From Classical Proof Theory to P vs. NP
Lesson 2.3 Pre-AP Geometry
Chapter 5 Limits and Continuity.
Context-Free Languages & Grammars (CFLs & CFGs)
Finite Model Theory Lecture 8
2.4 Sequences and Summations
Pole Placement and Decoupling by State Feedback
Theory of Computation Lecture 22: Turing Machines III
General Expectation So far we have considered expected values separately for discrete and continuous random variables only. This separation is somewhat.
Decidability of logical theories
Alternating tree Automata and Parity games
Recap lecture 29 Example of prefixes of a language, Theorem: pref(Q in R) is regular, proof, example, Decidablity, deciding whether two languages are equivalent.
Finite Model Theory Lecture 11
General Solution – Homogeneous and Non-Homogeneous Equations
Finite Model Theory Lecture 2
Finite Model Theory Lecture 6
Lecture 10: Query Complexity
Intro to Theory of Computation
Finite Model Theory Lecture 4
Computer Science cpsc322, Lecture 20
Decidability of logical theories
Chapter 5 Limits and Continuity.
CPSC 121: Models of Computation
Lecture Notes for SWE 623 by Duminda Wijesekera
Primitive Recursive Predicates
Intermediate Value Theorem
CSC312 Automata Theory Kleene’s Theorem Lecture # 12
Kleene’s Theorem (Part-3)
Theory of Computation Lecture 6: Primitive Recursive Functions I
Theory of Computation Lecture 23: Turing Machines III
LECTURE 2-9 PSPACE-Complete
Herbrand Logic Semantics
Presentation transcript:

Finite Model Theory Lecture 15 FOk Types

Computing Types Recall: tpFOk(A, a) = the set of all FOk formulas that are true at (A, a) First question: given a, b 2 Am, do they have the same type ? Notation: a ¼FOk b

Intuition about ¼FOk Let k be larger then all m’s below (e.g. k=10) Which implies what ? (a,b,c) ¼ (a’,b’,c’) (a,c) ¼ (a’,c’) (a,b) ¼ (a’,b’) (a,a,b) ¼ (a’,a’,b’) Conclusion: if m · k, we may take m = k

Computing Types Theorem There exists an IFP formula f(x, y) s.t. 8 a, b 2 Ak, a ¼ b iff A ² f(a, b) Proof Will compute the negation, a À b as an IFP formula (should be not ¼)

Proof Let a1(x), …, as(x) be all quantifier free types with k variables (i.e. in FOk[0]) y0(x, y) = Çi ¹ j (ai(x) Æ aj(y)) y(R, x, y) = y0(x,y) Ç ((Çi=1,k 9 xi 8 yi R(x, y)) Æ (Çi=1,k 9 yi 8 xi R(x, y))

Proof What does IFP(y)(x, y) say ? The n’th unfolding says that the spoiler can win the pebble game after at most n moves, if starting at x, y The IFP says that the spoiler wins if starting at x, y

Ordering the Types An order on the FOk types of A is a total preorder a ¹ b s.t. a ¼ b iff a ¹ b and b ¹ a There are many possible orders of types… Theorem There exists an IFP formula f(x, y) that computes an order on types Proof [ in class ]

The Canonical Structure Given A 2 STRUCT[s] and a formula f in some logic with iteration, we can compute f in two steps: First, compute a “canonical” structure Ck(A) = A/¼k over s’ s’ = <, U, U1, …, Up, S1, …, Sk, P1, …, Pt Where: < is order on types, Ui(a1, …, ak) iff Ri(a1, …, am) (for m · k); the others will be explained Second, compute some modified formula f0 on Ck(A)

Canonical Structure Let’s construct f0, and discover what we need in s’ f: xi = xj f0: 9 y.(Pp(x,y) Æ U(y)) where p(1) = i, p(2) = j f: R(xi1, …, xim) f0: 9 y.(Pp(x,y) Æ Ui(y)) : f : f0 f1 Æ f2 f10 Æ f20 9 xi f 9 y.(Si(x,y) Æ f0(y))

Abiteboul&Vianu’s Theorem Theorem PTIME=PSPACE ) IFP = PFP Proof. Supposes PTIME = PSPACE. Consider a PFP formula f. It can be expressed in two stages: first compute a canonical structure, using IFP, then compute f0 (still a PFP) on the canonical structure. The latter is PSPACE problem, hence in PTIME, and, since it is ordered, f0 can be expressed as IFP.

The Paper Extends this theorem to other forms of iterations and other complexity classes

Computing Types Slightly harder question: Given (A, a), derive a formula f(x) s.t. forall (B, b): B ² f(b) iff tpFOk(B,b) = tpFOk(A,a) Theorem f can be expressed in FOk Proof in the book

Structure of Lk1 w Corollary Every formula in Lk1w is equivalent to: Çi 2 N fi where f0, f1, … 2 FOk Comments on loose Generic Machines in class