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

Bug in trivial abelian group #11843

Closed
chriswuthrich opened this issue Sep 24, 2011 · 3 comments
Closed

Bug in trivial abelian group #11843

chriswuthrich opened this issue Sep 24, 2011 · 3 comments

Comments

@chriswuthrich
Copy link
Contributor

The following code

K.<t> = NumberField(x^2+17)
I = K.ideal(3,t+1)
S = K.primes_above(11)
A = K.S_class_group(S)
A(I)

produces the error

TypeError: unsupported operand parent(s) for '*': 'Ambient free module
of rank 1 over the principal ideal domain Integer Ring' and 'Full
MatrixSpace of 0 by 0 dense matrices over Integer Ring'

The same error can be obtained by

A.identity()

The problem seems to arise only when the abelian group is trivial.

I imagine this is not a problem of the class group implementation, but one of (trivial) abelian group.

Component: group theory

Keywords: S-class group, trivial abelian group

Reviewer: Chris Wuthrich

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

@chriswuthrich
Copy link
Contributor Author

comment:1

This is no longer a problem in 5.9. This ticket can be closed now:

sage: K.<t> = NumberField(x^2+17)
sage: I = K.ideal(3,t+1)
sage: S = K.primes_above(11)
sage: A = K.S_class_group(S)
sage: A(I)
Trivial S-ideal class
sage: A.identity()
Trivial S-ideal class

(Sorry that I can't remember what to do with a ticket like this. I just put it to need_review ...

@chriswuthrich
Copy link
Contributor Author

comment:2

... and then to positive_review). Sorry if I do the wrong thing. In any case the ticket can be closed without further action.

@jdemeyer
Copy link

Reviewer: Chris Wuthrich

@jdemeyer jdemeyer removed this from the sage-5.10 milestone May 15, 2013
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

3 participants