Had a look at the solutions and their answer is different. Was wondering if my attempt works and would love some feedback? Thank you in advance!
- Question:
Let $X$ be a non-empty set equipped with the discrete metric. Prove that every subset $Y$ of $X$ is both open and closed.
- My attempt:
Let $r = 2$
Since we are dealing with the discrete metric, $∀a,b∈X, d(a,b)≤1$
$⇒ B(y,2) = \{z∈X|d(y,z)≤1<r = 2\}$ and therefore $∃r>0$ such that $B(y,r)⊆X$
Therefore any subset $Y$ is open $⇒$ any subset $X\setminus Y$ is closed. Therefore any subset $Y⊆X$ is both open and closed.