1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
#(C) Graham Ellis, 2005-2006
#####################################################################
InstallGlobalFunction(ResolutionFiniteExtension,
function(arg)
local
GensE,GensG,R,n,tietze,
G, EltsG,
E, EltsE, Mult, InvE,
N, EltsN, GensN, GensNfirst, GensNsecond,
EhomG, EhomGfirst, EhomGsecond,
GmapE, GmapEfirst, GmapEsecond,
NhomE, NhomEfirst, NhomEsecond,
NEhomN, NEhomNfirst,
S,
k,p;
GensE:=StructuralCopy(arg[1]);
GensG:=StructuralCopy(arg[2]);
R:=arg[3];
n:=arg[4];
if Length(arg)>4 then tietze:=arg[5]; else tietze:=false; fi;
G:=R!.group;
EltsG:=R!.elts;
E:=Group(GensE);
EltsE:=Elements(E);
#####################################################################
Mult:=function(i,j);
return Position(EltsE,EltsE[i]*EltsE[j]);
end;
#####################################################################
#####################################################################
InvE:=function(i);
return Position(EltsE,EltsE[i]^-1);
end;
#####################################################################
EhomGfirst:=GroupHomomorphismByImagesNC(E,G,GensE,GensG);
if Order(E)<10^4 or n> 5 then
EhomGsecond:=List([1..Size(E)],i->Position(EltsG,Image(EhomGfirst,EltsE[i])));
#####################################################################
EhomG:=function(i);
return EhomGsecond[i];
end;
#####################################################################
else
EhomGsecond:=List([1..Size(E)],i->0);
#####################################################################
EhomG:=function(i);
if EhomGsecond[i]=0 then
EhomGsecond[i]:= Position(EltsG,Image(EhomGfirst,EltsE[i]));
fi;
return EhomGsecond[i];
end;
#####################################################################
fi;
#GmapEfirst:=GroupHomomorphismByImagesNC(G,E,GensG,GensE);
#GmapEsecond:=List([1..Size(G)],i->Position(EltsE,Image(GmapEfirst,EltsG[i])));
GmapEsecond:=List([1..Size(G)],i->Position(EltsE,
PreImagesRepresentative(EhomGfirst,EltsG[i])));
#####################################################################
GmapE:=function(i);
return GmapEsecond[i];
end;
#####################################################################
N:=Kernel(EhomGfirst);
if IsAbelian(N) then GensN:=TorsionGeneratorsAbelianGroup(N);
else
GensN:=ReduceGenerators(GeneratorsOfGroup(N),N);
fi;
if Order(N)=1 then GensN:=[Identity(N)];
else
if Length(GensN) > 1 then
GensNfirst:=StructuralCopy(GensN);
for k in GensNfirst do
GensNsecond:=SSortedList(GensN);
RemoveSet(GensNsecond,k);
if Order(Group(GensNsecond))=Order(N) then GensN:=GensNsecond; fi;
od;
fi;
fi;
if Length(arg)>5 then
S:=arg[6];
else
#if IsAbelian(N) then #This should always work but it doesn't!
#S:=ResolutionFiniteGroup(GensN,n,tietze); #June 2022
S:=ResolutionGenericGroup(Group(GensN),n);
fi;
EltsN:=S!.elts;
NhomEfirst:=GroupHomomorphismByImagesNC(N,E,GensN,GensN);
#NhomEfirst:=GroupHomomorphismByFunction(N,E,x->x);
NhomEsecond:=List([1..Size(N)],i->Position(EltsE,Image(NhomEfirst,EltsN[i])));
#####################################################################
NhomE:=function(i);
return NhomEsecond[i];
end;
#####################################################################
NEhomNfirst:=List([1..Size(E)], k->Position(NhomEsecond,k));
#This next function can produce a fail when incorrectly used!!
#####################################################################
NEhomN:=function(i);
return NEhomNfirst[i];
end;
#####################################################################
return
TwistedTensorProduct(R,S,EhomG,GmapE,NhomE,NEhomN,EltsE,Mult,InvE);
end);
#####################################################################
|