Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumberFieldFractionalIdeal should not be a subclass of Ideal_generic #3680

Open
sagetrac-dmharvey mannequin opened this issue Jul 19, 2008 · 0 comments
Open

NumberFieldFractionalIdeal should not be a subclass of Ideal_generic #3680

sagetrac-dmharvey mannequin opened this issue Jul 19, 2008 · 0 comments

Comments

@sagetrac-dmharvey
Copy link
Mannequin

sagetrac-dmharvey mannequin commented Jul 19, 2008

Why is NumberFieldFractionalIdeal a subclass of Ideal_generic?

A fractional ideal is not an ideal.

This makes about as much as sense as having Rational be a subclass of Integer.

This has been discussed before:

http://groups.google.com/group/sage-devel/browse_thread/thread/0b01d58d8c3565c2/c081ba96b5fed6eb?#c081ba96b5fed6eb

And it came up again recently in #1367.

There seem to be serious design issues with the whole algebraic number theory setup in Sage which make it very frustrating to do any serious work on things like #1367.

CC: @aghitza @pjbruin

Component: number fields

Issue created by migration from https://trac.sagemath.org/ticket/3680

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-3.1.1 milestone Jul 19, 2008
@loefflerd loefflerd mannequin assigned loefflerd and unassigned williamstein Jul 20, 2009
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
vbraun pushed a commit to vbraun/sage that referenced this issue Jan 21, 2024
…ional quaternion algebras

    
Added `QuaternionFractionalIdeal_rational.random_element()` to fix
random sampling in fractional ideals of quaternion algebras.

The method `.random_element()` of the ideal class refers to the ring
over which the ideal is defined, but for fractional ideals Sage often
(incorrectly) gives the base field of the algebra as a base ring. To
work around this, we implement a new function
`QuaternionFractionalIdeal_rational.random_element()` that hardcodes
$\mathbb{Z}$ to return a random $\mathbb{Z}$-linear combination of the
(lattice) generators of the fractional ideal.

Note: The deeper issue of separating ideals and fractional ideals still
remains - see sagemath#3680.

#sd123
    
URL: sagemath#37098
Reported by: Sebastian Spindler
Reviewer(s): Peter Bruin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants