M = minimalModel(d,L)
That $M$ is a minimal model of a Lie algebra $L$ up to degree $d$ means that there exists a differential Lie algebra homomorphism $f: M \ \to\ L$ such that $H(f)$ is an isomorphism up to degree $d$, $M$ is free as a Lie algebra, and the linear part of the differential on $M$ is zero. The homomorphism $f$ may be obtained using map(LieAlgebra) applied to $M$.
The generators of $M$ yield a basis for the cohomology of $L$, i.e., $Ext_{UL}(k,k)$, where $k$ is the coefficient field of $L$. This skewcommutative algebra may be obtained using extAlgebra. Multiplication of elements in $Ext_{UL}(k,k)$ is obtained using ExtElement ExtElement.
Observe that the homological weight in the cohomology algebra is one higher than the homological weight in the minimal model.
Since $R$ in the following example is a Koszul algebra it follows that the cohomology algebra of $L$ is equal to $R$. This means that the minimal model of $L$ has generators in each degree $(d,d-1)$.
|
|
|
|
|
|
In the following example the enveloping algebra of $L1$ has global dimension $2$, which means that the computed minimal model is in fact the full minimal model of $L1$.
|
|
|
|
|
The object minimalModel is a method function.