2 - PredicateLogicSol
2 - PredicateLogicSol
13.Translate the following statement into English, where the domain for each
∀x∃y(x < y)
variable consists of all real numbers.
a) For every real number x there exists a real number y such that x is less than y.
b) For every real number x and a real number y, x is less than y.
c) There exists a real number y that every real number x is less than it.
d) There exists a real number x and a real number y such that x is less than y.
14.Let Q(x, y) be the statement “x has sent an e-mail message to y,” where the
domain for both x and y consists of all students in your class. Express the
Page 1 of 3
Predicate Logic Week# 4
Student Name: Id: Group#
بالعربية
Reviewer Name: Id: Group#
بالعربية
Score /27
1. Let P(x) be the statement “the word x contains the letter a.”
What is the truth value of P (Nisreen) What is the truth value of P (Sami)
(a)True (a)True
(b) False (b) False
2. Let D(x) be the statement “x has visited Dammam,” where the domain consists of
∃x D(x) ∀x¬D(x)
the students in UQU. Express the following quantification in English.
(a)There is a student in UQU who has not (a)There is a student in UQU who has not
visited Dammam. visited Dammam.
(b) There is a student in UQU who has visited (b) There is a student in UQU who has visited
Dammam. Dammam.
(c)Every student in UQU has visited Dammam. (c)Every student in UQU has visited Dammam.
(d) Every student in UQU has not visited (d)Every student in UQU has not visited
Dammam. Dammam.
3. Translate the following statement into English, where the domain consists of all
people, and:
5. Let P(x) be the statement “x = x2.” If the domain consists of the integers, what is
the truth value of the following statement?
P(0) P(2) ∃x P(x) ∀x P(x)
(a)True (a)True (a)True (a)True
(b)False (b)False (b)False (b)False
Page 2 of 3
6. Determine the truth value of the following statements if the domain consists of all
integers.
∃n(n = −n) ∀n (n + 1 > n)
(a)True (a)True
(b) False (b) False
7. Suppose that the domain of the propositional function P(x) consists of the integers
0, 1, 2, 3, and 4. Write out each of these propositions using disjunctions,
conjunctions, and negations.
∃x¬P(x)
P (0) ∨ P (1) ∨ P (2) ∨ P (3) ∨ P (4)
d)
8. For the following statement choose the domain for which the statement is true.
Everyone is older than 18 years.
a) All students at morning elementary school.
b) All judges in Saudi Arabia.
c) All students at morning secondary school.
d) All students at UQU
9. Translate the following into predicate logic, “Someone in this class can speak Hindi.”
Let, S(x): x is a student in this class, and H(x): x can speak Hindi,
You can use these symbols as appropriate: ∧ ¬ ∨ → ∃ ∀
domain be all students in this class domain be all students in UQU
∃ x H (x) ∃ x (S ( x ) ∧ H (x))
10. Translate the following into predicate logic, where the domain is all students in UQU,
“Everyone in your class has studied calculus and C++.”
Let, S(x): x is a student in this class,
M(x): x studied mathematic,
C(x): x studied C++.
You can use these symbols as appropriate: ∧ ¬ ∨ → ∃ ∀
∀ x (S ( x ) → M ( x ) ⋀ C(x ))
11. Find a counterexample, if possible, to the following statement, where the domain
for all variables consists of all integers.
∀x (x > 0 ∨ x < 0)
0. Since 0 is not less than or greater than 0, 0 is a counter example.
Page 3 of 3