Skip to content

Commit

Permalink
grp: set invariant form for Sp(2n,Integers mod 2^k)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 9, 2017
1 parent 901749c commit 30227dc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions grp/glzmodmz.gi
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ local f,M2,o,e,MM,i;
end);

BindGlobal("SPRingGeneric",function(n,ring)
local t,geni,m,slmats,gens,f,rels,i,j,k,l,mat,mat1,mats,id,nh;
local t,geni,m,slmats,gens,f,rels,i,j,k,l,mat,mat1,mats,id,nh,g;
nh:=n;
n:=2*n;
t:=function(i,j)
Expand All @@ -136,7 +136,7 @@ local t,geni,m,slmats,gens,f,rels,i,j,k,l,mat,mat1,mats,id,nh;
geni:=List([1..n],x->[]);
mats:=[];
slmats:=[];
id:=IdentityMat(n,One(ring));
id:=IdentityMat(n,ring);
m:=0;
for i in [1..nh] do
#t_{i,n+i}
Expand Down Expand Up @@ -170,7 +170,10 @@ local t,geni,m,slmats,gens,f,rels,i,j,k,l,mat,mat1,mats,id,nh;
od;
od;

return Group(slmats);
g := Group(slmats);
mat := Concatenation(id{[nh+1..n]},-id{[1..nh]});
SetInvariantBilinearForm(g,rec(matrix:=mat));
return g;
end);

InstallGlobalFunction("ConstructFormPreservingGroup",function(arg)
Expand Down

0 comments on commit 30227dc

Please sign in to comment.