Every single proof I have found online of the inequality proves it for sums, where the inner product is assumed to be the Euclidean inner product on $\Bbb{R}^n$. However, I have gathered from comments on this site and from Wikipedia that the statement:
$$\langle u,v\rangle^2\le\langle u,u\rangle\cdot\langle v,v\rangle$$
Holds true for any inner product/Hilbert space. This means it holds for an arbitray inner product, perhaps defined over more abstract vector spaces, such as spaces of functionals or operators. Therefore all the proofs I've seen are incomplete, since the statement above is not the same (unless I'm very mistaken) as the statement below:
$$\left(\sum_i u_iv_i\right)^2\le\left(\sum_i u_i^2\right)\left(\sum_i v_i^2\right)$$
Any proof of that statement is just a proof of a very particular special case of the inequality. Moreover, Wikipedia states that equality is only ever achieved, again for any abstract Hilbert space, if $u,v$ are linearly dependent.
A comment I read on this site suggested that the proof of the inequality for abstract spaces was a huge step in the study of functional analysis. I cannot for the life of me find this proof.
I am looking for a proof (or reference to one) of the general statement and/or a proof/reference of the statement: "equality is only achieved with $u,v$ linearly dependent".
Many thanks!