In this second tutorial, we continue the introduction on how to use the package GradedLieAlgebras.
By default, the scalars are assumed to be rational numbers, but it is also possible to define the coefficient field with the option Field, which is one out of four options that can be used in the constructor lieAlgebra.
|
|
The example above specifies the Lie algebra over the fraction field of $\mathbb Z/7$ [ $x$ ] on three generators $a_1, a_2, a_3$, modulo the ideal generated by $3$ [$a_1$, [ $a_2$, $a_3$ ]] + $5x$ [ $a_2$, [ $a_1$, $a_3$ ]] and [$a_3$, [ $a_2$, [ $a_3$, $a_1$ ]]]. As input coefficients one may always use an integer or a quotient of integers with non-zero denominator in the field.
To specify weights of the generators, use the option lieAlgebra(...,Weights=>...). The weights are lists of integers of the same length, where the first degree is positive, also just called the degree, see firstDegree(LieElement). The degree is the two first inputs for the function dims(ZZ,ZZ,LieAlgebra). If the option lieAlgebra(...,LastWeightHomological=>...) is true, then the last degree is the homological degree, which is non-negative and less than the first degree. If the option lieAlgebra(...,LastWeightHomological=>...) is false, which is the default value, then the program defines the homological degree to be zero, and adds a last component 0 to the existing degrees. In this case the weights can also be given as a list of positive integers that will be the degrees. See Differential Lie algebra tutorial how to define a differential. Use weight to compute the weight of an arbitrary homogeneous Lie expression.
|
|
|
|
|
|
|
To specify signs of the generators, use the option lieAlgebra(...,Signs=>...). The sign of a generator is either 0 (even) or 1 (odd). By default, the sign of all generators are 0. Writing the option as "Signs => 1" defines the signs of all the generators to be 1. The signs affect the axioms of a Lie superalgebra, see LieAlgebra. Use sign to compute the sign of an arbitrary homogeneous Lie expression.
|
|
|
For each finitely presented Lie algebra $L$, ambient(L) represents a free Lie algebra $M$ such that $L$ (without differential) is a quotient of $M$, see also Quotient Lie algebras and subspaces. Moreover, the relations belong to $M$, even if $L$ is defined as a quotient in two or more steps from $M$. This is somewhat different from the situation for rings.
|
|
|
|
|
|
|
The relations may have a non-zero linear part. Use minimalPresentation(ZZ,LieAlgebra) to get a minimal presentation. Use describe(LieAlgebra) to get information about the Lie algebra. This contains the value of the three options lieAlgebra(...,Weights=>...), lieAlgebra(...,Signs=>...), lieAlgebra(...,Field=>...), and also the values generators(LieAlgebra), ideal(LieAlgebra), ambient(LieAlgebra), diff(LieAlgebra) and computedDegree(LieAlgebra)
|
|
|
|
|
|
In L#cache there is more information about $L$ collected during a computation. Some parts of the information are visible to the user, e.g., lieRing and mbRing. The ring L#cache.lieRing is the internal polynomial ring representation of Lie elements. The Lie monomials are represented as commutative monomials in this ring. The program produces internally an ideal of relations and a basis, which may be seen as L#cache.gb and L#cache.basis. The number of generators in lieRing is the number of generators in the Lie algebra times the internal counter L#cache.max, which initially is set to $5$, and is changed to $n+5$ if the computation of $L$ is performed up to degree $n$ with $n\ >$ L#cache.max.
|
|
|
|
|
|
|
|
|
The ring L#cache.mbRing is used to get an output of Lie elements with indexed basis elements, which sometimes is better to use than the iterated Lie products of generators, especially in high degrees. Use indexForm to get the output in mbRing and standardForm(RingElement,LieAlgebra) to get back the standard output. The ring mbRing is very large; it has as many generators as the total dimension of the computed Lie algebra. For this reason, you should give the ring a name to avoid a large output.
|
|
|
|
|
|