T03 Predicate Logic
T03 Predicate Logic
Semester I 2023/2024
Tutorial 3 (Predicate Logic)
1. Let U be the real numbers, define P(x, y): x. y = 0. What is the truth value of the following:
a. ∀x∀yP(x, y)
False. Because if P(1,1): 1.1=0 is false.
b. ∀x∃yP(x, y)
True. Because P(x,0): x.0=0 is true.
c. ∃x∀yP(x, y)
True. Because P(0,y): 0.y=0 is true.
d. ∃x∃yP(x, y)
True. Because P(0,0): 0.0=0 is true.
2. Let U be the real numbers, define P(x, y): x ⁄ y = 1. What is the truth value of the
following:
a. ∀x∀yP(x, y)
False. Because P(10,2): 10/2=1 is false.
b. ∀x∃yP(x, y)
False. Because P(0,y): 0/y=1 is false.
c. ∃x∀yP(x, y)
False. Because P(x,0): x/0=1 is false.
d. ∃x∃yP(x, y)
True. Because P(1,1): 1/1=1 is true.
3. Translate each of the following statements into logical expressions using predicates,
quantifiers, and logical connectives.
Predicates:
A(x): x is an AI 95 student
L(x): x loves music
Universe of discourse for the variable x is all students.
a) Every student loves music. ∀xL(x)
e) There is a man who has taken a flight on every airline in the world.
F(x,y): x has taken a flight on y.
Universe of discourse for the variable x is all men.
Universe of discourse for the variable y is all airline in the world.
∃x∀yF(x, y)
5. Express the statement “there is a number x such that when it is added to any number, the
result is that number, and if it is multiplied by any number, the result is x” as a logical
expression.
Let A(x,y): x+y=y
Let M(x,y): x.y=x
∃x∀y(A(x, y) ∧ M(x,y))
6. All people who are not poor and are smart are happy. Those people who read are smart.
Adam can read and is not poor. Happy people have exciting lives.
Write the sentences in predicate calculus, using appropriate predicates.
All people who are not poor and are smart are happy.
P(x): x is poor.
S(x): x is smart.
H(x): x is happy.
Let U be all people.
∀x((~P(x) ∧ S(x)) → H(x))
Those people who read are smart.
R(x): x read.
S(x): x is smart.
Let U be all people.
∀x(R(x) → S(x))