"Precision too low for generators, not given"

32 views
Skip to first unread message

Erick Knight

unread,
Jan 4, 2017, 8:00:08 AM1/4/17
to sage-support
Hello,

I am currently running some code computing the class groups of various fields.  This is going over a large number of fields and is occasionally returning the warning "precision too low for generators, not given."  If the only calls that I am invoking that are related to ideals are H.class_number() and H.ideal(3).prime_factors()[0].is_principal() (where H is the field under consideration), does this imply that any calculations are possibly incorrect or are being skipped, or are the class numbers and the determination of principality correct even knowing that the warning is happening?

Erick Knight

Jeroen Demeyer

unread,
Jan 4, 2017, 3:31:13 PM1/4/17
to sage-s...@googlegroups.com
I think it means that PARI didn't compute the unit group for certain
number fields. Since you don't need the unit group, I see no issue.

John Cremona

unread,
Jan 5, 2017, 4:14:24 AM1/5/17
to SAGE support
On 4 January 2017 at 20:31, Jeroen Demeyer <jdem...@cage.ugent.be> wrote:
> I think it means that PARI didn't compute the unit group for certain number
> fields. Since you don't need the unit group, I see no issue.

From what I know of the algorithm used -- and one should ask the pari
list to be certain -- it computed h*R (class number times regulator)
analytically and then, by factoring primes up to some bound, obtains
lower bounds on both h and R selarately until the product is within a
factor <2 of the known product. If that is the algirithm in use here,
then it could mean that when the unit generators are not certain then
neither is the class number.

>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support...@googlegroups.com.
> To post to this group, send email to sage-s...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

Jeroen Demeyer

unread,
Jan 5, 2017, 4:27:48 AM1/5/17
to sage-s...@googlegroups.com
Sorry, I was wrong. I actually looked at the PARI source code this time
and the warning comes from the bnfisprincipal() function to determine
the class of a given ideal in the class group (so, in particular, it can
be used to check whether an ideal is principal). This function can also
compute a generator of the ideal, but it might fail doing that, giving
the warning message. I believe this does not affect the correctness.

John Cremona

unread,
Jan 5, 2017, 4:45:32 AM1/5/17
to SAGE support
That sounds correct to me too, so thanks for checking the source code.
When it determines that an ideal is principal it can reconstruct the
generator using some additional information stored which includes logs
of elements in the various embeddings (as explained in Henri COhen's
second book), and at this point there may not be sufficient precision.
As Jeroen says, the correctness of the class number should be
affected.

Erick Knight

unread,
Jan 5, 2017, 7:17:35 AM1/5/17
to sage-support
Thanks for both of your replies.  Just to double check so that I don't have any misunderstanding, PARI is correctly determining whether my ideal is principal, and if it is, it is attempting to produce a generator.  It may fail at that, but, since I never ask it for a generator, this produces no incorrect outputs.  Is that where this warning comes from and what I should make of it?

EK 

Jeroen Demeyer

unread,
Jan 6, 2017, 2:10:34 AM1/6/17
to sage-s...@googlegroups.com
On 2017-01-05 13:17, Erick Knight wrote:
> Thanks for both of your replies. Just to double check so that I don't
> have any misunderstanding, PARI is correctly determining whether my
> ideal is principal, and if it is, it is attempting to produce a
> generator. It may fail at that, but, since I never ask it for a
> generator, this produces no incorrect outputs. Is that where this
> warning comes from and what I should make of it?

Yes, I think that's right.
Reply all
Reply to author
Forward
0 new messages