-
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
ENHANCE: Further strategy improvement in fp group order #2895
Conversation
lib/grpfp.gi
Outdated
if t<>fail then | ||
if t<>fail | ||
# do not try to redo the work if the index is comparatively small, as | ||
# its not worth doing double work in this case. |
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.
its -> it's
Tests of this PR time out, for example, like this:
Also, wouldn't it be useful to add a test based on the group from #2892? |
Codecov Report
@@ Coverage Diff @@
## master #2895 +/- ##
==========================================
+ Coverage 83.72% 83.72% +<.01%
==========================================
Files 680 680
Lines 346626 346634 +8
==========================================
+ Hits 290223 290231 +8
Misses 56403 56403
|
I've tried Wedderga package with this PR. The first of the problems reported in gap-packages/wedderga#43 is indeed resolved by this PR. I suggest to add a short test for this fix, e.g.
However, this PR does not solve the 2nd problem from gap-packages/wedderga#43, which is not reproducible at each run due to some randomised algorithms:
@hulpke do you prefer me to open a separate issue for this? |
@alex-konovalov Wat happened is some interaction between data that had been computed before calling a subgroup lattice calculation and the construction of a homomorphism that is (and I suspect the problem lying somewhere in this) the composition of a restricted mapping with a homomorphism to an fp group. The way the issue got resolved is by constructing the questionable homomorphisms from scratch, this has the additional advantage of having generators line up nicely with generators of the presentation which not only looks nicer, but also should make the complement calculation just slightly nicer. As for triggering the bug with a commit now, it probably has been sleeping dodgily for years and just got triggered by a change of data that it used. |
Thanks @hulpke - I've tested the new version of this PR with Wedderga, and confirm that it resolves the problem. Codecov reports 100% coverage of diffs, and we run Wedderga tests regularly too, so may be tolerable to not to have tests for the 2nd fix provided by this PR, but maybe still add the test for the 1st fix? What do you think? Also, before merging, please rebase so it will have two commits instead of three. |
for cyclic subgroup search. This resolves gap-system#2892
In subgroup lattice, subgroups know an fp version of their image in the factor, this is used to compute complements via cohomology. When initializing this list for the subgroups of the radical factor, make sure that generators chosen for the subgroups align with generators for the presentations -- this is cleaner, possibly minusculy quicker, and also eliminates problems that might have crept in prior code that had to use multiplication with restricted mappings.
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.
There are two minor remarks, I am not sure they worth revisiting:
- the 2nd line of the 1st commit message "for cyclic subgroup search" is an incomplete sentence - looks like the 1st line was too long. Still, its understantable.
- the 2nd commit introduces a blank line without visible justification.
Otherwise, look good (I did not run tests after rebase - trust that you did it right).
Note that GitHub does not notify about rebases being made, so I've discovered this only now when I revisited the page for this PR.
@fingolfin what do you think - merge?
@alex-konovalov |
for cyclic subgroup search.
This resolves #2892