Let $(M,d)$ be a metric space. Show that $M$ is compact if and only if all infinite open cover of $M$ have a proper subcover.
We remember: If $\mathcal{U}$ is a cover of $M$, then a proper subcover is a proper subset $\widehat{\mathcal{U}}$ of $\mathcal{U}$ such that it is cover of $M$.
Remark: The diection $(\Rightarrow)$ is trivial. The problem is the direction $(\Leftarrow)$, I think hypotheses are missing, but I have not been able to find a counterexample or prove it.
This exercise I found in a book that for me is not very reliable since I have found other exercises with errors.