-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
Ideal with no generators for univariate polynomial rings #11139
Comments
Attachment: trac-11139-ideals_with_no_generators.patch.gz |
Author: Martin Raum |
Reviewer: John Palmieri |
comment:1
I'm happy with this. Here's a new patch with a few doctests illustrating that the problem has been fixed. I'm going to mark this as "needs review"; it wouldn't hurt to have someone else look it over. |
Attachment: trac-11139-ideals_with_no_generators.v2.patch.gz |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Changed author from Martin Raum to Martin Raum, Jeroen Demeyer |
comment:3
What do you think of this alternative patch? IMHO, it has better logic. |
comment:4
I think that indeed the logic is much better. Though it might be confusing to beginners. But this improvement brings my attention to a problem, that has been there before:
This is an instance of GeneratorType, that is called with len. So either we exclude the GeneratorType (no change to the situtation before) or correct it. Also, mind that a ring element might be an instance of GeneratorType. In that (very exceptional) situation, the new logic would cause trouble. Any experience with similar code at other places in Sage? |
comment:5
Replying to @sagetrac-mraum:
I would say not to check for |
Alternative patch, apply only this |
This comment has been minimized.
This comment has been minimized.
comment:6
Attachment: 11139_alternative.patch.gz Patch tested, all tests passed. |
This comment has been minimized.
This comment has been minimized.
comment:8
Any reviewers? |
comment:9
I think, since I haven't written this ultimate patch, I am a legitimate reviewer. All tests pass and also the patch bot does not complain. Although we have changed the logic, backward compatibility is preserved. |
Changed reviewer from John Palmieri to John Palmieri, Martin Raum |
Merged: sage-4.7.1.alpha1 |
Consider the following (Sage 4.7alpha1) :
The issue is twofold: The ideal method in rings/rings.py is called and does not accept an empty list. But also the univariate polynomial rings should call a specialized method just like the multivariate ones do.
It worked in earlier versions (like 4.2 or so) and is a construction that easily comes up as a corner case.
Apply attachment: 11139_alternative.patch.
Component: commutative algebra
Author: Martin Raum, Jeroen Demeyer
Reviewer: John Palmieri, Martin Raum
Merged: sage-4.7.1.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/11139
The text was updated successfully, but these errors were encountered: