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
""" Abelian Lie Algebras
AUTHORS:
- Travis Scrimshaw (2016-06-07): Initial version """
#***************************************************************************** # Copyright (C) 2013-2017 Travis Scrimshaw <tcscrims at gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # http://www.gnu.org/licenses/ #*****************************************************************************
standardize_names_index_set)
r""" An abelian Lie algebra.
A Lie algebra `\mathfrak{g}` is abelian if `[x, y] = 0` for all `x, y \in \mathfrak{g}`.
EXAMPLES::
sage: L.<x, y> = LieAlgebra(QQ, abelian=True) sage: L.bracket(x, y) 0 """ """ Normalize input to ensure a unique representation.
TESTS::
sage: L1 = LieAlgebra(QQ, 'x,y', {}) sage: L2.<x, y> = LieAlgebra(QQ, abelian=True) sage: L1 is L2 True """
""" Initialize ``self``.
EXAMPLES::
sage: L = LieAlgebra(QQ, 3, 'x', abelian=True) sage: TestSuite(L).run() """
""" Return a string representation of ``self``.
EXAMPLES::
sage: LieAlgebra(QQ, 3, 'x', abelian=True) Abelian Lie algebra on 3 generators (x0, x1, x2) over Rational Field """ return "Abelian Lie algebra on generator {} over {}".format(tuple(gens)[0], self.base_ring()) gens.cardinality(), tuple(gens), self.base_ring())
""" Construct the universal enveloping algebra of ``self``.
EXAMPLES::
sage: L = LieAlgebra(QQ, 3, 'x', abelian=True) sage: L._construct_UEA() Multivariate Polynomial Ring in x0, x1, x2 over Rational Field """
""" Return ``True`` since ``self`` is an abelian Lie algebra.
EXAMPLES::
sage: L = LieAlgebra(QQ, 3, 'x', abelian=True) sage: L.is_abelian() True """
# abelian => nilpotent => solvable
""" Return the Lie bracket ``[self, y]``.
EXAMPLES::
sage: L.<x, y> = LieAlgebra(QQ, abelian=True) sage: L.bracket(x, y) 0 """
r""" An infinite dimensional abelian Lie algebra.
A Lie algebra `\mathfrak{g}` is abelian if `[x, y] = 0` for all `x, y \in \mathfrak{g}`. """ """ Initialize ``self``.
EXAMPLES::
sage: L = LieAlgebra(QQ, index_set=ZZ, abelian=True) sage: TestSuite(L).run() """
r""" Return the dimension of ``self``, which is `\infty`.
EXAMPLES::
sage: L = lie_algebras.abelian(QQ, index_set=ZZ) sage: L.dimension() +Infinity """
""" Return ``True`` since ``self`` is an abelian Lie algebra.
EXAMPLES::
sage: L = lie_algebras.abelian(QQ, index_set=ZZ) sage: L.is_abelian() True """
# abelian => nilpotent => solvable
# For compatibility with CombinatorialFreeModuleElement
""" Return the Lie bracket ``[self, y]``.
EXAMPLES::
sage: L = lie_algebras.abelian(QQ, index_set=ZZ) sage: B = L.basis() sage: l1 = B[1] sage: l5 = B[5] sage: l1.bracket(l5) 0 """
|