I am reading "Measure, Integration & Real Analysis" by Sheldon Axler.
The following exercise is Exercise 13 on p.24 in Exercises 2A in this book.
Suppose $\epsilon>0$. Prove that there exists a subset $F$ of $[0,1]$ such that $F$ is closed, every element of $F$ is an irrational number, and $|F|>1-\epsilon$.
I guess the following proposition is true.
There doesn't exist a subset $F$ of $[0,1]$ such that $F$ is closed, every element of $F$ is an irrational number, and $|F|=1$.
Is this proposition true?
My attempt:
Let $F=[0,1]\setminus\mathbb{Q}$.
Then, $1=|[0,1]\geq |F|\geq |[0,1]|-|\mathbb{Q}|=1-0=1.$
So, $|F|=1$.
But $F$ is not closed.