Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/categories/domains.py
4079 views
1
r"""
2
Domains
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.rings import Rings
12
from sage.categories.category import Category
13
from sage.categories.category_singleton import Category_singleton
14
from sage.misc.cachefunc import cached_method
15
16
class Domains(Category_singleton):
17
"""
18
The category of domains
19
20
An domain (or non-commutative integral domains), is a not
21
necessarily commutative ring which has no zero divisors.
22
23
EXAMPLES::
24
25
sage: Domains()
26
Category of domains
27
sage: Domains().super_categories()
28
[Category of rings]
29
30
TESTS::
31
32
sage: TestSuite(Domains()).run()
33
"""
34
35
def super_categories(self):
36
"""
37
EXAMPLES::
38
39
sage: Domains().super_categories()
40
[Category of rings]
41
"""
42
return [Rings()]
43
44
class ParentMethods:
45
pass
46
47
class ElementMethods:
48
pass
49
50