The $p$-adic valuation is first defined $v_p(n) = k$ for $n \in \mathbb{Z}$, where $n = p^kq$ for $q$ not divisible by $p$. Then it is extended to $\mathbb{Q}$ by $v_p(\frac{a}{b}) = v_p(a) - v_p(b)$. It satisfies $v_p(xy) = v_p(x) + v_p(y)$ and $v_p(x + y) \ge \min(v_p(x), v_p(y))$, with equality guaranteed when $v_p(x) \neq v_p(y)$. My question is about extending $v_p$ to algebraic numbers while continuing to satisfy these properties.
I've figured out the only plausible way to extend $v_p$ to algebraic numbers of degree 2. Let $x = a + b\sqrt{d}$, with $d$ square-free and $a, b \in \mathbb{Q}$. It has minimal polynomial $x^2 - 2ax = -a^2+b^2d$. Thus, $$\min(2v_p(x), v_p(2a) + v_p(x)) \le v_p(a^2 - b^2d)$$ with equality if $2v_p(x) \neq v_p(2a) + v_p(x)$. That means, either $2v_p(x) = v_p(2a) + v_p(x)$, giving $v_p(x) = v_p(2a)$, or $\min(2v_p(x), v_p(2a) + v_p(x)) = v_p(a^2 - b^2d)$, which can be solved with a little work to be $$v_p(x) = \begin{cases} \frac{v_p(a^2-b^2d)}{2} & \text{ if } \frac{v_p(a^2-b^2d)}{2} \le v_p(2a) \\ v(a^2 - b^2d) - v_p(2a) & \text{ if } \frac{v_p(a^2-b^2d)}{2} \ge v_p(2a)\end{cases}$$
Since the conjugate $y = a - b\sqrt{d}$ has the same minimal polynomial, $v_p(y)$ has the same possible solutions. Together, we also have $v_p(x) + v_p(y) = v_p(xy) = v_p(a^2 - b^2d)$. Putting this together, we get:
- If $\frac{v_p(a^2-b^2d)}{2} \le v_p(2a)$, then $v_p(x) = v_p(y) = \frac{v_p(a^2-b^2d)}{2}$.
- If $\frac{v_p(a^2-b^2d)}{2} > v_p(2a)$, then $v_p(x) = v_p(2a)$ and $v_p(y) = v(a^2 - b^2d) - v_p(2a)$, or vice versa.
I have two questions:
- In the case $\frac{v_p(a^2-b^2d)}{2} > v_p(2a)$, how should we choose which of the two options to pick in a consistent way? I am aware that axiom of choice will be involved. I'm looking for an algorithm or similar method such that after $v_p(x_1), \dots, v_p(x_n)$ are picked, on input $x_{n+1}$, I can tell whether I have free choice for $v_p(x_{n+1})$ or if $v_p(x_{n+1})$ is forced by $v_p(x_1), \dots, v_p(x_n)$.
- Is there a similar argument to explicitly calculate the possible values of $v_p(x)$ for algebraic $x$ of degree $n$? I'm having trouble because the ultrametric inequality has a more complicated equality condition when there are 3 or more terms.
(I'm aware of similar questions on this site about extending $p$-adic valuations to algebraic numbers. However, my question is more about explicit computations rather than algebraic structure.)