Ask Your Question
1

Sage fails to check if NumberField is UFD

asked 2022-10-21 10:43:14 +0100

Alex Karenin gravatar image

updated 2022-10-21 16:33:27 +0100

slelievre gravatar image

The field Q(sqrt(-5)) if not a unique factorization domain. Yet the code below:

K.<z> = NumberField( x^2+5 )
print( K.is_unique_factorization_domain(  ) )
print( K.is_euclidean_domain() )
print( K.class_group(proof=False) )

suggests that it is, but has the non-trivil ideal class group, which is a contradiction (K cannot be neither UFD or Euclidean domain if it is not the Principal ideal domain - but it isn't due to the nontrivial class group).

The output of the code is:

True
True
Class group of order 2 with structure C2 of Number Field in z with defining polynomial x^2 + 5

Am I doing it wrong? How do I check whether field is UFD correctly?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-10-21 16:33:13 +0100

slelievre gravatar image

In a field there are no nonzero non-invertible elements.

Being "unique factorisation" or "euclidean" depends on properties of such elements.

Better ask such questions about the ring of integers of that field:

sage: OK = K.ring_of_integers()
sage: OK in UniqueFactorizationDomains
False
sage: OK in EuclideanDomains
False
edit flag offensive delete link more

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: 2022-10-21 10:43:14 +0100

Seen: 187 times

Last updated: Oct 21 '22