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 regression in IsomorphismPermGroupOrFailFpGroup that caused it to fail in situations that worked in GAP 4.12.2 #5709

Merged
merged 1 commit into from
May 6, 2024
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
3 changes: 3 additions & 0 deletions lib/grpfp.gi
Original file line number Diff line number Diff line change
Expand Up @@ -4051,6 +4051,7 @@ local mappow, G, max, p, gens, rels, comb, i, l, m, H, t, gen, sz,
RelatorsOfFpGroup(G),[gen],true,false:
cyclic:=true,limit:=1+max,quiet:=true );
fi;

if t=fail then
# we cannot get the size within the permitted limits -- give up
return fail;
Expand Down Expand Up @@ -4098,6 +4099,8 @@ local mappow, G, max, p, gens, rels, comb, i, l, m, H, t, gen, sz,
max:=10^3*sz;
fi;

amax:=Maximum(amax,max+1);

useind:=false;
t1:=timerFunc();
while max<amax do
Expand Down
12 changes: 12 additions & 0 deletions tst/testbugfix/2024-05-06-IsomorphismPermGroupOrFailFpGroup.tst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Verify regression in IsomorphismPermGroupOrFailFpGroup is
# resolved, see <https://github.com/gap-system/gap/issues/5697>
gap> F:= FreeGroup(2);
<free group on the generators [ f1, f2 ]>
gap> gens:= GeneratorsOfGroup( F );
[ f1, f2 ]
gap> x:= gens[1];; y:= gens[2];;
gap> rels:= [ y*x^-1*y^-1*x*y^-1*x^-1, x^-1*y*x*y*x^-1*y^-2 ];;
gap> G:= F / rels;
<fp group on the generators [ f1, f2 ]>
gap> IsomorphismPermGroupOrFailFpGroup(G, 100000) <> fail;
true
Loading