Completeness for FOL

Similar documents
Completeness for FOL

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

First Order Logic: Syntax and Semantics

Introduction to Metalogic

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini. FBK-IRST, Trento, Italy

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

Logik für Informatiker Proofs in propositional logic

Logik für Informatiker Logic for computer scientists

1 Completeness Theorem for First Order Logic

Propositional Logic Arguments (5A) Young W. Lim 11/8/16

Phil 110, Spring 2007 / April 23, 2007 Practice Questions for the Final Exam on May 7, 2007 (9:00am 12:00noon)

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

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

1 Completeness Theorem for Classical Predicate

Deductive Systems. Lecture - 3

Propositional Logic Arguments (5A) Young W. Lim 10/11/16

CHAPTER 11. Introduction to Intuitionistic Logic

Adam Blank Spring 2017 CSE 311. Foundations of Computing I

Class 29 - November 3 Semantics for Predicate Logic

Natural deduction for truth-functional logic

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

The Logic of Quantifiers

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

The Process of Mathematical Proof

FORMAL PROOFS DONU ARAPURA

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

02 Propositional Logic

Discrete Mathematics

Natural Deduction for Propositional Logic

Propositional Logic Review

Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture - 15 Propositional Calculus (PC)

Propositional Logic. Fall () Propositional Logic Fall / 30

CITS2211 Discrete Structures Proofs

PHIL12A Section answers, 28 Feb 2011

UNIVERSITY OF EAST ANGLIA. School of Mathematics UG End of Year Examination MATHEMATICAL LOGIC WITH ADVANCED TOPICS MTH-4D23

Handout: Proof of the completeness theorem

Propositional Logic Arguments (5A) Young W. Lim 11/30/16

Logik für Informatiker Formal proofs for propositional logic

Logical Structures in Natural Language: Propositional Logic II (Truth Tables and Reasoning

Logic. Propositional Logic: Syntax. Wffs

Gödel s Completeness Theorem

A Little Deductive Logic

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

a. (6.25 points) where we let b. (6.25 points) c. (6.25 points) d. (6.25 points) B 3 =(x)[ H(x) F (x)], and (11)

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Propositional Logic: Review

Gödel s Incompleteness Theorem. Overview. Computability and Logic

Propositional Logic Arguments (5A) Young W. Lim 11/29/16

Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014

Manual of Logical Style

Logik für Informatiker Logic for computer scientists

Computational Logic. Recall of First-Order Logic. Damiano Zanardini

A Little Deductive Logic

Gödel s Incompleteness Theorem. Overview. Computability and Logic

Final Exam Theory Quiz Answer Page

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

Propositional Logic: Part II - Syntax & Proofs 0-0

Artificial Intelligence Knowledge Representation I

First Order Logic (FOL) 1 znj/dm2017

Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction

Predicate Logic. Andreas Klappenecker

Logic: Propositional Logic (Part I)

Intermediate Logic. Natural Deduction for TFL

Logic: The Big Picture

Quantifier elimination

In this chapter, we specify a deductive apparatus for PL.

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

Bound and Free Variables. Theorems and Proofs. More valid formulas involving quantifiers:

10 Propositional logic

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

Logic. Propositional Logic: Syntax

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

INF3170 Logikk Spring Homework #8 For Friday, March 18

Proving Things. Why prove things? Proof by Substitution, within Logic. Rules of Inference: applying Logic. Using Assumptions.

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

Section 3.1: Direct Proof and Counterexample 1

CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT)

6. Conditional derivations

Introduction to Metalogic 1

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

2 nd Assignment Answer Key Phil 210 Fall 2013

CPSC 121: Models of Computation

Fundamentals of Logic

Automated Reasoning Lecture 5: First-Order Logic

Logic for Computer Science - Week 4 Natural Deduction

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

Manual of Logical Style (fresh version 2018)

EECS 1028 M: Discrete Mathematics for Engineers

Language of Propositional Logic

PUZZLE. You meet A, B, and C in the land of knights and knaves. A says Either B and I are both knights or we are both knaves.

Lecture 13: Soundness, Completeness and Compactness

Advanced Topics in LP and FP

Equivalence of Propositions

Filtrations and Basic Proof Theory Notes for Lecture 5

Transcription:

Completeness for FOL

Completeness Theorem for F Theorem. Let T be a set of sentences of a firstorder language L and let S be a sentence of the same language. If S is a first-order consequence of T, then T - S.

Overview Adding Witnessing Constants The Henkin Theory The Elimination Theorem The Henkin Construction

Overview: Adding Witnessing Constants Let L be a fixed first-order language. We want to prove that if a sentence S of L is a first-order consequence of a set T of L sentences, then T - S. The first step is to enrich L to a language L H with infinitely many new constant symbols, known as witnessing constants, in a particular manner.

Overview: The Henkin Theory We next isolate a particular theory H in the enriched language L H. This theory consists of various sentences which are not tautologies but are theorems of firstorder logic, plus some additional sentences known as Henkin witnessing axioms. The latter take the form xp(x) P(c) where c is a witnessing constant. The particular constant is chosen carefully so as to make the Henkin Construction Lemma and Elimination Theorem true.

Overview: The Elimination Theorem The Henkin theory is weak enough, and the formal system F strong enough, to allow us to prove the following theorem. Let p be any formal first-order proof whose premises are all either sentences of L or sentences from H, with a conclusion that is also a sentence of L. We can eliminate the premises from H from this proof in favor of uses of the quantifier rules. More precisely, there exists a formal proof p whose premises are those premises of p that are sentences of L and with the same conclusion as p.

Overview: The Henkin Construction On the other hand, the Henkin theory is strong enough, and the notion of first-order structure wide enough, to allow us to prove the following result. For every truth assignment h that assigns TRUE to all wffs in H there is a first-order structure M h such that M h = S for all first-order sentences S assigned TRUE by h. This construction of the structure M h from the truth assignment h is sometimes called the Henkin construction.

Witnessing Constants Given any first-order language K, we construct a new first-order language K. The language K will have the same symbols as K except that it will have additional constant symbols. For example, if K is our blocks language, then in K, we will be able to say things like the following: 1. x (Small(x) Cube(x)) Small(c1) Cube(c1) 2. z (z = a z = b) (c2 = a c2 = b) 3. y Between(y, a, b) Between(c3, a, b) 4. x y Between(a, x, y) y Between(a, c4, y)

Witnessing Constants More generally, for each wff P of L with exactly one free variable, form a new constant symbol c P, making sure to form different names for different wffs. This constant is called the witnessing constant for P.

Ensuring Uniqueness of Witnessing Constants How do we make sure that distinct wffs get distinct witnessing constants? Use a single symbol c not in the language K and have the new symbol be the expression c with the wff as a subscript. For example, in our above list, instead of the constant symbol c 1 we would use the symbol c (Small(x) Cube(x)) This may be an awkward symbol to write down, but it shows us how we can generate unique constants.

Extending the Language K The language K consists of all the symbols of K plus all these new witnessing constants. They can now be used in wffs. For example, the language K allows us to form sentences like: Smaller(a, c Between(x,a,b) )

Extending the Language K We also have sentences like: x Smaller(x, c Between(x,a,b) ) Using the earlier rule, we would need to be able to write: x Smaller(x, c Between(x,a,b) ) Smaller(c Smaller(x, c Between(x,a,b)), c Between(x,a,b) )

Extending the Language K However, we have not added that particular witnessing constant in forming K. We have to iterate the process of extending a language. Starting with a language L, we define an infinite sequence of larger and larger languages L 0 L 1 L 2... Where L 0 = L Language L n+1 results by extending L n, i.e. L n+1 = L n

Henkin Language The Henkin language L H for L consists of all the symbols of L n for any n = 0, 1, 2, 3,...

Date of Birth Lemma Each witnessing constant c P is introduced at a certain stage n 1 of this construction. Let us call that stage the date of birth of c P. Lemma 1. Let n+1 be the date of birth of c P. If Q is any wff of the language L n, then c P does not appear in Q. Proof. Obvious from the construction of L H.

Summary of Construction so Far We have added witnessing constants for each wff P with exactly one free variable. The free variable of P is going to be important. Hence, we often write the wff in a way that reminds us of the free variable, namely, as P(x). Consequently, its witnessing constant is now denoted by c P(x). By iterating our construction infinitely often, we have a situation where for each wff P(x) of L H with exactly one free variable, the witnessing constant c P(x) is also in L H. This allows us to form the sentence xp(x) c P(x) in L H.

Henkin Witnessing Axiom The sentence xp(x) P(c P(x) ) is known as the Henkin witnessing axiom for P(x). The intuitive idea is that xp(x) P(c P(x) ) asserts that if there is something that satisfies P(x), then the object named by c P(x) provides an example (or witness ) of one such.

Independence Lemma Lemma 2. (Independence lemma) If c P and c Q are two witnessing constants and the date of birth of c P is less than or equal to that of c Q, then c Q does not appear in the witnessing axiom of c P. Proof: If the date of birth of c P is less than that of c Q, the result follows from the date of birth lemma. If they have the same date of birth, it follows from the fact that different wffs of a language K have distinct new witnessing constants in K.

Henkin Theory Definition. The Henkin theory H consists of all sentences of the following five forms, where c and d are any constants and P(x) is any formula (with exactly one free variable) of the language L H : H1: All Henkin witnessing axioms xp(x) P(c P(x) ) H2: All sentences of the form P(c) xp(x)

Henkin Theory H3: All sentences of the form xp(x) x P(x) H4: All sentences of the form c = c H5: All sentences of the form (P(c) c = d) P(d)

Parallels between H and Quantifier Rules There is a parallel between these sentences of H and the quantifier rules and identity rules of F: H1 corresponds roughly to Elim, in that both are justified by the same intuition. H2 corresponds to Intro, H3 reduces to, H4 corresponds to = Intro, and H5 corresponds to = Elim.

Proposition 3 Proposition 3. Let M be any first-order structure for L. There is a way to interpret all the witnessing constants in the universe of M so that, under this interpretation, all the sentences of H are true. Proof: (Sketch) The basic idea of the proof is that if M = xp(x), then pick any element b of the domain that satisfies P(x) and let the witnessing constant c P(x) name b. If M = xp(x), then let c P(x) name any element of the domain. This takes care of the axioms of type H1. As for the other axioms, they are all logical truths, and so will turn out to be true no matter how we interpret the new constants.

Elimination Theorem Proposition 4. (The Elimination Theorem) Let p be any formal first-order proof with a conclusion S that is a sentence of L and whose premises are sentences P 1,..., P n of L plus sentences from H. There exists a formal proof p of S with premises P 1,..., P n alone. Proof. The proof will take up the next several slides.

Deduction Theorem Proposition 5. (Deduction Theorem). If T {P} - Q then T - P Q Proof. The proof of this is very similar to the proof of Lemma 17.2. The details are left as an exercise. The theorem is also illustrated by the You try it exercise on p 535.

Reminder: Lemma 17.2 Lemma 2. T { S} T if and only if T T S Proof. Assume T { S} T In other words, there is a proof of from premises S and certain sentences P 1,,P n of T.

Reminder: Proof cont d Arrange the premises so that: Rearrange to:

Reminder: Other direction Proof. Assume T T S In other words, there is a proof of S from certain sentences P 1,,P n of T. You finish!

Proposition 6 Proposition 6. If T {P 1,..., P n } - Q and, for each i = 1,..., n, T - P i then T - Q. Proof. Use the Deduction Theorem and modus ponens repeatedly to get rid of each of the P i. The details are left as an exercise.