Proseminar on Semantic Theory Fall 2013 Ling 720 First Order (Predicate) Logic: Syntax and Natural Deduction 1

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

Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014

Semantics I, Rutgers University Week 3-1 Yimei Xiang September 17, Predicate logic

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

Propositional Logic Not Enough

First order Logic ( Predicate Logic) and Methods of Proof

Proseminar on Semantic Theory Fall 2013 Ling 720 Proving the Soundness and Completeness of Propositional Logic: Some Highlights 1

03 Review of First-Order Logic

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

Predicate Logic. CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo

Ling 130 Notes: Predicate Logic and Natural Deduction

Predicate Calculus. Lila Kari. University of Waterloo. Predicate Calculus CS245, Logic and Computation 1 / 59

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

LIN1032 Formal Foundations for Linguistics

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

Predicate Calculus - Syntax

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

First Order Logic (FOL) 1 znj/dm2017

Logical Structures in Natural Language: First order Logic (FoL)

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

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

SYMBOLIC LOGIC UNIT 10: SINGULAR SENTENCES

Automated Reasoning Lecture 5: First-Order Logic

Logic. Propositional Logic: Syntax. Wffs

Introduction to Predicate Logic Part 1. Professor Anita Wasilewska Lecture Notes (1)

Predicate Logic: Sematics Part 1

Denote John by j and Smith by s, is a bachelor by predicate letter B. The statements (1) and (2) may be written as B(j) and B(s).

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:

06 From Propositional to Predicate Logic

Logic. Readings: Coppock and Champollion textbook draft, Ch

Class 29 - November 3 Semantics for Predicate Logic

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

Formal (Natural) Deduction for Predicate Calculus

Predicate Logic - Introduction

Introduction to Sets and Logic (MATH 1190)

Interpretations of PL (Model Theory)

Section Summary. Section 1.5 9/9/2014

Introduction to Metalogic

First-Order Logic (FOL)

Ling 130 Notes: Syntax and Semantics of Propositional Logic

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Proposi'onal Logic Not Enough

A Little Deductive Logic

2. Use quantifiers to express the associative law for multiplication of real numbers.

First Order Logic: Syntax and Semantics

First-Order Logic. Chapter Overview Syntax

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

Part 2: First-Order Logic

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

First-Order Predicate Logic. Basics

LING 501, Fall 2004: Quantification

Discrete Mathematics and Its Applications

A Little Deductive Logic

Predicate Calculus lecture 1

INTRODUCTION TO PREDICATE LOGIC HUTH AND RYAN 2.1, 2.2, 2.4

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

ICS141: Discrete Mathematics for Computer Science I

Propositional logic. First order logic. Alexander Clark. Autumn 2014

cse541 LOGIC FOR COMPUTER SCIENCE

22c:145 Artificial Intelligence. First-Order Logic. Readings: Chapter 8 of Russell & Norvig.

Introduction to first-order logic:

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

AAA615: Formal Methods. Lecture 2 First-Order Logic

Marie Duží

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

6. COMPLEX PREDICATES

COMP4418: Knowledge Representation and Reasoning First-Order Logic

Predicate Logic Quantifier Rules

Logic for Computer Science - Week 2 The Syntax of Propositional Logic

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

CS 2800: Logic and Computation Fall 2010 (Lecture 13)

MATH 22 INFERENCE & QUANTIFICATION. Lecture F: 9/18/2003

Chapter 2: Introduction to Propositional Logic

Predicate Logic - Deductive Systems

Logic Overview, I. and T T T T F F F T F F F F

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

INTRODUCTION TO LOGIC 8 Identity and Definite Descriptions

COMP9414: Artificial Intelligence First-Order Logic

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


MAI0203 Lecture 7: Inference and Predicate Calculus

! Predicates! Variables! Quantifiers. ! Universal Quantifier! Existential Quantifier. ! Negating Quantifiers. ! De Morgan s Laws for Quantifiers

Lecture 5. Predicate Logic 1. October 13, 2008 Hana Filip 1

1.3 Predicates and Quantifiers

INTRODUCTION TO LOGIC 4 The Syntax of Predicate Logic

Handout #7 Predicate Logic Trees

2-4: The Use of Quantifiers

KR: First Order Logic - Intro

Final Exam (100 points)

Propositional Logic: Syntax

INTRODUCTION TO LOGIC 8 Identity and Definite Descriptions

CHAPTER 2. FIRST ORDER LOGIC

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Propositional Logic. Premises: If Jack knows Jill, then Jill knows Jack. Jack knows Jill. Conclusion: Is it the case that Jill knows Jack?

Resolution: Motivation

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

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

First Order Logic (FOL)

Predicate Logic. CSE 595 Semantic Web Instructor: Dr. Paul Fodor Stony Brook University

Transcription:

First Order (Predicate) Logic: Syntax and Natural Deduction 1 A Reminder of Our Plot I wish to provide some historical and intellectual context to the formal tools that logicians developed to study the semantics of artificial languages. For this reason, I m beginning with a purely syntactic presentation of two key logical systems: Propositional Logic (PL) and First Order (Predicate) Logic (FOL). In our last notes, we covered PL. Now, we ll get a (syntactic) introduction to FOL. 1. A Review of First Order (Predicate) Logic (FOL): Syntax and Informal Semantics 2 The system of First Order Logic (FOL) is intended to capture the inferences that depend upon: (i) the meaning of the so-called sentential connectives : and, or, if then, and not (ii) the meaning of the quantifiers every and some (1) The Vocabulary of Symbols a. The Logical Constants: (i) ~ Negation It is not the case that (ii) & Conjunction and (iii) Disjunction or (inclusive) (iv) (Material) Implication if then (v) Universal Quantifier for all (vi) Existential Quantifier there is an b. Syntactic Symbols: (, ) a. The Non-Logical Constants (a.k.a The Logical Variables ) (i) An infinite set of predicate letters: {P, Q, R, B, P 1, P 2, P 3, P 4, } Each predicate letter has an associated arity (unary, binary, etc.) Each predicate letter stands for a property or a relation (ii) An infinite set of individual constants: {a, b, c,, a 1, a 2, a 3, } The individual constants stand for proper names (Bill, John, etc.) (iii) An infinite set of variables: {x, y, z,, x 1, x 2, x 3, } 1 These notes are based upon material in the following required reading: Gamut (1991), Chapter 3 pp. 65-83, Chapter 4 pp. 128-148; Partee et al. (1993), Chapter 7 pp. 135-140. 2 My discussion here will assume prior familiarity with the overall system of First Order Logic. Students are referred to Partee et al. (1993), Chapter 7 for crucial background. 1

(2) The Definition of a Well-Formed Formula (WFF) in FOL The set of well-formed formulae of PL, WFF, is the smallest set such that: a. If ϕ is an n-ary predicate letter and each of α 1,, α n is either an individual constant or a variable, then ϕα 1 α n WFF b. If ϕ, ψ WFF, then 1. ~ϕ WFF 2. (ϕ & ψ) WFF 3. (ϕ ψ) WFF 4. (ϕ ψ) WFF c. If ϕ WFF and υ is a variable, then 1. υϕ WFF 2. υϕ WFF Notes: The clause in (2a) creates the atomic formulae of FOL. The clause in (2c) creates the universal formulae and existential formulae. The set WFF includes formulae with free variables and vacuous quantification (defined properly later) Hxb (free variables) y xhxb (vacuous quantification) yhxb (free variables and vacuous quantification) (3) Using FOL To Encode Sentences of English We can use the syntactic rules in (2) and the informal semantics in (1) to write FOL formulae that encode certain statements of English: a. Sentence: If Bill or John is leaving, then Mary and Sue aren t happy. Encoding: ((Lb Lj) (~Hm & ~Hs)) b. Sentence: Every cat gave a book to Bill. Encoding: x(cx y(by & Gxyb)) In setting up such encodings, it is critical to supply a key, indicating what the predicate letters and individual constants stand for : Key Lx: x is leaving b: Bill Hx: x is happy j: John Cx: x is a cat m: Mary Bx: x is a book s: Sue Gxyz: x gave y to z 2

An Important Note: In the key above, formulae of the form Gxyz are interpreted so that x is the subject of gave, while y is the direct object, and z is the indirect object. Nothing forces this however. We could just have easily had the following in our key: Gxyz: z gave y to x Such right-to-left readings of atomic formulae will be useful to us later, when we re mechanically translating sentences of English into sentences of FOL (4) Key Definition: Scope If υψ is a subformula of ϕ, then ψ is the scope of (this occurrence of) υ in ϕ If υψ is a subformula of ϕ, then ψ is the scope of (this occurrence of) υ in ϕ In the formula x(qx & y(py zsxyz)) (i) The scope of x = (Qx & y(py zsxyz)) (ii) The scope of y = (Py zsxyz) (iii) The scope of z = Sxyz (5) Key Definition: Free and Bound Variables a An occurrence of the variable υ in the formula ϕ is free in ϕ if (i) and (ii) hold: (i) that occurrence of υ does not occur directly to the right of either or (ii) that occurrence of υ is not in the scope of any occurrence of υ or υ in ϕ b. An occurrence of the variable υ is bound by υ ( υ) in ϕ if (i) and (ii) hold: (i) υψ ( υψ) is a subformula of ϕ (ii) That occurrence of υ is free in ψ In the formula x(px & xbx) (i) (ii) (iii) (iv) (v) (vi) The occurrence of x in Px is free in (Px & xbx) The occurrence of x in Bx is free in Bx The occurrence of x in Bx is not free in (Px & xbx) The first occurrence of x in (Px & xbx) is bound by x The occurrence of x in Bx is bound by x The occurrence of x in Bx is not bound by x (6) Key Definition: Sentence ϕ is a sentence of FOL if (i) ϕ WFF, and (ii) there are no free variables in ϕ 3

2. A Review of First Order Logic (FOL): Natural Deduction (7) Major Goal of This Section Let s provide a purely syntactic characterization of valid inference in the FOL notation. This syntactic characterization will be embodied in a proof system (natural deduction) We re going to lay out some rules stated entirely in syntactic terms for deriving formulae in FOL from other formulae. o As we ll see, these syntactic rules intuitively capture certain key aspects of the everyday meaning of the English logical words every and some (8) Features Inherited from PL Natural Deduction All the following will directly imported from our system of natural deduction for PL: a. Definition of derivation b. Turnstyle notation c. The rules I&, E&, Repetition, I, E, I, E, I~, E~, EFSQ, ~~ (9) Special Feature of FOL Natural Deduction ϕ can be an assumption in an FOL derivation iff ϕ is a sentence. Our natural deduction system for FOL adds four new rules. (10) Special Notation for Statement of Deduction Rules for FOL If ϕ WFF, α is an individual constant, and υ is a variable, then [α/υ]ϕ is the formula just like ϕ, except that every free instance of υ is replaced with an instance of α: [b/x](pcx & Dabx) = (Pcb & Dabb) (11) The Rule of -Introduction (I ) n [α/υ]ϕ m υϕ I n Intuitive Motivation: If we can (in English) assert for a particular thing α that ϕ is true of α, then we can assert that there is something that ϕ is true of. 4

(12) The Rule of -Elimination (E ) n υϕ m [α/υ]ϕ E n Intuitive Motivation If we can (in English) assert that ϕ is true of everything, then for any particular thing α, we can assert that ϕ is true of α, Illustration of I and E : xpx xpx 1. xpx Assumption 2. Pb E 1 3. xpx I 3 (13) The Rule of -Introduction (I ) Intuitive Motivation: If we can show that ϕ is true of an arbitrary entity α ( arbitrary = we ve not assumed anything about α whatsoever), then we can assert that ϕ is true of everything. Key Definition: If [α/υ]ϕ appears in a derivation at line n, then α is arbitrary at line n if (i) and (ii) hold (i) α does not appear in any (non-dropped) assumptions in the derivation (ii) α does not appear in ϕ The Rule: The following is an acceptable derivation, as long as α is arbitrary at line n. n [α/υ]ϕ m υϕ I n x ypxy xpxx 1. x ypxy Assumption 2. ypay E 1 3. Paa E 2 4. xpxx I 3 Note: Paa = [a/x]pxx, and a is arbitrary (in [a/x]pxx ) in at line 3. 5

(14) The Rule of -Elimination (E ) Intuitive Motivation: If we can assert (i) that ϕ is true of something, and (ii) that if ϕ is true of an arbitrary entity α, then ψ must be true ( arbitrary = we ve not assumed anything about α whatsoever), then we can assert that ψ is true. Key Definition: If [α/υ]ϕ ψ appears in a derivation at line n, then α is arbitrary at line n if (i)-(iii): (i) α does not appear in any (non-dropped) assumptions in the derivation (ii) α does not appear in ϕ (iii) α does not appear ψ The Rule: The following is an acceptable derivation, as long as α is arbitrary at line n. n 1 υϕ n 2 [α/υ]ϕ ψ m ψ E n 1, n 2 x ypxy y xpxy 1. x ypxy Assumption 2. ypby Assumption 3. Pba E 2 4. xpxa I 3 5. ypby xpxa I 6. xpxa E 1,5 7. y xpxy I 6 Note: ypby = [b/x] ypxy, and b is arbitrary (in [b/x] ypxy xpxa ) at line 5 Note: xpxa = [a/y] xpxy, and a is arbitrary (in [a/y] xpxy ) at line 6. Side Comment: - The rules I and E add significantly to the complexity of our natural deduction system. - However, they are crucial for system to capture all the valid inferences in FOL - They also greatly complicate the proof that our natural deduction system for FOL is complete 6

3. The Power of Our Natural Deduction System for FOL Although we our system for FOL has just 15 (really, 14) relatively simple rules, it can capture a great many intuitively valid inferences! (15) Derivation of Quantifier Negation, Part 1 ~ xpx x~px 1. ~ xpx Assumption 2. Pa Assumption 3. xpx I 2 4. E~ 1, 3 5. ~Pa I~ 6. x~px I 6 Note: ~Pa = [a/x]~px and a is arbitrary (in [a/x]~px ) at line 5 (16) Derivation of Quantifier Negation, Part 2 x~px ~ xpx 1. x~px Assumption 2. xpx Assumption 3. Pa Assumption 4. ~Pa E 1 5. E~ 3,4 6. (Pa ) I 7. E 2, 6 8. ~ xpx I~ Note: (Pa ) = [a/x](px ) and a is arbitrary (in [a/x](px ) at line 6 (17) The Big Question Does our system offer a perfect syntactic characterization of validity for FOL? Does every derivation correspond to a valid inference? Does every valid inference in FOL correspond to a derivation? How would we even show this?... 7