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
New class NumberFieldZeroIdeal #18639
Comments
Commit: |
New commits:
|
Branch: u/cremona/18639 |
comment:2
Wouldn't the proper fix to just allow |
comment:3
OK, I will check that. Certainly the 0 ideal passes the is_integral() test, and that should be done anyway, as it is already p ossible to multiply the 0 idal with a nonzero (fractional) one. |
Dependencies: #186222 |
comment:4
It's worse with #18622: it gives a segmentation fault. In any case, I still think that allowing |
This comment has been minimized.
This comment has been minimized.
comment:5
I see that #18622 has been merged but is not in the current beta, so the branch name has disappeared from that ticket, so I am hoping that schecking out rremote branch trac/u/jdemeyer/ticket/18611 is the right thing to do. |
Changed dependencies from #186222 to #18622 |
comment:6
Replying to @JohnCremona:
You can always use the commit hash, that should always work:
|
comment:7
There are actually many issues with the zero ideal... |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
I hope you don't mind that I'm making this ticket much more general than you intended, but there is really not much point in fixing one specific method when maybe the whole approach needs to be changed. I am now thinking about the following: introduce a new class |
comment:10
Replying to @sagetrac-git:
Sorry, but this will conflict with #18622. |
comment:11
I have done what was suggested. Basically the I'm sure you will find something I did not do right and/or want to do more (I just saw your comment). Feel free to take this over from me 100% as I have other things to do today. |
comment:12
Replying to @JohnCremona:
Are you sure? I ask because #18622 actually changes
Me too :-) What do you think about the approach I propose in [comment:9]? |
comment:13
Replying to @jdemeyer:
I am sure you do! I am in the middle of implementing Kraus's condictoins and global minimal (or almost global minimal) models for elliptic curves over number fields of class number 1, which no-one has ever done before. Nearly finished...
Good idea. I think WIlliam and I considered this way back (see line 10 of the file in question -- it was in fact 28 Jan 2008, almost my first ever Sage development session, and took place in a hotel room in New Jersey where he and I had nothing else to do all day...) |
comment:14
Replying to @JohnCremona:
I know. The problem is that currently there is really no way to write special code for just the zero ideal. I also think that |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
Although this has become inactive, I thought it worth at least merging in the current develop branch and resolving conflicts (there were very few). |
As of version 9.7 (python-3.10.5), asking for 0 / I no longer segfaults, but it still triggers a Pari error: sage: K. = QuadraticField(5) sage: 0 / J sage: J1 = ~J In some way the NumberFieldIdeal class should act like a monoid, with all invertible elements being 'NumberFieldFractionalIdeal's. Does making the zero ideal be in another subclass help the situation? Joel |
There are several issues with the zero ideal in number fields:
(and probably more)
I propose to do some redesign and add a new class
NumberFieldZeroIdeal
for just the zero ideal. Then most methods of the currentNumberFieldIdeal
should probably be moved to either or both ofNumberFieldZeroIdeal
/NumberFieldFractionalIdeal
.Depends on #18622
CC: @mmasdeu
Component: number fields
Author: John Cremona
Branch/Commit: u/cremona/18639 @
4f60fb4
Issue created by migration from https://trac.sagemath.org/ticket/18639
The text was updated successfully, but these errors were encountered: