I am wanting to show that $\mathbb{Q}$ is not compact on $[0,2]$ by describing an open cover for which there is no finite subcover. The cover I thought of is:
$\left(-1, \sqrt{2}-\frac{1}{n}\right) \cup\left(\sqrt{2}+\frac{1}{n} ,3\right)$ for $ n \in \mathbb{N}$
Does this cover work? Because there would be always be a rational number between$\sqrt{2}-\frac{1}{n}$ and $\sqrt{2}$ for any $ n \in \mathbb{N}$
Note I am defining $\mathbb{N}$ as all integers $\ge1$
Yes, your open cover works just fine.
I must say that I don't like the title of your question or the description of the problem. What you want to show is that $\mathbb{Q}\cap[0,2]$ is not compact.