Propositional Functions. Quantifiers. Assignment of values. Existential Quantification of P(x) Universal Quantification of P(x)

Similar documents
Section Summary. Section 1.5 9/9/2014

Thinking of Nested Quantification

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

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

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

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

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

2-4: The Use of Quantifiers

Discrete Mathematics

First order Logic ( Predicate Logic) and Methods of Proof

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

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

Proposi'onal Logic Not Enough

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

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

Review: Potential stumbling blocks

THE ISLAMIC UNIVERSITY OF GAZA ENGINEERING FACULTY DEPARTMENT OF COMPUTER ENGINEERING DISCRETE MATHMATICS DISCUSSION ECOM Eng. Huda M.

Lecture 4. Predicate logic

Lecture 3 : Predicates and Sets DRAFT

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

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

Lecture Predicates and Quantifiers 1.5 Nested Quantifiers

Discrete Mathematics and Its Applications

Mat 243 Exam 1 Review

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

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

Topic #3 Predicate Logic. Predicate Logic

Logic and Proof. Aiichiro Nakano

Introduction to Sets and Logic (MATH 1190)

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

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

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

Math.3336: Discrete Mathematics. Nested Quantifiers

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

ICS141: Discrete Mathematics for Computer Science I

Propositional and First-Order Logic

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

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

Negations of Quantifiers

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

Full file at Chapter 1

Chapter 1, Part II: Predicate Logic

Announcement. Homework 1

ICS141: Discrete Mathematics for Computer Science I

CSC165 Mathematical Expression and Reasoning for Computer Science

Predicates and Quantifiers. Nested Quantifiers Discrete Mathematic. Chapter 1: Logic and Proof

Today s Lecture. ICS 6B Boolean Algebra & Logic. Predicates. Chapter 1: Section 1.3. Propositions. For Example. Socrates is Mortal

Nested Quantifiers. Predicates and. Quantifiers. Agenda. Limitation of Propositional Logic. Try to represent them using propositional.

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

Propositional Logic Not Enough

Predicate Calculus lecture 1

Exercise Set 1 Solutions Math 2020 Due: January 30, Find the truth tables of each of the following compound statements.

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

III. Elementary Logic

Formal (Natural) Deduction for Predicate Calculus

CS0441 Discrete Structures Recitation 3. Xiang Xiao

Predicate Calculus - Syntax

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

ITS336 Lecture 6 First-Order Logic

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

Predicate Logic & Quantification

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

EECS 1028 M: Discrete Mathematics for Engineers

Handout #7 Predicate Logic Trees

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.

STRATEGIES OF PROBLEM SOLVING

Math Fundamentals of Higher Math

Proving logical equivalencies (1.3)

LING 501, Fall 2004: Quantification

Today we will probably finish Course Notes 2.3: Predicates and Quantifiers.

Predicates and Quantifiers. CS 231 Dianna Xu

Predicates, Quantifiers and Nested Quantifiers

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

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

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

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

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

Predicate Logic. Andreas Klappenecker

For all For every For each For any There exists at least one There exists There is Some

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

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

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

THE LOGIC OF QUANTIFIED STATEMENTS

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:

MAT2345 Discrete Math

ECOM Discrete Mathematics

CS 1571 Introduction to AI Lecture 14. First-order logic. CS 1571 Intro to AI. Midterm

COMP Intro to Logic for Computer Scientists. Lecture 11

Solutions to Exercises (Sections )

1.3 Predicates and Quantifiers

Introduction. Predicates and Quantifiers. Discrete Mathematics Andrei Bulatov

Predicate Logic 16. Quantifiers. The Lecture

KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) RULES OF INFERENCE. Discrete Math Team

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

Discrete Structures Lecture 5

Part I: Propositional Calculus

Propositions and Proofs

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem

Logic and Propositional Calculus

Introduction to first-order logic:

Transcription:

Propositional Functions Rosen (6 th Ed.) 1.3, 1.4 Propositional functions (or predicates) are propositions that contain variables. Ex: P(x) denote x > 3 P(x) has no truth value until the variable x is bound by either assigning it a value or by quantifying it. Assignment of values Q(x,y) denote x + y = 7. Each of the following can be determined as or F. Q(4,3) Q(3,2) Q(4,3) Q(3,2) ~[Q(4,3) Q(3,2)] Quantifiers Universe of Discourse, U: he domain of a variable in a propositional function. Universal Quantification of P(x) is the proposition: P(x) is true for all values of x in U. Existential Quantification of P(x) is the proposition: here exists an element, x, in U such that P(x) is true. Universal Quantification of P(x) xp(x) for all x P(x) for every x P(x) Defined as: P(x 0 ) P(x 1 ) P(x 2 ) P(x 3 )... for all x i in U Example: (½) 2 < ½ P(x) denote x 2 x If U is x such that 0 < x then xp(x) is false. If U is x such that 1 < x then xp(x) is true. Existential Quantification of P(x) xp(x) there is an x such that P(x) there is at least one x such that P(x) there exists at least one x such that P(x) Defined as: P(x 0 ) P(x 1 ) P(x 2 ) P(x 3 )... for all x i in U Example: 1 2 1 P(x) denote x 2 x If U is x such that 0 < x < 1 then xp(x) is false. If U is x such that 0 < x 1 then xp(x) is true. 1

Quantifiers xp(x) rue when P(x) is true for every x. False if there is an x for which P(x) is false. xp(x) rue if there exists an x for which P(x) is true. False if P(x) is false for every x. Precedence of Quantifiers and have higher precedence than all other logical operators (,,, etc.). x P(x) Q(x) means ( x P(x)) Q(x) x P(x) Q(x) does not mean x (P(x) Q(x) ) Negation (it is not the case) xp(x) is equivalent to x P(x) rue when P(x) is false for every x False when there is an x for which P(x) is true. Example: P(x) be the statement x is a USC fan and the Universe of Discourse be the students in our CPSC2070 class. xp(x) It is not the case that there is a student in CPSC2070 who is a USC fan. x P(x) For all students in CPSC2070 it is not the case that one of us is a USC fan. Negation (it is not the case) xp(x) is equivalent to x P(x) rue is there is an x for which P(x) is false. False if P(x) is true for every x. Example: P(x) be the statement x is a Clemson fan and the Universe of Discourse be the students in our CPSC2070 class. xp(x) It is not the case every student in CPSC2070 is a Clemson fan. x P(x) here exists a student in CPSC2070 who is not a Clemson fan. Examples (a,b) denote the propositional function a trusts b. U be the set of all people in the world. Everybody trusts Bob. x(x,bob) Could also say: x U (x,bob) Bob trusts somebody. x(bob,x) Alice trusts herself. (Alice, Alice) Alice trusts nobody. x (Alice,x) Examples Carol trusts everyone trusted by David. x((david,x) (Carol,x)) Bob trusts only Alice. (Bob, Alice) x (x=alice (Bob,x)) 2

Bob trusts only Alice. (Bob, Alice) x (x=alice (Bob,x)) p be x=alice q be Bob trusts x p q p q F F F F F False only when Bob trusts someone who is not Alice Quantification of wo Variables (read left to right) x yp(x,y) or y xp(x,y) rue when P(x,y) is true for every pair x,y. False if there is a pair x,y for which P(x,y) is false. x yp(x,y) or y xp(x,y) rue if there is a pair x,y for which P(x,y) is true. False if P(x,y) is false for every pair x,y. Quantification of wo Variables x yp(x,y) rue when for every x there is a y for which P(x,y) is true. False if there is an x such that P(x,y) is false for every y. x yp(x,y) rue if there is an x for which P(x,y) is true for every y. False if for every x there is a y for which P(x,y) is false. P(x,y) be the statement x+y = 7 Is x yp(x,y) true or false? For every number x we can find a number y such that x + y = 7. Is x yp(x,y) true or false? For every number x we can find a number y such that x + y 7. Examples 3a L(x,y) be the statement x loves y where U for both x and y is the set of all people in the world. Everybody loves Jerry. xl(x,jerry) Everybody loves somebody. x yl(x,y) here is somebody whom everybody loves. y xl(x,y) Nobody loves everybody. x y L(x,y) Examples 3b here is somebody whom Lydia does not love. x L(Lydia,x) here is somebody whom no one loves. x y L(y,x) here is exactly one person whom everybody loves. x{ yl(y,x) z[( wl(w,z)) z=x]} 3

Examples 3c here are exactly two people whom Lynn loves. x y{x y L(Lynn,x) L(Lynn,y) z[l(lynn,z) (z=x z=y)]} Everyone loves himself or herself. xl(x,x) here is someone who loves no one besides himself or herself. x y(l(x,y) x=y) P Q Q P(x) Q(x) F F F x( P(x) Q(x)) F F OK by Implication equivalence. F F x(p(x) Q(x)) Does not work. Why? x(p(x) Q(x)) x (P(x) Q(x)) DeMorgans for quantifiers x ( P(x) Q(x)) Implication equivalence x ( P(x) Q(x)) DeMorgans x ( P(x) Q(x)) Double negation x ( P(x) Q(x)) P Q Q P(x) Q(x) F F F F F F F F F Only true if everyone is a Clemson student and is not ignorant. OK x( P(x) Q(x)) Implication equivalence. x(p(x) Q(x)) Was not equivalent x(p(x) Q(x)) Is equivalent. Why? x(p(x) Q(x)) x (P(x) Q(x)) DeMorgan for quantifyers x ( P(x) Q(x)) DeMorgan x (P(x) Q(x)) Implication equivalence 4

Examples 4b R Q R(x) Q(x) F F F F All ignorant people wear red. x(r(x) Q(x)) Q R Q(x) R(x) Is this right? No! his says there may be some ignorant people wearing orange! x(q(x) R(x)) F F F F F F Examples 4c No Clemson student wears red. x(p(x) R(x)) x(r(x) P(x)) Both are correct since one is the contraposition of the other. 5