-
Notifications
You must be signed in to change notification settings - Fork 161
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 new property IsRegularPGroup
#5359
Conversation
2e00d46
to
f8fd836
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice.
I have left a few minor comments.
Just for curiosity:
Why is Agemo
not an attribute?
(Agemo
is defined only for p-groups, why is it necessary to enter p as an argument?)
Unfortunately I am not aware of an efficient algorithm for this in general. But the provided one at least performs reasonably for e.g. the groups of order 3^7.
f8fd836
to
8733db5
Compare
I am also puzzled why |
Thanks for the careful checking and excellent feedback! |
I wrote a few more tests to improve test coverage. I didn't find any group where the last special case code applied, but the other cases all have "smallest" examples. The cases are numbered (I added debug prints to each if statement), and all but case 11 (use the definition, and get true as the answer) are very quick. Add the following (except maybe the last two lines, case 11) to
The following would be a nice case to record, but it takes over a minute to run, so I'm not sure it is worth including.
I've run out of time myself. I wanted to find a case 9, and submit a pull request, or improve the speed on Wielandt's example, but perhaps this is enough. |
Oh, and thank you for adding such a nice check for regular p-groups :-) I'm also happy about the nice powerful p-group check above as well! |
Contributed by Jack Schmidt in a comment on PR gap-system#5359. Also change phrasing in the documentation for IsRegularPGroup.
Contributed by Jack Schmidt in a comment on PR #5359. Also change phrasing in the documentation for IsRegularPGroup.
Unfortunately I am not aware of an efficient algorithm for this in general. But the provided one at least performs reasonably for e.g. the groups of order 3^7 or 5^7.