0% found this document useful (0 votes)
5 views2 pages

Lec 03

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Lec 03

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Lecture 3: Proofs

Nitin Saxena?

IIT Kanpur

1 Contrapositive proofs
A slightly more involved way of proving p ⇒ q is to prove that if q is false then p is false too. Denote not
(negation) of a statement p by ¬p. A proof by contrapositivity involves showing ¬q ⇒ ¬p instead of showing
p ⇒ q.
What does this mean in natural language. Consider the statement, if Raman goes to market then Marie
will not go to the market. Clearly, if Marie is in the market then it means that Raman did not go the market.
Let us look at some mathematical examples. Show that if there is a prime n > 3 then n + 1 is not a
perfect square. Here p is “n ≥ 3 is a prime number” and q is “n + 1 is not a perfect square”.
Proof. We will start with ¬q, i.e., n + 1 is a perfect square.
⇒ there exist x, s.t., x2 = n + 1.
⇒ x2 − 1 = n.
⇒ n can be factored as (x + 1)(x − 1), where (x − 1) 6= 1.
⇒ n is not a prime.

Note 1. The previous theorem can be equivalently stated as, there is no prime number n > 3 for which n + 1
is a perfect square.

Exercise 1. Convince yourself that direct proof of the previous theorem will be difficult.

Warning: There is a common fallacy, where instead of proving ¬q ⇒ ¬p some people prove ¬p ⇒ ¬q.
You should be very careful, ¬p ⇒ ¬q is NOT equivalent to p ⇒ q.

Example 1. Consider the statement: If n is not of the form 6k + 3 then n2 is not divisible by 3. You can
check that this statement is not true. On the other hand, we can prove ¬p ⇒ ¬q in this case.
¬p means that n is of the form 6k + 3. On squaring, n2 = 36k 2 + 36k + 9 = 3(12k 2 + 12k + 3). So, ¬q is
true (3 divides n2 ).

2 Contradiction
Another technique, related to contrapositivity, is the method of contradiction. In this case, if we want to
prove that p is true, then we assume ¬p and arrive at something false (like 2 is an odd number, etc.) or
something contrary to the hypothesis.

The first example of a proof by contradiction will be the fact that 2 is not rational.
√ √
Proof. Suppose 2 is rational. This implies that there exist a, b ∈ N with no common factor s.t. 2 = ab .
2
Squaring, 2 = ab2 . This implies that there is a common factor (namely, 2) between a and b. But this violates
the hypothesis that a and b have no factor in common. This is a contradiction.
a2
Exercise 2. Prove that if 2 = b2 then a and b have 2 as a common factor.
Then we get 2a02 = b2 , which implies that 2 divides b.
From a2 = 2b2 one can deduce that 2 divides a. Say, a = 2a0 .

?
Edited from Rajat Mittal’s notes.
Let us consider another theorem.

Theorem 1 (Euclid, c. 300 BC). Given a natural number n, there exist a prime greater than n.

Proof. Suppose there is no prime greater than n. Define m = n! + 1. Since m − 1 is divisible by all the
numbers {2, · · · , n}, m is not divisible by any of them. This implies that no prime divides m (because all
primes are smaller than n). Thus, m itself has to be a prime greater than n. This is a contradiction.

Our last example will require some definitions in set theory. It is easy to define cardinality of a set (size
of a set) when the set is finite. It is the number of elements in the set. How about the “cardinality” when the
set is infinite. Would you say that the cardinality of the set of odd integers O is the same as the cardinality
of the set of even integers E?
The intuition seems to suggest that they should be the same (|O| = |E|?). The reason being that you
can establish a one to one relation between the two sets, e.g. x → x − 1, which covers entire sets.

Note 2. We denote the cardinality of a set S by |S|.


The cardinality for any two sets are defined to be equal if there is a bijection between the two sets.
Remember that bijection means the relation is one to one and onto.
Similarly, we can say that |S| ≤ |T | if there is an injection (one to one mapping) from S to T . There is a
theorem (Schröder-Bernstein) which states that if there are injections from S to T and T to S then there is
a bijection between S and T .
You will prove in the assignment that the cardinality of natural numbers is same as cardinality of integers.
The same can be shown for integers and rationals. Though, the number of rationals and number of reals are
not the same. Things can get weird at infinity !!
Let us see another beautiful proof by contradiction.

Theorem 2. The cardinality of a set S is not equal to the cardinality of its powerset 2S (set of all subsets).

Note 3. This statement sounds trivial if the set is finite. But we will prove this even for infinite sets.

References
1. K. H. Rosen. Discrete Mathematics and Its Applications. McGraw-Hill, 1999.

You might also like