The predicate calculus is complete

Similar documents
Introduction to Metalogic

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

AAA615: Formal Methods. Lecture 2 First-Order Logic

INF3170 / INF4171 Notes on Resolution

1 Completeness Theorem for Classical Predicate

Completeness in the Monadic Predicate Calculus. We have a system of eight rules of proof. Let's list them:

Introduction to Logic in Computer Science: Autumn 2006

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION


1 Introduction to Predicate Resolution

Gödel s Completeness Theorem

Overview of Logic and Computation: Notes

Predicate Calculus - Syntax

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

Natural Deduction for Propositional Logic

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Herbrand Theorem, Equality, and Compactness

First-Order Logic (FOL)

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates

Gödel s Incompleteness Theorems

Logic as a Tool Chapter 4: Deductive Reasoning in First-Order Logic 4.4 Prenex normal form. Skolemization. Clausal form.

First Order Logic: Syntax and Semantics

Informal Statement Calculus

KE/Tableaux. What is it for?

Section 1.1 Propositions

Predicate Calculus. Formal Methods in Verification of Computer Systems Jeremy Johnson

Exercises 1 - Solutions

Recall that the expression x > 3 is not a proposition. Why?

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Lecture 13: Soundness, Completeness and Compactness

Deductive Systems. Lecture - 3

Meta-logic derivation rules

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

Math 10850, fall 2017, University of Notre Dame

3 The Semantics of the Propositional Calculus

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

Predicate Logic: Sematics Part 1

A Little Deductive Logic

02 Propositional Logic

Warm-Up Problem. Is the following true or false? 1/35

Topics in Logic and Proofs

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

TR : Possible World Semantics for First Order LP

MATH 1090 Problem Set #3 Solutions March York University

Mathematical Preliminaries. Sipser pages 1-28

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

TRUTH-THEORIES FOR FRAGMENTS OF PA

Handout: Proof of the completeness theorem

A Little Deductive Logic

A generalization of modal definability

Predicate Calculus. CS 270 Math Foundations of Computer Science Jeremy Johnson

Prefixed Tableaus and Nested Sequents

(p == train arrives late) (q == there are taxis) (r == If p and not q, then r. Not r. p. Therefore, q. Propositional Logic

Introduction to Metalogic

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

First-Order Logic. Chapter Overview Syntax

Basic Logic and Proof Techniques

Logic. Readings: Coppock and Champollion textbook draft, Ch

Single-Predicate Derivations

CS156: The Calculus of Computation Zohar Manna Winter 2010

Chapter 11: Automated Proof Systems

Semantics and Pragmatics of NLP

Craig Interpolation Theorem for L!1! (or L!! )

17.1 Correctness of First-Order Tableaux

Propositions and Proofs

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

List of errors in and suggested modifications for First-Order Modal Logic Melvin Fitting and Richard L. Mendelsohn August 11, 2013

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

First order Logic ( Predicate Logic) and Methods of Proof

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Semantic Metatheory of SL: Mathematical Induction

The Arithmetical Hierarchy

Normal Forms for First-Order Logic

TR : Binding Modalities

Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism

Clausal Presentation of Theories in Deduction Modulo

Resolution for mixed Post logic

FOUNDATIONS OF MATHEMATICS CHAPTER 1: FOUNDATIONS OF GEOMETRY

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

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

Supplementary exercises in propositional logic

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

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

Introduction to Metalogic 1

Propositional and Predicate Logic - IV

Propositional Logic Language

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Notes on Quantum Logic

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

A Note on Bootstrapping Intuitionistic Bounded Arithmetic

Introducing Proof 1. hsn.uk.net. Contents

1 Completeness Theorem for First Order Logic

Unary negation: T F F T

Quantifiers. P. Danziger

Discrete Mathematics. Instructor: Sourav Chakraborty. Lecture 4: Propositional Logic and Predicate Lo

Propositional logic. Programming and Modal Logic

INTRODUCTION TO LOGIC

The Logical Contingency of Identity Hanoch Ben-Yami

Transcription:

The predicate calculus is complete Hans Halvorson The first thing we need to do is to precisify the inference rules UI and EE. To this end, we will use A(c) to denote a sentence containing the name c, and we will use va(v) to denote the sentence that results from replacing all occurrences of c in A(c) with v and then putting the quantifier v on the front. (We also require that the variable v did not already occur in A(c).) We use a similar convention for va(v). Universal Introduction (UI) Γ A(c) Γ va(v) Provided that c does not occur in Γ. Existential Elimination (EE) Γ va(v), A(c) B Γ, B Provided that c does not occur in Γ, or B. One would like to know that these rules are sound, i.e., they take good proofs to good proofs. Let s show soundness for UI: Suppose that Γ A(c) is good, i.e. Γ = A(c). Now let M be an interpretation that makes all sentences in Γ true. We claim that M makes va(v) true. Indeed, for any element a in the domain of M, we could modify the interpretation M by assigning the name c to the object a. Call this modified interpretation M. Then M still satisfies Γ since the name c doesn t occur in any of the sentences in Γ. Since Γ = A(c), the sentence A(c) is true in M ; that is, a Ext M (A(v)). Since c doesn t occur in A(v), Ext M (A(v)) = Ext M (A(v)). Therefore, a Ext M (A(v)). Since a was an arbitrary element of the domain of M, va(v) is true in M. Since M was an arbitrary interpretation satisfying Γ, it follows that Γ = va(v). Exercise. Show that the rule EE is sound. Version 0.2, revised May 3, 2012. Please send suggestions and corrections to: hhalvors@princeton.edu 1

The second thing we need to do is to precisify the notion of a sentence of predicate logic. Suppose that we have a fixed family R of predicate symbols, and a fixed family C of constant symbols. Then we define the set Σ of sentences inductively as follows: 1. Base case: If R is an n-ary relation symbol from R, and c 1,..., c n are constant symbols from C, then Rc 1,..., c n is a sentence. 2. Inductive cases (,,, ) If A and B are sentences, then so are A B, A B, A B, and A. 3. Inductive case (, ) If A(c) is a sentence that contains a constant symbol c, and if v does not occur in A(c), then va(v) and va(v) are sentences. OK, now we are ready to start the proof of the completeness theorem. Theorem (Completeness of the Predicate Calculus). Let A 1,..., A n, B be arbitrary predicate logic sentences. If A 1,..., A n = B then A 1,..., A n B. First, as in the case of propositional logic, it would suffice to prove the following main lemma: Main Lemma. Let A be a predicate logic sentence. If A P P, then A is consistent, i.e. there is an interpretation that makes A true. How then should we prove this Main Lemma? In propositional logic, we first showed that the sentence A is provably equivalent to a sentence A d in disjunctive normal form; then we proved the Main Lemma for sentences in disjunctive normal form. For predicate logic, not every sentence is equivalent to one in disjunctive normal form; but there is another nice, manageable form called prenex normal form. Definition. We say that a sentence is in prenex normal form just in case all of its quantifiers occur outside of the scope of its truth-functional connectives. (If such a sentence has any quantifiers, then they occur up front, and have scope to the end of the sentence.) We are going to show that every sentence is equivalent to one in prenex normal form. For this, let s recall the ways that we can move quantifiers out to the front of a sentence. Lemma (Swoosh Equivalences). The following equivalences are provable in our system. Q 1 xf x Q 2 ygy Q 1 xq 2 y(f x Gy), Q 1 xf x Q 2 ygy Q 1 xq 2 y(f x Gy), Q 1 xf x Q 2 ygy Q 1 xq 2 y(f x Gy), where Q 1 and Q 2 are arbitrary quantifiers (either or ), and Q is the opposite of the quantifier Q. 2

Proof. These equivalences are standard proofs in predicate logic. If you haven t seen them before, then it would be a good exercise to prove them yourself. Lemma (Prenex Normal Form Lemma). Every sentence A is provably equivalent to a sentence in prenex normal form. Proof. By induction on the construction of sentences. Base case: A sentence of the form Rc 1,..., c n is already in prenex normal form. Inductive case : Use the quantifier-negation equivalences. Inductive cases,, : The inductive cases for all of the binary connectives depend on the fact that for any two sentences A and B, there is a sentence B provably equivalent to B such that B shares no variables in common with A; and the (provable) swoosh equivalences allow us to bring quantifiers to the front of A B, where is either, or. For example, if A = Q 1 x 1 Q n x n F (x 1,..., x n ), and B = Q n+1 x n+1 Q n+m x n+m G(x n+1,..., x n+m ), where the variables x 1,..., x n+m are all distinct, then A B A B Q 1 x 1 Q n x n Q n+1 x n+1 Q n+m x n+m (F G)(x 1,..., x n+m ), and the latter sentence is in prenex normal form. Inductive case : Suppose that A(c) is provably equivalent to a prenex sentence B. We show that va(v) is provably equivalent to a prenex sentence. We split the argument into cases: either B contains c or it doesn t. In the former case, write B = B(c). Then A(c) B(c) gives A(c) vb(v) by EI, and since vb(v) doesn t contain the constant symbol c, va(v) vb(v) by EE. Similarly, vb(v) va(v). Hence va(v) is equivalent to the prenex sentence vb(v). In the other case (c not contained in B) we have va(v) B by EE, and B va(v) by EI. Thus, va(v) is provably equivalent to the prenex sentence B. Inductive case : Exercise. Since any predicate logic sentence is equivalent to one in prenex normal form, completeness would follow from the following version of the Main Lemma. Main Lemma. Let R be a sentence in prenex normal form. If R P P, then R is consistent, i.e. there is an interpretation that makes R true. The idea behind the proof is that if we tried to prove P P from R but failed, then in the process we would generate enough non-quantified sentences to tell us exactly what a universe in which R is true must look like. More specifically, suppose that we wanted to show that R does not describe a possible universe. Then we would try to use R to derive the fact that some individual c has a property F, and also to derive the fact that c has the property 3

F. Or we would try to show that R implies both Scd and Scd for two individuals c and d. Since R might be prefixed by many quantifiers, we would use a combination of UI and the Rule of Assumptions (intending to apply EE) to extract its specific consequences. For example, R is of the form 1 v 1 Q n x n A(v 1,..., v n ), we might start by deriving the instance Q 2 v 2 Q n v(n)a(c 1, v 2,..., v n ) for some constant c 1. If, on the other hand, R = 1 v 1 Q n v n A(v 1,..., v n ), then we might assume the instance Q 2 v 2 Q n v(n)a(c 1, v 2,..., v n ), where c 1 is a freshly chosen name (so as not to get a contradiction where none is really implied by R). We systematize this idea by constructing two sequences Γ 0, Γ 1,... and 0, 1,..., where each Γ i and j consists of a finite list of sentences. The intuitive idea behind this construction is to generate longer and longer proofs, starting with the proof R R. The sentences in Γ i will be assumptions (they go on the left hand side of ) and the sentences in j will be conclusions (they go on the right hand side of ). Stage 0: Let 0 = {R} and let Γ 0 = {R}. Stage n: Suppose that sets Γ 0,..., Γ n 1 and 0,..., n 1 (all of which consist of a finite number of sentences) have been constructed. We then build Γ n as follows: for each existential sentence va(v) in n 1, choose the first constant c in {c 1, c 2,... } that does not occur in any sentence previously constructed, and add A(c) to Γ n. We build n as follows: for each universal sentence va(v) in 0,..., n 1, and for each constant c that does previously occur in a constructed sentence, add A(c) to n. Notice the following fact about the sets of sentences we have constructed. Lemma. If Γ 0,..., Γ n, 0,... n 1 B, where B is a sentence that does not contain any constant symbols, then Γ 0,..., Γ n 1, 0,..., n 1 B. Proof. Let Γ = Γ 0,..., Γ n 1 and let = 0,..., n 1. Then the claim to be proven is: Γ,, Γ n B = Γ, B. Recall that Γ n consists of a finite number of sentences, each of which is an instance of some existential sentence in n 1. So, we may write A 1 (d 1 ),..., A m (d m ) for the sentences in Γ n, and v 1 A 1 (v 1 ),..., v m A m (v m ) for their counterparts in n 1. We assume then that Γ,, A 1 (d 1 ),..., A m (d m ) B. We may also assume that the sentences A i (d i ) are numbered by their order of introduction; thus, by stipulation, the constant d i is not equal to d j for j < i, nor does d i occur in any of the sentences in Γ or. Thus EE converts a proof Γ,, A 1 (d 1 ),..., A m (d m ) B to a proof Γ,, A 1 (d 1 ),..., A m 1 (d m 1 ), v m A m (v m ) B. Repeating this process for each of the sentences A i (d i ), there is a proof Γ,, v 1 A(v 1 ),..., v m A(v m ) B. Since each of the sentences v i A(v i ) is in n 1, and hence in, it follows that Γ, B 4

Lemma. Let B be a sentence that does not contain any constant symbols. If then R B. Proof. Suppose that there is a proof Γ 0,..., Γ n, 0,..., n B, Γ 0,..., Γ n, 0,..., n B. Since each sentence in n follows from a sentence in 0,..., n 1 by UE, there is a proof By the previous Lemma, Γ 0,..., Γ n, 0,..., n 1 B. Γ 0,..., Γ n 1, 0,..., n 1 B. Now repeating the previous two steps, we arrive eventually at But Γ 0 = 0 = {R}. Therefore R B. Γ 0, 0 B. It follows immediately from the previous lemma that if R P P, then for all numbers n, Γ 0,..., Γ n, 0,..., n P P. Of course, if there is no proof of P P from a set of sentences, then there is no proof of P P from a smaller set of sentences. So if Θ n is the set of sentences in Γ 0,..., Γ n, 0,..., n that contain no quantifiers, then R P P implies that Θ n P P. By the completeness of the propositional calculus, Θ n is truth-functionally consistent. We want now to conclude that the entire set i=1 Θ i is consistent (and so we can build a universe out of it!). That claim is true, but not obviously so we need to prove it. Theorem (Compactness of Propositional Logic). Let Θ 0, Θ 1,... be finite sets of sentences without quantifiers such that Θ 0 Θ 1 Θ 2. If each Θ i is truth-functionally consistent, then i=1 Θ i is truth-functionally consistent. Proof. For each i, let S i be the set of truth valuations that make all sentences in Θ i true. By assumption, each S i is non-empty; and clearly S 0 S 1 S 2. We now define inductively a sequence ε 0, ε 1, ε 2,... of truth values with the following feature: ( ) For each i and j in N, there is a v S j such that v(p i ) = ε i, which will ensure that the truth valuation v(p i ) = ε i satisfies j Θ j. Base case (i = 0) We first define ε 0 such that for each j N, there is a v S j such that v(p 0 ) = ε 0. Now, either for all j, there is v S j such that v(p 0 ) = F, or there is a j such that for all v S j, v(p 0 ) = T. In the first case, let ε 0 = F. In the second case, let ε 0 = T. 5

In the second case, for each k j, all truth valuations v in S k assign T to P 0. In either case, then, for all j, there is a v S j such that v(p 0 ) = ε 0. Inductive step (i = n + 1) Suppose that ε 0,..., ε n have been defined such that: ( ) for each i = 1,..., n and for each j N, there is a v S j such that v(p i ) = ε i. We now define ε n so that ( ) is also true for i = 0, 1,..., n + 1. For each j N, let T j = S j {v : v(p i ) = ε i, for i = 1,..., n}. That is, a truth valuation v is in T j just in case it satisfies Θ j and v(p i ) = ε i for i = 1,..., n. Since ( ) is true for ε 0,..., ε n, each T j is non-empty; and clearly T 0 T 1 T 2. If for all j N, there is v T j such that v(p n+1 ) = F, then let ε n+1 = F. If there is a j N such that for all v T j, v(p n+1 ) = T, then let ε n+1 = T. As before, in this second case, all S j will contain a v such that v(p n+1 ) = T = ε n+1. Thus, ( ) is true for i = 0, 1,..., n + 1. This completes the construction of the sequence ε 0, ε 1,..., and we have verified that ( ) is true for each i N. Now define a truth valuation v by setting v(p i ) = ε i for each atomic sentence P i. We claim that v(a) = T for all A i Θ i. Indeed, if A i Θ i, then A Θ k, for some finite k. Let {P 0,..., P m } contain all the atomic sentences in A. By ( ), there is w S k such that w(p i ) = ε i for i = 0, 1,..., m. Moreover, since A Θ k and w S k, w(a) = T. But v and w assign the same truth values to the atomic sentences occurring in A, hence v(a) = w(a) = T. With the compactness theorem (for propositional logic) in hand, we can now show that there is an interpretation M in which R is true. Let v be a truth-valuation that assigns T to each sentence in i Θ i, and define a predicate logic interpretation M by taking the domain of quantification to consist of constant symbols that occur in i Θ i, and define the extension of a predicate symbol S by d 1,..., d n Ext M (S) iff v(sd 1,..., d n ) = T. To finish the argument, we must now show that R is true in M. To do so, we argue by induction. Let Γ = ( i Γ i) ( j j). Obviously M makes every sentence in Γ with zero quantifiers true. We show that if M makes every sentence in Γ with n quantifiers true, then it makes every sentence in Γ with n + 1 quantifiers true. So let A be a sentence in Γ with n + 1 quantifiers. Let i be the stage at which A first appears. If A is universal, then writing A = vb(v), every sentence of the form B(c) with c a constant occurring in Γ, will eventually be generated in Γ. Since B(c) has only n-quantifiers, it is true in M. Thus, B(c) is true for every c in the domain of quantification; hence vb(v) is true in M. If, on the other hand, A is existential, then A = vb(v), and B(c) is generated for some constant c. By assumption, M makes B(c) true, and so it makes vb(v) true. Since R has a finite number of quantifiers, M makes R true, as was to be shown. 6