Skip to content

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
masterfrom
mh/fix-IsomorphismGroups
Open

Fix a bug in IsomorphismGroups that could result in it returning fail for two isomorphic groups#6541
fingolfin wants to merge 1 commit into
masterfrom
mh/fix-IsomorphismGroups

Conversation

@fingolfin

Copy link
Copy Markdown
Member

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

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>
@fingolfin
fingolfin requested a review from hulpke August 29, 2026 19:38
@fingolfin fingolfin added kind: bug Issues describing general bugs, and PRs fixing them kind: bug: wrong result Issues describing bugs that result in mathematically or otherwise wrong results, and PRs fixing them topic: library release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes backport-to-4.16 labels Aug 29, 2026
@codecov

codecov Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.01%. Comparing base (989cc35) to head (66e8365).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hulpke hulpke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-4.16 kind: bug: wrong result Issues describing bugs that result in mathematically or otherwise wrong results, and PRs fixing them kind: bug Issues describing general bugs, and PRs fixing them release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes topic: library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IsomorphismGroups still returns fail for isomorphic groups in some cases

2 participants