Qn: Let T be a finite-dimensional complex inner product space, and T a self-adjoint linear operator. Suppose there exists a subspace W of V such that $\langle T(w),w \rangle$ is positive for all non zero $w$. If $\operatorname{dim}(W) = k$, prove that $T$ has at least $k$ positive eigenvalues (counting algebraic multiplicities).
Below is my attempt:
Let $O$ be an orthonormal basis $O = \{v_1,\dots,v_n\}$, which are formed by eigenvectors of $T$. Since $T$ is self-adjoint, there some of the eigenvalues are positive, and others negative. Assume $\{\lambda_1,\dots,\lambda_m\}$ are positive eigenvalues and $\{\lambda_{m+1},...,\lambda_n\}$ are non-positive eigenvalues.
Let $U=\operatorname{span}\{v_{m+1},\dots,v_n\}$. Then $$ \langle T(u), u \rangle = \langle u, T(u) \rangle= \lambda\langle u, u \rangle, $$ which is non-negative for all $u \in U$.
Does this imply that $W$ is a subset of $U$? (My plan is to show by proving something about the dimension but I am stuck).