Let $X=\mathbb R$ with the cofinite topology and $A=[0,1]$ with the subspace topology. I've just proven that every closed subspace of a compact space is compact, and now I'm asked to show that $A$ is compact, but not a closed subset of $X$. (I've shown this second part.)
I know that $\mathbb R$ is compact when given the cofinite topology, so to show $A$ is compact I need to show it is a closed subspace of $X$, but I'm not really sure what the distinction is between closed subspace and closed subset. I know that the open sets in the subspace topology consist of $U=V\cap A$ for $V$ open in $X$, so do I just need to show that $[0,1]$ cannot be written in this form?
Suppose it can be written as $[0,1]=V\cap [0,1]$ for some $V$ open in $X$, so $V=\mathbb R\backslash\{x_1,…,x_k\}$. That would mean that $\mathbb R\backslash\{x_1,…,x_k\}\subset [0,1]$ which is clearly false, so $A$ is a closed subspace of $X$. (I only worked this out while asking the question so basically asking if this is correct now)
EDIT: Just realised this doesn't imply $\mathbb R\backslash\{x_1,…,x_k\}\subset [0,1]$ but actually that $[0,1]\subset \mathbb R\backslash\{x_1,…,x_k\}$, which doesn't lead me anywhere.
Best Answer
There are a few things you seem to be misunderstanding: