Processing math: 100%
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can't construct automorphisms of p-adic fields

I'm trying to construct automorphisms of finite extensions of Qp and getting a funny error. Here's a prototypical example:

Evaluating the cyclotomic polynomial x4+x3+x2+x+1 at x+1 gives an Eisenstein polynomial for the prime p=5. If π is a root of (x+1)4+(x+1)3+(x+1)2+(x+1)+1 then π+1 will be a primitive 5th root of unity.

K.<pi> = Qp(5).ext(sum((1+x)^i for i in range(5)))

So K=Qp(ζ5) with uniformizer π=ζ51. Now I want to define the automorphism τ:ζ5ζ25. We have τ(π)=(1+π)21=2π+π2. But the following

tau = K.hom([2*pi+pi^2])

results in the error TypeError: images do not define a valid homomorphism. What's going on? Are hom's of p-adic fields not really implemented yet or am I doing something wrong?