\section{The Frey representation of a solution}\label{sec:frey} Parts~II and~III use the local properties of the Frey representation of a solution and its Frobenius data at the primes above $7$ (\cref{prop:local}), together with its irreducibility (\cref{sec:irreducibility}). \subsection{Inputs from Kraus} Kraus \cite[\S6]{Kraus98} writes a solution with the even variable first and normalizes its sign. His results for $p\ge17$ assume that $E_{a,b}$ is modular, which is now known \cite{BCDT01}; his note added in proof observes that it follows from the work of Conrad, Diamond and Taylor. We only need the following consequences, which do not depend on the normalization. \begin{proposition}\label{prop:kraus} Let $p\ge17$ be prime and let $(a,b,c)$ be a solution of $x^3+y^3=z^p$ in coprime nonzero integers. Then \begin{enumerate}[(a)] \item $3\mid c$; \item $p\nmid c$; \item $7\nmid abc$; \item exactly one of $a,b$ is even. \end{enumerate} \end{proposition} \begin{proof} Replacing $(a,b,c)$ by $(b,a,c)$ or by $(-a,-b,-c)$ we may assume that we are in Kraus's normalization. Then (a) and (d) are part of \cite[Théorème~6.1]{Kraus98} and (b) is \cite[Lemme~6.4]{Kraus98}. For (c), \cite[Proposition~6.3~(ii)]{Kraus98} gives $\rhob_{E_{a,b},p}\isom\rhob_{W,p}$, where $W\colon Y^2=X^3+6X-7$ has good reduction at $7$ with $a_7(W)=0$ (it reduces to $Y^2=X^3-X$, and $7\equiv3\pmod 4$). The discriminant of $E_{a,b}$ is $-432c^{2p}$ and $c_4(E_{a,b})=-144ab$, where $ab$ is prime to $c$. If $7\mid c$, then $E_{a,b}$ has multiplicative reduction at $7$ and the congruence forces $a_7(W)\equiv\pm(7+1)\pmod p$, that is $p\mid 8$. If $7\mid ab$, then $7\nmid c$, $E_{a,b}$ has good reduction at $7$, and modulo $7$ it is $Y^2=X^3\pm(\text{a unit})^3$, a quadratic twist of $y^2=x^3+1$, which has $a_7=-4$; the congruence then gives $0\equiv\pm4\pmod p$. Both are impossible for $p\ge17$. \end{proof} \subsection{The parameter} Let $p\ge 17$ and let $(a,b,c)$ be a solution in coprime nonzero integers. As $a,b$ are coprime, $p\nmid a$ or $p\nmid b$. Choose $(u,w)\in\{(a,b),(b,a)\}$ with $p\nmid u$ (when both choices are possible, nothing depends on which is made; see \cref{rem:normalisation}), and put \[ s_0=\frac{c^p}{u^3}=1+\Big(\frac wu\Big)^3\in\Q\smallsetminus\{0,1\}. \] \needspace{4\baselineskip}\begin{lemma}\label{lem:s0} We have $v_3(s_0)=p\,v_3(c)\ge p$, and $s_0\equiv2\pmod 7$ (in $\Z_{(7)}$). \end{lemma} \begin{proof} By \cref{prop:kraus}~(a), $3\mid c$, and $3\nmid u$ by coprimality. By \cref{prop:kraus}~(c), $u,w,c$ are prime to $7$; the cube of a unit modulo $7$ is $\pm1$, and $(w/u)^3\equiv-1$ would give $7\mid c$; so $(w/u)^3\equiv1$ and $s_0\equiv2\pmod 7$. \end{proof} \subsection{Tame specialization} \begin{lemma}\label{lem:tame} Let $\q\nmid3\ell$ be a prime of $K$ and $s_0\in K\smallsetminus\{0,1\}$. \begin{enumerate}[(a)] \item If $v_\q(s_0)=0$ and $v_\q(s_0-1)=0$, then $\VV_{s_0}$ is unramified at $\q$. \item If $v_\q(s_0)>0$, then there is a $G_K$-stable lattice in $\VV_{s_0}$ on which $I_\q$ acts through $\sigma\mapsto\gamma_0^{v_\q(s_0)t_\ell(\sigma)}$, where $t_\ell\colon I_\q\to\Z_\ell(1)$ is the $\ell$-adic tame character (\cref{sec:conventions}) and $\gamma_0$ is a unipotent automorphism of the lattice with $(\gamma_0-1)^3=0$. \item If $v_\q(s_0-1)>0$ and $3\mid v_\q(s_0-1)$, then $I_\q$ acts trivially on $\VV_{s_0}$. \item If $s_0=z_0/u^3$ with $z_0,u\in\OO$, $\q\mid u$ and $\q\nmid z_0$, then $I_\q$ acts on $\VV_{s_0}$ by the scalar character $\kappa_u^{\ninf}|_{I_\q}$. \end{enumerate} \end{lemma} \begin{proof} $\VV$ is lisse on $\SSS$ over $\OO[1/3\ell]$ and tamely ramified along $0,1,\infty$ (\cref{prop:geometry,prop:compactification}); fix a lattice $\VV^\circ$. In (a) the point $s_0$ extends to a point of $\SSS$ over the local ring at $\q$, so $\VV_{s_0}$ is unramified. Otherwise $s_0$ reduces modulo $\q$ to one of the points $0,1,\infty$; let $z$ be the local coordinate $s$, $s-1$ or $1/s$ there. By Abhyankar's lemma \cite[Exposé~XIII, 5.3]{SGA1}, étale locally near that point a finite étale cover of $\SSS$ trivializing $\VV^\circ/\ell^n$ is a disjoint union of Kummer covers, each obtained by extracting an $i$th root of $z$ times a unit, with $i$ prime to the residue characteristic. Pulling back along $s_0$ shows that $I_\q$ acts on $\VV^\circ_{s_0}$ through the composite of the tame Kummer map $\sigma\mapsto(\sigma(z(s_0)^{1/i})/z(s_0)^{1/i})_i\in\hat\Z'(1)$ with the local monodromy of $\VV^\circ$ at that point, since the value of the unit at $s_0$ contributes nothing on inertia. Now use \cref{prop:geometry}~(c). In (b) the point is $0$ and the monodromy is the unipotent $\gamma_0$ on $\VV^\circ$, with $(\gamma_0-1)^3=0$ (one Jordan block of length three). In (c) the point is $1$ and the monodromy factors through $\mu_3$; the image of $\sigma\in I_\q$ in $\mu_3$ is $\sigma((s_0-1)^{1/3})/(s_0-1)^{1/3}$, which is $1$ because $s_0-1$ is a unit times a cube in $K_\q$ and $\q\nmid3$. In (d) the point is $\infty$ and the monodromy factors through $\mu_9$; the image of $\sigma\in I_\q$ is $\sigma((1/s_0)^{1/9})/(1/s_0)^{1/9}=\sigma(u^{1/3})/u^{1/3}\cdot\sigma(z_0^{-1/9})/z_0^{-1/9}$, and the second factor is $1$ on $I_\q$ since $\q\nmid9z_0$. So the image is $\kappa_u(\sigma)\in\mu_3$, which acts by the scalar $\iota_\ell(\kappa_u(\sigma))^{\ninf}$ (\cref{prop:geometry}). \end{proof} \subsection{The Frey representation} Fix a prime $p\ge17$ with $p\equiv1\pmod3$ and a solution, with $u,w,s_0$ as above. Take $\ell=p$. \begin{definition}\label{def:frey} The \emph{Frey representation} of the solution is \[ \rho=\VV_{s_0}\otimes\kappa_u^{-\ninf}\colon G_K\to\GL_3(\overline\Q_p), \] where $\ninf\in\{1,2\}$ is as in \cref{prop:geometry}, and $\rhob\colon G_K\to\GL_3(\Fbar_p)$ is its reduction (\cref{sec:conventions}). \end{definition} \begin{proposition}\label{prop:local} The representation $\rho$ has the following properties. \begin{enumerate}[(a)] \item $\rho$ is unramified at every prime $\q\nmid3pc$. For every prime $\q\nmid3pcuw$ the characteristic polynomial of $\rho(\Frob_\q)$ has coefficients in $\OO$, so $\rho$ has coefficients in $K$. \item $\rhob$ is unramified at every prime $\q\nmid3p$. \item $\rho^\cc\isom\rho^\vee\otimes\varepsilon_p^{-2}$, and hence $\rhob^\cc\isom\rhob^\vee\otimes\epsb^{-2}$. \item $I_\p$ acts on $\rho$ through $\kappa_u^{-\ninf}|_{I_\p}$ times a unipotent representation, so every constituent of $\rhob|_{I_\p}$ is $\bar\kappa_u^{-\ninf}|_{I_\p}$. \item $\rho$ is unramified at $\lp$ and $\lpb$, and the characteristic polynomial of $\rho(\Frob_\q)$, $\q\in\{\lp,\lpb\}$, is $P_\q(\xi_\q^{-1}T)$ with $\xi_\q=\kappa_u(\Frob_\q)^{-\ninf}\in\mu_3$ and $P_\q$ as in \cref{prop:frob7}. \item For each prime $v\mid p$ of $K$, $\rho|_{G_{K_v}}$ is crystalline with Hodge--Tate weights $\{0,1,2\}$. \end{enumerate} \end{proposition} \begin{proof} (a) If $\q\nmid 3pcuw$, then $s_0$ and $s_0-1=(w/u)^3$ are $\q$-units, so $\VV_{s_0}$ is unramified at $\q$ by \cref{lem:tame}~(a); if $\q\mid w$, it is unramified at $\q$ by \cref{lem:tame}~(c) ($v_\q(s_0-1)=3v_\q(w)$); if $\q\mid u$, then $I_\q$ acts on $\VV_{s_0}$ by $\kappa_u^{\ninf}$ by \cref{lem:tame}~(d) (with $z_0=c^p$), which the twist cancels. The character $\kappa_u$ is unramified outside $3u$. For $\q\nmid3pcuw$ the coefficients lie in $\OO$ by \cref{lem:traces-in-K}, which applies because $s_0$ reduces to a point of $\SSS$ modulo $\q$, and because $\kappa_u$ takes values in $\mu_3\subset\OO^\times$. (b) By (a) it remains to treat $\q\mid c$, $\q\nmid 3$ (note $p\nmid c$). By \cref{lem:tame}~(b), on a $G_K$-stable lattice $I_\q$ acts through powers of $\gamma_0^{p\,v_\q(c)}$, since $v_\q(s_0)=p\,v_\q(c)$ and $\kappa_u$ is unramified at $\q$. As $(\gamma_0-1)^3=0$ and $p\ge3$, $\gamma_0^p=1+p(\gamma_0-1)+\binom p2(\gamma_0-1)^2\equiv1\pmod p$; so $I_\q$ acts trivially on the reduction of this lattice, hence on $\rhob$. (c) By \cref{lem:duality} (as $s_0\in\Q$), $\VV_{s_0}^\cc\isom\VV_{s_0}^\vee\otimes\varepsilon_p^{-2}$, and $(\kappa_u^{-\ninf})^\cc=\kappa_u^{\ninf}$ because $u\in\Z$. (d) By \cref{lem:s0}, $v_3(s_0)\ge17>15/2$, so $I_\p$ acts unipotently on $\VV_{s_0}$ by \cref{thm:inertia3}. (e) By \cref{lem:s0}, $s_0$ reduces modulo $\lp$ and $\lpb$ to $2\in\SSS(\F_7)$, so $\VV_{s_0}$ is unramified there and $\Frob_\q$ has characteristic polynomial $P_\q$ on it; $\kappa_u$ is unramified at $\q$ since $7\nmid 3u$. (f) This is \cref{prop:crys} below. \end{proof} \needspace{5\baselineskip}\subsection{Crystallinity at \texorpdfstring{$p$}{p}}\label{sec:crys} \begin{proposition}\label{prop:crys} Let $p\ge5$, $p\equiv1\pmod 3$, let $v\mid p$ be a prime of $K$ (so $K_v=\Q_p$), and let $s_0\in\Q\smallsetminus\{0,1\}$ with $v_p(s_0)=0$. Suppose that either $s_0\not\equiv1\pmod p$, or $s_0-1=t_1^3$ with $t_1\in p\Z_{(p)}$. Then $\VV_{s_0}|_{G_{K_v}}$ (with $\ell=p$) is crystalline with Hodge--Tate weights $\{0,1,2\}$. \end{proposition} For the Frey representation, $v_p(s_0)=0$ by \cref{prop:kraus}~(b) and $p\nmid u$; if $p\nmid w$ then $s_0\not\equiv1\pmod p$, and if $p\mid w$ then $s_0-1=(w/u)^3$ with $w/u\in p\Z_{(p)}$. Since $\kappa_u$ is unramified at $v$ and of finite order, \cref{prop:local}~(f) follows. For a finite extension $L$ of $\Q_p$ let $L_0=W(k_L)[1/p]$ be its maximal subfield unramified over $\Q_p$, and for a $p$-adic representation $V'$ of $G_L$, with coefficients in a finite extension $E$ of $\Q_p$, let $D_{\mathrm{st},L}(V')=(B_{\mathrm{st}}\otimes_{\Q_p}V')^{G_L}$, a module over $L_0\otimes_{\Q_p}E$ with a Frobenius $\varphi$ and a monodromy operator $N$. Since $B_{\mathrm{st}}^{G_L}=L_0$ and $B_{\mathrm{st}}^{N=0}=B_{\mathrm{cris}}$ \cite[\S2.1, (4)$_{\mathrm{st}}$ and (6)$_{\mathrm{st}}$]{Tsuji02}, $V'$ is semistable when $\dim_{L_0}D_{\mathrm{st},L}(V')=\dim_{\Q_p}V'$, and crystalline when moreover $N=0$ on $D_{\mathrm{st},L}(V')$ \cite[Definition~2.2.7]{Tsuji02}. \begin{lemma}\label{lem:dst-descent} Let $L/F$ be a finite Galois extension of finite extensions of $\Q_p$, with inertia subgroup $I(L/F)$, and let $V'$ be a $p$-adic representation of $G_F$ whose restriction to $G_L$ is semistable. Then $\Gal(L/F)$ acts on $D_{\mathrm{st},L}(V')$, through $g\otimes g$ for $g\in G_F$, semilinearly with respect to its action on $L_0$ and commuting with $N$. If $N=0$ on $D_{\mathrm{st},L}(V')$ and $I(L/F)$ acts trivially on it, then $V'$ is crystalline. \end{lemma} \begin{proof} Since $G_L$ is normal in $G_F$, the action $g\otimes g$ preserves $D=D_{\mathrm{st},L}(V')$ and factors through $\Gal(L/F)$; it commutes with $N$ because $N$ commutes with $G_F$ on $B_{\mathrm{st}}$. The group $\Gal(L/F)$ acts on $L_0$ through $\Gal(L/F)/I(L/F)\isom\Gal(L_0F/F)\isom\Gal(L_0/F_0)$. If $I(L/F)$ acts trivially on $D$, then $D$ is an $L_0$-vector space with a semilinear action of $\Gal(L_0/F_0)$, so $D=L_0\otimes_{F_0}D^{\Gal(L/F)}$ by Galois descent for vector spaces (Hilbert's Theorem~90). As $(B_{\mathrm{st}}\otimes V')^{G_F}=D^{\Gal(L/F)}$, this gives $\dim_{F_0}D_{\mathrm{st},F}(V')=\dim_{L_0}D=\dim_{\Q_p}V'$, so $V'$ is semistable; and $N=0$ on $D_{\mathrm{st},F}(V')\subset D$, so $V'$ is crystalline. \end{proof} For the rest of this subsection let $p\ge5$, let $v$ be a prime of $K$ above $p$ (so $K_v$ is unramified over $\Q_p$ and contains $\mu_3$; $K_v=\Q_p$ if $p\equiv1\pmod 3$), let $\bar F=\Kbar_v$, and let $F=K_v(\zeta_9)\subset\bar F$, where $\zeta_9$ is the image of $\tau_0(\zeta_9)$ under an embedding $\Kbar\hookrightarrow\Kbar_v$ over $K$ that defines the decomposition group $G_{K_v}\subset G_K$ (\cref{sec:conventions}); $F$ is an unramified extension of $K_v$. Over $F$ the twisted forms of \cref{sec:surfaces} split: $X_s\otimes_KF=\{\prod_j(1-y_j^9)=s\}$, $H=\mu_9^3$ acting coordinatewise, and $G_F$ acts trivially on $H(\Kbar)$; we use the model $\tilde X^\flat\otimes\OO_F$ of \cref{prop:compactification}~(a) in this split form. Let $t_1\in\mathfrak m_F\smallsetminus\{0\}$, $s_0=1+t_1^3$, let $t_0\in\bar F$ with $t_0^3=t_1$, and $K'=F(t_0)$; as $\mu_3\subset F$, the extension $K'/F$ is Galois of degree $1$ or $3$ and tamely ramified. Let $k'$ be the residue field of $K'$, $\pi$ a uniformizer, and $e=v_{K'}(t_0)\ge1$. For $\lambda\in\mu_9$ let $\delta(\lambda)=(\lambda,\lambda,\lambda)\in\mu_9^3$. The case $s_0\equiv1\pmod p$ of \cref{prop:crys}, where $s_0$ reduces to the point $1$, over which the model of \cref{prop:compactification} is not smooth, needs the following semistable model. It is used through parts~(c) and~(d): the diagonal $\mu_9$ fixes the double curves pointwise and $\chi^m$ is nontrivial on it, so the $\chi^m$-part of the cohomology of the special fiber comes only from the components, which forces $N=0$; and inertia acts on each component through the diagonal $\mu_3$, on which $\chi^m$ is trivial, so it acts trivially on that part (proof of \cref{prop:crys}). \begin{lemma}\label{lem:ss-model} There is a regular scheme $\mathcal X$, projective and flat over $\OO_{K'}$, with the following properties. \begin{enumerate}[(a)] \item Its generic fiber is $\tilde X_{s_0}\otimes_FK'$. \item Its special fiber $Y$ is a reduced divisor with strict normal crossings and without triple points. Its components are $Z'$, $\Xi$ and, if $e\ge2$, $E_1,\dots,E_{e-1}$, where $\Xi$ is the Fermat surface $y_0^9+y_1^9+y_2^9+t^9=0$ in $\PP^3_{k'}$, $Z'$ is the blow-up of $\tilde X^\flat_1\otimes k'$ at its singular point $y=0$, and each $E_r$ is a $\PP^1$-bundle over the Fermat curve $C\colon y_0^9+y_1^9+y_2^9=0$ in $\PP^2_{k'}$. The components form a chain $Z',E_1,\dots,E_{e-1},\Xi$, and each double curve maps isomorphically to $C$. \item $H=\mu_9^3$ acts on $\mathcal X$ by $\OO_{K'}$-automorphisms, extending its action on the generic fiber and mapping every component of $Y$ to itself. The diagonal $\mu_9\subset H$ fixes every point of every double curve. \item For each $\gamma\in\Gal(K'/F)$ there is an automorphism $\gamma_{\mathcal X}$ of the scheme $\mathcal X$ over $\mathrm{Spec}(\gamma)$ which extends $1\times\mathrm{Spec}(\gamma)$ on $\tilde X_{s_0}\times_FK'$ and commutes with $H$. If $\gamma$ lies in the inertia subgroup, then $\gamma_{\mathcal X}$ maps every component $Y_a$ of $Y$ to itself, and its restriction to $Y_a$ is the restriction of an element $\delta_a$ of the diagonal $\mu_3\subset H$. \end{enumerate} \end{lemma} \begin{proof} \emph{The family over the $t$-line.} Let $B=\mathrm{Spec}\,\OO_F[t,(1+t^9)^{-1}]$, mapped to $\bar\SSS$ by $s=1+t^9$, and $\mathcal Y=\tilde X^\flat\times_{\bar\SSS}B$, projective over $B$, with $H$ acting over $B$. By \cref{prop:compactification}~(a), $\mathcal Y\to B$ is smooth outside the closed subset $\Sigma=\{y=0,\ t=0\}$, a section of $\mathcal Y$ over $\OO_F$; so $\mathcal Y$ is smooth over $\OO_F$ outside $\Sigma$. Near $\Sigma$, $\mathcal Y$ is the hypersurface $\Phi=0$ in $\A^4_{\OO_F}$, with coordinates $y_0,y_1,y_2,t$ and \[ \Phi=\textstyle\prod_j(1-y_j^9)-1-t^9=-(y_0^9+y_1^9+y_2^9+t^9)+\sum_{i0$.} Let $\mathcal X$, $Y$, $D$ and $P_\bullet$ be as in \cref{lem:ss-model,lem:hk-model}, and $D_E=D\otimes_{\Q_p}E$. Taking $\chi^m$-parts is exact and commutes with taking $G_{K'}$-invariants, so by \cref{lem:hk-model}~(a) the restriction of $V$ to $G_{K'}$ is semistable and $D_{\mathrm{st},K'}(V)\isom D_E^{\chi^m}$, compatibly with $N$ up to a nonzero factor and with the inertia subgroup $I(K'/F)$. By \cref{lem:dst-descent} it remains to show that $N$ and the inertia subgroup $I(K'/F)$ act trivially on $D_E^{\chi^m}$. \emph{The $\chi^m$-part has a single weight.} Since $Y$ has no triple points, the term $E_1^{-r,2+r}$ of \cref{lem:hk-model}~(b) vanishes for $|r|\ge2$, and for $r=1$ and $r=-1$ it is $H^1_{\mathrm{crys}}(Y^{(2)}/W(k'))(-1)\otimes\Q$ and $H^1_{\mathrm{crys}}(Y^{(2)}/W(k'))\otimes\Q$. The diagonal $\mu_9$ fixes every point of $Y^{(2)}$ (\cref{lem:ss-model}~(c)), so it acts trivially on these terms, while $\chi^m$ is nontrivial on it (\cref{lem:characters}). Hence $(\mathrm{gr}^P_rD_E)^{\chi^m}=0$ for $r\ne0$, that is, $(P_{-1}D_E)^{\chi^m}=0$ and $(P_0D_E)^{\chi^m}=D_E^{\chi^m}$. \emph{$N=0$.} $N(D_E^{\chi^m})=N\big((P_0D_E)^{\chi^m}\big)\subset(P_{-2}D_E)^{\chi^m}=0$. \emph{The inertial type is trivial.} By the previous step $D_E^{\chi^m}=(\mathrm{gr}^P_0D_E)^{\chi^m}$, which by \cref{lem:hk-model}~(b) is, compatibly with $I(K'/F)$, a subquotient of the $\chi^m$-part of $E_1^{0,2}\otimes E=\bigoplus_aH^2_{\mathrm{crys}}(Y_a/W(k'))\otimes_{\Q_p}E$, the sum over the components $Y_a$ of $Y$ (the other summand, from $Y^{(3)}$, is zero). Let $\gamma\in I(K'/F)$. By \cref{lem:ss-model}~(d) the restriction of $\gamma_{\mathcal X}$ to $Y_a$ equals that of an element $\delta_a$ of the diagonal $\mu_3$, so $\gamma$ acts on $(H^2_{\mathrm{crys}}(Y_a/W(k'))\otimes E)^{\chi^m}$ as $\delta_a^*$ does, that is, by $\chi^m(\delta_a)=1$ (\cref{lem:characters}). So $\gamma$ acts trivially on the $\chi^m$-part of $E_1^{0,2}\otimes E$, hence on its subquotient $D_E^{\chi^m}$. Thus $V$ is crystalline over $F$, and therefore over $K_v$. \end{proof} \begin{remark}\label{rem:normalisation} When $p\mid a$ the choice $(u,w)=(b,a)$ puts the variable divisible by $p$ at the point $s=1$, where \cref{prop:crys} applies. With $(u,w)=(a,b)$ the parameter would be close to $\infty$ at $p$. The two choices of $(u,w)$ give the same local data at $\p$: since $3\mid c$, $a\equiv-b\pmod 9$, and $-1$ and $1+9\Z_3$ are cubes in $\Q_3$, so $\kappa_a=\kappa_b$ on $G_{K_\p}$. Apart from the requirement $p\nmid u$, nothing below depends on which of $a,b$ is called $u$, and the parity of $u$ plays no role. \end{remark}