Example 1.
First initialize a Lie algebra from a list of structure equations.
We define the adjoint representation and use this to construct the corresponding Lie algebra with coefficients.
Here is a pair of 2-forms on and their Massey product.
Here is a pair of 3-forms on and their Massey product.