[Handout] Predicate Logic_240123_212401
[Handout] Predicate Logic_240123_212401
Dept. of Mathematics
KNUST
1 Predicates
2 Quantifiers
Predicates Quantifiers
Summary of topics
1 Predicates
2 Quantifiers
1 / 20
Predicates Quantifiers
Predicates I
Definition 1 (Predicate)
A predicate refers to the part of a sentence that attributes a
property of the subject.
Example 2
2 / 20
Predicates Quantifiers
Illustration
1 A predicate that just involves only one variable x may be
denoted by P(x).
2 Here, P is the notation for the propositional function and
x is the variable mostly for the subject.
3 The statement P(x) is said to be the value of the
propositional function P defined at x.
4 A propositional function is neither True nor False, unless a
value of the variable has been assigned from its Domain.
3 / 20
Predicates Quantifiers
Domain of discourse
Domain of discourse: Is the set of all values of a variable that
can replace it.
4 / 20
Predicates Quantifiers
Exercises
Example 3
Discuss the following statements in the context of predicate
logic.
(a) The statement x > 2, for x = 0 and x = 7.2, where the
domain for the variable consists of all real numbers.
(b) x 2 + y 2 = z 2 , for x = 3, y = 4, z = 5 and for
x = 5, y = 6 , z = 7, where the domain for each of the
three variables consists of all positive variables.
5 / 20
Predicates Quantifiers
Summary of topics
1 Predicates
2 Quantifiers
6 / 20
Predicates Quantifiers
Quantifiers
7 / 20
Predicates Quantifiers
Universal quantifier I
Let P(x) be an expression with a free variable x. Let U be the
collection of all possible values of x.
Definition 4 (Universal quantifier)
A universal quantifier applied to P(x) is the statement,
denoted (∀x in U)P(x), which is true for all possible value x in
U.
Statements with the universal quantifiers can also be stated as:
For all values of x in U, the statement P(x) is true.
For each x in U, the statement P(x) is true;
The statement P(x) is true for all x in U.
All values of x in U satisfy the P(x).
A value for x for which P(x) is false is called a
counterexample to the universal statement ∀xP(x).
8 / 20
Predicates Quantifiers
Unviversal quantifier II
Example 5
Determine
√ the truth values of the universal statement
∀x(x ≥ x) for the following domains.
(a) All positive integers less than or equal to 3.
(b) All positive real numbers less than or equal to 3.
9 / 20
Predicates Quantifiers
Existential quantifier
Let P(x) be an expression with a free variable x.
Let U be the collection of all possible values of x.
Example 7
Determine
√ the truth values of the universal statement
∃x(x < x) for the following domains.
(a) All positive integers less than or equal to 3.
(b) All positive real numbers less than or equal to 3.
Example 8
11 / 20
Predicates Quantifiers
Example 9
Logical equivalences
13 / 20
Predicates Quantifiers
Negations of quantifiers
The rules for negations of quantified statements, which are
called De Morgan’s laws for quantifiers, are as follows:
(
∀xP(x) ≡ ∃xP(x)
∃xP(x) ≡ ∀xP(x)
Example 11
Determine the negations of the following statements:
All prime numbers are odd.
There is an honest politician.
Rich people do not have empathy.
Some people do not live to be 100 years old.
Every person who is a vegetarian is healthy.
Some people weigh more than 100 kg and are not healthy. 15 / 20
Predicates Quantifiers
Nested Quantifiers
1 We can form statements with more than one quantifier, as
long as different quantifiers involve different variables.
Suppose P(x, y) = ”x + y 2 = 3” where x, y ∈ R.
(∀y )(∃x)P(x, y) is a valid statement.
For all y , there exists x such that x + y 2 = 3.
For each y, there is some x such that x + y 2 = 3.
Statement is true since x = 3 − y 2 .
2 The order of appearance of the quantifiers is important.
(∃y )(∀x)P(x, y) is different from (∀y )(∃x)P(x, y ).
There exists some x such that for all y , the equation
x + y 2 = 3 holds. FALSE.
A very important occurrence of the importance of the order
of multiple quantifiers is in the “ϵ-δ” proofs treated in real
analysis
courses.
lim f (x) = L ⇔ ∀ϵ > 0 : ∃δ > 0 : ∀x : (|x − a| < δ) →
x→a
(|f (x) − L| < ϵ)
16 / 20
Predicates Quantifiers
Example 12
18 / 20
Predicates Quantifiers
Example 13
20 / 20