Define two Lie algebras.
Example 1.
Example 2.
In this example we find all the homomorphisms from Alg1 to Alg2 of the form defined by the Matrix A.
Example 3.
In this example we add functionality to Query. Recall that a Lie algebra is said to be a two-step nilpotent Lie algebra if the second term in the lower central series vanishes. We create a procedure that returns true if the given Lie algebra is two-step nilpotent and false otherwise.
>
|
f := proc() local C, k;
if nargs = 1 then ChangeLieAlgebraTo(args[1]) end if;
C := LieAlgebraSeries("Lower");
k := nops(C[3]);
if k = 0 then true else false end if;
end:
|
Add this procedure to the Query command.
Note that "two-step" has now been added to the keywords list for Query.