I'm reading a book about Hilbert spaces, and in chapter 1 (which is supposed to be a revision of linear algebra), there's a problem I can't solve. I read the solution, which is in the book, and I don't understand it either.
Problem: Prove that the space of continuos functions in the interval (0,1): $C[0,1]$, has dimension $c=\dim(\mathbb{R})$.
Solution: The solution of the book goes by proving that the size of a minimal base of the space $B$ is first $|B|\leqslant c$ and $|B|\geqslant c$, and so $|B|=c$. the proof of it being greater or equal is simple and I understand it, the problem is the other thing. The author does this:
A continuos function is defined by the values it takes at rational numbers, so $|B|\leqslant c^{\aleph_0}=c$
I don't get that.
The point is that if $f$ and $g$ are two functions in $C[0,1]$ and the restrictions to $[0,1]\cap\mathbb Q$ of $f$ and $g$ are equal then $f$ and $g$ are actually equal.
This is a simple consequence of the density of $[0,1]\cap\mathbb Q$ in $[0,1]$ using the continuity of $f$ and $g$.