From 9d8efa081c9f3a6c7f49f3022528fcbb363aa1a5 Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Tue, 9 Jan 2024 22:31:43 +0900 Subject: [PATCH] Fixing some details and doctests. --- src/doc/en/reference/references/index.rst | 6 +++--- src/sage/algebras/lie_algebras/poincare_birkhoff_witt.py | 2 +- src/sage/categories/lie_algebras.py | 2 +- src/sage/rings/polynomial/plural.pyx | 7 ++++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/doc/en/reference/references/index.rst b/src/doc/en/reference/references/index.rst index 6888592e3ca..bd1cd17af15 100644 --- a/src/doc/en/reference/references/index.rst +++ b/src/doc/en/reference/references/index.rst @@ -4738,9 +4738,9 @@ REFERENCES: of polynomial maps. Proc. London Math. Soc., 68 (1994), 225-263. .. [Motsak2006] Olekasandr Motsak. *Computation of the central elements and - centralizers of sets of elements in non-commutative polynomial - algebras*. PhD Thesis, 2006. - https://kluedo.ub.rptu.de/frontdoor/deliver/index/docId/2308/file/Thesis.pdf + centralizers of sets of elements in non-commutative polynomial + algebras*. PhD Thesis, 2006. + https://kluedo.ub.rptu.de/frontdoor/deliver/index/docId/2308/file/Thesis.pdf .. [MP2019] \M. Montes, D. Penazzi "Yarara and Coral v1" diff --git a/src/sage/algebras/lie_algebras/poincare_birkhoff_witt.py b/src/sage/algebras/lie_algebras/poincare_birkhoff_witt.py index 2189e60f905..b3f73b49494 100644 --- a/src/sage/algebras/lie_algebras/poincare_birkhoff_witt.py +++ b/src/sage/algebras/lie_algebras/poincare_birkhoff_witt.py @@ -577,7 +577,7 @@ def center(self): sage: g = lie_algebras.Heisenberg(GF(3), 4) sage: U = g.pbw_basis() - sage: Z = U.center() + sage: U.center() Center of Universal enveloping algebra of Heisenberg algebra of rank 4 over Finite Field of size 3 in the Poincare-Birkhoff-Witt basis """ diff --git a/src/sage/categories/lie_algebras.py b/src/sage/categories/lie_algebras.py index 38fd5563fb9..74921ea8f65 100644 --- a/src/sage/categories/lie_algebras.py +++ b/src/sage/categories/lie_algebras.py @@ -356,7 +356,7 @@ def center_universal_enveloping_algebra(self, UEA=None): sage: L.center_universal_enveloping_algebra() Center of Universal enveloping algebra of Abelian Lie algebra on 3 generators (x0, x1, x2) over Rational Field in the Poincare-Birkhoff-Witt basis - sage: PBW = L.PBW_basis() + sage: PBW = L.pbw_basis() sage: L.center_universal_enveloping_algebra(PBW) Center of Universal enveloping algebra of Abelian Lie algebra on 3 generators (x0, x1, x2) over Rational Field in the Poincare-Birkhoff-Witt basis diff --git a/src/sage/rings/polynomial/plural.pyx b/src/sage/rings/polynomial/plural.pyx index ff908c8fd0a..96475183790 100644 --- a/src/sage/rings/polynomial/plural.pyx +++ b/src/sage/rings/polynomial/plural.pyx @@ -856,7 +856,7 @@ cdef class NCPolynomialRing_plural(Ring): return new_NCP(self,_p) - def algerbra_generators(self): + def algebra_generators(self): r""" Return the algebra generators of ``self``. @@ -865,9 +865,10 @@ cdef class NCPolynomialRing_plural(Ring): sage: A. = FreeAlgebra(QQ, 3) sage: P = A.g_algebra(relations={y*x:-x*y}, order = 'lex') sage: P.algebra_generators() - (x, y, z) + Family (x, y, z) """ - return self.gens() + from sage.sets.family import Family + return Family(self.gens()) def ideal(self, *gens, **kwds): """