Let $H$ be a Hilbert space and $\lbrace x_ i \rbrace_ i \subset H$ a countable set of vectors that algebraically spans $H$, i.e. every vector in $H$ is a linear combination of some finite subset of $\lbrace x _i \rbrace_ i$. Show that $H$ is finite dimensional.
My attempt:
In this set of vectors I can find a minimal spanning set, i.e basis of $H$, say $\lbrace y_i\rbrace_i$. suppose the basis is infinite. then take a non-zero element $x\in H$ then $x=\sum_{i\geq1}a_iy_i$. but $x$ can be written as linear combination of finitely many elements, say $x=\sum_{k=1}^{n}b_ky_k$. Therefore, $0=\sum_{k=1}^{n}(a_k-b_k)y_k+\sum_{i\geq n+1}a_iy_i$. So that implies the tail of the series converges to $0\Longrightarrow x=0$ (Contradiction.)
If this prove is correct then where are we really using the inner product of Hilbert space and the fact that Hilbert spaces are complete.