In practice, do you do some work on the inductive step and then reverse your steps?
For example. Say you have this recurrence:
$f(n+1) = 2f(n) + 1$ with $f(0) = 0$
This creates the sequence $0, 1, 3, 7, 15, 31, \cdots$
"Huh this looks like it could be $f(n) = 2^n-1$, so I'll try to prove it with induction."
Is this the right way to do it:
Known as true: $f(n+1) = 2f(n) + 1$ with $f(0) = 0$.
Assumption: $f(n) = 2^n-1$
Base case: $f(0)= 2^0-1 = 0$ which matches the known formula's result, so the base case is true for our assumption.
Induction procedure:
If $f(n) = 2^n-1$ for some $n$, we need to show that $f(n+1) = 2^{n+1}-1$. Since $f(n+1) = 2f(n) + 1$ is true, it suffices to show that $f(n+1) = 2f(n) + 1 = 2^{n+1}-1$.
$2f(n) + 1 = 2^{n+1}-1$
$2f(n) = 2^{n+1} - 2$
$f(n) = 2^n - 1$, our assumption, so the induction step is true.
My question:
Did I do this correctly? Is an inductive proof true if you can make some assumption, state what you want to prove, and then prove it in terms of your assumption? Or do you have to somehow prove it "in terms of" what is known to be true (the original recurrence)? Did I do it backwards (I had this problem in this question here and still don't fully understand why that one was backwards)?
I'm not really sure where I'm supposed to start and how exactly I know when I've proven what I want to prove.
$ and $~T\Rightarrow P$. Start with what is known to be true and show that it implies what you hope is true. Do not start with what you hope to be true and reach a tautology because you might have made a step in there that doesn't work backwards. E.g. $x=y\Rightarrow \frac{x}{x}=\frac{y}{y}\Rightarrow 1=1$. However, $1=1\not\Rightarrow x=y$. – JMoravitz Jan 05 '16 at 18:00