Orders in number fields

45 views
Skip to first unread message

Justin C. Walker

unread,
Jul 20, 2021, 3:10:29 PM7/20/21
to SAGE Development
Hi, all,

I stumbled across what seems to be a bug/missing feature/misunderstanding while experimenting with orders.

Let f be a univariate polynomial (say, over QQ). I used both quadratic and cubic polynomials.

Then the following leads to an unexpected problem:

K.<a> = NumberField(f)
OK = K.maximal_order()
O1 = K.order(a)
O2 = ZZ[a]

Then I get

O1.ambient() is O2.ambient()
False
(the two are isomorphic).

This causes problems, for example, in

O2.index_in(OK)

because “self” and “other” have different ambient fields.

I tried to figure out why the “ZZ[a]” construction doesn’t work as I would expect, but got lost in a maze of calls and caches :-}

As a side issue, O2 does not have a coercion map to OK. Is that intended?

Thoughts, pointers, etc. always appreciated.

Thanks, in advance.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
I want to die, peacefully in my sleep, like my grandfather;
not screaming in terror, like his passengers.




Samuel Lelievre

unread,
Jul 21, 2021, 5:35:21 AM7/21/21
to sage-devel
Orders in number fields certainly need work.

This Sage Trac query:


and similar queries with "order" or "ring of integers" reveal the following open tickets

    #28706 clarify order generation in number fields with bracket syntax
    #28552  Elements in orders in number fields are considered as field elements
    #27413  Implement picard group and unit group for non-maximal orders
    #25709  inject_variables is broken for orders of number fields
    #24934  Orders are not unique parents
    #24031  Coercion between Matrices over orders and over the number field
    #23971  Euclidean division in quadratic imaginary orders
    #23321  Implemented functionality for Quotient Rings of Orders
    #23236  Create p-maximal orders
    #18865  Can't make ring homomorphism from ring of integers to a residue field
    #16556  AbsoluteOrder.random_element and PolynomialQuotientRing_integer.random_element
    #14740  Infinite loop in creation of number field order
    #13568  Quaternion Orders over Number Fields
    #12242  Divisibility of number field order elements needs work
    #5893   Norm Form for Number Fields and Orders
    #4738   base_ring of orders in relative number fields is wrong
    #1134   optimize creating elements of orders and number fields by coercing in lists

I can also link to discussions on other channels if that seems useful.

John Cremona

unread,
Jul 21, 2021, 6:09:59 AM7/21/21
to SAGE devel
I'll forward this to sage-nt. I have not used orders in number fields
much myself, but it looks to me as if several of these should be easy.
One of them (about quaternion orders) is altogether different since
that is about orders in quaternion algebras (over number fields), not
about orders in number fields.

John
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/9b44b324-797a-42a8-bb09-d54ae57e9a83n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages