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

Quaternion algebra over a relative number field #38654

Open
2 tasks done
Eloitor opened this issue Sep 12, 2024 · 1 comment
Open
2 tasks done

Quaternion algebra over a relative number field #38654

Eloitor opened this issue Sep 12, 2024 · 1 comment
Labels

Comments

@Eloitor
Copy link
Contributor

Eloitor commented Sep 12, 2024

Steps To Reproduce

F.<w> = NumberField(x**2 - x - 1)

PP = PolynomialRing(F, name="x")
x = PP.gen()
K.<a> = NumberField(x**2 - (-w - 5))
A.<i,j,k> = QuaternionAlgebra(K, -1, -1)

Expected Behavior

A quaternion algebra over K is created

Actual Behavior

I get a NotImplementedError: For a relative number field you must use relative_degree or absolute_degree as appropriate.

Additional Information

The issue is in src/sage/algebras/quatalg/quaternion_algebra.py:665

base_ring.degree() > 2 and base_ring.is_absolute(). I think changing this to absolute_degree() or checking for is_absolute() first should solve the problem

Environment

- **OS**: Void linux
- **Sage Version**: 10.4

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
@Eloitor Eloitor added the t: bug label Sep 12, 2024
@Blackphoenix-15
Copy link

i want to work on this issue, and here is my approach F. = NumberField(x^2 - x - 1)

Composite field to create an absolute field containing both w and the quadratic extension

L. = F.absolute_field(x^2 - (-w - 5))

A.<i, j, k> = QuaternionAlgebra(L, -1, -1)

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

No branches or pull requests

2 participants