@@ -66,9 +66,9 @@ InstallMethod( AlgebraGeneralMappingByImages,
66
66
filter,
67
67
i,basic;
68
68
69
- # Handle the case that `gens' is a basis or empty.
69
+ # Handle the case that `gens' is empty.
70
70
# We can form a left module general mapping directly.
71
- if IsBasis( gens ) or IsEmpty( gens ) then
71
+ if IsEmpty( gens ) then
72
72
73
73
map:= LeftModuleGeneralMappingByImages( S, R, gens, imgs );
74
74
SetIsAlgebraGeneralMapping( map, true );
@@ -327,6 +327,7 @@ InstallMethod( AsLeftModuleGeneralMappingByImages,
327
327
A:= MappingGeneratorsImages(alg_gen_map);
328
328
origgenerators := A[ 1 ] ;
329
329
origgenimages := A[ 2 ] ;
330
+ A:= Source( alg_gen_map );
330
331
331
332
if IsBasis( origgenerators ) then
332
333
@@ -338,8 +339,6 @@ InstallMethod( AsLeftModuleGeneralMappingByImages,
338
339
generators := ShallowCopy( origgenerators );
339
340
genimages := ShallowCopy( origgenimages );
340
341
341
- A:= Source( alg_gen_map );
342
-
343
342
left:= not ( ( HasIsAssociative( A ) and IsAssociative( A ) )
344
343
or ( HasIsLieAlgebra( A ) and IsLieAlgebra( A ) ) );
345
344
@@ -402,6 +401,8 @@ InstallMethod( AsLeftModuleGeneralMappingByImages,
402
401
# pairs we obtain below, but rather only those that are not linearly
403
402
# dependent on the already known pairs.
404
403
len := Length( generators );
404
+ generators:= ShallowCopy( generators );
405
+ genimages:= ShallowCopy( genimages );
405
406
for i in [ 1 .. len ] do
406
407
for j in [ 1 .. len ] do
407
408
Add( generators, generators[ i] * generators[ j] );
0 commit comments