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.
There are 2 questions in one. First, how is the
idealprimedecoutput 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 inidealfactor, after ordering by increasing underlying rational prime. So, to detect whether a prime ideal given in terms ofnf1 = nfinit(T1)is the same as another one given in terms ofnf2 = nfinit(T2), you cannot proceed directly besides comparing the underlying primesP.gen[1], inertia degreeP.eand residue degreeP.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 ofnf1) andP2(given in terms ofnf2) are the same, knowing that the number fieldsnf1andnf2are isomorphic ? The way I recommend is as followsif
P2.fis equal to the field degree, then the prime is inert and the above preliminary test is enough.set
[p, pi] = P2.gen:pis the underlying rational prime andpiis ap-uniformizer (its valuation is 1 atP2and 0 at all over primes dividingp), given in terms of the integer basisnf2.zk. N.B. this is not true when the prime is inert, you will havepi = 0.convert
pito polynomial representation usingpi = lift(nfbasistoalg(nf2, pi))obtain one field isomorphism
srelatingnf2tonf1usings = nfisincl(nf2, nf1, 1)(the final '1' avoids computing all isomorphisms, we only need one).map
pifromnf2tonf1usingPI = Mod(subst(pi, variable(pi), s), nf1.pol). You now have a representation ofpiinnf1.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 ifP1andP2are the same.P.S. Independently, to study the decomposition of a fixed prime from
Kin multiple extensionsL1,L2, etc., you may want to have a look atrnfidealprimedec.