Skip to content
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

Fix an unexpected error in GQuotients (by fixing a bug in the cyclic modified Todd-Coxeter) #5532

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/sgpres.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2847,7 +2847,12 @@
od;
if i>r then
if f<>alpha then
NEWTC_ModifiedCoincidence(DATA,f,alpha,WordProductLetterRep(-Reversed(fp),y));
if DATA.useAddition then
NEWTC_ModifiedCoincidence(DATA,f,alpha,-fp+y);

Check warning on line 2851 in lib/sgpres.gi

View check run for this annotation

Codecov / codecov/patch

lib/sgpres.gi#L2850-L2851

Added lines #L2850 - L2851 were not covered by tests
else
NEWTC_ModifiedCoincidence(DATA,f,alpha,
WordProductLetterRep(-Reversed(fp),y));
fi;

Check warning on line 2855 in lib/sgpres.gi

View check run for this annotation

Codecov / codecov/patch

lib/sgpres.gi#L2853-L2855

Added lines #L2853 - L2855 were not covered by tests
fi;
return;
fi;
Expand Down
7 changes: 7 additions & 0 deletions tst/testbugfix/2023-10-28-GQuotients.tst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Fix unexpected error in GQuotients.
# See https://github.com/gap-system/gap/issues/5525
#
gap> G := FreeGroup(2);;
gap> Q := G / [G.1*G.2^-2*G.1, G.1^-1*G.2^-3];;
gap> GQuotients(Q, SmallGroup(12, 1));
[ ]