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
The unit ideal is not prime or primary #15745
Comments
Commit: |
Author: Peter Bruin |
comment:1
In this branch:
|
comment:2
Looks good to me. I am not sure why we need to have a primer about definition and existence of primary decompositions in the docstring at all, let alone three times! But as long as they are correct (which they are, and I should know since I'll lecturing about all that later this term) I am certainly not going to suggest that they are removed. Apart from tidying the documentation the patch just has two things, the easy one (deal with the unit ideal properly) and something else. Would it be possible to have an example of how the second change corrects something which used to be wrong? |
comment:4
Replying to @JohnCremona:
Yes, given that the small primer was already there I thought it made more sense to tidy it up than to remove it altogether.
The thing that failed after I made the first fix was a doctest that checked that the product of the primary ideals in the primary decomposition was equal to the original ideal. The problem was that comparison of ideals was broken in the following situation: I and J are ideals of R = Q[x,y], a Gröbner basis of J has been computed for a different monomial ordering than the default one for R, and no Gröbner basis for I has been computed. The reason why it didn't work is that the equality I = J was tested using the default monomial ordering of R, but with the "wrong" Gröbner basis for J. My fix makes sure that the comparison uses the monomial ordering of the cached Gröbner basis. How was the bug triggered by the new check for the unit ideal? At the point this check is done, no Gröbner bases have been computed for any ideal, so Sage decides to use the I could have written a new doctest, but since it is already tested by an existing doctest I thought it wasn't really necessary, and I didn't see a natural way of explaining the above problem in the patch. I should have explained in my previous comment why there is no new doctest in the patch, though. |
comment:5
That's certainly a good enough explanation for me! |
Reviewer: John Cremona |
On sage-support on 2014-01-27, Jack kroeker@uni-math.gwdg.de reported:
and in the following discussion it was agreed that this is incorrect, as is
I.is_primary()}} (gives True not False) and {{{I.primary_decomposition()
(gives a nonempty list) and {{{I.is_maximal())}} (raises an error instead of returning False).This originates with Singular, but could easily be fixed in Sage.
CC: @pjbruin
Component: algebra
Keywords: unit prime primary ideal
Author: Peter Bruin
Branch/Commit: u/pbruin/15745-primary_decomposition_unit_ideal @
295c7fd
Reviewer: John Cremona
Issue created by migration from https://trac.sagemath.org/ticket/15745
The text was updated successfully, but these errors were encountered: