Is the following proposition true? If yes, how would you prove this?
Proposition Let $K$ be an algebraic number field. Let $L/K$ be a finite Galois extension. Let $A$ and $B$ be the rings of algebraic integers in $K$ and $L$ respectively. Let $G$ be the Galois group of $L/K$. Let $C$ be a subring of $B$ such that $A \subset C \subset B$. Suppose $\sigma(C) = C$ for every $\sigma \in G$. Let $\mathfrak{p}$ be a prime ideal of $A$. By the lying-over theorem, there exists a prime ideal $\mathfrak{P}$ of $C$ lying over $\mathfrak{p}$. Let $H$ = {$\sigma \in G$; $\sigma(x) \equiv x$ (mod $\mathfrak{P}$) for all $x \in C$}. Suppose $H = 1$. Then $\mathfrak{p}$ is unramified in $L$.
Motivation Let $K, A, L, B$ be as above. Let $n = [L : K]$. Let $f(X)$ be a monic polynomial of degree $n$ in $A[X]$. Suppose that $f(X)$ has no multiple roots. Suppose $L/K$ is the splitting field of $f(X)$. Let $\alpha_1,\dots,\alpha_n$ be the roots of $f(X)$. Let $C = A[\alpha_1,\dots,\alpha_n]$. Then $C$ satisfies the conditions of the above proposition. Sometimes it's easy to verify $H = 1$. Hence we can conclude that $\mathfrak{p}$ is unramified in $L$.
Application Let $f(X)$ be a monic polynomial of degree $n$ in $\mathbb{Z}[X]$. Let $d$ be the discriminant of $f(X)$. Suppose $d \neq 0$. Let $L$ be the splitting field of $f(X)$ over $\mathbb{Q}$. Let $G$ be the Galois group of $L/\mathbb{Q}$. Let $\alpha_1,\dots,\alpha_n$ be the roots of $f(X)$ in $L$. Let $C = \mathbb{Z}[\alpha_1,\dots,\alpha_n]$. Let $p$ be a prime number not dividing $d$. Let $P$ be a prime ideal of $C$ lying over $p$. Let $H$ = {$\sigma \in G$; $\sigma(x) \equiv x$ (mod $P$) for all $x \in C$}. Let $\sigma \in G -$ {1}. There exists $i$ such that $\sigma(\alpha_i) \neq \alpha_i$. Since the discriminant of $f(X)$ is not divisible by $P$, $\alpha_1,\dots,\alpha_n$ are distinct mod $P$. Hence $\sigma$ does not belong to $H$. Hence $H = 1$. Hence $p$ is unramified in $L$ by the above proposition.
Example Let $f(X) = X^3 + 2X + 1 \in \mathbb{Z}[X]$. Let $L$ be the splitting field of $f(X)$ over $\mathbb{Q}$. The discriminant of $f(X)$ is -59, where 59 is a prime number. Hence if $p \neq 59$ is a prime number, $p$ is unramified in $L$ by the above result.
Let $K = \mathbb{Q}(\sqrt{-59})$. The class number of $K$ is 3. $L/K$ is an abelian extension of degree 3. By the above result, the only prime number which can be ramified in $L$ is 59. It can be proved by another method that a prime of $K$ lying over 59 is unramified in $L$. Hence $L$ is the Hilbert class field of $K$.