Hello I have problems with exercise
Let $M$ be the space of all real sequences. Given $x = (x_i)_i \; , y = (y_i)_i \in M$, define
$d(x,y) = \displaystyle\sum_{i=1}^\infty{\displaystyle\frac{1}{i^2} \; min \{ |x_i-y_i| , 1 \}} $
Prove that $(M, d)$ is a metric space. Let $ \{ x^{(k)} \}_k$ be a sequence in $M$. Prove that $x^{(k)} \rightarrow x$ for $d$ if and only if ${x_i}^{(k)} \rightarrow x_i $ for all $i \in \mathbb{N}.$
My attempt
$(i) \; d(x,x)=0$
$d(x,x)= \displaystyle\sum_{i=1}^\infty{\displaystyle\frac{1}{i^2} \; min \{ |x_i-x_i| , 1 \}} = \displaystyle\sum_{i=1}^\infty{\displaystyle\frac{1}{i^2} \; min \{ |0| , 1 \}} = \displaystyle\sum_{i=1}^\infty{\displaystyle\frac{1}{i^2}} \cdot 0 = 0 $
$(ii) \; If \; x \neq y $ then $d(x,y) > 0$
$d(x,y) = \displaystyle\sum_{i=1}^\infty{\displaystyle\frac{1}{i^2} \; min \{ |x_i-y_i| , 1 \}}$ (This expression is always greater than zero)
$(iii) \; d(x,y)=d(y,x)$
$d(x,y) = \displaystyle\sum_{i=1}^\infty{\displaystyle\frac{1}{i^2} \; min \{ |x_i-y_i| , 1 \}} = \displaystyle\sum_{i=1}^\infty{\displaystyle\frac{1}{i^2} \; min \{ |y_i-x_i| , 1 \}} = d(y,x)$
$(iv) \; d(x,z) \leq{} d(x,y) + d(y,z) $ (I have problems with triangular inequality)
I don't know how to prove this part:
Prove that $x^{(k)} \rightarrow x$ for $d$ if and only if ${x_i}^{(k)} \rightarrow x_i $ for all $i \in \mathbb{N}.$
Thanks