Skip to content

Commit d75e271

Browse files
fingolfincdwensley
authored andcommitted
Avoid some uses of IdGroup (#6343)
1 parent 89631b2 commit d75e271

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

grp/clasmax.grp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25895,7 +25895,7 @@ local l,a,gf,conj,r,gp;
2589525895
(r^2=q and IsPrime(r) and r mod 10 in [3,7]) then
2589625896

2589725897
# are the SL(2,5) in class S included ? (Depends on package status)
25898-
if not ForAny(l,x->Size(x)=120 and IdGroup(x)=[120,5]) then
25898+
if not ForAny(l,x->Size(x)=120 and IsPerfectGroup(x)) then
2589925899
# An A5, and its GL-conjugate
2590025900
gf:=GF(q);
2590125901
a:=Filtered(IrreducibleModules(TransitiveGroup(24,201),gf)[2],

grp/simple.gi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -968,15 +968,15 @@ local nam,e,efactors,par,expo,prime,result,aut,i,classical,classaut,shortname,
968968
local s;
969969
if IsCyclic(gp) then
970970
return String(Size(gp));
971-
elif IdGroup(gp)=[4,2] then
971+
elif Size(gp)=4 then
972972
return "2^2";
973-
elif IdGroup(gp)=[6,1] then
973+
elif Size(gp)=6 then
974974
return "3.2";
975-
elif IdGroup(gp)=[8,3] then
975+
elif Size(gp)=8 and IsDihedralGroup(gp) then
976976
return "2^2.2";
977-
elif IdGroup(gp)=[9,2] then
977+
elif Size(gp)=9 then
978978
return "3^2";
979-
elif IdGroup(gp)=[18,3] then
979+
elif Size(gp)=18 and Size(DerivedSubgroup(gp))=3 then
980980
return "3^2.2";
981981
elif Size(gp)<=31 or Size(gp) in [33..47] then
982982
s:=StructureDescription(gp);
@@ -1163,18 +1163,18 @@ local nam,e,efactors,par,expo,prime,result,aut,i,classical,classaut,shortname,
11631163
if efactors<>fail and Size(classaut)<>Product(efactors) then
11641164
Error("outer automorphism efactor fail");
11651165
fi;
1166-
if IdGroup(classaut)=[4,2] then
1166+
if Size(classaut)=4 and not IsCyclic(classaut) then
11671167
# subgroup classes V4
11681168
e:=[[2,"2_1"],[2,"2_2"],[2,"2_3"],[4,"2^2"]];
1169-
elif IdGroup(classaut)=[6,1] then
1169+
elif Size(classaut)=6 and not IsCyclic(classaut) then
11701170
# subgroup classes S_3
11711171
e:=[ [ 2, "2" ], [ 3, "3" ], [ 6, "3.2" ] ];
1172-
elif IdGroup(classaut)=[12,4] then
1172+
elif Size(classaut)=12 and IsDihedralGroup(classaut) then
11731173
# subgroup classes 2\times S_3 (since S3 cannot act on C2)
11741174
e:=[ [ 2, "2_1" ], [ 2, "2_2" ], [ 2, "2_3" ], [ 3, "3" ],
11751175
[ 4, "2^2" ], [ 6, "3.2_1" ], [ 6, "3.2_2" ], [ 6, "6" ],
11761176
[ 12, "3.2^2" ] ];
1177-
elif IdGroup(classaut)=[24,12] then
1177+
elif Size(classaut)=24 and Size(DerivedSubgroup(classaut))=12 then
11781178
# subgroup classes S_4
11791179
e:=[ [ 2, "2_1" ],[ 2, "2_2" ], [ 3, "3" ],
11801180
[ 4, "4" ], [ 4, "(2^2)_{111}" ], [4,"(2^2)_{122}"],

lib/grpnames.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ InstallMethod( IsAlternatingGroup,
12081208
SetAlternatingDegree(G,0); return true;
12091209
elif Size(G) = 3 then
12101210
SetAlternatingDegree(G,3); return true;
1211-
elif Size(G) = 12 and IdGroup(G) = [ 12, 3 ] then
1211+
elif Size(G) = 12 and Size(DerivedSubgroup(G)) = 4 then
12121212
SetAlternatingDegree(G,4); return true;
12131213
else return false; fi;
12141214
fi;

0 commit comments

Comments
 (0)