Opened 14 years ago

Closed 13 years ago

#6455 closed defect (fixed)

[with patch, with positive review] Bug in twisting for p_primary_bound on Tate-Shafarevich groups

Reported by: wuthrich Owned by:
Priority: minor Milestone: sage-4.2
Component: elliptic curves Keywords: Tate Sharafevich group, Elliptic curves
Cc: William Stein Merged in: sage-4.2.alpha1
Authors: Chris Wuthrich Reviewers: John Cremona
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

William Stein found a bug in p_primary_part, namely

sage: E = EllipticCurve([-19,34]); E.cremona_label()  # y^2 = x^3 - 19*x + 34
'944e1'
sage: S = E.sha(); S
Shafarevich-Tate group for the Elliptic Curve defined by y^2 = x^3 -
19*x + 34 over Rational Field
sage: E.ap(5)
-3
sage: factor(944)
2^4 * 59
sage: S.an_padic(5)
Traceback (most recent call last):
...
ValueError: can not twist a curve of conductor (=472) by the quadratic
twist (=-4).

The problem is at 2 and 3, we have to check if we are allowed to twist.

And John Cremona suggested

Is it possible to add a doctest illustrating the suggestion to "try an_padic instead"? That would be useful for the reference manual.

Attachments (1)

trac_6455.patch (3.4 KB) - added by wuthrich 14 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 14 years ago by David Loeffler

Component: number theoryelliptic curves
Owner: changed from William Stein to David Loeffler

comment:2 Changed 14 years ago by wuthrich

Cc: William Stein added
Summary: Bug in twisting for p_primary_bound on Tate-Shafarevich groups[with patch, needs review] Bug in twisting for p_primary_bound on Tate-Shafarevich groups

I believe that the patch chooses now the correct twist.

William : could you use it for the table, before it goes in ? so that I am sure that there are no further problems with it. I have tested it only on a few examples.

Changed 14 years ago by wuthrich

Attachment: trac_6455.patch added

comment:3 Changed 13 years ago by John Cremona

Summary: [with patch, needs review] Bug in twisting for p_primary_bound on Tate-Shafarevich groups[with patch, with positive review] Bug in twisting for p_primary_bound on Tate-Shafarevich groups

Patch applies fine to 4.1.1, and tests run ok. The code looks ok to me too. I'm not quite expert enough to be 100% confident, but enough to pass this!

comment:4 Changed 13 years ago by John Cremona

Authors: Chris Wuthrich
Reviewers: John Cremona

comment:5 Changed 13 years ago by Jason Grout

Status: newneeds_review

comment:6 Changed 13 years ago by Jason Grout

Status: needs_reviewpositive_review

comment:7 Changed 13 years ago by David Loeffler

Owner: David Loeffler deleted

comment:8 Changed 13 years ago by Mike Hansen

Merged in: sage-4.2.alpha1
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.