Since I just started to learn algebraic number theory and feel quite insecure about the subject, I apologize in advance for any wrong notations or conclusions. I tried to write down what I understood and wanted to verify whether the following is correct or not:
Let $K= \mathbb{Q}$ and let $p$ be a prime number. If I understood correctly, the field of $p$-adic numbers $\mathbb{Q}_p$ is the completion of $\mathbb{Q}$ wrt. the prime ideal $(p) \subseteq \mathcal{O}_K = \mathbb{Z}$.
I think what this means is that $\mathbb{Q}_p = K_{v_{(p)}}$ where $K_{v_{(p)}}$ is the completion of $K$ wrt. $v$ where $v_{(p)} : K \to \mathbb{Z} \cup \{ \infty \}$ is the valuation with $v_{(p)}(x)$ for $x \in K$ defined as the exponent of $(p)$ in the factorization of $(x)$ in prime ideals, and $v_{(p)}(0) = \infty$.
Could you please tell me if my line of thought is correct?