[step:Pass from a prime exponent solution to a primitive Frey curve]
Let $p>2$ be an odd prime. Suppose, toward a contradiction, that there are positive integers $a,b,c \in \mathbb{N}$ satisfying
\begin{align*}
a^p+b^p=c^p.
\end{align*}
Dividing by the common divisor of $a$, $b$, and $c$, we may assume
\begin{align*}
\gcd(a,b,c)=1.
\end{align*}
This implies the pairwise coprimality conditions
\begin{align*}
\gcd(a,b)=\gcd(a,c)=\gcd(b,c)=1.
\end{align*}
Indeed, any prime dividing two of $a$, $b$, and $c$ divides the third by the equation $a^p+b^p=c^p$, contradicting $\gcd(a,b,c)=1$. Also the three rational numbers $0$, $a^p$, and $-b^p$ are pairwise distinct, since $a$ and $b$ are nonzero.
Define $E_{a,b,p}$ to be the smooth projective curve over $\mathbb{Q}$ obtained by projectivising the affine plane curve
\begin{align*}
Y^2=X(X-a^p)(X+b^p)
\end{align*}
in the affine coordinates $X,Y \in \mathbb{Q}$. The cubic polynomial
\begin{align*}
X(X-a^p)(X+b^p)
\end{align*}
has distinct roots $0$, $a^p$, and $-b^p$, so the affine cubic is nonsingular. Hence $E_{a,b,p}$ is an elliptic curve over $\mathbb{Q}$.
We invoke the Frey semistability theorem for primitive Fermat solutions: if $p>2$ is prime and $a,b,c \in \mathbb{N}$ are pairwise coprime with $a^p+b^p=c^p$, then the Frey curve $E_{a,b,p}$ is semistable over $\mathbb{Q}$ and its bad reduction is controlled by the primes dividing $2abc$. The hypotheses have just been verified: $p>2$ by assumption, $a,b,c$ are positive integers, the Fermat equation holds, and the pairwise coprimality follows from $\gcd(a,b,c)=1$. Therefore $E_{a,b,p}$ is semistable over $\mathbb{Q}$.
[/step]