in This Session We Will Look At: - Predicates and Quantifiers - Translating Sentences Into Logical Expressions
in This Session We Will Look At: - Predicates and Quantifiers - Translating Sentences Into Logical Expressions
Definition
• The universal quantification of P(x) is the
proposition “ P(x) is true for all values of x in
the universe of discourse”.
• The notation: ∀x P(x) denotes the universal
quantification of P(x)
• Here ∀ denotes the universal quantifier.
Example 1:
1
Solution:
• Since P(x) is true for all real numbers x, (any
number multiplied by zero is zero) then ∀x P(x) is
true.
Example 2
Express the statement “ All Mathematicians are
analytical” as a universal quantification.
Solution:
•Let M(x) denote “ x is a mathematician”
•Let A(x) denote “ x is analytical”
•This statement can now be expressed as :
•∀x [M(x) → A(x)] where the universe of
discourse is the set of mathematicians at UWI.
Example 3
What is the truth value of the function ∀x
Q(x), where Q(x) is the statement “x2 < 10”
and the universe of discourse consist of
• (i) positive integers not exceeding 4.
• (ii) integers not exceeding 3?
Solution
(i) The statement ∀x Q(x) is the same as Q(1) ∧
Q(2) ∧ Q(3) ∧ Q(4) since the universe consist of
the integers 1, 2, 3, 4. Since Q(4) is false, ∀x
Q(x) is false.
• (ii) false. Why???
Existential quantification
Definition
• The existential quantification of P(x) is the
proposition “ There exist an element in the
universe of discourse such that P(x) is true”.
• The notation: ∃xP(x) denotes the
existential quantification of P(x)
• Here ∃ denotes the existential
quantifier
Example:
• Let P(x) be the statement “x2 > 10 ”. What is the truth
value of quantification ∃xP(x) where the universe of
discourse consists of the positive integers not
exceeding 4?
Solution:
• The universe of discourse is {1, 2, 3, 4}, the
proposition ∃xP(x) is the same as P(1) ∨ P(2) ∨ P(3)
∨ P(4).
• Since P(4) , which is the statement “42 > 10” is true, it
follows that ∃xP(x) is true.
Negation
Why?
(ii) Consider the case when the domain of
discourse is the set of all people base on subject
choices
• We may use a two variable quantifier
Q(x, y) to mean “student x has studied subject y”
• Our solution is
– ∀x(Q(x, calculus) if the domain is the class, or
– ∀x(S(x) → (Q(x, calculus)) if the domain is the set of
all people.
Example 2
• Express the statement “Everyone has exactly
one best friend” using quantifiers and logical
connectives.
Solution:
• Let B(x, y) : y is the best friend of x. The
statement given may be rephrased as follows.
• For every person x there is another person y, such
that y is the best friend of x and if z is another
person other than y, then z is not the best friend of
x.
Hence the require expression is:
∀x ∃y ∀z[B( x, y) ∧ (( z != y) → ~B(x, z))]
Example 3:
Solution:
We can express these statements as:
• ∀x (P(x) → Q(x))
• ∃x(P(x) ∧ ~R(x))
• ∃x(Q(x) ∧ ~R(x))
Note:
• ∀x (P(x) → S(x))
• ~∃x(Q(x) ∧ R(x))
• ∀x (~R(x)→ ~S(x))
• ∀x (P(x) →~Q(x))
• Here small means not big and dull means
not brightly coloured.
• Let Q(x, y) denote “x + y = 0”. What is the truth
value of the following quantifications, for x, y
real numbers.
(i) ∀x∃y Q(x, y)
(ii) ∃y ∀x Q(x, y)
(iii) ∀x∀y Q(x, y)
Solution
• Example 1:
Translate the statement
∀x(C(x) ∨ ∃y(C(y) ∧ F(x, y)))
into English, where C(x) is “x has a
computer,” F(x, y) is “x and y are friends,”
and the universe of discourse for both x
and y is the set of all students at the
University.
• Solution
Every student has a computer or has a
friend who has a computer.