1 Finite Model Theory Lecture 1: Overview and Background.

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.
Possible World Semantics for Modal Logic
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Formal Semantics of Programming Languages 虞慧群 Topic 5: Axiomatic Semantics.
 Dr. Vered Gafni 1 LTL Decidability Enables consistency check, but also base for verification.
Induction and recursion
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Artificial Intelligence Modal Logic
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
CS 454 Theory of Computation Sonoma State University, Fall 2011 Instructor: B. (Ravi) Ravikumar Office: 116 I Darwin Hall Original slides by Vahid and.
2005certain1 Views as Incomplete Databases – Certain & Possible Answers  Views – an incomplete representation  Certain and possible answers  Complexity.
Ofer Strichman, Technion Deciding Combined Theories.
1 First order theories. 2 Satisfiability The classic SAT problem: given a propositional formula , is  satisfiable ? Example:  Let x 1,x 2 be propositional.
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.
C OURSE : D ISCRETE STRUCTURE CODE : ICS 252 Lecturer: Shamiel Hashim 1 lecturer:Shamiel Hashim second semester Prepared by: amani Omer.
Lecture 9. Arithmetic and geometric series and mathematical induction
Induction and recursion
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
Discrete Mathematics, Part II CSE 2353 Fall 2007 Margaret H. Dunham Department of Computer Science and Engineering Southern Methodist University Some slides.
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
Pattern-directed inference systems
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Great Theoretical Ideas in Computer Science about AWESOME Some Generating Functions Probability Infinity MATH Some Formal Logic (which is really.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
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.
Course Overview and Road Map Computability and Logic.
Great Theoretical Ideas in Computer Science.
1 Finite Model Theory Lecture 3 Ehrenfeucht-Fraisse Games.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
Great Theoretical Ideas in Computer Science.
CS6133 Software Specification and Verification
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
Lecture 7: Foundations of Query Languages Tuesday, January 23, 2001.
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.
1 CSE544 Monday April 26, Announcements Project Milestone –Due today Next paper: On the Unusual Effectiveness of Logic in Computer Science –Need.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
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.
Daniel Kroening and Ofer Strichman Decision Procedures An Algorithmic Point of View Deciding Combined Theories.
CS104:Discrete Structures Chapter 2: Proof Techniques.
1 Finite Model Theory Lecture 16 L  1  Summary and 0/1 Laws.
CompSci 102 Discrete Math for Computer Science March 13, 2012 Prof. Rodger Slides modified from Rosen.
Thales’ Legacy: What Is A Proof? Great Theoretical Ideas In Computer Science Steven RudichCS Spring 2004 Lecture 27April 22, 2004Carnegie Mellon.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 4 Decidability Some slides are in courtesy.
1 Finite Model Theory Lecture 5 Turing Machines and Finite Models.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
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 9: Query Complexity Tuesday, January 30, 2001.
Chapter 5 1. Chapter Summary  Mathematical Induction  Strong Induction  Recursive Definitions  Structural Induction  Recursive Algorithms.
Proof And Strategies Chapter 2. Lecturer: Amani Mahajoub Omer Department of Computer Science and Software Engineering Discrete Structures Definition Discrete.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
From Classical Proof Theory to P vs. NP
Discrete Mathematics for Computer Science
Induction and recursion
Great Theoretical Ideas in Computer Science
Lecture 2 Propositional Logic
Induction and recursion
Finite Model Theory Lecture 2
A Brief Summary for Exam 1
Finite Model Theory Lecture 6
Thales’ and Gödel’s Legacy: Proofs and Their Limitations
Lecture 10: Query Complexity
MA/CSSE 474 More Math Review Theory of Computation
Great Theoretical Ideas in Computer Science
Search techniques.
Properties of Relational Logic
Properties of Relational Logic
Presentation transcript:

1 Finite Model Theory Lecture 1: Overview and Background

2 Motivation Applications: –DB, PL, KR, complexity theory, verification Results in FMT often claimed to be known –Sometimes people confuse them Hard to learn independently –Yet intellectually beautiful In this course we will learn FMT together

3 Organization Powerpoint lectures in class Some proofs on the whiteboard No exams Most likely no homeworks –But problems to “think about” Come to class, participate

4 Resources Books Leonid Libkin, Elements of Finite Model Theory main text H.D. Ebbinghaus, J. Flum, Finite Model Theory Herbert Enderton A mathematical Introduction to Logic Barwise et al. Model Theory (reference model theory book; won't really use it)

5 Today’s Outline Background in Model Theory A taste of what’s different in FMT

6 Classical Model Theory Universal algebra + Logic = Model Theory Note: the following slides are not representative of the rest of the course

7 First Order Logic = FO t ::= c | x  ::= R(t, …, t) | t=t |  Æ  |  Ç  | :  | 9 x.  | 8 x.  t ::= c | x  ::= R(t, …, t) | t=t |  Æ  |  Ç  | :  | 9 x.  | 8 x.  Vocabulary:  = {R 1, …, R n, c 1, …, c m } Variables: x 1, x 2, … In the future: Second Order Logic = SO Add:  ::= 9 R.  | 8 R.  This is SYNTAX

8 Model or  -Structure A = STRUCT[  ] = all  -structures

9 Interpretation Given: –a  -structure A –A formula  with free variables x 1, …, x n –N constants a 1, …, a n 2 A Define A ²  (a 1, …, a n ) –Inductively on 

10 Classical Results Godel’s completeness theorem Compactness theorem Lowenheim-Skolem theorem [Godel’s incompleteness theorem] We discuss these in some detail next

11 Satisfiability/Validity  is satisfiable if there exists a structure A s.t. A ²   is valid if for all structures A, A ²  Note:  is valid iff :  is not satisfiable

12 Logical Inference Let  be a set of formulas There exists a set of inference rules that define  `  [white board…] Proposition Checking  `  is recursively enumerable. Note: ` is a syntactic operation

13 Logical Inference We write  ²  if: 8 A, if A ²  then A ²  Note: ² is a semantic operation

14 Godel’s Completeness Result Theorem (soundness) If  `  then  ²  Theorem (completeness) If  ²  then  `  Which one is easy / hard ? It follows that  ²  is r.e. Note: we always assume that  is r.e.

15 Godel’s Completness Result  is inconsistent if  ` false Otherwise it is called consistent  has a model if there exists A s.t. A ²  Theorem (Godel’s extended theorem)  is consistent iff it has a model This formulation is equivalent to the previous one [why ? Note: when proving it we need certain properties of ` ]

16 Compactness Theorem Theorem If for any finite  0 µ ,  0 is satisfiable, then  is satisfiable Proof: [in class]

17 Completeness v.s. Compactness We can prove the compactness theorem directly, but it will be hard. The completeness theorem follows from the compactness theorem [in class] Both are about constructing a certain model, which almost always is infinite

18 Application Suppose  has “arbitrarily large finite models” –This means that 8 n, there exists a finite model A with |A| ¸ n s.t. A ²  Then show that  has an infinite model A [in class]

19 Lowenheim-Skolem Theorem Theorem If  has a model, then  has an enumerable model Upwards-downwards theorem: Theorem [Lowenheim-Skolem-Tarski] Let be an infinite cardinal. If  has a model then it has a model of cardinality

20 Decidability CN(  ) = {  |  ²  } A theory T is a set s.t. CN(T) = T  is complete if 8  either  ²  or  ² :  If T is finitely axiomatizable and complete then it is decidable. Los-Vaught test: if T has no finite models and is -categorical then T is complete

21 Some Great Theories Dense linear orders with no endpoints [in class] (N, 0, S) [in class] (N, 0, S, +) Pressburger Arithmetic (N, +, £ ) : Godel’s incompleteness theorem

22 Summary of Classical Results Completeness, Compactness, LS

23 A Taste of FMT Example 1 Let  = {R}; a  -structure A is a graph CONN is the property that the graph is connected Theorem CONN is not expressible in FO

24 A taste of FMT Proof Suppose CONN is expressed by , i.e. G ²  iff G is connected Let  ’=  [ {s,t}  k = : 9 x 1, …, x k R(s,x 1 ) Æ … Æ R(x k,t) The set  = {  } [ {  1,  2, …} is satisfiable (by compactness) Let G be a model: G ²  but there is no path from s to t, contradiction THIS PROOF IS INSSUFFICIENT OF US. WHY ?

25 A taste of FMT Example 2 EVEN is the property that |A| = even Theorem If  = ; then EVEN is not in FO Proof [in class] But what do we do if   ; ?