The geometric series $\sum_{n=0}^\infty ar^n$ with $a, r \in \mathbb{R}$ converges to $\frac{a}{1-r}$ iff $|r| < 1$.
Given this proof:
$\sum_{n=0}^\infty ar^n = a + \sum_{n=1}^\infty ar^n = a + r\sum_{n=0}^\infty ar^n$ [1],
where we can clear $\sum_{n=0}^\infty ar^n$ as
$(1-r) \sum_{n=0}^\infty ar^n = a$,
leading to
$\sum_{n=0}^\infty ar^n = \frac{a}{1-r} \blacksquare$,
my question is: where have been used the fact that $r$ must be $|r|<1$? To me, all the steps done in [1] are true no matter how $r$ is.
This proof is not valid since the proof already assumes convergence. The following implication makes no sense
$$ \sum_{n=0}^\infty ar^n = a + r\sum_{n=0}^\infty ar^n \implies (1-r) \sum_{n=0}^\infty ar^n = a$$
unless you assume the convergence of $\sum_{n=0}^\infty ar^n$ (because assume it diverges, then $\sum_{n=0}^\infty ar^n$ is undefined. Can you do arithmetic with undefined objects?).
Here is a proof that $1=0$: $$ \sum_{n=0}^\infty 1 = 1 + \sum_{n=0}^\infty 1 \implies 1=0$$