Theorem : For every natural number $p$: $$\sum^p_{i=0} 2^i = 2^{p+1}-1$$ I trieed to demonstrate the theorem using induction
Demonstration :
$1)$ If we have $p=0$ then we get $2^0=2^{0+1}-1$ that is always true. $2)$ Supposing that the first statement is true then we get that $$\sum^{p+1}_{i=0} 2^i = 2^{p+2}-1$$ Now we know that: $$\sum^{p+1}_{i=0} 2^i - \sum^p_{i=0} 2^i = 2^{p+1}$$ and if that is true, must be also true that: $$2^{p+2}-1-(2^{p+1}-1) = 2^{p+1}$$ $$2^{p+2}-1-(2^{p+1}-1)=2^{p+2}-2^{p+1}=2^{p+1}(2^1-2^0)=2^{p+1}$$ QED
Is this a valid demonstration?
I think your first statement in part 2 puts the cart before the horse (you've assumed what you want to prove, or appear to).
The inductive step assumes that it holds for $p$:
$$\sum^p_{i=0} 2^i = 2^{p+1}-1$$
Now, given that, look at one side or the other for $p+1$. I'll look at the left side:
$$\sum^{p+1}_{i=0} 2^i = \left(\sum^p_{i=0} 2^i\right) + 2^{p+1}$$
This doesn't assume what is to be proved. I'm just splitting out the last term of the sum.
Now, substitute the assumed statement for $p$ on the right side:
$$\sum^{p+1}_{i=0} 2^i = 2^{p+1}-1 + 2^{p+1}$$
and simplify:
$$\sum^{p+1}_{i=0} 2^i = 2 \cdot 2^{p+1}-1 = 2^{p+2}-1 = 2^{(p+1)+1} - 1,$$
and you're done.