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 a bug in the computation of a permutation group isomorphic to a group of automorphisms #1907

Merged
merged 2 commits into from
Nov 16, 2017
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
21 changes: 20 additions & 1 deletion lib/morpheus.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ local d,id,H,iso,aut,auts,i,all,hom,field,dim,P,diag,mats,gens,gal;
all:=true;
fi;

elif id.series in ["L","2A","C"] then
elif id.series in ["L","2A"] or (id.series="C" and id.parameter[1]>2) then
hom:=EpimorphismFromClassical(G);
if hom=fail then return fail;fi;
field:=FieldOfMatrixGroup(Source(hom));
Expand Down Expand Up @@ -1978,6 +1978,25 @@ local A;
return A;
end);

#############################################################################
##
#M AutomorphismGroup(<G>) . . abelian case
##
InstallMethod(AutomorphismGroup,"test abelian",true,[IsGroup and IsFinite],
Copy link
Member

Choose a reason for hiding this comment

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

I've tested this PR on Jenkins, and tests pass. A minor remark is that the method's description "test abelian" does not seem to be enough informative. "for a finite group to enforce check of IsAbelian" maybe?

RankFilter(IsSolvableGroup and IsFinite),
function(G)
local A;
if not IsAbelian(G) then
TryNextMethod();
fi;
A:=AutomorphismGroupAbelianGroup(G);
SetIsAutomorphismGroup(A,true);
SetIsGroupOfAutomorphismsFiniteGroup(A,true);
SetIsFinite(A,true);
SetAutomorphismDomain(A,G);
return A;
end);

# just in case it does not know to be finite
RedispatchOnCondition(AutomorphismGroup,true,[IsGroup],
[IsGroup and IsFinite],0);
Expand Down
21 changes: 21 additions & 0 deletions tst/teststandard/opers/AutomorphismGroup.tst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
gap> START_TEST("AutomorphismGroup.tst");
gap> SimpleAutTest:=function(from,to)
> local it,g,a,p;
> it:=SimpleGroupsIterator(from);
> g:=NextIterator(it);
> while Size(g)<=to do
> a:=AutomorphismGroup(g);
> Info(InfoWarning,2,g," ",Size(g)," ",Size(a)/Size(g));
> p:=Image(IsomorphismPermGroup(a));
> if Size(p)<>Size(a) then
> return g;
> fi;
> g:=NextIterator(it);
> od;
> return true;
> end;;
gap> SimpleAutTest(1,10^5);
true
gap> SimpleAutTest(10^5,3*10^6:nopsl2);
true
gap> STOP_TEST("AutomorphismGroup.tst",1);