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

Jacobian Hess element comparison is not symmetric #38623

Open
2 tasks done
vincentmacri opened this issue Sep 5, 2024 · 0 comments
Open
2 tasks done

Jacobian Hess element comparison is not symmetric #38623

vincentmacri opened this issue Sep 5, 2024 · 0 comments

Comments

@vincentmacri
Copy link
Contributor

vincentmacri commented Sep 5, 2024

Steps To Reproduce

K = GF(7)
Kx.<x> = FunctionField(K)
_.<v> = K[]
F.<y> = Kx.extension(v^2 - (x^6 + 3))
O = F.maximal_order()

D3 = O.ideal(x + 3, y + 5).place() + O.ideal (x + 4, y + 5).place() + O.ideal (x + 5, y + 5).place() + O.ideal(x + 6, y + 5).place()
D3_reduced = O.ideal(x+1, y+2).place() + O.ideal(x+2, y+2).place()

J = F.jacobian(model='hess')
D3_jacobian = J(D3)
D3_reduced_jacobian = J(D3_reduced)

print(D3_jacobian == D3_reduced_jacobian)  # True
print(D3_reduced_jacobian == D3_jacobian)  # False

Expected Behavior

The == operator should be symmetric. I believe in the example above the comparison result should be True.

Actual Behavior

The == operator is not symmetric.

Additional Information

I believe the relevant code here was added by @kwankyu in #35467.

Environment

- **OS**: Fedora 40
- **Sage Version**: 10.4, compiled with conda

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant