Lecture 13: Soundness, Completeness and Compactness

Similar documents
Propositional and Predicate Logic - IV

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

Lecture 4: Proposition, Connectives and Truth Tables

Deductive Systems. Lecture - 3

Discrete Mathematics

Discrete Mathematics (VI) Yijia Chen Fudan University

Discrete Mathematics

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms


Handout: Proof of the completeness theorem

1 Completeness Theorem for Classical Predicate

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method

Introduction to Metalogic

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Herbrand Theorem, Equality, and Compactness

Incomplete version for students of easllc2012 only. 6.6 The Model Existence Game 99

17.1 Correctness of First-Order Tableaux

CS 486: Applied Logic Lecture 7, February 11, Compactness. 7.1 Compactness why?

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

Handout Proof Methods in Computer Science

Introduction to Logic in Computer Science: Autumn 2006

First-Order Logic (FOL)

Logic for Computer Scientists

SKETCHY NOTES FOR WEEKS 7 AND 8

Classical Propositional Logic

CS 514, Mathematics for Computer Science Mid-semester Exam, Autumn 2017 Department of Computer Science and Engineering IIT Guwahati

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

Introduction to Logic and Axiomatic Set Theory

Logic for Computer Scientists

Completeness for FOL

Syntax Semantics Tableau Completeness Free Logic The Adequacy of First-Order Logic. Predicate Logic. Daniel Bonevac.

Propositional and Predicate Logic - V

Lecture 10: Predicate Logic and Its Language

Logic: Propositional Logic Truth Tables

Lecture 1: Overview. January 24, 2018

1 Completeness Theorem for First Order Logic

The predicate calculus is complete

Mathematics 114L Spring 2018 D.A. Martin. Mathematical Logic

6c Lecture 14: May 14, 2014

Predicate Calculus - Semantic Tableau (2/2) Moonzoo Kim CS Division of EECS Dept. KAIST

A1 Logic (25 points) Using resolution or another proof technique of your stated choice, establish each of the following.

Overview of Today s Lecture

cis32-ai lecture # 18 mon-3-apr-2006

3 Propositional Logic

Propositional Logic. CS 3234: Logic and Formal Systems. Martin Henz and Aquinas Hobor. August 26, Generated on Tuesday 31 August, 2010, 16:54

First Order Logic: Syntax and Semantics

PHIL12A Section answers, 28 Feb 2011

CITS2211 Discrete Structures Proofs

On some Metatheorems about FOL

KE/Tableaux. What is it for?

Resolution for mixed Post logic

AAA615: Formal Methods. Lecture 2 First-Order Logic

Final Exam (100 points)

Discrete Mathematics

CS156: The Calculus of Computation Zohar Manna Winter 2010

8. Reductio ad absurdum

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

CS156: The Calculus of Computation

2 Truth Tables, Equivalences and the Contrapositive

First-Order Logic. Chapter Overview Syntax

Characterizing First Order Logic

02 Propositional Logic

GÖDEL S COMPLETENESS AND INCOMPLETENESS THEOREMS. Contents 1. Introduction Gödel s Completeness Theorem

Logic Michælmas 2003

Logic for Computer Scientists

Basics of Model Theory

Propositional Calculus - Semantics (3/3) Moonzoo Kim CS Dept. KAIST

Propositional Logic: Models and Proofs

Predicate Logic: Sematics Part 1

Informal Statement Calculus

CS411 Notes 3 Induction and Recursion

Overview of Today s Lecture

PRESERVATION THEOREMS IN LUKASIEWICZ MODEL THEORY

TR : Tableaux for the Logic of Proofs

CS 730/730W/830: Intro AI

Lecture 3: Semantics of Propositional Logic

First-Degree Entailment

.. Discrete Mathematics. Yi Li. June 9, Software School Fudan University. Yi Li (Fudan University) Discrete Mathematics June 9, / 15

Incomplete version for students of easllc2012 only. 94 First-Order Logic. Incomplete version for students of easllc2012 only. 6.5 The Semantic Game 93

Between proof theory and model theory Three traditions in logic: Syntactic (formal deduction)

Semantics and Pragmatics of NLP

Mathematical Logic. Introduction to Reasoning and Automated Reasoning. Hilbert-style Propositional Reasoning. Chiara Ghidini. FBK-IRST, Trento, Italy

Discrete Mathematics

Overview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang

Logic (3A) Young W. Lim 10/29/13

Mathematical Logic Propositional Logic - Tableaux*

First Order Logic (1A) Young W. Lim 11/18/13

Introduction to Model Theory

Models of Computation,

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January )

CONTENTS. Appendix C: Gothic Alphabet 109

Propositional Logic: Deductive Proof & Natural Deduction Part 1

The semantics of propositional logic

8. Reductio ad absurdum

Proof Techniques (Review of Math 271)

185.A09 Advanced Mathematical Logic

Advanced Topics in LP and FP

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

Topics in Logic and Proofs

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

Transcription:

Discrete Mathematics (II) Spring 2017 Lecture 13: Soundness, Completeness and Compactness Lecturer: Yi Li 1 Overview In this lecture, we will prvoe the soundness and completeness of tableau proof system, as we did for proposition logic proof system. These two theorems are the fundamental theorems of the first order logic. You can think it as two generals Hen and Ha, who are always posted on the door traditionally. We hope that they can protect our home. The proof of the theorems is the same as the one used in proposition logic but the technique is special on how to handle quantifiers. We can also use this technique to construct a model, a structure, which can satisfy all the sentences. Furthermore, we discuss the model size, actually the cardinality of universe in structure. Then we proved Skolem-Löwenheim theorem and compactness theorem. Finally, we can establish a connection between size of model and compactness theorem by introducing infinite new sentences. Actually, it is just an application of compactness theorem. 2 Soundness theorem Once you are told about something. You may say it sounds reasonable. It means that you may think the fact you know may be true. How about the proof system. It s the role of soundness theorem, which guarantees the validity of our proof. Gong Sunlong, a famous Chinese old philosopher, once made a very ridiculous argument that a white horse is not a horse. Will you agree with his view? If you can not be persuaded by him, can you find the flaw in his proof? In the point of view of Philosophy, Gong s argument just reflects the relation between the essence and the specifics. However, we does not care about the view of philosophy here. His proof is our focus. As we know, we may know how to write a program and we have written so many correct programs. But we may still make mistakes and write wrong program. Sometimes, you may even doubt the compiler is wrong. And actually, compiler sometimes really generate wrong binary but your program is correct. Similarly, we may make wrong proof. And furthermore, would you doubt the validity of our proof itself? Soundness is the very theorem to eliminate our doubts. Basically, a proof is just a procedure. Especially, it is a very mechanical approach to prove that a sentence is a consequence of a set by using tableau proof. We just reduce and generate the nodes according to the rules: atomic tableaux and reduce rules. 1

In predicate language, we introduce predicate, quantifier, function, constant, and variable to enhance the expressing power. In order to accommodate the changes, several new tableaux are introduced. The soundness of the proof system looks broken because of these new ones. So we need to reprove the soundness of the new tableau proof system. However the proof of soundness theorem is very similar to the one in propositional logic. We need only pay attention to the case of quantifiers. Here, we mean how to establish the connection between syntax and semantics of tableaux related with quantifiers. Especially, the interpretations associated with all-style quantifier are very difficult to understand. Because we want to use information as little as possible to check all cases. Lemma 1. If τ = τ n is a tableau from a set of sentences S with root F α, then any L-structure A that is a model of S { α} can be extended to one agreeing with every entry on some path P through τ.( Recall that A agrees with T α(f α) if α is true(false) in A.) Theorem 2 (Soundness). If there is a tableau proof τ of α from S, then S = α. 3 Completeness theorem 3.1 Proof In our life, sometimes you know something is definitely right. But you may find it is hard to persuade others for you cannot give a reasonable argument. Is there any problem which is right but we can not give a proof? The answer is positive. Completeness theorem guarantees that there must exist a proof if it is right in first order logic. If you cannot prove it, it just means that you are unlucky and you need do better and harder work. Theorem 3. Suppose P is a noncontradictory path through a complete systematic tableau τ from S with root F α. There is then a structure A in which α is false and every sentence in S is true. 1. If F β occurs on P, then β is false in A. 2. If T β occurs on P, then β is true in A. Corollary 4. For every sentence α and set of sentences S of L, either or 1. the CST from S with root F α is a tableau proof of α from S. 2. there is a noncontradictory branch through the complete systematic tableau that yields a structure in that α is false and every element of S is true. 3.2 Model construction Actually, the proof show us a way to construct a real model to show that a sentence is true or false, while the model is still abstract because we may not find a real example. 2

Example 1. Is the sentence ( y( R(y, y) P (y, y)) xr(x, x)) invalid? Solution. If a sentence φ is invalid, then φ must be valid. So we can have the tableau proof in figure 1. T ( y( R(y, y) P (y, y)) xr(x, x)) T y( R(y, y) P (y, y)) T ( R(c 0, c 0 ) P (c 0, c 0 )), new constant c 0 T R(c 0, c 0 ) T R(c 0, c 0 ) T P (c 0, c 0 ) F R(c 0, c 0 ) T R(t 1, t 1 ) T R(t 2, t 2 ). Figure 1: An example of tableau proof The tableau is not contradictory. So the sentence is not invalid. We can construct a model along the non-contradictory path. Let domain A = {c 0, t 1, t 2 }, R = {(c 0, c 0 ), (t 1, t 1 ), (t 2, t 2 )}, P = {(c 0, c 0 )}. This is a model of the sentence. Here, we should be careful about the termination of a tableau proof. In practice, we always reduce -style first if possible and try to leads contradiction by reducing -style. The detail argument of when the proof is terminable. Please refer to the phrase in our text book on the page 115 below Figure 33. 4 Size of model Given a language L, we can construct a model A(structure) which interprets constants, functions, and predicates. As we have shown that L could have infinite constants, which means L is infinite and A is also infinite. 3

Definition 5 (size of a model). The size of a model is the cadinality of the universe A in the structre A. Example 2. Let A =< {c 0, c 1,..., c n }, {P = {< c 0, c 0 >}, R = {< c 0, c 0 >, < c 1, c 1 >,..., < c n, c n >} >. It is easy to check it is a model of α = ( y)( R(y, y) P (y, y)) ( x)r(x, x). Here, we give a finite model. You can also construct a infinite model. Example 3. Suppose we have a language L =< {P, }, {f(x, y)}, {c, d} >. Given two sentences ( x)p (c, x) and ( x)(p (x, c) P (x, d)). Remark. We know that the structure A =< N, {P = }, {f(x, y)}, {c = 0, d = 2} > is a infinite model of them. You can also find a finite model. 4.1 Skolem-Löwenheim theorem In previous case, we have only finite sentence. We are curious about the case that there are maybe infinite sentences. We have the following theorem. Theorem 6. If a countable set of sentences S is satisfiable, then it has a countable model. In the proof of completeness theorem, we construct the model by collecting all constants introduced by -style node. As any sentence α could be taken as a sequence of symbols. It is obvious that a sentence could only contributes finite possible new constants. Proof. Consider the tableau proof with the root F (α α). The tree is not finite otherwise S is unsatisfiable. It means there is a non-contradictory path. We can construct a model along that path. There are at most countable new constants. 5 Compactness theorem Theorem 7 (Completeness and Soundness). 1. α is a tableau provable from S α is a logical consequence of S. 2. If we take α to be any contradiction such as β β in 1, we see that S is inconsistent if and only if S is unsatisfiable. Theorem 8. Let S = {α 1, α 2,...} be a set of sentences of predicate logic. S is satisfiable if and only if every finite subset of S is satisfiable. 4

Proof. Consider the tableau proof with the root F (α α). The tree should not be finite otherwise it is contradictory, which means α α could be proved from S and hence S is unsatisfiable. However, if we have a tableau proof, it means that the tree only has finite path. We can follow the methods used in the proof of completeness theorem to construct a model which can only satisfy a set of sentences with a fixed number. It contradicts to our premises that every finite subset of S is satisfiable. Theorem 9. Let L be a first-order language. Any set S of sentences of L that is satisfiable in arbitrarily large finite models is satisfiable in some infinite model. Suppose S is satisfiable in arbitrary large finite models. Let R be a two-ary relation symbol that is not part of the language L, and enlarge L to L by adding R. We can modify the interpretation of R without affecting the truth values of members of S, since R does not occur in members of S. So we can write a sentence σ n that asserts there are at least n different elements. After we construct a new structure, which can satisfy all sentences. Now we can get rid of newly introduced sentences and predicates. It can be implied that this model can satisfy S. Proof. We can introduce a new predicates = and a set of new constants {c 1, c 2,..., c i,...}. Now we construct a set of sentences Σ = {σ i, i 2}, where i 1 σ i = ( x)( k=1 (x = c k ) 1 i<j i 1 which means there are at least i elements in the domain. (c i = c j )), Now consider the set of sentence S Σ. If we can prove that its any finite subset of sentence is satisfiable we can prove that itself is satisfiable by applying Compactness Theorem. It is obvious that the size of model is infinite. Now we just eliminate all newly introduced constants, predicate, and sentences. We get a infinite model which also satisfies S. Given any finite subset of S Σ, Σ implies there is a finite model. Premises guarantee that S also has a model with the same number of elements. We just prove that any finite subset of S Σ is satisfiable. 6 Conclusion In the proof, we use induction methods. Top-down approach is adopted for soundness theorem. For the base step, the root node satisfies. Given a noncontradictory path, we can prove the augmented path also satisfies if it satisfy. While bottom-up method is used in the proof of completeness theorem. Where we consider the simplest symbols first like constant and ground terms. Then we consider the atomic predicates and sentences with quantifiers and connectives. Finally, we introduce the model theory of first order logic. Compactness Theorem and an application of it are given. 5

Exercises Caution: In the question 4 and 5, we do not just consider a very special model. For the sentence or sentences you are given, you should consider all possible models, which means all possible interpretation of your predicates and functions. 1. 6/P126 2. 9/P126 3. 10/P126 4. 2/P125 5. 3/P125 6. 4/P125 6