-
Notifications
You must be signed in to change notification settings - Fork 112
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
is_prime buggy for multivariate polynomial rings #2427
Comments
We discussed this today and agreed that julia> primary_decomposition(I)
1-element Vector{Tuple{MPolyIdeal{QQMPolyRingElem}, MPolyIdeal{QQMPolyRingElem}}}:
(ideal(1), ideal(1)) There are further considerations (e.g. maybe |
@wdecker agreed to work on this. Meaning: just changing |
Solved with PR #2473 |
Thank you! |
By definition the (1) ideal is never prime.
Yet:
The reason is that
Refuses to return an empty list but instead returns a non-prime ideal.
(Matching its documentation, so it is not a bug.)
In any case I would suggest to rather return only prime ideals,
even if it means that you cannot do
intersect(minimal_primes(I))
(if the return value is the empty array). One can still do something likeintersect(minimal_primes(I), init=R)
instead.We have the same situation when we sum the elements of an array.
@wdecker
The text was updated successfully, but these errors were encountered: