Download presentation
Presentation is loading. Please wait.
1
Predicates and Quantifiers
Dr. Yasir Ali
2
How do you translate the statement: All birds can fly
How do you translate the statement: All birds can fly. If D= Set of all creatures Take π΅(π₯)= π₯ is a Bird. πΉ(π₯)= π₯ can fly. β π₯, π΅(π₯)βπΉ(π₯) We can not say, β π₯, π΅(π₯)β§πΉ(π₯) Since it means that All creatures are bird and they can fly, which is not a correct translation of original statement.
3
How do you translate the statement: Some birds can fly
How do you translate the statement: Some birds can fly. If D= Set of all creatures Take π΅(π₯)= π₯ is a Bird. πΉ(π₯)= π₯ can fly. β π₯, π΅(π₯)β§πΉ(π₯) We can not say, β π₯, π΅(π₯)βπΉ(π₯) Since this statement will be true if π₯ is a frog. That is this statement will be true if π₯ is not a bird because in that case FβπΉ and πΉβπ both are the true statements.
4
Translate in two ways each of these statements into logical expressions using predicates, quantifiers, and logical connectives. First, let the domain consist of the students in your class and second, let it consist of all people. a) Everyone in your class has a cellular phone. b) Somebody in your class has seen a foreign movie. c) There is a person in your class who cannot swim. d) All students in your class can solve quadratic equations. e) Some student in your class does not want to be rich.
5
Precedence of Quantifiers
The quantifiers β and β have higher precedence than all logical operators from propositional calculus. For example, βπ₯π(π₯) β¨ π(π₯) is the disjunction of βπ₯π(π₯) and π(π₯). In other words, it means (βπ₯π(π₯)) β¨ π(π₯) rather than βπ₯(π(π₯) β¨ π(π₯)).
6
Express each of these statements using quantifiers
Express each of these statements using quantifiers. Then form the negation of the statement so that no negation is to the left of a quantifier. Next, express the negation in simple English. (Do not simply use the phrase βIt is not the case that.β) a) All dogs have fleas. b) There is a horse that can add. c) Every koala can climb. d) No monkey can speak French. e) There exists a pig that can swim and catch fish.
7
Translate into formal language. βAll lions are fierce
Translate into formal language. βAll lions are fierce.β βSome lions do not drink coffee.β βSome fierce creatures do not drink coffee.β
9
Multiple Quantified Statements
Assume that the domain for the variables π₯ and π¦ consists of all real numbers. The statement βπ₯ βπ¦(π₯ + π¦ = π¦ + π₯) says that π₯ + π¦ = π¦ + π₯ for all real numbers π₯ and π¦. This is the commutative law for addition of real numbers. Translate into English the statement βπ₯ βπ¦((π₯ > 0) β§ (π¦ < 0) β (π₯π¦ < 0)), where the domain for both variables consists of all real numbers. The product of a positive real number and a negative real number is always a negative real number.β
10
Translate these statements into English, where the domain for each variable consists of all real numbers. a) βπ₯βπ¦(π₯ < π¦) b) βπ₯βπ¦(((π₯ β₯ 0) β§ (π¦ β₯ 0)) β (π₯π¦ β₯ 0)) c) βπ₯βπ¦βπ§(π₯π¦ = π§) Suppose the domain of the propositional function is {1,2,3}. Write out these propositions using disjunctions and conjunctions and determine the truth value of each of these statements. βπ₯βπ¦(π₯ + π¦ = 1) βπ₯βπ¦βπ§(π§ = (π₯ + π¦))
11
The Order of Quantifiers
Consider the statements: β ππππππ π₯ β π ππππ ππ π¦ π π’πβ π‘βππ‘ π₯ πππ£ππ π¦. β π ππππ ππ π¦ β ππππππ π₯ π π’πβ π‘βππ‘ π₯ πππ£ππ π¦.
12
Let π(π₯, π¦) denote βπ₯ + π¦ = 0.β What are the truth values of the quantifications βπ¦βπ₯π(π₯, π¦) and βπ₯βπ¦π(π₯, π¦), where the domain for all variables consists of all real numbers? βπ¦βπ₯π(π₯, π¦) denotes the proposition βThere is a real number π¦ such that for every real number π₯, π(π₯, π¦).β The quantification βπ₯βπ¦π(π₯, π¦) βFor every real number π₯ there is a real number π¦ such that π(π₯, π¦).β
13
Quantifications of Two Variables
Statement When True? When False? βπ₯βπ¦π(π₯, π¦) βπ¦βπ₯π(π₯, π¦) π(π₯, π¦) is true for every pair π₯, π¦. There is a pair π₯, π¦ for which π(π₯, π¦) is false. βπ₯βπ¦π(π₯, π¦) For every π₯ there is a π¦ for which π(π₯, π¦) is true. There is an x such that π(π₯, π¦) is false for every π¦. βπ₯βπ¦π(π₯, π¦) There is an π₯ for which π(π₯, π¦) is true for every π¦. For every π₯ there is a π¦ for which π(π₯, π¦) is false. βπ₯βπ¦π(π₯, π¦) βπ¦βπ₯π(π₯, π¦) There is a pair π₯, π¦ for which π(π₯, π¦) is true. π(π₯, π¦) is false for every pair π₯, π¦.
14
Express each of these mathematical statements using predicates, quantifiers, logical connectives, and mathematical operators. a) The product of two negative real numbers is positive. b) The difference of a real number and itself is zero. d) A negative real number does not have a square root that is a real number.
15
Let F(x, y) be the statement βx can fool y,β where the domain consists of all people in the world. Use quantifiers to express each of these statements. a) Everybody can fool Fred. b) Evelyn can fool everybody. c) Everybody can fool somebody. d) There is no one who can fool everybody. e) Everyone can be fooled by somebody. f ) No one can fool both Fred and Jerry. g) Nancy can fool exactly two people.
16
Translate each of these nested quantifications into an English statement that expresses a mathematical fact. The domain in each case consists of all real numbers. a) βπ₯βπ¦(π₯ + π¦ = π¦) b) βπ₯βπ¦(((π₯ β₯ 0) β§ (π¦ < 0)) β (π₯ βπ¦ > 0)) c) βπ₯βπ¦(((π₯ β€ 0) β§ (π¦ β€ 0)) β§ (π₯ βπ¦ > 0)) d) βπ₯βπ¦((π₯ = 0) β§ (π¦ = 0) β (π₯π¦ = 0))
17
Rules of inference for quantified statements
Rule of Inference Name βxP(x) β΄ P(c) Universal instantiation P(c) for an arbitrary c β΄ βxP(x) Universal generalization βxP(x) β΄ P(c) for some element c Existential instantiation P(c) for some element c β΄ βxP(x) Existential generalization
18
Show that the following argument is valid or not: βAli, a student in this class, knows how to write programs in JAVA. Everyone who knows how to write programs in JAVA can get a high-paying job. Therefore, someone in this class can get a high-paying job.β Everyone enrolled in the university has lived in a dormitory. Mia has never lived in a dormitory. Therefore, Mia is not enrolled in the university.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.