Open 97efbb86-de09-4609-9449-8bf7258d4da8 opened 5 years ago
The calling lift
for the latter check is the correct thing (trying to see if ZZ
is the UEA).
However, the first part is really strange. It seems to be a bug in the g_algebra
code. The correct relations are being constructed, but are not included in the UEA (I added a print(rels)
statement to the code:
sage: L = LieAlgebras(QQ).FiniteDimensional().WithBasis().example()
sage: L._construct_UEA()
{b2*b1: b1*b2, b1*b0: b0*b1, b2*b0: b0*b2}
Noncommutative Multivariate Polynomial Ring in b0, b1, b2 over Rational Field, nc-relations: {}
Without going through the Lie algebra:
sage: F.<x,y,z> = FreeAlgebra(QQ)
sage: F.g_algebra({y*x: x*y, z*x: x*z, z*y: y*z})
Noncommutative Multivariate Polynomial Ring in x, y, z over Rational Field, nc-relations: {}
sage: F.<x,y,z> = FreeAlgebra(ZZ)
sage: F.g_algebra({y*x: x*y, z*x: x*z, z*y: y*z})
# same traceback in the description
For parents in the category
FiniteDimensionalLieAlgebrasWithBasis
over some non-fields, e.g.ZZ
orIntegers(n)
forn
non-prime, attempting to construct the universal enveloping algebra causes a runtime error:This issue bubbles up to some seemingly unrelated contexts, e.g.
This is caused by the element constructor
ZZ(x)
trying to callx.lift()
, which leads to the callL._construct_UEA()
, causing the above error.CC: @tscrim
Component: categories
Keywords: Lie algebras
Issue created by migration from https://trac.sagemath.org/ticket/26149