You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-37112: Tests to see if ideal in quaternion algebra is primitive (cyclic)
New methods for `QuaternionFractionalIdeal_rational`:
- `QuaternionFractionalIdeal_rational.is_integral()`
- `QuaternionFractionalIdeal_rational.is_primitive()`
- `QuaternionFractionalIdeal_rational.primitive_decomposition()`
These methods verify if an ideal in quaternion rational algebra is
integral, primitive (cyclic) and decompose it as a primitive ideal. Part
of the code came from
[https://learningtosqi.github.io](https://learningtosqi.github.io).
Also added the _Quaternion Algebras_ book by J. Voight in the
bibliography.
Done with @gioella
#sd123
URL: #37112
Reported by: Giacomo Borin
Reviewer(s): Lorenz Panny
Let `I` = ``self``. If `I` is an integral left `\mathcal{O}`-ideal return its decomposition
3070
+
as an equivalent primitive ideal and an integer such that their product is the initial ideal.
3071
+
3072
+
OUTPUTS: and quivalent primitive ideal to `I`, i.e. equivalent ideal not contained in `n\mathcal{O}` for any `n>0`, and the smallest integer such that `I \subset g\mathcal{O}`.
3073
+
3074
+
EXAMPLES::
3075
+
3076
+
sage: A.<i,j,k> = QuaternionAlgebra(QQ, -1,-11)
3077
+
sage: I = A.ideal([1/2 + 1/2*i + 1/2*j + 3/2*k, i + k, j + k, 2*k])
0 commit comments