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

Bug: RightDivide returns wrong output for Koszul dual rings defined over MAGMA. #269

Open
kamalsaleh opened this issue Jun 25, 2019 · 5 comments

Comments

@kamalsaleh
Copy link
Member

The output of the operation RightDivide(a,b) for two matrices a,b is fail or a matrix x with x*b = a.

LoadPackage( "RingsForHomalg" );
Q := HomalgFieldOfRationalsInMAGMA( );
S := Q * "x0,x1";
A := KoszulDualRing( S );
a := HomalgMatrix( "[ [ e0*e1, 3*e0*e1 ] ]", 1, 2, A );
b := HomalgMatrix( "[ [ e0, e1 ] ]", 1, 2, A );
# x*b = a
x := RightDivide( a, b);
# <An unevaluated 1 x 1 matrix over an external ring>
x*b = a;
# false
Display( x );
# [3*e0 + e1]

If we define the field over Singular we get x = [ 3*e0 - e1] which satisfies x*b=a.

@kamalsaleh kamalsaleh changed the title Bug: RightDivide returns false output for Koszul dual rings defined over MAGMA. Bug: RightDivide returns wrong output for Koszul dual rings defined over MAGMA. Jun 25, 2019
@mohamed-barakat
Copy link
Member

This is a serious bug in the interface, i.e., the way we communicate with MAGMA.

@mohamed-barakat
Copy link
Member

Everyone should please be cautious when using MAGMA's exterior algebra until I fix this bug (@zickgraf, @sebastianpos).

@mohamed-barakat
Copy link
Member

Here is a minimal example that shows that the problem is in MAGMA (as far as I understand):

> E<e0,e1> := ExteriorAlgebra(Rationals(),2,"grevlex");
> A := Matrix(E,2,2,[ [ 0, e0*e1 ], [ e0,  e1 ] ] );
> B := Matrix(E,1,2,[ [ e0*e1, 3*e0*e1 ] ]);
> X := Solution( A, B );
> X * A;
[ -e0*e1 3*e0*e1]
> B;
[  e0*e1 3*e0*e1]

I will post a bug report.

@kamalsaleh
Copy link
Member Author

For a future reference, this is caused by a bug and has been solved in magma V2.25-6.

@mohamed-barakat
Copy link
Member

Please do not close the issue. I will close it with a commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants