Paolo gives the following proof (reproduced verbatim) of Eisenstein's criterion.
Proposition 5.17. Let $R$ be a (commutative) ring, and let $\mathfrak p$ be a prime ideal of $R$. Let $$ f = a_0 +a_1 x+\cdots+a_n x^n\in R[x] $$ be a polynomial, and assume that
- $a_n\notin\mathfrak p$;
- $a_i\in\mathfrak p$ for $i = 0, \ldots, n - 1$;
- $a_0\notin\mathfrak p^2$.
Then $f$ is not the product of polynomials of degree < $n$ in $R[x]$.
Proof. Argue by contradiction. Assume $f = gh$ in $R[x]$, with both $d = \deg g$ and $e = \deg h$ less than $n = \deg f$; write $$ g = b_0 + b_1 x+\cdots+b_d x^d,\quad h=c_0 +c_1 x+\cdots+c_e x^e, $$ and note that necessarily $d > 0$ and $e > 0$. Consider $f$ modulo $\mathfrak p$: thus $$ \bar f = \bar g \bar h \text{ in } (R/\mathfrak p)[x], $$ where $\bar f$ denotes $f$ modulo $\mathfrak p$, etc. By hypothesis, $f = \bar a_n x^n$ modulo $\mathfrak p$, where $\bar a_n\ne 0$ in $R/\mathfrak p$. Since $R/\mathfrak p$ is an integral domain, factors of $f$ must also be monomials: that is, necessarily $$ \color{blue}{\bar g = \bar b_d x^d,\quad \bar h = \bar c_e x^e}.\tag{How?} $$ Since $d>0$, $e>0$,this implies $b_0\in \mathfrak p$,$c_0 ∈\mathfrak p$. But then $a_0 = b_0 c_0 ∈ \mathfrak p^2$, contradicting the hypothesis.
Question: Why do the highlighted equations hold? I can only conclude that $\bar g = \bar b_i x^i$ for some $0\le i\le d$ for instance. Why does this $i$ have to be $d$?