Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admit non-fields as left acting domains for free (associative or Lie) algebras, and fix the zero-dimensional case #4245

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/algebra.gi
Original file line number Diff line number Diff line change
Expand Up @@ -3381,8 +3381,8 @@ BindGlobal( "FreeAlgebraConstructor", function( name, magma )
od;
x := Zero(R);
y := [One(R)];
return VectorSpace(R, List(B[degree+1],
p->ElementOfMagmaRing( F, x, y, [p] )));
return FreeLeftModule(R, List(B[degree+1],
p->ElementOfMagmaRing( F, x, y, [p] )), Zero(A));
end));

# Return the result.
Expand Down
5 changes: 3 additions & 2 deletions lib/alglie.gi
Original file line number Diff line number Diff line change
Expand Up @@ -3752,8 +3752,9 @@ InstallGlobalFunction( FreeLieAlgebra, function( arg )
od; od;
od;
od;
return VectorSpace( R, List( B[degree],
p->ElementOfMagmaRing( F, zero, [ one ], [ p[3] ] )));
if degree<1 then B := []; else B := B[degree]; fi;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is something wrong with indentation here

return FreeLeftModule( R, List( B,
p->ElementOfMagmaRing( F, zero, [ one ], [ p[3] ] )), Zero(L));
end) );
# Return the ring.
return L;
Expand Down