I am working on my bachelor's thesis in mathematical physics, and I have stumbled across a problem that I cannot seem to solve. Since it seems a quite natural question, I am hoping that someone has studied this kind of problem before, even if I cannot seem to find any article on it.
Let $\mathfrak{g}$ be a (possibly infinite) Lie algebra with bracket $[ \cdot\, , \cdot ]$. What are the conditions that a (finite-dimensional) subspace $S\subset \mathfrak{g}$ must satisfy in order to be a Lie Algebra with bracket $\Pi^S[ \cdot\, , \cdot]$ , where $\Pi^S$ is the orthogonal projector on $S$ with respect to a given scalar product?
(Excluding the trivial case in which S is closed with respect to $[ \cdot\, , \cdot ]$)
In my particular case $\mathfrak{g}$ is the infinite dimensional algebra of divergence-free vector fields on the 3D torus $\mathbb T^3$ and $S$ is a finite Fourier truncation.