Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 1b93d6e

Browse files
author
Travis Scrimshaw
committed
Merge branch 'public/ticket/10963-doc-distributive' of trac.sagemath.org:sage into public/ticket/10963-doc-distributive
* 'public/ticket/10963-doc-distributive' of trac.sagemath.org:sage: Trac 10963: micro improvement to the documentation of the algorithm, upon Darij's suggestion Trac 10963: proofread Darij's changes to the documentation and some more little improvements there further little fixes some possibly wrong comments on subcategories some more changes to documentation -- please check (Cunningham's law) Axioms: fixed documentation compilation Axioms: documentation: systematic check about full vs non full subcategories + minor improvements Axioms: Fixed some unused imports in categories
2 parents 6414830 + 76728d6 commit 1b93d6e

14 files changed

+239
-145
lines changed

src/sage/categories/additive_magmas.py

+18-10
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class SubcategoryMethods:
7171
@cached_method
7272
def AdditiveAssociative(self):
7373
"""
74-
Returns the full subcategory of the additive associative objects of ``self``.
74+
Return the full subcategory of the additive associative objects of ``self``.
7575
7676
EXAMPLES::
7777
@@ -89,7 +89,7 @@ def AdditiveAssociative(self):
8989
@cached_method
9090
def AdditiveCommutative(self):
9191
"""
92-
Returns the full subcategory of the commutative objects of ``self``.
92+
Return the full subcategory of the commutative objects of ``self``.
9393
9494
EXAMPLES::
9595
@@ -111,7 +111,7 @@ def AdditiveCommutative(self):
111111
@cached_method
112112
def AdditiveUnital(self):
113113
r"""
114-
Returns the full subcategory of the unital objects of ``self``.
114+
Return the subcategory of the unital objects of ``self``.
115115
116116
EXAMPLES::
117117
@@ -196,7 +196,7 @@ def __init_extra__(self):
196196

197197
def addition_table(self, names='letters', elements=None):
198198
r"""
199-
Returns a table describing the addition operation.
199+
Return a table describing the addition operation.
200200
201201
.. note:: The order of the elements in the row and column
202202
headings is equal to the order given by the table's
@@ -421,7 +421,7 @@ def _add_(self, right):
421421

422422
def _add_parent(self, other):
423423
r"""
424-
Returns the sum of the two elements, calculated using
424+
Return the sum of the two elements, calculated using
425425
the ``summation`` method of the parent.
426426
427427
This is the default implementation of _add_ if
@@ -523,7 +523,15 @@ class SubcategoryMethods:
523523
@cached_method
524524
def AdditiveInverse(self):
525525
r"""
526-
Returns the full subcategory of the unital objects of ``self``.
526+
Return the full subcategory of the additive inverse objects of ``self``.
527+
528+
An inverse :class:`additive magma <AdditiveMagmas>` is
529+
a :class:`unital additive magma <AdditiveMagmas.Unital>`
530+
such that every element admits both an additive
531+
inverse on the left and on the right. Such an additive
532+
magma is also called an *additive loop*.
533+
534+
.. SEEALSO:: :wikipedia:`Inverse_element`, :wikipedia:`Quasigroup`
527535
528536
EXAMPLES::
529537
@@ -585,7 +593,7 @@ def _test_zero(self, **options):
585593
@cached_method
586594
def zero(self):
587595
"""
588-
Returns the zero of the abelian monoid, that is the unique neutral element for `+`.
596+
Return the zero of the abelian monoid, that is the unique neutral element for `+`.
589597
590598
The default implementation is to coerce 0 into self.
591599
@@ -640,7 +648,7 @@ class ElementMethods:
640648
@abstract_method
641649
def __nonzero__(self):
642650
"""
643-
Returns whether ``self`` is not zero
651+
Return whether ``self`` is not zero
644652
645653
All parents in the category ``CommutativeAdditiveMonoids()``
646654
should implement this method.
@@ -692,7 +700,7 @@ class ParentMethods:
692700
@cached_method
693701
def one_basis(self):
694702
"""
695-
Returns the zero of this additive monoid, which index the one of this algebra,
703+
Return the zero of this additive monoid, which index the one of this algebra,
696704
as per
697705
:meth:`AlgebrasWithBasis.ParentMethods.one_basis()
698706
<sage.categories.algebras_with_basis.AlgebrasWithBasis.ParentMethods.one_basis>`.
@@ -717,7 +725,7 @@ class ParentMethods:
717725

718726
def zero(self):
719727
r"""
720-
Returns the zero of this unital additive magma
728+
Return the zero of this unital additive magma
721729
722730
This default implementation returns the zero of the
723731
realization of ``self`` given by :meth:`~Sets.WithRealizations.ParentMethods.a_realization`.

src/sage/categories/category.py

-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
from sage.structure.unique_representation import UniqueRepresentation
108108
from sage.structure.dynamic_class import DynamicMetaclass, dynamic_class
109109

110-
import sage.misc.weak_dict
111110
from sage.misc.weak_dict import WeakValueDictionary
112111
_join_cache = WeakValueDictionary()
113112

0 commit comments

Comments
 (0)