i am trying to understand why does $\langle x | f \rangle = f(x) $.
My line of thought so far:
we will write $f_n(x)$ as the discrete approximation of $f(x)$, where $f_n(x)$ is given by $| f_n \rangle = \begin{pmatrix} f_n(x_1) \\ \vdots \\ f_n(x_n) \end{pmatrix} $, $| x_i \rangle = \begin{pmatrix} 0 \\ \vdots \\ 1 \\ \vdots \\ 0 \end{pmatrix} $, $|f_n\rangle=\sum_{i=1}^{n} f_n(x_i) \ |x_i\rangle$, and $f_n(x_i)=\langle x_i|f_n\rangle$. So we can now say that if we take an infinite number of points, we get $|f\rangle $ as an infinite series, and $|x\rangle $ is also an infinite column vector which when applied to $f$ will give us only its value at $x$ (i.e. $f(x)$), as did $|x_i\rangle$ with $|f_n\rangle$.
Is this line of thought correct? could you make it more precise and formal?