Tutorial 3
Tutorial 3
PREDICATE LOGIC
Made by:
-Ahmad Ahmad Muhammad
Predicates
and
Quantifiers
Predicates P and the Open statement P(x)
● A predicate is a sentence that contains a finite number of variables and becomes a
statement when specific values are substituted for the variables. The domain of a
predicate variable is the set of all values that may be substituted in place of the variable.
● A statement P(x) is called open, if its truth could be known whenever the variable
assigned a value.
● The set { x : P(x) is true } is called the solution set or truth set
2- Find the solution set for P(x)= (x+3=1) Ù (x2 = 4) x ϵ Z (Z integer numbers)
Ans. The solution set for x+3 =1 is {-2}
The solution set for x2 = 4 is {-2, 2}
The solution set for (x+3=1) Ù (x2 = 4) is {-2} .
The Universal and Existential quantifiers:
•The universal quantifier ":
• " is read as “for each” or “for every” and it means
"x : P(x) is true (Same as conjunction)
1- "x: P(x) = x2 ³ 0
(read; for all x, x2 is greater than or equal to zero)
a) Q (x) : “ x < 2 “, Domain is all Real Numbers (R) , Check “ " x Q (x) “ is True or False.
b) P (x ) : “x2 > 0 “, Domain is all Integers , Check “ " x P (x) “ is True or False.
c) P (x ) : “x2 > 0 “, Domain is all Positive Integers, Check “ " x P (x) “ is True or False.
d) P (x ) : “ x > 3 “, Domain is all Real Numbers (R) , Check “ $ x P (x) “ is True or False.
f) R (x ) : “x2 > 10 “, Domain is Positive integers not exceeding Four , Check “ $ x R (x) “ is True or False.
Question 01
● Let P (x) be the statement “x spends more than five hours every
weekday in class,” where the domain for x consists of all
students. Express each of these quantifications in English.
a) ∃xP (x)
b) ∀xP (x)
c) ∃x ¬P (x)
d) ∀x ¬P (x)
Question 05
● Let P(x), Q(x), R(x), and S(x) be the statements “x is a baby,” “x is logical,” “x is able
to manage a crocodile,” and “x is despised,” respectively. Suppose that the
domain consists of all people. Express each of these statements using quantifiers;
logical connectives; and P(x), Q(x), R(x), and S(x).
b) ∃x ∀y Q(x, y)
c) ∀x ∃y Q(x, y)
d) ∃y ∀x Q(x, y)
e) ∀y ∃x Q(x, y)
f) ∀x ∀y Q(x, y)
Question 07
a) ∀x in D, ∃y in E such that x + y = 0.
b) ∃x in D such that ∀y in E, x + y = y.
c) ∃x in D such that ∀y in E, x ≤ y.
d) ∀x in D, ∃y in E such that xy ≥ y.
Question 08
Use quantifiers and predicates with more than one variable to express these
statements.