Predicate Logic
Predicate Logic
January 2021
Definition (Predicate)
A predicate is an expression involving one or more variables defined
on some domain, called the domain of discourse. Substitution of a
particular value for the variable(s) produces a proposition which is
either true or false.
Example
P(n) : n is prime is a predicate on the natural numbers. Observe
that P(1) is false, P(2) is true.
Predicate
Example
Let Q(x, y ) : x = y + 3 with domain the collection of natural
numbers. What are the truth values of the propositions Q(1, 2)
and Q(4, 1)?
Example
Consider the two predicates P(x) : x is a factor of 4 and Q(x) : x
is a factor of 8. Show that P(x) ⇒ Q(x).
Predicate
Universal Quantifier
∀k ∈ N, (2k is even)
Example
1
Show that the proposition ∀x ∈ R, x > x is false.
Example
Write in the form ∀x ∈ D, P(x) the proposition : “every real
number is either positive, negative or 0.”
Existential Quantifier
Example
Let P(x) denote the statement “x > 3.” What is the truth value
of the proposition ∃x ∈ R, P(x).
Negation of Quantifiers
Example
Write the negation of each of the following propositions:
1 ∀x ∈ R, x > 3 → x 2 > 9.
2 Every polynomial function is continuous.
Examples
Example
1 Let P(x, y ) denote the statement “x + y = y + x.” What is
the truth value of the proposition (∀x ∈ R)(∀y ∈ R), P(x, y )?
2 Let Q(x, y ) denote the statement “x + y = 0.” What is the
truth value of the proposition (∃y ∈ R)(∀x ∈ R), Q(x, y )?
Example
Find the negation of the following propositions:
1 ∀x∃y , P(x, y )?
2 ∃x∀y , P(x, y )?
Existential Quantifier
Example
Which of the following statements are true and which are false.
1 ∃!x ∈ R, ∀y ∈ R, xy = y .
1
2 ∃! integer x such that x is an integer.
Research on it