#14084: Wrong domain of the fraction field construction functor
------------------------------+---------------------------------------------
       Reporter:  SimonKing   |         Owner:  roed        
           Type:  defect      |        Status:  needs_review
       Priority:  major       |     Milestone:  sage-5.7    
      Component:  padics      |    Resolution:              
       Keywords:              |   Work issues:              
Report Upstream:  N/A         |     Reviewers:              
        Authors:  Simon King  |     Merged in:              
   Dependencies:              |      Stopgaps:              
------------------------------+---------------------------------------------

Comment (by nthiery):

 Replying to [comment:18 nbruin]:
 > Replying to [comment:17 nthiery]:
 > > For robust results, one should always specify the category.
 > But that's the issue: The category ''is'' specified:
 >
 > Hypothetical dialogue (I'm sorry it has to be this academic--I don't
 presently have an actual example).
 > {{{
 > sage: QQ.category()
 > Category of Commutative Rings
 > sage: QQ.is_finitely_generated()
 > False
 > }}}
 > Sage confirms that at this point, it's considering `QQ` as a commutative
 ring and as such is not finitely generated.
 > {{{
 > sage: QQ in Fields()
 > True
 > sage: QQ.category()
 > Category of Fields
 > sage: QQ.is_finitely_generated()
 > True
 > }}}
 > Since the category here is `Fields` the question about finite generation
 should be considered there. Since it's a prime field I don't see how any
 other answer than `True` could be considered there.

 Sorry, I have been ambiguous. What I mean is that, for the answer to
 be well defined, one should specify the category at the time one asks
 whether the object is finitely generated. Something like:

 {{{
      sage: Q.is_finitely_generated(Fields())
 }}}
 or
 {{{
      sage: Q.is_finitely_generated_field()
 }}}

 Then,
 {{{
      sage: Q.is_finitely_generated()
 }}}
 would return the answer for the current category of Q; but that's just
 a lousy syntactic sugar, for the user convenience, when there is no
 ambiguity.

 > This suggests to me that the concept of finite generation is not
 > well-behaved w.r.t. restricting to ''full subcategories''.

 It's just not well defined if you don't specify explicitly for which
 category you are asking the question.

 Cheers,
                                      Nicolas

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14084#comment:22>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to