Lecture 03
Lecture 03
Definition
A predicate is a sentence that contains a finite number of variables
and becomes a statement when specific values are substituted for the
variable.
The domain of a predicate variable is the set of all values that may
be substituted in place of the variable.
Solution.
P(2) : 22 > 2, or 4 > 2. True.
2
1 1 1 1 1
P : > , or > . False.
2 2 2 4 2
2
1 1 1 1 1
P − : − >− , or >− . True.
2 2 2 4 2
Definition
If P(x) is a predicate and x has domain D, the truth set of P(x) is the
set of all elements of D that make P(x) true when substituted for x.
{x ∈ D|P(x)}
Example.
Z+ = {x ∈ Z|x > 0}
“The set of all integers x such that x > 0.”
Let P(x) be the predicate “|x| < 4” and Q(x) be the predicate “x 2 = 8”,
and the domain is the set of integers.
Find the truth set of P(x) and Q(x).
.......................................................................
Solution
The truth set of P(x) = {−3, −2, −1, 0, 1, 2, 3}.
Thus the truth set of Q(x) is the empty set, denoted as {} ( or ∅).
Definition
Let Q(x) be a predicate and D the domain of x.
A universal statement is a statement of the form
∀x ∈ D, Q(x).
Some books just use “ ∀xQ(x)” when the domain is clear from the
context.
MH1300 Lecture handout 3 (NTU) §3.1 Predicates and Quantified statements I 7 / 63
Example
a. Let D = {2, 3, 4}. Show that the following statement is true.
∀x ∈ D, x > 1/x.
Definition
Let Q(x) be a predicate and D the domain of x.
An existential statement is a statement of the form
Some books just use “∃x ∈ D, Q(x)” or simply “∃xQ(x)” when the
domain is clear from the context.
MH1300 Lecture handout 3 (NTU) §3.1 Predicates and Quantified statements I 9 / 63
Example
.......................................................................
Solution:
a. We just choose a nice small number, so that it is easy to check.
1
Take x = 2 ∈ R. Then
4 2
1 1 1 1
= < = .
2 16 4 2
.......................................................................
Solution:
b. Again, we use the method of exhaustion.
It is important to be able to
∀x ∈ R, x 2 ≥ 0.
.......................................................................
Solution:
All real numbers have nonnegative squares.
Example.
Similarly,
“ ∃x such that P(x) and Q(x)”
can be rewritten as
“ ∃x ∈ D such that Q(x)”,
where D is the set of all x for which P(x) is true.
MH1300 Lecture handout 3 (NTU) §3.1 Predicates and Quantified statements I 15 / 63
Example 3.1.11
A prime number is an integer greater than 1 whose only positive integer
factors are itself and 1. Consider the statement
Use the notation Prime(n) and Even(n) to rewrite this statement in the
following forms:
∃n ∈ Z such that ∧ .
∃ n such that .
∃ n such that .
Notation
Let P(x) and Q(x) be predicates with D, the common domain of x.
The notation P(x) ⇒ Q(x) means that every element in the truth set
of P(x) is in the truth set of Q(x).
The notation P(x) ⇐⇒ Q(x) means that P(x) and Q(x) have
identical truth sets, or equivalently, “∀x ∈ D, P(x) ↔ Q(x)”.
“ ∀x ∈ R, (x + 2 ∈ Q) → (x ∈ Q) ”.
Equivalently, “x + 2 ∈ Q =⇒ x ∈ Q”.
“ ∀x ∈ R, (x + 2 ∈ Q) ↔ (x ∈ Q) ”.
Equivalently, “x + 2 ∈ Q ⇐⇒ x ∈ Q”.
A statement of the form “∀x ∈ D, Q(x)” is true if and only if, Q(x)
is for .
Symbolically,
¬(∀x ∈ D, Q(x)) ≡ ∃x ∈ D such that ¬Q(x).
Symbolically,
¬(∃x ∈ D such that Q(x)) ≡ ∀x ∈ D, ¬Q(x).
Recall:
1. ¬(∀x, P(x) → Q(x)) ≡ ∃x such that ¬(P(x) → Q(x)).
or less symbolically,
Answer:
∃n ∈ Z such that n is even, n > 2, and n cannot be
expressed as a sum of two primes.
Or even better:
Question: Why is the negation of “for all ...” = “there exists ...”?
A statement
∀x in D, if P(x) then Q(x)
is called vacuously true or true by default if and only if P(x) is false for
every x ∈ D.
Definition
Consider a statement of the form
∀x ∈ D, if P(x) then Q(x).
Write down its contrapositive, converse, and inverse for the statement
∀a ∈ R, if a < −3 then x 3 + ax + 2 has 3 distinct real roots.
.......................................................................
Contrapositive:
Converse:
Inverse:
Definition
1. “∀x, r (x) is a sufficient condition for s(x)” means
“∀x, if r (x) then s(x).”
The statements,
can be rewritten as
Motivation.
Translating from Informal to formal language.
Negations of multiply-quantified statements.
Order of quantifiers.
Formal logical notation.
Symbolically, .
- True when for every given x, you can find a y that “works” for x.
Similarly, we use
Statement is True.
.......................................................................
Informal: “Some students in MH1300 attempted all the problems in
tutorial 2.”
.......................................................................
.......................................................................
Answer:
lim f (x) = L
x→a
if for every number > 0, there is a number δ > 0 such that for all x ∈ R,
“∀ > 0, ∃δ > 0 such that ∀x ∈ R, if 0 < |x − a| < δ then |f (x) − L| < .”
.......................................................................
Answer:
I.e.,
Caution
If a statement contains two different quantifiers, reversing the order of the
quantifiers can change the truth value of the statement to its opposite.
.......................................................................
This is obviously false, and has opposite truth value as the first statement.
Universal instantiation.
Universal modus ponens.
Use of universal modus ponens in a proof.
Universal modus tollens.
Proving validity of arguments with quantified statements.
Using diagrams to test for validity.
Creating additional forms of argument.
Remark on the converse and inverse errors.
A famous example:
Modus Ponens
p→q
Universal instantiation + gives
p
∴q
We use Universal modus ponens very often in proofs, and usually without
even realizing.
Next is an example which will be discussed again in Section 4.1. But first,
here is a definition.
Proof:
Suppose m and n are particular but arbitrarily chosen even integers. Then
m = 2r for some integer r ,(1) and n = 2s for some integer s.(2) Hence
m + n = 2r + 2s
= 2(r + s).(3)
(1)
: If an integer is even, then it equals twice some integer.
m is a particular even integer.
∴ m equals twice some integer r .
MH1300 Lecture handout 3 (NTU) §3.4 Arguments with Quantified Statements 56 / 63
Universal modus tollens
Modus Tollens
p→q
Universal instantiation + gives
¬q
∴ ¬p
f is not continuous at 0.
Definition
To say an argument form is valid means the following:
No matter what predicates are substituted for the predicate symbols in the
premises, if the resulting premise statements are all true, then the
conclusion is also true.
By the universal instantiation rule, the statement “If P(a) then Q(a) is
true for this particular a”.
Transitivity
p→q
Universal instantiation + gives
q→r
∴p→r
Universal Transitivity
Formal Version Informal Version
∀x(P(x) → Q(x)). Any x that makes P(x) true makes Q(x) true.
∀x(Q(x) → R(x)). Any x that makes Q(x) true makes R(x) true.
∴ ∀x(P(x) → R(x)). ∴ Any x that makes P(x) true makes R(x) true.
written as “ ”.