I am re-learning some algebraic number theory. I want to understand the following:
Let $f\in\mathbb{Q}[x]$ have irreducible factorization $f(x)=g_1(x)\cdot...\cdot g_m(x)$ over $\mathbb{Q}$. Let $K$ be a splitting field of $f$ over $\mathbb{Q}$, and let $G=\operatorname{Gal}(K/\mathbb{Q})$. Finally, if $\alpha_i$ is a root of $g_i$, then let $A_i=\operatorname{Gal}(K/\mathbb{Q}(\alpha_i))$.
If $f$ has a root in $\mathbb{Q}_p$ for some rational prime $p$ (possibly ramified in $K$), then for some $i$, there exists a prime $\mathfrak{p}$ of $K$ lying above $p$ such that the decomposition group $D_{\mathfrak{p}}$ is contained in $A_i$.
I understand that a root in $\mathbb{Q}_p$ implies in particular that $f$ has a root mod $p$. I also know that, since $f$ has a root in $\mathbb{Q}_p$, one of the irreducible factors of $f$ does as well, say $g_i$. Thus we have some $\alpha_i\in\mathbb{Q}_p$ with $g_i(\alpha_i)=0$.
However, I don't see the connection between this and the decomposition group $D_{\mathfrak{p}}$.