I have some confusions.
I was reading the answer here.
Suppose $f:\mathbb R\to\mathbb R$ is a continuous function. Let $x\in\mathbb R$. Then there is a sequence of rational numbers $(q_n)_{n=1}^\infty$ that converges to $x$. Continuity of $f$ means that $$\lim_{n\to\infty}f(q_n) = f(\lim_{n\to\infty}q_n)=f(x).$$ This means that the values of $f$ at rational numbers already determine $f$.
- What do we mean by "the values of $f$ at rational numbers already determine $f$". What is the necessity of this line?
- What is $f|_\mathbb{Q}$.
Please help me. Thanks.