Suppose that (X,dX) and (Y,dY) are metric spaces. Show that the definition
d((x1,y1),(x2,y2))=dX(x1,x2)+dY(y1,y2)
defines a metric on the product X×Y, under which the projection map π:X×Y→Y is continuous.
If (X,dX) is compact, show that every sequence in X has a subsequence converging to a point of X. Deduce that the projection map π then has the property that, for any closed subset F⊂X×Y, the image π(F) is closed in Y. Give an example to show that this fails if (X,dX) is not assumed compact.