Example 1.
First we initialize a Lie algebra and display the multiplication table.
Find the minimal subalgebra containing
Find the minimal subalgebra containing
Find the minimal subalgebra containing
Example 2.
The command MinimalSubalgebra also works with matrices.
We can use the LieAlgebraData command to verify that the set of matrices N defines a 4-dimensional Lie algebra and to determine the commutator relationships.
Here denote the four matrices N[1], N[2], N[3], N[4].