Examples of Proofs
Examples of Proofs
We discussed in class how to formally show that one set is a subset of another and how to show two sets are
equal. Here are some examples.
In the first proof here, remember that it is important to use different dummy variables when talking about
different sets or different elements of the same set. You dont want to accidently start by assuming that two
elements are equal. Note that I discovered the relationship between m and n in my scratch work (I asked myself
what needed to be true to make 4m + 1 equal to 4n 3, setting them equal and solving I got n = m + 1).
Theorem Let A = {n : n = 4k + 1 for some k Z} and B = {n : n = 4k 3 for some k Z}. Prove A = B
Proof: We must show that A B and B A.
First, we show that A B.
Let x A. By definition of A, x = 4m + 1 for some m Z. Letting n = m + 1, we check by substitution that
4n 3 = 4(m + 1) 3 = 4m + 4 3 = 4m + 1 = x. Hence, x = 4n 3 for some n Z (namely, n = m + 1).
Thus, x B and we have shown A B.
Now we show that B A.
Let x B. By definition of B, x = 4n 3 for some n Z. Letting m = n 1, we check by substitution that
4m + 1 = 4(n 1) + 1 = 4n 4 + 1 = 4n 3 = x. Thus, x = 4m + 1 for some m Z (namely, m = n 1).
Ergo, x A and we have shown B A.
Therefore, A = B.
Here is another set equality proof (from class) about set operations.
Theorem For any sets A and B, A B = A B c .
Proof: We must show A B A B c and A B c A B. First, we show that A B A B c .
Let x A B. By definition of set difference, x A and x 6 B. By definition of complement, x 6 B implies
that x B c . Hence, it is true that both, x A and x B c . By definition of intersection, x A B c .
Now we show that A B c A B.
Let x A B c . By definition of intersection, x A and x B c . By definition of complement, x B c implies
that x 6 B. Hence, x A and x 6 B. By definition of set difference, x A B.
Thus, A B = A B c .
Here are some basic subset proofs about set operations.
Theorem For any sets A and B, A B A.
Proof: Let x A B. By definition of intersection, x A and x B. Thus, in particular, x A is true.
Theorem For any sets A and B, B A B.
Proof: Let x B. Thus, it is true that at least one of x A or x B is true. Since x A or x B is true, by
definition of union, x A B.
Theorem For any sets A and B, A B A.
Proof: Let x A B. By definition of set difference, x A and x 6 B. Thus, in particular, x A is true.
2 2
Proof: Assume 0 < c < d. If, on the contrary, c d,then the theorem above implies that c d , so
a
b
zero. Since y = dc cant be zero by assumption, c must also be nonzero. By substitution, x/y = cb = ad
bc . Since
d
p = ad and q = bc are integers and q = bc is not zero, we have shown that xy can be written in the form pq for
some integers p and q. Hence x/y is a rational number.
The next two proofs illustrate how mathematicians try to generalize theorems.
Theorem If x is a rational numbers, then x2 is a rational number.
Proof: Assume x is a rational number.
By the definition of a rational number, x = ab for some integers a and b where b is not zero. By substitution,
2
2
x2 = ab = ab2 . Since p = a2 and q = b2 are integers and q = b2 is not zero, we have shown that xy can be
written in the form pq for some integers p and q. Hence, x2 is a rational number.
Theorem If x is a rational numbers and n is a natural number, then xn is a rational number.
Proof: Assume x is a rational number.
By the definition
of being rational, x = ab for some integers a and b where b is not zero. By substitution,
a n
an
n
x = b = bn . Since p = an and q = bn are integers and q = bn is not zero, we have shown that xy can be
written in the form qp for some integers p and q. Hence, xn is a rational number.
Most of the facts above dont hold true in general for irrational numbers. For example, x = 2 is irrational
2
(we will prove this later in the quarter), how x2 = 2 = 2 = 12 is a rational number. So the square of an
irrational number may or may not be irrational. The sum of two irrational number can be rational and the
product of two irrational number can be rational (you may see if you can find counterexamples).