Example 1.
First initialize a Lie algebra.
Define a subspace , a complement , and an inner product on .
Check that , is naturally reductive with respect to
Naturally reductive means that [i] the symmetric tensor defined by is invariant with respect to the vectors in and [ii] the Lie derivative of with respect to the vectors in vanishes on pairs of vectors from . Thus, for the above example we have:
Example 2.
In this example we consider a Lie algebra containing a parameter . We find that a certain subspace admits a naturally reductive complement when
First initialize a Lie algebra and display the Lie bracket multiplication table.
For we have that is a reductive complement. We let the inner product be arbitrary.
We see that the that span is naturally reductive only when . To check this we substitute into the Lie algebra data structure for L2 and change the name of the algebra to Alg3.