Skip to content

Commit 70e7bfb

Browse files
committed
minor details in Coxeter groups
1 parent 0fd5967 commit 70e7bfb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/sage/categories/coxeter_groups.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,10 @@ def succ(u):
513513

514514
from sage.categories.finite_coxeter_groups import FiniteCoxeterGroups
515515
default_category = FiniteEnumeratedSets() if self in FiniteCoxeterGroups() else EnumeratedSets()
516+
cat = default_category.or_subcategory(category)
516517
return RecursivelyEnumeratedSet_forest((self.one(),), succ,
517-
algorithm='breadth',
518-
category=default_category.or_subcategory(category))
518+
algorithm='breadth',
519+
category=cat)
519520

520521
@cached_method
521522
def coxeter_element(self):
@@ -2236,7 +2237,6 @@ def binary_factorizations(self, predicate=ConstantFunction(True)):
22362237
if not predicate(W.one()):
22372238
from sage.sets.finite_enumerated_set import FiniteEnumeratedSet
22382239
return FiniteEnumeratedSet([])
2239-
s = W.simple_reflections()
22402240

22412241
def succ(u_v):
22422242
u, v = u_v
@@ -2372,7 +2372,7 @@ def bruhat_lower_covers_reflections(self):
23722372
wi = self.apply_simple_reflection(i, side='right')
23732373
return [(u.apply_simple_reflection(i, side='right'),
23742374
r.apply_conjugation_by_simple_reflection(i))
2375-
for u,r in wi.bruhat_lower_covers_reflections()
2375+
for u, r in wi.bruhat_lower_covers_reflections()
23762376
if not u.has_descent(i, side='right')] + [
23772377
(wi, self.parent().simple_reflection(i))]
23782378

@@ -3109,7 +3109,7 @@ def kazhdan_lusztig_cell(self, side='left'):
31093109
31103110
The cell computation uses the optional package ``coxeter3`` in
31113111
the background if available to speed up the computation,
3112-
even in the different implementations implementations::
3112+
even in the different implementations::
31133113
31143114
sage: W = WeylGroup('A3', prefix='s') # optional - coxeter3
31153115
sage: s1,s2,s3 = W.simple_reflections() # optional - coxeter3

src/sage/categories/monoids.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ def inverse(self):
377377
This is an alias for inversion, which can also be invoked
378378
by ``~x`` for an element ``x``.
379379
380+
Nota Bene: Element classes should implement ``__invert__`` only.
381+
380382
EXAMPLES::
381383
382384
sage: AA(sqrt(~2)).inverse() # optional - sage.symbolic sage.rings.number_field

0 commit comments

Comments
 (0)