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 9ad2283 commit 5c9737d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 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
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 5c9737d

Please sign in to comment.