Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/categories/division_rings.py
4094 views
1
r"""
2
Division rings
3
"""
4
#*****************************************************************************
5
# Copyright (C) 2008 Teresa Gomez-Diaz (CNRS) <[email protected]>
6
#
7
# Distributed under the terms of the GNU General Public License (GPL)
8
# http://www.gnu.org/licenses/
9
#******************************************************************************
10
11
from sage.categories.category import Category
12
from sage.categories.category_singleton import Category_singleton
13
from sage.misc.cachefunc import cached_method
14
15
class DivisionRings(Category_singleton):
16
"""
17
The category of division rings
18
19
a division ring (or skew field) is a not necessarily commutative
20
ring where all non-zero elements have multiplicative inverses
21
22
EXAMPLES::
23
24
sage: DivisionRings()
25
Category of division rings
26
sage: DivisionRings().super_categories()
27
[Category of domains]
28
29
TESTS::
30
31
sage: TestSuite(DivisionRings()).run()
32
"""
33
34
def super_categories(self):
35
"""
36
EXAMPLES::
37
38
sage: DivisionRings().super_categories()
39
[Category of domains]
40
"""
41
from sage.categories.domains import Domains
42
return [Domains()]
43
44
class ParentMethods:
45
pass
46
47
class ElementMethods:
48
pass
49
50