pari-gp

Questions on the output of idealprimedec (PARI/GP)


I'm doing some computation with PARI/GP. For some number field K, I need to deal with the splitting of a fixed prime ideal of K in its extensions say L1, L2,...

The problem is that when I want to use the command 'idealfactor,' I have to recover K by the command 'nfsubfields'. Then K is represented by a new minimal polynomial. I don't know a method to identify the initially fixed prime ideal to a prime ideal among the output of idealprimedec with respect to the new minimal polynomial.

I guess that the prime ideals obtained by idealprimedec are ordered with respect to some arithmetic information independent of the minimal polynomial choice.

I would like to know whether this is the case.

Thank you very much for reading this question.

I have already described what I have tried and what I'm expecting now.


Solution

  • There are 2 questions in one. First, how is the idealprimedec output sorted ? By increasing residue degree (P.f), then by some mathematically meaningless lexicographic ordering of P.gen[2]; in particular, it depends on the minimal polynomial used to define the number field. The exact same ordering is used in idealfactor, after ordering by increasing underlying rational prime. So, to detect whether a prime ideal given in terms of nf1 = nfinit(T1) is the same as another one given in terms of nf2 = nfinit(T2), you cannot proceed directly besides comparing the underlying primes P.gen[1], inertia degree P.e and residue degree P.f. If any of these differ, you have a definite answer; else you remain in doubt.

    The second question is thus more interesting. How do you check whether P1 (given in terms of nf1) and P2 (given in terms of nf2) are the same, knowing that the number fields nf1 and nf2 are isomorphic ? The way I recommend is as follows

    You can then check whether idealval(nf1, PI, P1) is positive (and in fact equal to 1), which will be the case if and only if P1 and P2 are the same.

    P.S. Independently, to study the decomposition of a fixed prime from K in multiple extensions L1, L2, etc., you may want to have a look at rnfidealprimedec.