-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Commutator subgroup of permutation group ignores the domain #39416
Comments
I applied the solution you mentioned and its working fine now so would you mind if i open the PR |
Before opening a PR, one probably should check that other subgroup methods aren't affected by a similar issue. I'm not familiar enough with the interaction between Sage groups and Gap's libgap groups. In fact, I do not understand why for the same example
returns the wrong group |
The problem with the |
@AdityaK1729, it's fine with me if you want to do the pull request. However, there also needs to be a doctest, such as:
In addition, as I looked at the other occurrences of ==== In
Then it should be enough to let ====
====
|
Also, instead of my original suggestion, I think a clearer way to fix the original issue for
|
Steps To Reproduce
As pointed out in this sage-devel thread, if a permutation group has a nonstandard domain, then the commutator method can return an incorrect result:
Expected Behavior
The commutator subgroup should be generated by the cycle
(1,2,4)
.Actual Behavior
Sagemath reports that the commutator subgroup is generated by the cycle
(1,2,3)
, which is not even in the group, because 3 is not in the domain.Additional Information
I think the problem is that the
commutator
method ignores the domain. Line 3348 ofsrc/sage/groups/perm_gps/permgroup.py
isbut I think it should be
Environment
any
Checklist
The text was updated successfully, but these errors were encountered: