I'm just studying Lie algebras. If $A$ is a $k$-algebra (not necessarily Lie or associative, just a bilinear law), it is straightforward to check that any derivation algebra of $A$ is a Lie algebra. I suppose that the converse is not true, but I can't find a counterexample.
Is there any example of a Lie algebra which is not isomorphic to the derivation algebra of any $k$-algebra (again, not necessarily associative or unital)?
Is there any example of a Lie algebra which is not isomorphic to the derivation algebra of any Lie algebra?
Is there any example ofFor the the second question the user YCor gives a Lie algebra which is not isomorphic topositive answer. However, I am more interested in the derivation algebra of any $k$-algebrafirst (again, not necessarily associative or unitaland actually my original)? question. Thank you!