[step:Inductive step: use primality of $p_1$ to match it with some $q_j$]Assume the result holds for all factorisations with fewer than $m$ irreducible factors on the left, and suppose $m \ge 1$. From
\begin{align*}
u \, p_1 p_2 \cdots p_m = v \, q_1 q_2 \cdots q_n,
\end{align*}
the irreducible element $p_1$ divides the right-hand side: $p_1 \mid v \, q_1 q_2 \cdots q_n$. Since $p_1$ is irreducible, condition (2) guarantees that $p_1$ is [prime](/page/Prime%20Element). We apply the definition of primality repeatedly.
[claim:$p_1$ divides some $q_j$]
Since $p_1$ is prime and $p_1 \mid v \, q_1 \cdots q_n$, we show $p_1 \mid q_j$ for some $j \in \{1, \ldots, n\}$. Write the right-hand side as $p_1 \mid (v q_1)(q_2 \cdots q_n)$. By primality, either $p_1 \mid v q_1$ or $p_1 \mid q_2 \cdots q_n$. In the first case, $p_1 \mid v q_1$; writing this as $p_1 \mid v \cdot q_1$ and applying primality again, either $p_1 \mid v$ or $p_1 \mid q_1$. But $v$ is a unit, and a prime element cannot divide a unit (since $p_1$ is not a unit and $p_1 \mid v$ would give $v = p_1 w$, forcing $1_R = p_1 (w v^{-1})$, contradicting $p_1 \notin R^\times$). Therefore $p_1 \mid q_1$ in this case. In the second case, we iterate the same argument on $q_2 \cdots q_n$ and eventually find $p_1 \mid q_j$ for some $j$.
[/claim]
[proof]
We proceed by induction on $n$. If $n = 1$, then $p_1 \mid v q_1$. Since $p_1$ is prime, either $p_1 \mid v$ or $p_1 \mid q_1$. Since $v$ is a unit and $p_1$ is not a unit (being irreducible), $p_1 \nmid v$: if $p_1 \mid v$ then $v = p_1 w$ for some $w$, so $1_R = v \cdot v^{-1} = p_1 (w v^{-1})$, making $p_1$ a unit, a contradiction. Thus $p_1 \mid q_1$.
If $n \ge 2$, write $v \, q_1 \cdots q_n = (v \, q_1 \cdots q_{n-1}) \cdot q_n$. Since $p_1$ is prime and $p_1 \mid (v \, q_1 \cdots q_{n-1}) \cdot q_n$, either $p_1 \mid q_n$ (and we are done with $j = n$) or $p_1 \mid v \, q_1 \cdots q_{n-1}$. In the latter case, the inductive hypothesis (on $n$) gives $p_1 \mid q_j$ for some $j \in \{1, \ldots, n-1\}$.
[/proof]
After reindexing, we may assume $j = 1$, so $p_1 \mid q_1$. Since $q_1$ is irreducible and $p_1$ is not a unit, the only factorisation $q_1 = p_1 \cdot \epsilon$ with $\epsilon \in R$ requires $\epsilon \in R^\times$ (by irreducibility of $q_1$). Thus $q_1 = \epsilon \, p_1$ for some unit $\epsilon \in R^\times$, meaning $p_1$ and $q_1$ are associates.[/step]