Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
r""" Examples of a Lie algebra with basis """ #***************************************************************************** # Copyright (C) 2014 Travis Scrimshaw <tscrim at ucdavis.edu> # # Distributed under the terms of the GNU General Public License (GPL) # http://www.gnu.org/licenses/ #*****************************************************************************
#from sage.misc.cachefunc import cached_method
r""" An example of a Lie algebra: the abelian Lie algebra.
This class illustrates a minimal implementation of a Lie algebra with a distinguished basis. """ """ EXAMPLES::
sage: L = LieAlgebras(QQ).WithBasis().example() sage: TestSuite(L).run() """
""" Construct the universal enveloping algebra of ``self``.
EXAMPLES::
sage: L = LieAlgebras(QQ).WithBasis().example() sage: L._construct_UEA() Polynomial algebra with generators indexed by Partitions over Rational Field """
""" EXAMPLES::
sage: LieAlgebras(QQ).WithBasis().example() An example of a Lie algebra: the abelian Lie algebra on the generators indexed by Partitions over Rational Field """ " generators indexed by {} over {}".format( self.basis().keys(), self.base_ring())
""" Return the generators of ``self`` as a Lie algebra.
EXAMPLES::
sage: L = LieAlgebras(QQ).WithBasis().example() sage: L.lie_algebra_generators() Lazy family (Term map from Partitions to An example of a Lie algebra: the abelian Lie algebra on the generators indexed by Partitions over Rational Field(i))_{i in Partitions} """
""" Return the Lie bracket on basis elements indexed by ``x`` and ``y``.
EXAMPLES::
sage: L = LieAlgebras(QQ).WithBasis().example() sage: L.bracket_on_basis(Partition([4,1]), Partition([2,2,1])) 0 """
""" Return the lift of ``self`` to the universal enveloping algebra.
EXAMPLES::
sage: L = LieAlgebras(QQ).WithBasis().example() sage: elt = L.an_element() sage: elt.lift() 3*P[F[2]] + 2*P[F[1]] + 2*P[F[]] """
##############
""" Polynomial ring whose generators are indexed by an arbitrary set.
.. TODO::
Currently this is just used as the universal enveloping algebra for the example of the abelian Lie algebra. This should be factored out into a more complete class. """ """ Initialize ``self``.
EXAMPLES::
sage: L = LieAlgebras(QQ).WithBasis().example() sage: UEA = L.universal_enveloping_algebra() sage: TestSuite(UEA).run() """ # This is a workaround until IndexedFree(Abelian)Monoid elements compare properly
""" Return a string representation of ``self``.
EXAMPLES::
sage: L = LieAlgebras(QQ).WithBasis().example() sage: L.universal_enveloping_algebra() Polynomial algebra with generators indexed by Partitions over Rational Field """ self._indices._indices, self.base_ring())
""" Return the index of element `1`.
EXAMPLES::
sage: L = LieAlgebras(QQ).WithBasis().example() sage: UEA = L.universal_enveloping_algebra() sage: UEA.one_basis() 1 sage: UEA.one_basis().parent() Free abelian monoid indexed by Partitions """
""" Return the product of the monomials indexed by ``x`` and ``y``.
EXAMPLES::
sage: L = LieAlgebras(QQ).WithBasis().example() sage: UEA = L.universal_enveloping_algebra() sage: I = UEA._indices sage: UEA.product_on_basis(I.an_element(), I.an_element()) P[F[]^4*F[1]^4*F[2]^6] """
""" Return the algebra generators of ``self``.
EXAMPLES::
sage: L = LieAlgebras(QQ).WithBasis().example() sage: UEA = L.universal_enveloping_algebra() sage: UEA.algebra_generators() Lazy family (algebra generator map(i))_{i in Partitions} """ name="algebra generator map")
|