Ticket #1342 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

very serious bug in number field residue_field

Reported by: was Owned by: was
Priority: critical Milestone: sage-2.8.15
Component: number theory Keywords:
Cc: Author(s):
Report Upstream: Reviewer(s):
Merged in: Work issues:

Description

Notice that the parent of a changes below when you do a*a!!

sage: K.<z> = CyclotomicField(7)
sage: P = K.factor_integer(17)[0][0]
sage: ff = K.residue_field(P)
sage: a = ff(z)
sage: parent(a)
Residue field of Fractional ideal (17)
sage: parent(a*a)
Finite Field in z of size 17^6

This doesn't happen if 17 is replaced by something much smaller. The problem is an optimization in finite field pari element, which has two separate parent attributes. BAD.

Attachments

trac1342.patch Download (18.9 KB) - added by was 2 years ago.
trac1342-part2.patch Download (0.9 KB) - added by was 2 years ago.

Change History

Changed 2 years ago by was

Changed 2 years ago by was

Changed 2 years ago by roed

Looks good to me. -- David Roe

Changed 2 years ago by mabshoff

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from sage-2.9 to sage-2.8.15

Merged in 2.8.15.alpha2.

Note: See TracTickets for help on using tickets.