Prove that if $(X,d)$ is a compact metric space, and $K$ is an infinite set in $(X,d)$, then if $K$ has no limit point, $K$ is a closed set.
Idea : Just like most topology proofs, the way I want to approach this problem is to show that $X - K$ is open however I am unsure how to do this. I actually have an idea that does not involve open sets which I show below, but it would be nice if I could show $X - K$ is open. The help would be appreciated!
Suppose $K$ has no limit points. If $K'$ is the set of limit points of $K$ then $K' = \emptyset$. $K$ is closed if every limit point of $K$ is a point of $K$. Then $K$ is closed if $K' \subset K$. Since $K' = \emptyset$, $K\ \subset K$ since $\emptyset \subset K \forall K$. Then $K$ is closed.