3 1
3 1
Test Yourself
Answers to Test Yourself questions are located at the end of each section.
1. If P(x) is a predicate with domain D, the truth set of P(x) 4. A statement of the form ∀x ∈ D, Q(x) is true if, and only
is denoted . We read these symbols out loud as . if, Q(x) is for .
2. Some ways to express the symbol ∀ in words are . 5. A statement of the form ∃x ∈ D such that Q(x) is true if,
and only if, Q(x) is for .
3. Some ways to express the symbol ∃ in words are .
∗
For exercises with blue numbers or letters, solutions are given in Appendix B. The symbol H indicates that only a hint or a partial
solution is given. The symbol ✶ signals that an exercise is more challenging than usual.
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
3.1 Predicates and Quantified Statements I 107
14. Consider the following statement: H 20. Rewrite the following statement informally in at least two
different ways without using variables or the symbol ∀ or
∃x ∈ R such that x = 2. 2
the words “for all.”
Which of the following are equivalent ways of expressing
∀ real numbers x, if x is positive, then
this statement?
the square root of x is positive.
a. The square of each real number is 2.
b. Some real numbers have square 2. 21. Rewrite the following statements so that the quantifier trails
c. The number x has square 2, for some real number x. the rest of the sentence.
d. If x is a real number, then x 2 = 2. a. For any graph G, the total degree of G is even.
e. Some real number has square 2. b. For any isosceles triangle T , the base angles of T are
f. There is at least one real number whose square is 2. equal.
c. There exists a prime number p such that p is even.
H 15. Rewrite the following statements informally in at least two
d. There exists a continuous function f such that f is not
different ways without using variables or quantifiers.
differentiable.
a. ∀ rectangles x, x is a quadrilateral.
b. ∃ a set A such that A has 16 subsets. 22. Rewrite each of the following statements in the form
“∀ x, if then .”
16. Rewrite each of the following statements in the form
a. All Java programs have at least 5 lines.
“∀ x, .”
b. Any valid argument with true premises has a true con-
a. All dinosaurs are extinct.
clusion.
b. Every real number is positive, negative, or zero.
c. No irrational numbers are integers. 23. Rewrite each of the following statements in the two forms
d. No logicians are lazy. “∀x, if then ” and “∀ x, ”
e. The number 2,147,581,953 is not equal to the square of (without an if-then).
any integer. a. All equilateral triangles are isosceles.
f. The number −1 is not equal to the square of any real b. Every computer science student needs to take data struc-
number. tures.
17. Rewrite each of the following in the form “∃ x such 24. Rewrite the following statements in the two forms
that .” “∃ x such that ” and “∃x such that
a. Some exercises have answers. and .”
b. Some real numbers are rational. a. Some hatters are mad. b. Some questions are easy.
18. Let D be the set of all students at your school, and let M(s) 25. The statement “The square of any rational number is ratio-
be “s is a math major,” let C(s) be “s is a computer sci- nal” can be rewritten formally as “For all rational numbers
ence student,” and let E(s) be “s is an engineering student.” x, x 2 is rational” or as “For all x, if x is rational then x 2
Express each of the following statements using quantifiers, is rational.” Rewrite each of the following statements in the
variables, and the predicates M(s), C(s), and E(s). two forms “∀ x, ” and “∀x, if , then
a. There is an engineering student who is a math major. ” or in the two forms “∀ x and y, ”
b. Every computer science student is an engineering stu- and “∀x and y, if , then .”
dent. a. The reciprocal of any nonzero fraction is a fraction.
c. No computer science students are engineering students. b. The derivative of any polynomial function is a polyno-
d. Some computer science students are also math majors. mial function.
e. Some computer science students are engineering stu- c. The sum of the angles of any triangle is 180◦ .
dents and some are not. d. The negative of any irrational number is irrational.
e. The sum of any two even integers is even.
19. Consider the following statement:
f. The product of any two fractions is a fraction.
∀ integers n, if n 2 is even then n is even.
26. Consider the statement “All integers are rational numbers
Which of the following are equivalent ways of expressing but some rational numbers are not integers.”
this statement? a. Write this statement in the form “∀x, if then
a. All integers have even squares and are even. , but ∃ x such that .”
b. Given any integer whose square is even, that integer is b. Let Ratl(x) be “x is a rational number” and Int(x) be “x
itself even. is an integer.” Write the given statement formally using
c. For all integers, there are some whose square is even. only the symbols Ratl(x), Int(x), ∀, ∃, ∧, ∨, ∼, and →.
d. Any integer with an even square is even.
27. Refer to the picture of Tarski’s world given in Example
e. If the square of an integer is even, then that integer is
3.1.13. Let Above(x, y) mean that x is above y (but pos-
even.
sibly in a different column). Determine the truth or falsity
f. All even integers have even squares.
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
108 Chapter 3 The Logic of Quantified Statements
of each of the following statements. Give reasons for your “x is a perfect square.” (An integer n is said to be a perfect
answers. square if, and only if, it equals the square of some integer.
a. ∀u, Circle(u) → Gray(u). For example, 25 is a perfect square because 25 = 52 .)
b. ∀u, Gray(u) → Circle(u). a. ∃x such that Prime(x) ∧ ∼Odd(x).
c. ∃y such that Square(y) ∧ Above(y, d). b. ∀x, Prime(x) → ∼Square(x).
d. ∃z such that Triangle(z) ∧ Above( f, z). c. ∃x such that Odd(x) ∧ Square(x).
In 28–30, rewrite each statement without using quantifiers or H 31. In any mathematics or computer science text other than this
variables. Indicate which are true and which are false, and jus- book, find an example of a statement that is universal but is
tify your answers as best as you can. implicitly quantified. Copy the statement as it appears and
rewrite it making the quantification explicit. Give a com-
28. Let the domain of x be the set D of objects discussed
plete citation for your example, including title, author, pub-
in mathematics courses, and let Real(x) be “x is a real
lisher, year, and page number.
number,” Pos(x) be “x is a positive real number,” Neg(x)
be “x is a negative real number,” and Int(x) be “x is an 32. Let R be the domain of the predicate variable x. Which of
integer.” the following are true and which are false? Give counter
a. Pos(0) examples for the statements that are false.
b. ∀x, Real(x) ∧ Neg(x) → Pos(−x). a. x > 2 ⇒ x > 1
c. ∀x, Int(x) → Real(x). b. x > 2 ⇒ x 2 > 4
d. ∃x such that Real(x) ∧ ∼Int(x). c. x 2 > 4 ⇒ x > 2
d. x 2 > 4 ⇔ |x| > 2
29. Let the domain of x be the set of geometric figures in the
plane, and let Square(x) be “x is a square” and Rect(x) be 33. Let R be the domain of the predicate variables a, b, c, and
“x is a rectangle.” d. Which of the following are true and which are false?
a. ∃x such that Rect(x) ∧ Square(x). Give counterexamples for the statements that are false.
b. ∃x such that Rect(x) ∧ ∼Square(x). a. a > 0 and b > 0 ⇒ ab > 0
c. ∀x, Square(x) → Rect(x). b. a < 0 and b < 0 ⇒ ab < 0
c. ab = 0 ⇒ a = 0 or b = 0
30. Let the domain of x be the set Z of integers, and let Odd(x)
d. a < b and c < d ⇒ ac < bd
be “x is odd,” Prime(x) be “x is prime,” and Square(x) be
This section continues the discussion of predicates and quantified statements begun in
Section 3.1. It contains the rules for negating quantified statements; an exploration of the
relation among ∀, ∃, ∧, and ∨; an introduction to the concept of vacuous truth of universal
statements; examples of variants of universal conditional statements; and an extension of
the meaning of necessary, sufficient, and only if to quantified statements.
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.