Let $f,g: [0,1] \to \mathbb{R}$ be two continuous functions such that $\forall x\in \mathbb{Q} \cap [0,1], f(x) = g(x)$.
Does it follow that f = g? In other words, is it true that $\forall x \in [0,1] \setminus \mathbb{Q}, f(x) = g(x)$?
To give context, I'm trying to prove that the set $A :=\{f:[0,1] \to \mathbb{R} | f$ is continuous function$\}$ is equinumerous with $\mathbb{R}$. I already know that the set $B :=\{ f:\mathbb{N} \to \mathbb{R} : f$ is a function$\}$ is equinumerous with $\mathbb{R}$. So if the f and g defined at the beginning are equal, then I can easily construct a bijection between A and B and I would be done.
Yes, for an irrational number $q\in[0,1]$, let a sequence of rational numbers $(p_{n})\subseteq[0,1]$ such that $p_{n}\rightarrow q$, then $f(p_{n})=g(p_{n})\rightarrow f(q),g(q)$ by continuities of $f$ and $g$, then $f(q)=g(q)$.