Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/categories/bialgebras.py
4094 views
1
r"""
2
Bialgebras
3
"""
4
#*****************************************************************************
5
# Copyright (C) 2008 Teresa Gomez-Diaz (CNRS) <[email protected]>
6
# Copyright (C) 2008-2009 Nicolas M. Thiery <nthiery at users.sf.net>
7
#
8
# Distributed under the terms of the GNU General Public License (GPL)
9
# http://www.gnu.org/licenses/
10
#******************************************************************************
11
12
from sage.misc.cachefunc import cached_method
13
from sage.categories.category_types import Category_over_base_ring
14
from sage.categories.all import Algebras, Coalgebras
15
16
class Bialgebras(Category_over_base_ring):
17
"""
18
The category of bialgebras
19
20
EXAMPLES::
21
22
sage: Bialgebras(ZZ)
23
Category of bialgebras over Integer Ring
24
sage: Bialgebras(ZZ).super_categories()
25
[Category of algebras over Integer Ring, Category of coalgebras over Integer Ring]
26
27
TESTS::
28
29
sage: TestSuite(Bialgebras(ZZ)).run()
30
"""
31
32
def super_categories(self):
33
"""
34
EXAMPLES::
35
36
sage: Bialgebras(QQ).super_categories()
37
[Category of algebras over Rational Field, Category of coalgebras over Rational Field]
38
"""
39
R = self.base_ring()
40
return [Algebras(R), Coalgebras(R)]
41
42
class ParentMethods:
43
pass
44
45
class ElementMethods:
46
pass
47
48