-
-
Notifications
You must be signed in to change notification settings - Fork 545
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
elliptic curve method -- one should trivially be able to implement a toy version, but can't anymore, which sucks #1975
Comments
comment:4
See also this sage-support discussion |
comment:5
The simplest workaround, I think, is to set
after creating E and before attempting to create points. |
Attachment: trac_1975-points-mod-N.patch.gz Applies to 4.4.1 |
comment:6
The patch makes possible what is wanted here. It does two things:
|
Author: John Cremona |
comment:7
I'd really like to see this behavior, but I'm not sure this is the right fix--probably what should happen is that most of the generic, missing code should be moved up to a higher level. That would probably be a bit more invasive though. |
comment:8
Replying to @robertwb:
I rather expected this reaction -- but look, the only cases where this makes any difference is precisely the case of an "elliptic curve over Z/NZ". Since ECM is something many people want to teach, why not allow this in now, pending a more rigorous implementation? There is absolutely no effect from this patch on any elliptic curve defined over a field; and I think this is much less dangerous than William's fix of telling a non-field to pretend that it is a field, surely? We could ask for a vote... |
comment:9
That's why I didn't mark this as needs work, because half of me wants to fix this the (pedantically) correct way, and the other half just wants to get this in. The code looks good, I haven't run tests as I don't have a clean install handy, but I can't see anything going wrong. |
comment:10
Here is an idea (which should not be a show stopper for this patch, but could be for later): Can you change the exceptions so that they include the information about the prime factor found? I.e., make a class that derives from ZeroDivisionError, and set an attribute that contains extra info. You can raise class instances in exceptions. |
comment:11
The exception error messages do include this info, but not in such a sophisticated way -- they give a nontrivial factorisation of the modulus. If what you're suggesting would be better, I am open to the idea but not sure how to implement it (didn't know that ZeroDivisionError was a class at all!) |
comment:12
I had a look at this patch and it seems ok to me. All tests passed and it does what it promises. I agree with the fact that this may not be the best way to do it, but I propose to accept this as a temporary solution. I leave it to someone else to open a new ticket requesting for a better solution. |
Reviewer: Chris Wuthrich |
Merged: sage-4.4.4.alpha0 |
Component: elliptic curves
Author: John Cremona
Reviewer: Chris Wuthrich
Merged: sage-4.4.4.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/1975
The text was updated successfully, but these errors were encountered: