Example 1.
We begin by defining a bracket operation on a 3-dimensional vector space with basis This bracket depends upon two parameters and . We shall determine for which parameter values this bracket satisfies the Jacobi identities.
Convert to a Lie algebra data structure.
Initialize this data structure.
The equations that must be satisfied for the bracket to satisfy Jacobi are:
This leads to two cases or . We initialize the resulting Lie algebra data structures and print the multiplication tables.
Example 2
The Jacobi identities are equivalent to the vanishing of the square of the exterior derivative. For example: