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

Commit 8e72e1b

Browse files
author
Release Manager
committed
Trac #30821: some typos found using "sage --tox"
of various kinds URL: https://trac.sagemath.org/30821 Reported by: chapoton Ticket author(s): Frédéric Chapoton Reviewer(s): Matthias Koeppe
2 parents 4c68ef3 + d5e4e1b commit 8e72e1b

32 files changed

+98
-98
lines changed

src/sage/algebras/letterplace/letterplace_ideal.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,8 @@ class LetterplaceIdeal(Ideal_nc):
249249
sage: J.groebner_basis()
250250
[b*a^2 - c^3, b^2*a + c*a^2, c*a^3 + c^3*b, c^3*b^2 + c^4*a]
251251
252-
Aparently, the results are compatible, by sending `a` to `x`, `b`
252+
Apparently, the results are compatible, by sending `a` to `x`, `b`
253253
to `y` and `c` to `z`.
254-
255254
"""
256255
cdef FreeAlgebra_letterplace A = self.ring()
257256
cdef FreeAlgebraElement_letterplace x

src/sage/algebras/lie_algebras/affine_lie_algebra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def __classcall_private__(cls, arg0, cartan_type=None, kac_moody=True):
178178

179179
def __init__(self, g, kac_moody):
180180
"""
181-
Initalize ``self``.
181+
Initialize ``self``.
182182
183183
EXAMPLES::
184184

src/sage/algebras/lie_algebras/morphism.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def _call_(self, x):
259259
"""
260260
return x._im_gens_(self.codomain(), self.im_gens(), base_map=self.base_map())
261261

262+
262263
class LieAlgebraHomset(Homset):
263264
"""
264265
Homset between two Lie algebras.
@@ -270,7 +271,7 @@ class LieAlgebraHomset(Homset):
270271
"""
271272
def __init__(self, X, Y, category=None, base=None, check=True):
272273
"""
273-
Initalize ``self``.
274+
Initialize ``self``.
274275
275276
EXAMPLES::
276277

src/sage/algebras/lie_algebras/verma_module.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ def _call_(self, x):
812812
sage: v = Mpp.highest_weight_vector()
813813
sage: psi(v)
814814
0
815-
"""
815+
"""
816816
if not self._scalar or self.parent().singular_vector() is None:
817817
return self.codomain().zero()
818818
mc = x.monomial_coefficients(copy=False)
@@ -1321,4 +1321,3 @@ def _convert_wt_to_root(wt):
13211321
b = b[0] # Get the actual vector that gives the linear dependency
13221322
# Get v as a linear combination of the simple roots
13231323
return vector(QQ, [-x / b[0] for x in b[1:]])
1324-

src/sage/algebras/splitting_algebra.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
*Splitting algebras* have been considered by Dan Laksov, Anders Thorup,
66
Torsten Ekedahl and others (see references below) in order to study
7-
intersection theory of Grassmann and other flag schemes. Similarily as
7+
intersection theory of Grassmann and other flag schemes. Similarly as
88
*splitting fields* they can be considered as extensions of rings containing
99
all the roots of a given monic polynomial over that ring under the
1010
assumption that its Galois group is the symmetric group of order equal
@@ -151,7 +151,7 @@ class SplittingAlgebra(PolynomialQuotientRing_domain):
151151
sage: Lc.<w> = LaurentPolynomialRing(ZZ)
152152
sage: PabLc.<u,v> = Lc[]; t = polygen(PabLc)
153153
sage: S.<x, y> = SplittingAlgebra(t^3 - u*t^2 + v*t - w)
154-
doctest:...: UserWarning: Asuming x^3 - u*x^2 + v*x - w to have maximal
154+
doctest:...: UserWarning: Assuming x^3 - u*x^2 + v*x - w to have maximal
155155
Galois group!
156156
157157
sage: roots = S.splitting_roots(); roots
@@ -261,7 +261,7 @@ def __init__(self, monic_polynomial, names='X', iterate=True, warning=True):
261261
# assuming this has been checked mathematically before
262262
self._set_modulus_irreducible_ = True
263263
if warning:
264-
warn('Asuming %s to have maximal Galois group!' % (monic_polynomial))
264+
warn('Assuming %s to have maximal Galois group!' % (monic_polynomial))
265265
warning = False # one warning must be enough
266266

267267
verbose("P %s defined:" % (P))
@@ -569,7 +569,7 @@ def lifting_map(self):
569569

570570
def splitting_roots(self):
571571
r"""
572-
Return the roots of the splitted equation.
572+
Return the roots of the split equation.
573573
574574
EXAMPLES::
575575
@@ -750,10 +750,10 @@ def create_roots(monic_polynomial, warning=True):
750750
roots = create_roots(monic_polynomial, warning=warning)
751751

752752
else:
753-
# ------------------------------------------------------------------------------
754-
# root calculation was possible but maybe some more roots in an apropriate
755-
# extension ring can be constructed.
756-
# ------------------------------------------------------------------------------
753+
# ------------------------------------------------------------------
754+
# root calculation was possible but maybe some more roots in
755+
# an appropriate extension ring can be constructed.
756+
# ------------------------------------------------------------------
757757
num_roots = sum(m for r, m in root_list)
758758
if num_roots < deg_pol:
759759
h = monic_polynomial.variables()[0]

src/sage/algebras/yokonuma_hecke_algebra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def __init__(self, d, n, q, R):
161161
self._assign_names(self.algebra_generators().keys())
162162

163163
def _repr_(self):
164-
"""
164+
"""
165165
Return a string representation of ``self``.
166166
167167
EXAMPLES::

src/sage/categories/algebras_with_basis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,10 @@ def one(self):
340340
else:
341341
return NotImplemented
342342

343-
#def product_on_basis(self, t1, t2):
343+
# def product_on_basis(self, t1, t2):
344344
# would be easy to implement, but without a special
345345
# version of module morphism, this would not take
346-
# advantage of the bloc structure
346+
# advantage of the block structure
347347

348348

349349
class TensorProducts(TensorProductsCategory):

src/sage/categories/category.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,7 @@ def join(categories, as_list=False, ignore_axioms=(), axioms=()):
23882388
sage: Category.join([Groups() & Posets()], as_list=True)
23892389
[Category of groups, Category of posets]
23902390
2391-
Support for axiom categories (TODO: put here meaningfull examples)::
2391+
Support for axiom categories (TODO: put here meaningful examples)::
23922392
23932393
sage: Sets().Facade() & Sets().Infinite()
23942394
Category of facade infinite sets

src/sage/categories/complex_reflection_or_generalized_coxeter_groups.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ def from_reduced_word(self, word, word_type='simple'):
691691
692692
sage: W.from_reduced_word([1, 2, 3]).reduced_word()
693693
[1, 2, 3]
694-
694+
695695
sage: W = WeylGroup("A3", prefix='s')
696696
sage: AS = W.domain()
697697
sage: r1 = AS.roots()[4]
@@ -702,7 +702,7 @@ def from_reduced_word(self, word, word_type='simple'):
702702
(0, 0, 1, -1)
703703
sage: W.from_reduced_word([r1, r2], word_type='all')
704704
s3*s2
705-
705+
706706
sage: W = WeylGroup("G2", prefix='s')
707707
sage: W.from_reduced_word(W.domain().positive_roots(), word_type='all')
708708
s1*s2
@@ -1077,8 +1077,8 @@ def apply_reflections(self, word, side='right', word_type='all'):
10771077
(0, 0, 1, -1)
10781078
sage: w.apply_reflections([r1, r2], word_type='all')
10791079
s1
1080-
1081-
1080+
1081+
10821082
sage: W = ReflectionGroup((1,1,3)) # optional - gap3
10831083
sage: W.one().apply_reflections([1], word_type='distinguished') # optional - gap3
10841084
(1,4)(2,3)(5,6)
@@ -1227,7 +1227,6 @@ def is_reflection(self):
12271227
"""
12281228
return self.reflection_length() == 1
12291229

1230-
12311230
class Irreducible(CategoryWithAxiom):
12321231
class ParentMethods:
12331232
def irreducible_components(self):
@@ -1242,4 +1241,3 @@ def irreducible_components(self):
12421241
[4-colored permutations of size 3]
12431242
"""
12441243
return [self]
1245-

src/sage/categories/coxeter_groups.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,8 +1205,8 @@ def has_left_descent(self, i):
12051205

12061206
def first_descent(self, side='right', index_set=None, positive=False):
12071207
"""
1208-
Returns the first left (resp. right) descent of self, as
1209-
ane element of ``index_set``, or ``None`` if there is none.
1208+
Return the first left (resp. right) descent of self, as
1209+
an element of ``index_set``, or ``None`` if there is none.
12101210
12111211
See :meth:`.descents` for a description of the options.
12121212

0 commit comments

Comments
 (0)