Example 1.
In this example we shall check that the output of LeviDecomposition does indeed lead to a Levi decomposition of the algebra. First we initialize a 6 dimensional Lie algebra and display the Lie bracket multiplication table.
Now compute the Levi decomposition.
So the radical of this Lie algebra is span and the semi-simple part is span. We can check this result by [i] calculating the radical directly, [ii] checking that R is an ideal, [iii] checking that R is solvable and [iv] checking that S is a semisimple subalgebra.
The first step in transforming the algebra Alg1 to canonical form is to change the basis of the Lie algebra to that provided by the Levi decomposition.
Compute the structure equations for the Lie algebra in this basis.
Initialize this Lie algebra data structure and display the multiplication table.