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

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

Propositional Logic Not Enough

Introduction to Sets and Logic (MATH 1190)

Predicate Logic: Sematics Part 1

06 From Propositional to Predicate Logic

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

ICS141: Discrete Mathematics for Computer Science I

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

Predicate Calculus - Syntax

Proposi'onal Logic Not Enough

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

Symbolising Quantified Arguments

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

Predicate Calculus lecture 1

Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014

Section Summary. Section 1.5 9/9/2014

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

2-4: The Use of Quantifiers

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

Lecture 3 : Predicates and Sets DRAFT

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


Discrete Mathematics Basic Proof Methods

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

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

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

Discrete Structures for Computer Science

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

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

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

Lecture Predicates and Quantifiers 1.5 Nested Quantifiers

MAT2345 Discrete Math

First-Order Logic (FOL)

Predicate Logic: Syntax

1.3 Predicates and Quantifiers

Mathematical Logic Part Three

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.

First Order Logic (FOL) 1 znj/dm2017

University of Aberdeen, Computing Science CS2013 Predicate Logic 4 Kees van Deemter

4 Quantifiers and Quantified Arguments 4.1 Quantifiers

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

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Automated Reasoning Lecture 5: First-Order Logic

Formal (Natural) Deduction for Predicate Calculus

Predicate Calculus - Semantics 1/4

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

Section 2.3: Statements Containing Multiple Quantifiers

1 Introduction to Predicate Resolution

CITS2211: Test One. Student Number: 1. Use a truth table to prove or disprove the following statement.

Discrete Mathematics and Its Applications

CS 250/251 Discrete Structures I and II Section 005 Fall/Winter Professor York

Review: Potential stumbling blocks

First order Logic ( Predicate Logic) and Methods of Proof

Discrete Mathematics

First-order logic Syntax and semantics


cse541 LOGIC FOR COMPUTER SCIENCE

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

Predicate Logic. Andreas Klappenecker

Solutions to Exercises (Sections )

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

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)

Announcements. CS311H: Discrete Mathematics. Introduction to First-Order Logic. A Motivating Example. Why First-Order Logic?

Predicates and Quantifiers. CS 231 Dianna Xu

Announcement. Homework 1

6. COMPLEX PREDICATES

SYMBOLIC LOGIC UNIT 10: SINGULAR SENTENCES

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

Completeness for FOL

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

Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples


University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. February 9, :30 pm Duration: 1:50 hs. Closed book, no calculators

Final Exam (100 points)

Math Fundamentals of Higher Math

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

Logic: The Big Picture

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

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

Predicate Logic: Introduction and Translations

Predicate Logic 1. The Need for Predicate Logic. The Need for Predicate Logic. The Need for Predicate Logic. The Need for Predicate Logic

Rules Build Arguments Rules Building Arguments

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

Section 2.1: Introduction to the Logic of Quantified Statements

CS156: The Calculus of Computation Zohar Manna Winter 2010

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

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

Mat 243 Exam 1 Review

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

Predicate in English. Predicates and Quantifiers. Predicate in Logic. Propositional Functions: Prelude. Propositional Function

Logic Part I: Classical Logic and Its Semantics

Thinking of Nested Quantification

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

Class 29 - November 3 Semantics for Predicate Logic

6.825 Techniques in Artificial Intelligence. Logic Miscellanea. Completeness and Incompleteness Equality Paramodulation

CSC384: Intro to Artificial Intelligence Knowledge Representation II. Required Readings: 9.1, 9.2, and 9.5 Announcements:

CPSC 121: Models of Computation

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

Theory of Computation

Mathematical Logic Part Three

Transcription:

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

Introduction Lecture Notes (1) and (2) provide an OVERVIEW of a standard intuitive formalization and introduction to Predicate Logic. I wrote them for you to review it and use it to solve some of the Take home Practice Final problems. It covers material that I assume is KNOWN to all students; The formal definitions are in Chapter 13, 14 and we will cover it later.

Predicate Logic Language Symbols: 1. P, Q, R predicates symbols, denote relations in real life, must be a non empty set. It can be finite or countably infinite. 2. x,y,z. variables, a countably infinite set 3. c1, c2, constants, a finite or countably infinite set 4. f, g, h functional symbols, denote functions in real life, may be empty, finite, or countably infinite set 5. Propositional connectives:,,,, 6. Symbols for quantifiers x universal quantifier reads: For all x x existential quantifier reads: There is x

Formulas of Predicate Logic We use symbols 1-6 to build formulas of predicate logic as follows 1. P(x), Q(x,y), R(x) R(c1), Q(x, c3), P(c), are called atomic formulas for any variables x, y, and constants c, c1, c2, 2. All atomic formulas are formulas ; 3. If A,B are formulas then (like in propositional logic): (A B), (A B), (A B), (A B), A are formulas 4. x A, y A are formulas, for any variables x, y 5. The set F of all formulas is the smallest set that fulfills the conditions 1-4.

Examples For example: let P(y), Q(x,c), R(z), P 1 (x, y, z) be atomic formulas, i.e. P(x), Q(x,c), R(z), P 1 (x, y, z) F Then we form some other formulas out of them as follows: (P(y) Q( x, c) ) F It is a formula with two free variables x, y. x (P(y) Q( x, c) ) F y (P(y) Q( x, c) ) F y x(p(y) Q( x, c) ) F etc

Free and Bound Variables Quantifiers bound variables within formulas For example: A is a formula: x (P(x) Q(x, y)) all x s in A are bounded by x y is a free variable in A that can be bounded by a quantifier, for example y x (P(x) Q(x, y)) y got bounded and there are no free variables in A now. A formula without free variables is called a sentence.

Logic and Mathematical Formulas We often use logic symbols while writing mathematical statements in a more symbolic way Example of a Mathematical Statement: x N (x > 0 y N (y = 1)) 1. Quantifier x N is a quantifier with restricted domain 2. Logic uses only x, y 3. x > 0 and y =1 are mathematical statement about a real relation > 4. Logic uses symbols P, Q, R for example R(y, c 1 ) for y =1 and P(x, c 2 ) for x > 0 where c 1 and c 2 are constants representing numbers 1 and 0, respectively.

Translation of Mathematical Statements to Logic Consider a Mathematical Statement: x N (x > 0 y N (y = 1)) x N we translate it as one argument predicate Q(x) x > 0 as two argument predicate P(x, c 1 ), y = 1 as another two argument predicate R(y, c 2 ) and get Q(x) (P(x, c 1 ) Q(y) R(y, c 2 ) ) Logic formula with restricted domain quantifiers But this is not yet a proper logic formula since we cannot have quantifiers Q(x), Q(y) but only x, x. Q(x), Q(y) are called quantifiers with restricted domain

Logic Formula Corresponding to our Mathematical Statement We need to get rid of quantifiers with restricted domain i.e. to translate them into logic quantifiers: x, x x N, y N certain predicate P(x) General: restricted domain quantifiers are : P(x), Q(x)

Restricted Domain Existential Quantifier P(x) Q(x) x(p(x) Q(x)) restricted logic, not restricted Example (mathematical formulas): x 1 (x>0 x + y > 5) - restricted x ((x 1 ) (x > 0 x + y > 5)) - not restricted P(x, y, c) English statement: Some students are good. Logic Translation (restricted domain): S(x) G(x) Predicates are : S(x) x is a student G(x) x is good TRANSLATION: x(s(x) G(x))

Restricted Quantifiers and Quantifiers Translation for universal quantifier Restricted Logic (Non-restricted) P(x) Q(x) Ξ x (P(x) Q(x)) Example (mathematical) x N (x= 1 x< 0) restricted domain Ξ x (x N ( x= 1 x< 0) ) non-restricted

Translation of Mathematic statements to Logic formulas Mathematical statement: x ( x N ( x= 1 x< 0) ) x N translates to a predicate N(x) x > 0 translates to a predicate P(x, c 1 ) x=1 - translates to a predicate Q(x, c 2 ) Corresponding logic formula: x (N(x) (Q(x, c 2 ) P(x, c 1 )) )

Remark Mathematical statement: x + y = 5 To follow LOGIC formalization we re-write it as = ( + (x, y), 5) and translate it to Predicate Language as P(f(x,y), c) Given x = 2, x = 1, we get +(2,1) = 3 and the statement: = (3,5) is FALSE (F) Predicates always returns logical value F or T We really need also function symbols (like +, etc..) to translate mathematical statements to logic, even if we could use only relations as functions are special relations This is why in formal definition of the predicate language we often we have 2 sets of symbols 1. Predicate symbols which can be true or false in proper domains 2. Functions symbols ( formally called terms)

Translations to Logic Rules: 1. Identify the domain: always as et X φ 2. Identify predicates (simple: atomic) 3. Identify functions (if needed) 4. Identify the connectives,,,, 5. Identify the quantifiers x, x Write a formula using only symbols for 2,3, 4 6. Use restricted domain quantifier translation rules, where needed

Translations Examples Translate: For every bird there are some birds that are white Predicates: B(x) x is a bird W(x) x is white Restricted: B(x) B(x) W(x) Logic x(b(x) x (B(x) W(x))) OR (re-name variables) x(b(x) y(b(y) W(y))) (by laws of Quantifiers, don t do this step yet!! We will study the laws later ) This is logically equivalent to x y (B(x) (B(y) W(y)))

Example For every student there is a student that is an elephant B(x)- x is a student W(x) x is an elephant B(x) B(x) W(x) B(x) x(b(x) W(x)) x(b(x) x(b(x) W(x))) (logic formula)

Translations Example Translate: Some patients like all doctors Predicates: P(x) x is a patient D(x) x is a doctor L( x,y) x likes y P(x) D(y) L( x,y) There is a patient(x), such that for all doctors(y), x likes y x(p(x) y(d(y) L( x,y))) (by law of quantifiers to be studied later we can pull out y ) x y(p(x) (D(y) L( x,y)))