https://vu5.sfc.keio.ac.jp/slide/

Similar documents



Propositional Logic Not Enough


Introduction to Sets and Logic (MATH 1190)

PREDICATE LOGIC. Schaum's outline chapter 4 Rosen chapter 1. September 11, ioc.pdf

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

Formal (Natural) Deduction for Predicate Calculus

Discrete Mathematics and Its Applications

Section 2.1: Introduction to the Logic of Quantified Statements

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

Introduction to first-order logic:

Predicate Logic: Sematics Part 1

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

1 Predicates and Quantifiers

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:

Proposi'onal Logic Not Enough

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).

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

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

Logic: The Big Picture

Predicate Calculus lecture 1

CS 220: Discrete Structures and their Applications. Predicate Logic Section in zybooks

Quantifiers Here is a (true) statement about real numbers: Every real number is either rational or irrational.

Herbrand Theorem, Equality, and Compactness

Predicate Logic 16. Quantifiers. The Lecture

Department of Mathematics and Statistics Math B: Discrete Mathematics and Its Applications Test 1: October 19, 2006

Mat 243 Exam 1 Review

Fundamentals of Logic

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

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

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

Math.3336: Discrete Mathematics. Nested Quantifiers/Rules of Inference

CSI30. Chapter 1. The Foundations: Logic and Proofs Nested Quantifiers

Announcements CompSci 102 Discrete Math for Computer Science

Part I: Propositional Calculus

First Order Logic (FOL) 1 znj/dm2017

Logic and Modelling. Introduction to Predicate Logic. Jörg Endrullis. VU University Amsterdam

1.1 Language and Logic

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

Section Summary. Section 1.5 9/9/2014

Propositional Logic: Syntax

Predicate Calculus - Syntax

Predicate Logic. Example. Statements in Predicate Logic. Some statements cannot be expressed in propositional logic, such as: Predicate Logic

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

Notation for Logical Operators:

Predicate Logic Thursday, January 17, 2013 Chittu Tripathy Lecture 04

1.1 Language and Logic

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

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE

06 From Propositional to Predicate Logic

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/26)

Lecture 3. Logic Predicates and Quantified Statements Statements with Multiple Quantifiers. Introduction to Proofs. Reading (Epp s textbook)

Predicate Logic - Introduction

First Order Logic vs Propositional Logic CS477 Formal Software Dev Methods

Lecture Predicates and Quantifiers 1.5 Nested Quantifiers

ICS141: Discrete Mathematics for Computer Science I

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

Logic and Propositional Calculus

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

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

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

Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3. Section 1.3 Predicates and Quantifiers

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

Discrete Structures for Computer Science

Predicate Logic. Andreas Klappenecker

Rules Build Arguments Rules Building Arguments

2-4: The Use of Quantifiers

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:

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

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

Sec$on Summary. Valid Arguments Inference Rules for Propositional Logic. Inference Rules for Quantified Statements. Building Arguments

THE LOGIC OF QUANTIFIED STATEMENTS

Predicate Calculus - Semantics 1/4

03 Review of First-Order Logic

Chapter 1 Elementary Logic

Automated Reasoning Lecture 5: First-Order Logic

Chapter 3. The Logic of Quantified Statements

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

Formal Methods for Java

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

2/18/14. What is logic? Proposi0onal Logic. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.

A Logic Primer. Stavros Tripakis University of California, Berkeley

First order logic. Example The deduction of statements: This reasoning is intuitively correct. Every man is mortal. Since Ade is a man, he is mortal.

Math 3336: Discrete Mathematics Practice Problems for Exam I

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Formal Methods for Java

Recitation 4: Quantifiers and basic proofs

Chapter 2: The Logic of Quantified Statements. January 22, 2010

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.

CSCE 222 Discrete Structures for Computing. Predicate Logic. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

Section Summary. Predicates Variables Quantifiers. Negating Quantifiers. Translating English to Logic Logic Programming (optional)

Predicates and Quantifiers. CS 231 Dianna Xu


WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

Stanford University CS103: Math for Computer Science Handout LN9 Luca Trevisan April 25, 2014

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

MAI0203 Lecture 7: Inference and Predicate Calculus

Transcription:

1 FUNDAMENTALS OF LOGIC NO.7 PREDICATE LOGIC Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/

2 So Far Propositional Logic Logical Connectives (,,, ) Truth Table Tautology Normal Form Axiom and Proof LK Frame Work (Sequent Calculus) Soundness and Completeness

3 Limitation of Propositional Logic Propositional Logic Each proposition is either true or false. The truth value does not change. The truth value does not depend of objects which are referred in the proposition. Socrates problem: Socrates is a man. All men are mortal. Therefore, Socrates is mortal. In propositional logic: p = "Socrates is a man" q = "All men are mortal" r = "Socrates is mortal" p q r?

Propositional Logic to Predicate Logic Extend logic to handle objects and express properties and relations of objects. 4 Set of objects Integer Human Variable over a set of objects object variable x, y, z,... Name of object object constant Socrates, Pythagoras, 123, SFC, Keio,...

5 Predicate Predicate Object x has property P : P x Relation R holds between object x and object y : R x, y Q x 1, x 2,..., x n Q holds for objects x 1, x 2,..., x n. Q is a predicate with n variables. P x = "x is a man" P Socrates = "Socrates is a man" P Pythagoras = "Pythagoras is a man" P Taro = "Taro is a man" R x, y = "x likes y" R Taro, Hanako = "Taro likes Hanako" R Taro, Momoko = "Taro likes Momoko" R Hanako, Taro = "Hanako likes Taro"

6 Quantifier P(x) Which x makes P hold? Does it hold for any x? Does it hold for some x? Quantifier x P(x) Universal quantifier For any x, P(x) holds. P(x) holds for all x. x P(x) Existential quantifier For some x, P(x) holds. There exists x which makes P(x) hold. Q(x) = "x is mortal" x Q(x) = "Everybody is mortal" x Q(x) = "Someone is mortal", "There is someone who is mortal"

7 Predicate Logic Predicate Logic Use predicates instead of propositional variables. Four logical connectives:,,, Two quantifiers: x, x Socrates example: P(x) = "x is a man", Q(x) = "x is mortal" P(Socrates) = "Socrates is a man" x P x Q x = "All men are mortal" Q(Socrates) = "Socrates is mortal" Math example: P(x) = "x is a prime number bigger than 2", Q(x) = "x is an odd number" P(7) = "7 is a prime number bigger than 2" x P x Q x = "Any prime number bigger than 2 is an odd number" Q(7) = "7 is an odd number"

8 Example (1) Let S(x) and M(x) be as follows: S(x) = "x is an SFC student" M(x) = "x likes math" Write the meaning of the following formulae: x S(x) = " " x S(x) = " " x S x M x = " " x S x M x = " " x S x M x = " " x S x M x = " " x S(x) = " " xs(x) = " " x S x M x = " " x S x M x = " " x S(x) = " " xs(x) = " "

9 Example (2) Let L(x, y) mean "x likes y". Write the meaning of the following formulae: x L Taro, x = " " x L Taro, x = " " x L x, Taro = " " x L x, Taro = " " x y L x, y = " " x y L x, y = " " x y L x, y = " " x y L x, y = " " y x L x, y = " " x y S x L x, y = " " x y S y L x, y = " " x S x y L x, y = " " x y L x, y S x = " "

10 Language for Predicate Logic A set of symbols for predicate logic is called language. It is different from linguistic language. It is closer to vocabulary. A language L of predicate logic consists of the followings: 1. Logical connectives:,,, 2. Quantifiers:, 3. Object variables: x, y, z,... 4. Object constants: c, d,... 5. Function symbols: f, g,... 6. Predicate symbols: P, Q,...

11 Terms Terms of a language L is defined as follows: 1. Object variables and constants of L are terms. 2. For a function symbol f and m variables (arity m) in L, if t 1,..., t m are terms, f t 1,..., t m is also a term. Example: Natural Number Theory Object constants: 0, 1, etc. Function symbols: S x, +,, etc. Predicate symbols: =, <, etc. Terms x 0 S(x) + (1 S(S(y)))

12 Logical Formulae Logical Formulae of L are defined as follows: 1. For a predicate symbol P of n variables in L, if t 1,..., t n are terms, P(t 1,..., t n ) is a formula (atomic formula). 2. For formulae A and B, (A B), (A B), (A B) and ( A) are formulae. 3. For a formula A and an object variable x, ( x A) and ( x A) are formulae. Example: Natural Number Theory x(x z = y) x y x + S y = S x + y

13 Bound and Free Variables Bound variable In z(x z = y), z of x z = y is bound by z. Bound variables can be renamed without changing the meaning. w(x w = y) Variables which are not bound are free variables. In z(x z = y), x and y are free variables. Variables may be bound or free depending on their occurrence. z x z = y y x + x = y

14 Closed Formulae When a logical formula A does not contain free variables, A is called a closed logical formula. x S x y L x, y If x 1,..., x n are free variables of a logical formula A, x 1... x n A is calles universal closure of A. In mathematics, universal quantifiers are often omitted. Commutative law of addition x + y = y + x Its universal closure: x y(x + y = y + x)

15 Assignment of Terms For a logical formula A, when all the free occurrence of x are replaced with a term t, it is called an assignment of t to x. A[t/x] Example Let A be z x z = y. A[w/y] is z x z = w. A[x/y] is z x z = x. A[(x + w)/x] is z x + w z = y. If bound relationship is affected by an assignment, the bound variable must be changed before the assignment. A[z/y] is not z x z = z, but w x w = z. In general, ( xa)[t/x] is u(a[u/x][t/x]) where u is a variable which does not occur in A or t.

16 Sub-formulae Define sub-formulae similar to propositional logic. 1. A is a sub-formula of A. 2. A and B are sub-formulae of A B. 3. A and B are sub-formulae of A B. 4. A and B are sub-formulae of A B. 5. A is a sub-formula of( A). 6. For any term t, A[t/x] is a sub-formula of xa. 7. For any term t, A[t/x] is a sub-formula of xa. When a formula contains quantifiers, there are in finitely many sub-formulae. Sub-formulae of xq(x) are: xq x, Q Socrates, Q(Taro), Q(mother(Taro)),

17 Summary Predicate Logic Limitation of propositional logic Description about objects Logical Formulae of Predicate Logic Language Term Logical Formulae Quantifiers Bound and free variables Closed formulae Universal closure Assingment