r"""
Bialgebras
"""
from sage.misc.cachefunc import cached_method
from sage.categories.category_types import Category_over_base_ring
from sage.categories.all import Algebras, Coalgebras
class Bialgebras(Category_over_base_ring):
"""
The category of bialgebras
EXAMPLES::
sage: Bialgebras(ZZ)
Category of bialgebras over Integer Ring
sage: Bialgebras(ZZ).super_categories()
[Category of algebras over Integer Ring, Category of coalgebras over Integer Ring]
TESTS::
sage: TestSuite(Bialgebras(ZZ)).run()
"""
def super_categories(self):
"""
EXAMPLES::
sage: Bialgebras(QQ).super_categories()
[Category of algebras over Rational Field, Category of coalgebras over Rational Field]
"""
R = self.base_ring()
return [Algebras(R), Coalgebras(R)]
class ParentMethods:
pass
class ElementMethods:
pass