What are the metric spaces in which the only open sets are the empty set$(\emptyset)$ and the full set$(X)$?
My attempt: If $X=\emptyset$ then the above statement is trivially true. Suppose $(X\ne\emptyset,d)$ is a metric space in which the only open sets are $\emptyset$ and $X$, then $x\in B(x,r)=\{y\in X|d(x,y)<r\}$ for any $r>0$. $B(x,r)\ne \emptyset$, which implies $B(x,r) = X$. If $X$ contains only one element then our claim is true. But if it has more than two elements, say $x,y\in X$, we have two distinct points, we should be able to find an open ball around one of them that does not contain the other(Hausdorff property of metric spaces). Hence we will have an open set which is neither $X$ nor $\emptyset$. A contradiction to our statement. Hence (X,d) is a metric space which contains at most 1 element
Is the above proof correct?