Skip to content

Commit

Permalink
FIX: If module is not central, map is defined on subset.
Browse files Browse the repository at this point in the history
  • Loading branch information
hulpke committed Jan 29, 2021
1 parent f0d7eda commit 5ceb087
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/autsr.gi
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ local C,M,p,all,gens,sub,q,hom,fp,rels,new,pre,sel,i,free,cnt;
# so generators new
sub:=TrivialSubgroup(Image(nat));
while Size(sub)<Size(Image(nat)) do
sub:=ClosureGroup(sub,Random(Image(nat)));
sub:=ClosureGroup(sub,ImagesRepresentative(nat,Random(C)));
od;
else
sub:=Image(nat);
sub:=Image(nat,C);
fi;

gens:=SmallGeneratingSet(sub);
Expand All @@ -111,7 +111,7 @@ local C,M,p,all,gens,sub,q,hom,fp,rels,new,pre,sel,i,free,cnt;
cnt:=0;
while Size(sub)<Size(M) do
q:=Group(gens);
SetSize(q,Size(Image(nat)));
SetSize(q,Size(Image(nat,C)));
# use `ByGenerators` to force more random relators
hom:=IsomorphismFpGroupByGenerators(q,gens);
fp:=Range(hom);
Expand Down

0 comments on commit 5ceb087

Please sign in to comment.