Groebner Problems
In the file richelot_aux.m in the function FromProdToJac() a system of five equations in the multivariate Polynomial Ring over the field are solved using the following Magma code:
A similar piece of code using SageMath would be:
However, running this code we fall back to the INCREDIBLY slow Groebner basis implementation
The current goal is to re-write the above code in a form that either singular or Macaulay2 interfaces to play nicely with our code, but both seem to be really upset at trying to do this in the extension field GF(p^2, modulus=x^2+1) and give error messages.
One suggestion has to be Weil-restrict the system to move form to however, this increases the complexity of what we need to solve.
Another suggestion ahs been to instead use resultants, but I get errors unless I compute resultants with
Which is too slow for our current needs.