Skip to content

Commit

Permalink
Fix forming trivial quotients of algebra modules
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 4, 2018
1 parent 869d720 commit dfb8827
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/algrep.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,15 @@ InstallMethod( NaturalHomomorphismBySubAlgebraModule,
f:= NaturalHomomorphismBySubspace( V, W );
quot:= ImagesSource( f );

if IsTrivial(quot) then
quot := SubAlgebraModule( V, [], "basis" );
nathom := ZeroMapping( V, quot );
SetIsSurjective( nathom, true );
SetImagesSource(nathom, quot);
SetKernelOfAdditiveGeneralMapping( nathom, W );
return nathom;
fi;

imgs:= List( Basis( V ), x -> Coefficients( Basis( quot ),
ImagesRepresentative(f,x)));

Expand Down Expand Up @@ -1231,7 +1240,9 @@ InstallMethod( NaturalHomomorphismBySubAlgebraModule,

# Enter the preimages info.
nathom!.basisimage:= Basis( qmod );
nathom!.preimagesbasisimage:= f!.preimagesbasisimage;
if IsBound(f!.preimagesbasisimage) then
nathom!.preimagesbasisimage:= f!.preimagesbasisimage;
fi;
SetKernelOfAdditiveGeneralMapping( nathom, W );

# Run the implications for the factor.
Expand Down
15 changes: 15 additions & 0 deletions tst/testinstall/algrep.tst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,21 @@ gap> S1:=SubAlgebraModule(S,bas,"basis");
<16-dimensional left-module over <Lie algebra of dimension 4 over GF(3)>>

#
# factors
#
gap> S0/S0;
<0-dimensional left-module over <Lie algebra of dimension 4 over GF(3)>>
gap> S1/S0;
<16-dimensional left-module over <Lie algebra of dimension 4 over GF(3)>>
gap> S1/S1;
<0-dimensional left-module over <Lie algebra of dimension 4 over GF(3)>>
gap> S/S0;
<35-dimensional left-module over <Lie algebra of dimension 4 over GF(3)>>
gap> S/S1;
<19-dimensional left-module over <Lie algebra of dimension 4 over GF(3)>>
gap> S/S;
<0-dimensional left-module over <Lie algebra of dimension 4 over GF(3)>>

#
# cocycles etc.
#
Expand Down

0 comments on commit dfb8827

Please sign in to comment.