



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A guide to writing inductive proofs, focusing on the structure, base cases, and the choice between induction and complete induction. Inductive proofs are used to establish results about natural numbers and discrete structures. the basics of inductive proofs, including defining a property P(n), proving the base case (P(0)), and the inductive step (P(k) implies P(k+1)). It also discusses the importance of choosing the right base case and the difference between induction and complete induction.
What you will learn
Typology: Schemes and Mind Maps
1 / 7
This page cannot be seen from the preview
Don't miss anything!
CS103 Handout 24 Winter 2016 February 5, 2016
Induction gives a new way to prove results about natural numbers and discrete structures like games, puzzles, and graphs. All of the standard rules of proofwriting still apply to inductive proofs. How- ever, there are a few new concerns and caveats that apply to inductive proofs. This handout details some of the style concerns that often arise in inductive proofs.
There are many different ways to structure an inductive proof. When you're just getting started with inductive proofs, we recommend structuring your inductive proofs along the following lines. As we progress through the quarter and you start getting more comfortable with writing inductive proofs, we'll start to rely on this structure less and less.
An important step in starting an inductive proof is choosing some property P ( n ) to prove via mathe- matical induction. This step can be one of the more confusing parts of a proof by induction, and in this section we'll explore exactly what P ( n ) is, what it means, and how to choose it. Formally speaking, induction works in the following way. Given some property P ( n ), an inductive proof
If you keep reading through the proof, you'll see that the proof works by manipulating this equality and ultimately arriving at the fact that 20 + 2^1 + … + 2 k -1^ = 2 k^ – 1, the inductive hypothesis. The proof then claims that this statement is by assumption true, so the proof is complete. Take a step back from this proof and think about what it actually ends up doing. It begins by assum- ing that the sum of the first k +1 powers of two is 2 k +1^ – 1, then proceeds from there to prove that un- der this assumption, the sum of the first k powers of two is 2 k^ – 1. In other words, the proof has gone backwards – it's assumed P ( k +1) is true, and used that to prove that P ( k ) is true. Consequently, even though the mathematical reasoning that's written is correct, the proof is establishing the wrong result and is therefore incorrect. When working with an inductive proof, make sure that you don't accidentally end up assuming what you're trying to prove.
Inductive proofs need base cases, and choosing the right base case can be a bit tricky. For example, think back to our initial inductive proof: that the sum of the first n powers of two is 2 n^ – 1. In that proof, we chose as our base case n =0. This might seem weird, since that means that we're reasoning about a sum of zero numbers. Similarly, in the counterfeit coin example, we chose our base case to be the setup where we have no weighings on the scale and need to find the counterfeit coin. Wouldn't it have made more sense to talk about cases where we have one weighing, not zero? There are four main reasons we chose to use these base cases. First, we chose our base cases to make sure that the theorems we proved were true for every natural number n , not just some of them. For example, in the theorem about sums of powers of two, our goal was to prove the theorem true for every natural number, including zero. Similarly, in the counterfeit coin problem, we wanted to show that with any number of weighings n , including zero, you can find the counterfeit out of 3 n coins with n weighings. Had we chosen our base case for these proofs to be one instead of zero, then our proofs would have omitted a case and would not satisfactorily proven the overall result. Second, we chose these extremely simple base cases because they're as simplified as they can possi- bly be. At some level, each inductive proof works by somehow using the assumption that the theo- rem is true in a simpler case (say, that it's true for k ) to build up a proof that the theorem is true for a more complex case (for example, that it's true for k +1). The reason the inductive proof ultimately works is that we know that it's true for the absolute simplest case, the base case. Philosophically, it's the job of the inductive step to try to simplify, and it's the job of the base case to show that when no more simplification is possible, the result must be true. Therefore, we strongly recommend making your base case something that is so simple that there's no possible way to simplify any further. After all, you can't make fewer than 0 weighings, or sum up fewer than 0 numbers. Third, choosing the absolute simplest possible base case forces you to think about the extreme cases of the result. There are some times where picking 0 as a base case doesn't actually work because the result isn't actually true in that case. For example, it is not true that a square can be subdivided into 0 squares. By trying to search for the simplest possible base case in an inductive proof, you can some - times discover boundary cases that might not have been evident from an intuitive understanding of the theorem. Conversely, you often discover cases where the result actually does work that's not intu- itively evident!
Finally, in some cases, choosing the absolutely simplest possible base case can actually make your proof shorter and simpler. For example, suppose that we changed the base case in the proof of the counterfeit coin problem to be the case where there are three coins and one weighing. In that case, the base case would have to explain how to split the coins into three piles, how to weigh those piles against one another, and how to determine which coin from the group was counterfeit. This would lengthen the proof without adding much, since that exact same line of reasoning appears in the proof of the inductive step. In fact, that leads to a good general piece of advice: if you find yourself using similar reasoning in your base case and your inductive step, chances are you can make your base case even simpler!
One of the trickier skills when first learning induction is learning when to use standard induction and when to use complete induction. This typically depends on the route that your proof takes. At some point in your proof, you'll need to use the assumption that the theorem is true for some smaller number to establish that the theorem is true for a larger number. The difference between in- duction and complete induction is how much smaller “some smaller number” is. Suppose that as part of your inductive step, you're trying to prove that the result is true for k +1. If you can always prove this purely by assuming that the result is true for k , then you can just use normal induction. On the other hand, if you need to assume that the result is true for some number between 0 and k , inclusive, but you're not sure in advance which of those numbers it's going to be, you should use complete in- duction to make sure you have those cases covered. It might be easier to see when this second case might arise by looking at our lecture example of complete induction, where we proved that any tree with n nodes has n -1 edges. In the inductive step, we began with a tree of k +1 nodes, then deleted an edge from the tree to split it into two smaller trees, one with r nodes and one with ( k +1)- r nodes. Without knowing more about the specific tree or cut we're working with, we can't say for certain how big those smaller trees are. Maybe they each have exactly half of the nodes, or maybe one has one node and the other has k. There's no general way to pin down how many nodes will be in each tree, but in each case it's guaranteed that there will be between 1 and k. By using complete induction, we can ensure that no matter how many nodes are in those trees, we can reason about how many edges are in them. When deciding to select between induction and complete induction in your proof, try using this gen - eral heuristic:
Ignoring induction for a moment, how would you go about proving this statement? Well, it's an im- plication, so we should start off by assuming the antecedent is true: Assume that any tournament with 2 k^ players has a transitive subtournament of size at least k +1, Next, we're going to try to prove the consequent. The consequent here is the statement “any tourna- ment with 2 k +1^ players has a transitive subtournament of size at least k +2.” How do you prove a state- ment like this? Well, it's a universal statement, so we should start off by choosing an arbitrary tour - nament with 2 k+^1 players, then trying to show that it has a transitive subtournament of size at least k +2. In other words, the proof really should look like this: Assume that any tournament with 2 k^ players has a transitive subtournament of size at least k +1, We will prove that any tournament with 2 k +1^ players has a transitive subtournament of size at least k +2. To do so, consider any arbitrary tournament T with 2k+^1 players. This can seem backwards the first time you see it – why are we starting off with a tournament of 2 k + players when we only know something about a tournament with 2 k^ players in it? However, if you carefully unpack the statement we're trying to prove, you'll see that all we're doing here is proceed- ing the way that we normally would if we were trying to prove a universal statement. At this point in the proof, we have a tournament of 2 k +1^ players – which we know basically nothing about. If we could reduce it down to a 2 k -player tournament, we could start to make some claims about that smaller tournament, which might help us in the larger case. In other words, you may want to think about finding some way to extract from the larger tournament a smaller tournament with 2 k players in it, then use the inductive hypothesis to conclude something about that smaller tournament. If you're strategic with how you reduce the size, you can use your knowledge about how you found that smaller tournament to arrive at the solution. Notice how we got here. Rather than beginning with a tournament of 2 k^ players and adding a player to it, we started with a tournament of 2 k +1^ play- ers and removed a bunch of players from it. The reason we did so is that the overall structure of the inductive step is itself a giant implication, and if we follow the normal rules for proving implications we'd end up concluding that this is the right structure to take. To summarize – before you write out a proof by induction, write out explicitly what the inductive step will be. It's going to be a big implication, meaning that you'll assume the antecedent and prove the consequent. Make sure that you take the same steps when assuming the antecedent and trying to prove the consequent that you would when proving any general implication. That might mean that you need to start with an object of size k +1 and then massage it down to an object of size k , or it might mean that you need to start with an object of size k and grow it up into an object of size k +1. You'll know which case it is based on the structure of the implication you're trying to prove. When it doubt, write it out!