0% found this document useful (0 votes)
11 views38 pages

Discrete - Unit 1 - Notes

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)
11 views38 pages

Discrete - Unit 1 - Notes

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/ 38

CSC 236 H1F Lecture Summary for Week 2 Fall 2015

Induction
Principle of Complete Induction: Let A be a set that satisfies the properties

1. 0 is an element of A

2. for any i ∈ N, if every natural number less than i is an element of A then i is also in A

Then A is a superset of N.

Similar to the principle of simple induction, we will not prove the principle of complete induction. Rather, we
assume that is an obvious truth.

Remark. The principle of complete induction is valid even if we remove the first conditions! [see page 18 of the
textbook]

The principle of complete induction allows us to define the “complete induction” (strong induction in some
textbooks) proof technique. Complete induction proves a predicate P (n) for all natural numbers in two steps:

1. Base case: Prove P(0) is true, i.e., the predicate P (n) holds for n = 0

2. Induction step: For i ∈ N, if P (j) holds for all natural numbers j < i (Induction Hypothesis), prove that
P (i) also holds

Remark. Intuitively, the complete induction can be concluded from simple induction. In simple induction, the
chain of arguments that allows us to say P (i) is true starts from P (0) and continues as:

P (0) ⇒ P (1) → P (1) ⇒ P (2) → · · · → P (i − 1) ⇒ P (i)


Therefore, by the time that we want to conclude the truth of P (i), we have already established the truth of
P (0), P (1), · · · , P (i − 1).

Example 1. You have a chocolate bar that consists of n > 0 squares arranged in a rectangular pattern. You can
only break chocolate bars along the line between the squares. What is the minimum number of breaks that you have
to do to split the chocolate bar into n squares?

Ans: Discovery Phase: Let’s explore different chocolate patterns

1 × 1(0 breaks), 1 × 2(1 breaks), · · · , 1 × n(n − 1 breaks), 2 × 2(3 breaks), 2 × 3(5 breaks) · · ·

Conjecture: For all n ≥ 1, every chocolate bar with n squares can be split up (into individual squares) with n − 1
breaks.
Let’s prove the conjecture using complete induction.
P (n) : All chocolate bars with n squares can be split up with n − 1 breaks.
Base case: A chocolate bar with only one square is already split up and needs 0 = 1 − 1 breaks. So P (1) holds.
Induction step: Assuming i ≥ 2 and for all 1 ≤ j < i, P (j) is true (IH), we want to prove that P (i) is also true.
The first break splits the chocolate bar in two pieces A and B, with a and b squares, respectively. Note that
1 ≤ a < n, 1 ≤ b < n, and n = a + b. By the IH, A can be split up with a − 1 breaks and B can be split up with
b − 1 breaks. Hence, the chocolate bar can be entirely split up with 1 + a − 1 + b − 1 = a + b − 1 = n − 1 breaks.
So, P (i) holds.
Conclusion: By complete induction, ∀n ≥ 1, P (n) (i.e., for all n ≥ 1, every chocolate bar with n squares can be
split up with n − 1 breaks).

Remark. Similar to simple induction, complete induction can have a non-zero base case. You will see an example
of this in tutorial.

Dept. of Computer Science, University of Toronto, St. George Campus Page 1 of 3


CSC 236 H1F Lecture Summary for Week 2 Fall 2015

Well-Ordering
Principle of Well-Ordering: Every non-empty subset of N contains a smallest element.

Remark. The well-ordering principle applies to all non-empty subsets, even infinite ones.

Remark. Note that well-ordering is a property of N – it does not apply to other sets such as Z, Q, R.

Well-ordering principle is often used in proofs by contradiction to show ∀n ∈ N, P (n). A general template of
such proof is as follows:
For a contradiction, suppose ∃n, ¬P (n). Then set S = {n ∈ N : ¬P (n)} is not empty and hence by well
ordering, S contains a smallest element k. At this point we know:

i ¬P (k) (because k ∈ S)

ii P (i), ∀i ∈ {0, · · · , k − 1} (because k is the smallest in S).

We can now use both facts to derive a contradiction. Two standard techniques to derive the contradiction is to
either prove (∀i < k, P (i)) ⇒ P (k) to contradict the first fact (similar to proof by complete induction) or to prove
¬P (k) ⇒ ∃i < k, ¬P (i), to contradict the second fact (equivalent to first technique but sometimes easier to do).
Hence, by contradiction, ∀n ∈ N, P (n).

Remark. Notice the similarity between the first method of deriving the contradiction and the proofs by induction.
As we discuss in short, there is indeed a strong connection between principles of induction and the principle of
well-ordering.

Example 2 (Example 1.5 in textbook). Let m, n be natural numbers such that n 6= 0. Then, there exist natural
numbers q and r such that m = q × n + r and r < n.

Ans: Suppose m, n ∈ N and n > 0. Consider the set R = {r ∈ N : ∃q, m = q × n + r}. R is not empty because
m ∈ R(m = 0 × n + m). Therefore, by well ordering, R contains a smallest element r, i.e.,

i ∃q, m = q × n + r

ii ∀r0 ∈ {0, · · · , r − 1}, ∀q, m 6= q × n + r0

Now, we show r < n to complete the proof.


For a contradiction, suppose r ≥ n and let q ∈ N such that m = q × n + r. Then

m = q × n + n + r − n = (q + 1)n + (r − n)
so r − n ∈ R (because r − n ≥ 0). But r − n < r (because n > 0) which contradicts the assumption ii above.
Hence, ∃r, q, r < n such that m = q × n + r.
Compare this proof to the proof by induction provided in the textbook on pages 27–28.

Theorem 1. The principles of well-ordering, simple induction, and complete induction are equivalent.

Proof. We prove this theorem with a cyle of implications. In other words, we show well-ordering implies simple
induction, simple induction implies complete induction, and complete induction implies well-ordering.

Well-ordering ⇒ Simple induction:


Suppose well-ordering holds, i.e., every non-empty subset of N contains a smallest element. We prove the principle
of simple induction, for arbitrary predicate P . i.e.,

P (0) ∧ (∀i, P (i) ⇒ P (i + 1)) ⇒ ∀n, P (n)

Dept. of Computer Science, University of Toronto, St. George Campus Page 2 of 3


CSC 236 H1F Lecture Summary for Week 2 Fall 2015

Suppose by contradiction that ¬∀n, P (n). Then A = {n ∈ N : ¬P (n)} is a non-empty subset of N and by
well-ordering, it contains a smallest element s. Because P (0), s > 0. Moreover, s is smallest element such that
¬P (s) and s > 0, so P (s − 1) should hold. But by IH, ∀n, P (i) ⇒ P (i + 1). In particular, P (s − 1) ⇒ P (s). This
contradicts ¬P (s). Hence, simple induction holds.

Simple induction ⇒ Complete induction:


Suppose simple induction holds, i.e., for arbitrary predicates P ,
 
P (0) ∧ ∀i, P (i) ⇒ P (i + 1) ⇒ ∀n, P (n)

Now, we have to prove complete induction also holds for P , i.e.,


 
P (0) ∧ ∀i, (∀j < i, P (j)) ⇒ P (i) ⇒ ∀n, P (n) (1)

Let P 0 (n) ≡ ∀k ≤ n, P (k). It is easy to see that ∀n, P (n) ⇔ ∀n, P 0 (n). Now, instead of proving that ∀n, p(n),
we choose to prove ∀n, P 0 (n) using simple induction.

1. Base Case: P 0 (0) = ∀k ≤ 0, P (k) = P (0). By left hand side of (1), P (0) is true which means P 0 (0) holds.

2. Induction step: Let i ∈ N, P 0 (i). We want to prove P 0 (i + 1) holds, i.e., ∀k ≤ i + 1, P (k).

∀k <= i, P (k) ⇒ ∀k < i + 1, P (k) (By IH)


⇒ P (i + 1) (By 2nd argument on the left-hand side of (1))
⇒ P (i + 1) ∧ ∀k < i + 1, P (k)
⇒ ∀k <= i + 1, P (k) = P 0 (i + 1)

Therefore by simple induction, ∀n, ∀k <= n, P (k) which means ∀n, P (n). So complete induction holds.

Complete induction ⇒ Well-ordering:


Suppose complete induction holds, i.e., for arbitrary predicate P , (1) holds.
Let A be an arbitrary subset of N. We show, by indirect proof, that if A is non-empty, then A contains a
smallest element.
Suppose that A does not contain a smallest element, i.e.,

∀n ∈ N, n ∈ A ⇒ ∃k < n, k ∈ A
The contrapositive of this statement is

∀n, (∀k < n, k ∈


/ A) ⇒ n ∈
/A
Let P (n) ≡ n ∈
/ A. Then, ∀n, (∀k < n, P (k)) ⇒ P (n) (by reasoning above), so by complete induction, ∀n, P (n),
i.e., ∀n, n ∈
/ A, meaning A is empty. Hence, well-ordering holds.

Remark. The proof technique that we used above is a standard technique to prove that a set of statements are
equivalent. In this proof technique, we will order the statements and prove that each statement implies the sub-
sequent statement. Finally, we prove that the last statement implies the first statement to complete the cycle of
implications.

Dept. of Computer Science, University of Toronto, St. George Campus Page 3 of 3

You might also like