Given $(X,d)$ a metric space where
$$X := \{x^{(1)},\ldots,x^{k},\ldots \mid x^k \in \{0,1\},k \in \mathbb{N}\}, \text{ and } d(x,y) := \sum_{k=1}^\infty \frac 1 {2^k}\mid x^{(k)} - y^{(k)}|$$
How to prove this metric space is complete?
My attempt is to show that every Cauchy sequence $(x_n)_{n=1}^\infty$ in $X$ is convergent, an intuitive way is to choose $k \in \mathbb{N}$, then we can find a $n_k \in \mathbb{N}$ such that $d(x_m,x_n) < \frac 1 {2^k}, \forall m,n \ge n_k$. And this simply implies that $x_m,x_n$ have the same first $k$ entries, and as we increase our $k$,this sequence will finally converges. But how to write a rigorous proof for this?
Suppose $x_n$ is Cauchy. For each $i$, there is $N = N(i)$ such that $m, n \ge N$ implies $d(x_n, x_m) < 2^{-i}$, and this implies $x_n^i = x_m^i$. In particular, $x_n^i = x_{N(i)}^i$ for $n \ge N(i)$. The sequence $y$ defined by $y^i = x_{N(i)}^i$ is then in $X$, and it is easy to check that $d(x_n, y) \to 0$ as $n \to \infty$: in fact if $n \ge \max(N(1), \ldots, N(m))$ we have $x_n^i = y^i$ for all $i \le m$, and then $d(x,y) \le \sum_{i=m+1}^\infty 2^{-i} = 2^{-m}$.