Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
1

Challenges with subgroup elements

asked 3 years ago

AlonAmit gravatar image

updated 3 years ago

I'm running into apparent inconsistencies when studying subgroups of the unit group of a cyclotomic field.

k = CyclotomicField(7,'z')
U = k.unit_group()
z = k.gen()
a = 1+z
b = a^(-1)
T = U.subgroup([U(a)])
print(U(a) in U)
print(U(b) in U)
print(U(a) in T)
print(U(b) in T)

What I'm getting is:

True
True
True
False

which doesn't make sense. T is a subgroup, so if it contains a it must also contain a1. The group U gets it right, but the subgroup T does not. I'm guessing this is some coercion issue, but I'm not sure why it's happening, if it's a bug, and how to work around it.

(Checked this on the Sage Cell Server and CoCalc with Sage 9.4)

Preview: (hide)

Comments

Please try SageMath 9.5, as there was a fix in this area recently.

rburing gravatar imagerburing ( 3 years ago )

Implentation of subgroups of unit groups is known to be buggy. E.g., see https://ask.sagemath.org/question/59558 along the same lines.

Max Alekseyev gravatar imageMax Alekseyev ( 3 years ago )

Wow. Thank you both. Yeah, ver 9.5 resolves this issue. Whew!

AlonAmit gravatar imageAlonAmit ( 3 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 3 years ago

rburing gravatar image

The issue is fixed in SageMath 9.5.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 3 years ago

Seen: 432 times

Last updated: Feb 07 '22