Docsity

Proofs by Mathematical Induction in Discrete Mathematical Structures, Slides of Discrete Mathematics

Partial preview of the text

Download Proofs by Mathematical Induction in Discrete Mathematical Structures and more Slides Discrete Mathematics in PDF only on Docsity!

CS 173:

Discrete Mathematical Structures

Mathematical Induction

Spose we want to prove everyone likes Fruit Loops

Need to show two things:

Person 1 likes Fruit Loops (FL(1)) If person k likes Fruit Loops, then person k+1 does too. (FL(k) → FL(k+1))

∀n FL(n)

First part is a simple proposition we call the base case. Second part is a conditional. Start by assuming FL(k), and show that FL(k+1) follows. (^) True by “peer pressure”

Mathematical Induction

Prove that 1⋅1! + 2⋅2! + … + n⋅n! =

Base case (n=1): 1(n+1)! - 1, ∀⋅n1! = (1+1)! - 1?

Yup, 1⋅1! = 1, 2! - 1 = 1

Assume P(k): 1⋅1! + 2⋅2! + … + k⋅k! = (k+1)! - 1

Prove that 1⋅1! + … + k⋅k! + (k+1)(k+1)! = (k+2)! - 1

Inductive hypothesis

1 ⋅1! + … + k⋅k! + (k+1)(k+1)! = (k+1)! - 1 + (k+1)(k+1)! = (1 + (k+1))(k+1)! - 1 = (k+2)(k+1)! - 1 = (k+2)! - 1

Mathematical Induction

Prove that if a set S has |S| = n,

Base case (n=0): S=ø, P(S) = {ø} and |P(S)| = 1 = 2then |P(S)| = 2 n^0

Assume P(k): If |S| = k, then |P(S)| = 2 k

Prove that if |S’| = k+1, then |P(S’)| = 2k+

Inductive hypothesis

S’ = S U {a} for some S ⊂ S’ with |S| = k, and a ∈ S’. Partition the power set of S’ into the sets containing a and those not. We count these sets separately.

Mathematical Induction

Assume P(k): If |S| = k, then |P(S)| = 2 k

Prove that if |S’| = k+1, then |P(S’)| = 2k+

S’ = S U {a} for some S ⊂ S’ with |S| = k, and a ∈ S’.

P(S’) = {X : a ∈ X} U {X : a ∉ X} P(S’) = {X : a ∈ X} U P(S) (^) by taking any set from P(S), andSubsets containing a are made inserting an a.

So |{X : a ∈ X}| = |P(S)|

|P(S’)| = |{X : a ∈ X}| + |P(S)| = 2 |P(S)| = 2⋅ 2 k^ = 2k+

Mathematical Induction - a cool example

A 2 n^ x 2n^ sized grid is deficient

if all but one cell is tiled.

Deficient Tiling

2 n

2 n

Mathematical Induction - a cool example

Is it true for 2 0 x 2 0 grids? Yup!

Is it true for 2^1 x 2 1 grids?

Yup!

Mathematical Induction - a cool example

Inductive Hypothesis:

We can tile a 2k^ x 2k^ deficient

board using our fancy designer

tiles.

Use this to prove:

We can tile a 2 k+1^ x 2 k+1^ deficient

board using our fancy designer

tiles.

Mathematical Induction - a cool example

2 k

2 k^2 k

2 k

2 k+ OK!! (by IH)

OK!!

(by IH)

OK!!

(by IH)

OK!!

(by IH)

Mathematical Induction - a cool example

Mathematical Induction - why does it work?

Definition:

A set S is “well-ordered” if every non-

empty subset of S has a least

element.

Given (we take as an axiom): the set of

natural numbers (N) is well-ordered.

Is the set of integers (Z) well ordered? { x ∈ Z : x < 0 } has noNo.

least element.

Mathematical Induction - why does it work?

Is the set of non-negative reals (R)

well ordered? No.

{ x ∈ R : x > 1 } has no least element.

Mathematical Induction - why does it work?

Assume

  1. P(0)
  2. ∀n P(n) → P(n+1)
  3. ¬∀n P(n) (^) ∃n ¬P(n)

Let S = { n : ¬P(n) } Since N is well ordered, S has a least element. Call it k. What do we know?

P(k) is false because it’s in S. k ≠ 0 because P(0) is true. P(k-1) is true because P(k) is the least element in S.

But by (2), P(k-1) → P(k). Contradicts P(k-1) true, P(k) false.

Done.

Strong Mathematical Induction

If

  • P(0) and
  • ∀n≥0 (P(0) ∧ P(1) ∧ … ∧ P(n)) →

P(n+1)

Then

  • ∀n≥0 P(n)

In our proofs, to show P(k+1), our inductive hypothesis assures that ALL of P(0), P(1), … P(k) are true, so we can use ANY of them to make the inference.