Lec 8
Lec 8
Lecture - 8
Quantifiers with Restricted Domain
We can limit the domain of the quantifier by modifying the notation a bit.
Example 1: ∀x < 0 (x2 > 0)
Domain: Real Numbers
Meaning of the above statement: "The square of any negative real number is positive."
This notation expresses that for all x, where x < 0, the square of x is greater than 0.
Example 2: ∃y > 0 (y2 = 2)
Domain: Real Numbers
Meaning of the above statement: "There exists a positive square root of 2."
This means that there exists a positive y such that y2 = 2. This is equivalent to stating that
y = √2, which is true.
Practice Problem:
Q1. What is the truth value of ∀x < 0 (x2 = 1) where the domain consists of all real numbers?
Q2. What is the truth value of the following statements if the domain consists of all integers?
a) ∃x ≠ 2 (x2 = 4)
b) ∃x (x < 0 → x2 - 2 > 1)
Solutions:
1. ∀x < 0 (x2 = 1)
This statement reads: "For all real numbers x, where x < 0, x2 = 1."
Domain: all real numbers.
➢ The quantifier ∀x < 0 restricts x to negative real numbers.
➢ Now, for each x < 0, we are asked if x2 =1.
The square of any negative number x < 0 is always positive.
However, only for x = −1, it holds that x2 = 1.
For any other negative real number (like x = −2, x = −0.5, etc.), x2 ≠ 1.
Conclusion:
Since the statement must hold for all negative x, and it only holds for x = −1, the statement
is false.
2. a) ∃x ≠ 2 (x² = 4)
Statement: ∃x ≠ 2 (x2 = 4)
This reads: "There exists an integer x that is not equal to 2, such that x2 = 4."
Domain: all integers.
➢ We are looking for an integer x such that x2 = 4, but x must not be equal to 2.
➢ Solving x2 = 4, we find that x = 2 and x = −2.
However, the statement specifies that x ≠ 2, so we focus on the other solution: x = −2.
Conclusion:
Since x = −2 satisfies x2 = 4 and x ≠ 2, the statement is true.
b) ∃x (x < 0 → x² - 2 > 1)
Statement: ∃x (x<0 → x2−2>1)
This reads: "There exists an integer x such that if x < 0, then x² - 2 > 1."
➢ We are looking for an integer x such that the implication x < 0 → x² - 2 > 1 holds.
➢ The implication p → q is false only if p is true and q is false. Otherwise, the implication
holds.
Let’s break it down:
• If x < 0, then we want to check whether x² - 2 > 1.
▪ For x = −1, x2 – 2 = 1 – 2 = −1, which is not greater than 1. Thus, x = −1 does
not satisfy the condition.
▪ For x = −2, x2 – 2 = 4 – 2 =2, which is greater than 1. So, x = −2 satisfies the
condition.
• Since x ≥ 0, the condition that x < 0 can never be true, so the whole statement is
automatically true, even though the second part doesn’t matter.
Conclusion:
Since x = −2 satisfies the condition, the statement is true.
Logical Equivalences Involving Predicates and Quantifiers
Definition: Two logical statements involving predicates and quantifiers are said to be
equivalent if and only if they have the same truth value in all the possible
cases.
Logical equivalence is helpful in replacing one expression with an equivalent expression.
There are two important equivalences involving quantifiers:
∀x (P(x) ^ Q(x)) ≡ ∀x P(x) ^ ∀x Q(x)
∃x (P(x) v Q(x)) ≡ ∃x P(x) v ∃x Q(x)
Note: we can also use ⇔ symbol instead of ≡ symbol.
Now we prove:
∀x P(x) ^ ∀x Q(x) → ∀x (P(x) ^ Q(x))
Assume that ∀x P(x) ^ ∀x Q(x) is true,
Then we will see if ∀x (P(x) ^ Q(x)) is true or not.
Thus, ∀x P(x) ^ ∀x Q(x) → ∀x (P(x) ^ Q(x)) is true.
Because at least one student who has studied discrete mathematics and has scored more
than 60% marks in exam.
So, there is no student who has studied discrete mathematics and has scored more than
60% marks in exam.
Thus, it is clear that when ∃x P(x) ^ ∃x Q(x) is TRUE, then ∃x (P(x) ^ Q(x)) need not to be true.
Hence, the other side of implication does not satisfy, which means they are not equivalent.
Conclusion:
∃x (P(x) ^ Q(x)) ≡ ∃x P(x) ^ ∃x Q(x) ------> FALSE
∃x (P(x) v Q(x)) ≡ ∃x P(x) v ∃x Q(x) -------> TRUE
Example: Determine whether ∀x(P(x)→Q(x)) and ∀xP(x)→∀xQ(x) are logically equivalent.
Justify your answer.
The Two Expressions:
1. ∀x(P(x) → Q(x)):
✓ This says, "For every x, if P(x) is true, then Q(x) must be true."
✓ It looks at each individual case (for every x) and checks whether P(x) leads to
Q(x).
2. ∀xP(x) → ∀xQ(x):
✓ This says, "If P(x) is true for every x, then Q(x) must be true for every x."
✓ Here, we are not looking at individual cases but rather at whether P(x) is true
for all x, and if that’s the case, then Q(x) should also be true for all x.