SLIDE 3 Worked Problem: Self-referential structure?
It’s usually good to name things! Let’s let I(n) be the number of introductions required for a group of n people… I(1)? 0 introductions. Given I(k-1), what’s I(k)?
- a. I(k-1) + 1
- b. I(k-1) * (k-1)
- c. I(k-1) + 2(k – 1)
- d. I(k-1) + 2k
- e. None of these
9
My turn!
Once we have this, we’re ready for our pattern!
A Pattern for Induction
- 1. Identify the recursive structure in the problem.
- 2. Circle each recursive appearance of the
structure inside its definition.
- 3. Divide the cases into: those without recursive
appearances (“base cases”) and those with (“recursive” or “inductive” cases)
- 4. Write a predicate P(a) describing what you
want to say about the structure.
- 5. Write your theorem "aÎ?,P(a)
- 6. Complete the proof template.
10
A Pattern for Induction
- 1. Identify the recursive structure in the problem.
- 2. Circle each recursive appearance of the
structure inside its definition.
- 3. Divide the cases into: those without recursive
appearances (“base cases”) and those with (“recursive” or “inductive” cases)
- 4. Write a predicate P(a) describing what you
want to say about the structure.
- 5. Write your theorem "aÎ?,P(a)
- 6. Complete the proof template.
11
I(k) I(k-1) “0” base case, “> 0” inductive case I(k) = k(k-1)
12
P(a) ≡ [fill in predicate definition] Theorem: For all [recursive structure] a, P(a) holds. Proof by structural induction: Consider an arbitrary [recursive structure] a. Base case: [For each non-recursive case, prove the theorem holds for that
- case. End by showing your theorem true for the base case structure!]
Inductive Step: a is recursively defined. Induction Hypothesis: Assume the theorem holds for [each recursive appearance of the structure in this case]. We now show the theorem holds for a. [And then do so! You should: 1) END by showing that your theorem holds for a. 2) USE the “Induction Hypothesis” assumption(s) you made. 3) NEVER take a recursive appearance and use the recursive definition to break it down further, like this BAD example: “each subtree is a binary tree that can have subtrees and so on until we reach an empty tree.”]
It helps to write out what you want to prove rather than just “show the theorem holds for a”. (Even though neither one is strictly necessary.)