Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add one test in TestSuite of Coxeter groups #33564

Closed
fchapoton opened this issue Mar 25, 2022 · 18 comments
Closed

add one test in TestSuite of Coxeter groups #33564

fchapoton opened this issue Mar 25, 2022 · 18 comments

Comments

@fchapoton
Copy link
Contributor

coming from affine permutations

CC: @tscrim

Component: combinatorics

Author: Frédéric Chapoton

Branch/Commit: 4008629

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/33564

@fchapoton fchapoton added this to the sage-9.6 milestone Mar 25, 2022
@fchapoton
Copy link
Contributor Author

Commit: 150517f

@fchapoton
Copy link
Contributor Author

Branch: u/chapoton/33564

@fchapoton
Copy link
Contributor Author

New commits:

150517fmove doctest in category of Coxeter groups

@fchapoton
Copy link
Contributor Author

comment:2

Hmm, fails for Weyl groups, it seems. Why ?

  • maybe one should test that simple reflections are involutions ?

  • and also commutation between reflection not linked in the Coxeter diagram ?

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 26, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

8f11b4bmore full check for Coxeter relations

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 26, 2022

Changed commit from 150517f to 8f11b4b

@fchapoton
Copy link
Contributor Author

comment:4

so we have a problem with Weyl groups created from matrices:

sage: cm = CartanMatrix([[2,-5,0],[-2,2,-1],[0,-1,2]])
sage: W = WeylGroup(cm)
sage: TestSuite(W).run()
Failure in _test_coxeter_relations:
Traceback (most recent call last):
  File "/home/chapoton/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage/misc/sage_unittest.py", line 297, in run
    test_method(tester=tester)
  File "/home/chapoton/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage/categories/coxeter_groups.py", line 1301, in _test_coxeter_relations
    cox_mat = self.coxeter_matrix()
  File "/home/chapoton/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage/categories/weyl_groups.py", line 96, in coxeter_matrix
    return self.cartan_type().coxeter_matrix()
  File "sage/misc/cachefunc.pyx", line 2310, in sage.misc.cachefunc.CachedMethodCallerNoArgs.__call__ (build/cythonized/sage/misc/cachefunc.c:13026)
    self.cache = f(self._instance)
  File "/home/chapoton/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage/combinat/root_system/cartan_type.py", line 1177, in coxeter_matrix
    return CoxeterMatrix(self)
  File "sage/misc/classcall_metaclass.pyx", line 320, in sage.misc.classcall_metaclass.ClasscallMetaclass.__call__ (build/cythonized/sage/misc/classcall_metaclass.c:1848)
    return cls.classcall(cls, *args, **kwds)
  File "/home/chapoton/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage/combinat/root_system/coxeter_matrix.py", line 194, in __classcall_private__
    return cls._from_coxetertype(coxeter_type)
  File "/home/chapoton/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage/combinat/root_system/coxeter_matrix.py", line 390, in _from_coxetertype
    for (i, j, l) in coxeter_type.coxeter_graph().edge_iterator():
  File "/home/chapoton/sage/local/var/lib/sage/venv-python3.8/lib/python3.8/site-packages/sage/combinat/root_system/coxeter_type.py", line 502, in coxeter_graph
    return self._cartan_type.coxeter_diagram()
TypeError: 'NotImplementedType' object is not callable
------------------------------------------------------------
The following tests failed: _test_coxeter_relations

@fchapoton
Copy link
Contributor Author

comment:6

not clear to me if "Weyl groups" associated with arbitrary Cartan matrices are always Coxeter groups..

@tscrim
Copy link
Collaborator

tscrim commented Mar 27, 2022

comment:7

Every Weyl group is a Coxeter group, but there are a number of restrictions. In particular, it must be crystallographic and when cij cji > 3, then the corresponding Weyl group has an infinite edge in the Coxeter diagram. Here, the issue seems to be just a lack of complete functionality: arbitrary Cartan matrices do not know how to construct the corresponding Coxeter matrix. The code is essentially already there, but just not at the place.

I will try to fix this today.

@tscrim
Copy link
Collaborator

tscrim commented Mar 29, 2022

comment:8

Here is a fix. I also fixed a bug with a mismatch between the Cartan matrix and Cartan type of a reducible type. This now passes the tests in categories, groups, and combinat for me.


New commits:

952afebMerge branch 'u/chapoton/33564' of https://github.com/sagemath/sagetrac-mirror into public/combinat/coxeter_group_test-33564
fbc1e58Fixing issues with definition of Coxeter matrices.
0bac55bUse the index set to get the entires in the Coxeter matrix.
b9bee75Fixing an immutability issue with relabelled Cartan types.

@tscrim
Copy link
Collaborator

tscrim commented Mar 29, 2022

Reviewer: Travis Scrimshaw

@tscrim
Copy link
Collaborator

tscrim commented Mar 29, 2022

Changed commit from 8f11b4b to b9bee75

@tscrim
Copy link
Collaborator

tscrim commented Mar 29, 2022

Changed branch from u/chapoton/33564 to public/combinat/coxeter_group_test-33564

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 29, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

4008629fix pyflakes warning

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 29, 2022

Changed commit from b9bee75 to 4008629

@fchapoton
Copy link
Contributor Author

comment:10

Thanks. I fixed a pyflakes warning. Now, this should be good to go.

If you agree, you can set to positive.

@tscrim
Copy link
Collaborator

tscrim commented Mar 29, 2022

comment:11

Thank you.

@vbraun
Copy link
Member

vbraun commented Apr 2, 2022

Changed branch from public/combinat/coxeter_group_test-33564 to 4008629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants