#11474: Elliptic curves should be unique parent structures
-------------------------------+--------------------------------------------
   Reporter:  SimonKing        |          Owner:  cremona      
       Type:  defect           |         Status:  new          
   Priority:  major            |      Milestone:  sage-4.7.1   
  Component:  elliptic curves  |       Keywords:  unique parent
Work_issues:                   |       Upstream:  N/A          
   Reviewer:                   |         Author:               
     Merged:                   |   Dependencies:               
-------------------------------+--------------------------------------------
Description changed by SimonKing:

Old description:

> While elliptic curves are derived from `sage.structure.parent.Parent`,
> they violate the "unique parent" condition:
> {{{
> sage: K = GF(1<<50,'t')
> sage: j = K.random_element()
> sage: from sage.structure.parent import Parent
> sage: isinstance(EllipticCurve(j=j),Parent)
> True
> sage: EllipticCurve(j=j) is EllipticCurve(j=j)
> False
> sage: EllipticCurve(j=j) == EllipticCurve(j=j)
> True
> }}}
>
> People on [http://groups.google.com/group/sage-
> nt/browse_thread/thread/ec8d0ad14a819082 sage-nt] seem to agree that it
> is a bug.

New description:

 While elliptic curves are derived from `sage.structure.parent.Parent`,
 they violate the "unique parent" condition:
 {{{
 sage: K = GF(1<<50,'t')
 sage: j = K.random_element()
 sage: from sage.structure.parent import Parent
 sage: isinstance(EllipticCurve(j=j),Parent)
 True
 sage: EllipticCurve(j=j) is EllipticCurve(j=j)
 False
 sage: EllipticCurve(j=j) == EllipticCurve(j=j)
 True
 }}}

 Some people on [http://groups.google.com/group/sage-
 nt/browse_thread/thread/ec8d0ad14a819082 sage-nt] originally agreed that
 it is a bug. Other people think it isn't...

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11474#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to