-
Notifications
You must be signed in to change notification settings - Fork 126
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
Hashing is wrongly implemented for various ideals #4143
Comments
x-ref #2222 |
There is simply no So "someone" needs to define better (and fast!)
|
The problem is that there are methods in Base which use hashing without explicitly documenting it. Since this is an implementation detail, there might even be methods which start using hashing / dictionaries in the future. The most prominent culprit is I don't fully understand the "atrocious" part. For example, implementing |
I'm late to the party, but when I put the ideals from your example in OSCAR I get
Did you mean to do some kind of quotient construction? |
Try the following:
According to the convention for hashes, objects which are
==
must also have the same hash. The failure of this probably makesunique!
in lists of ideals fail:Edit: I'm not sure this can be resolved in general. For ideals over polynomial rings we could hash a standard basis for the
default_ordering
of thebase_ring
. But for other rings like the localizations?The text was updated successfully, but these errors were encountered: