Fix a bug in IsomorphismGroups that could result in it returning fail for two isomorphic groups - #6541
Open
fingolfin wants to merge 1 commit into
Open
Fix a bug in IsomorphismGroups that could result in it returning fail for two isomorphic groups#6541fingolfin wants to merge 1 commit into
IsomorphismGroups that could result in it returning fail for two isomorphic groups#6541fingolfin wants to merge 1 commit into
Conversation
The search for liftable automorphisms seeds the group of known good elements with automorphisms found by random search. Such elements need not stabilize the normal subgroup classes used to shrink the search space, so the shrunken space could fail to contain the known subgroup. SubgroupProperty was then called outside its specification and returned wrong results, silently losing automorphisms. Depending on the random state, IsomorphismGroups could thus return fail for isomorphic groups. Restore the containment after the class stabilization by closing the search space with the known subgroup. Fixes #6537 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6541 +/- ##
==========================================
+ Coverage 78.98% 79.01% +0.03%
==========================================
Files 684 684
Lines 294205 294211 +6
Branches 8647 8670 +23
==========================================
+ Hits 232369 232478 +109
+ Misses 60028 59925 -103
Partials 1808 1808 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
hulpke
requested changes
Aug 30, 2026
hulpke
left a comment
Contributor
There was a problem hiding this comment.
Please do not merge this. I have a broader modification in the works (that happens to fix this bug but also provides crucial speedup) which I had been still testing. I will create a PR today or tomorrow.
hulpke
pushed a commit
to hulpke/gap
that referenced
this pull request
Aug 30, 2026
hulpke
pushed a commit
to hulpke/gap
that referenced
this pull request
Aug 30, 2026
hulpke
pushed a commit
to hulpke/gap
that referenced
this pull request
Aug 31, 2026
hulpke
pushed a commit
to hulpke/gap
that referenced
this pull request
Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The search for liftable automorphisms seeds the group of known good elements with automorphisms found by random search. Such elements need not stabilize the normal subgroup classes used to shrink the search space, so the shrunken space could fail to contain the known subgroup. SubgroupProperty was then called outside its specification and returned wrong results, silently losing automorphisms. Depending on the random state, IsomorphismGroups could thus return fail for isomorphic groups.
Restore the containment after the class stabilization by closing the search space with the known subgroup.
Fixes #6537
Co-authored-by: Claude Fable 5 noreply@anthropic.com