Let $(X_i , d_i), i ∈ \Bbb N$, be a collection of metric spaces. Here $x = (x_1, . . . , x_n)$ and $y = (y_1, . . . , y_n)$ are elements of $\prod_{i \in \Bbb N} X_i.$
Define the metric $d(x,y)=\sup \lbrace d_i(x_i,y_i) \rbrace$ on the infinite product $\prod_{i \in \Bbb N} X_i.$
My question is how to prove that the metric $d(x,y)=\sup \lbrace d_i(x_i,y_i) \rbrace$ satisfy the triangle inequality? Can I ask for someone's help? Thanks so much.