Example 1.
First initialize a Lie algebra.
We see that span is not a reductive complement for span but span is a reductive complement for span
Now we look for the most general reductive complement for the subalgebra span .
The only possibility is span.
Note that the ComplementaryBasis command can be used to generate the most general complementary subspace. This helps to calculate reductive complements for subalgebras.