I want to check the arguments of the proof that every cauchy sequence with convergent subsequence converges more formally. Note that I know the proof and the proof is just chosen as an example; I want to know if my deductions are correct, which is what this question is about. My approach was as follows:
Since this is a $\forall$ statement, one starts by taking an arbitrary cauchy sequence $(x_n)$ that has a converging subsequence $(x_{n_k})$. We can now use that the sequence is Cauchy which gives $$\exists N \in \mathbb{N}(\forall n,m > N(d(x_n,x_m)<\frac{\epsilon}{2})).$$ In this context we can restate that we have a converging subsequence $(n_k)$ meaning $$\exists K>0 (\forall y (\exists k(y=n_k \wedge y>K)\implies d(x_y,x) < \frac{\epsilon}{2})).$$ Furthermore we know that there exists a natural number $a$ such that $$a=\max\{N,K\}.$$ Thus we know $$\forall m,n_k>a \ (d(x_{n_k},x_m) < \frac{\epsilon}{2} \wedge d(x_{n_k},x) < \frac{\epsilon}{2})$$ which implies $$\forall m,n_k>a \ (d(x_{n_k},x_m) + d(x_{n_k},x) < \epsilon)$$ and by definition of a distance function we can conclude $$\forall m,n_k>a \ (d(x_m,x) < \epsilon).$$ Now, $n_k$ is not used here anymore, so is this equivalent to $$\forall m>a(d(x_m,x) < \epsilon),$$ which would prove the statement or did I do something wrong?
Basically what happens is that in order to prove the statement I introduce an element $x_{n_k}$ and I wondered why one can formally do this and how this impacts the proof.
Edit for clarification: What I want to know is why one can use an independent element in proofs formally. What I mean by independent element is that here one wants to prove $\forall (x_n) (P(x_n))$ and uses an element $x_{n_k}$ to do this that does not appear in the final statement. Is this because I can always introduce elements in my proof (is this an inference rule?) and because the statements $\forall x(\forall y P(x))$ and $\forall x(P(x))$ are equivalent?