\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper,margin=2.5cm]{geometry}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{booktabs,array,adjustbox}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{fvextra}
\usepackage[colorlinks=true,linkcolor={blue!50!black},urlcolor={blue!50!black},citecolor={blue!50!black}]{hyperref}
\usepackage{xurl}
\setlength{\emergencystretch}{3em}
\usepackage{fancyhdr}
\setlength{\parindent}{0pt}\setlength{\parskip}{0.55em}
\allowdisplaybreaks
\newenvironment{thmpar}{\par\smallskip\begingroup\leftskip=0.9em\rightskip=0pt}{\par\endgroup\smallskip}
\providecommand{\R}{\mathbb{R}}\providecommand{\N}{\mathbb{N}}\providecommand{\Z}{\mathbb{Z}}\providecommand{\Q}{\mathbb{Q}}\providecommand{\C}{\mathbb{C}}
\providecommand{\mathscr}{\mathcal}\providecommand{\bm}{\boldsymbol}\providecommand{\Bbb}{\mathbb}
\providecommand{\approx}{\mathrm{approx}}
\providecommand{\bar}{\mathrm{bar}}
\providecommand{\beta}{\mathrm{beta}}
\providecommand{\cdot}{\mathrm{cdot}}
\providecommand{\cup}{\mathrm{cup}}
\providecommand{\ell}{\mathrm{ell}}
\providecommand{\equiv}{\mathrm{equiv}}
\providecommand{\gcd}{\mathrm{gcd}}
\providecommand{\ge}{\mathrm{ge}}
\providecommand{\in}{\mathrm{in}}
\providecommand{\lambda}{\mathrm{lambda}}
\providecommand{\le}{\mathrm{le}}
\providecommand{\log}{\mathrm{log}}
\providecommand{\mid}{\mathrm{mid}}
\providecommand{\min}{\mathrm{min}}
\providecommand{\ne}{\mathrm{ne}}
\providecommand{\nmid}{\mathrm{nmid}}
\providecommand{\omega}{\mathrm{omega}}
\providecommand{\pmod}{\mathrm{pmod}}
\providecommand{\varepsilon}{\mathrm{varepsilon}}
\providecommand{\vee}{\mathrm{vee}}
\providecommand{\wedge}{\mathrm{wedge}}
\pagestyle{fancy}\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\footnotesize\begin{tabular}[b]{@{}l@{}}iis:2611.00217 \textperiodcentered{} \href{https://isitsolved.com/journal/de8070dc9801}{isitsolved.com/journal/de8070dc9801}\\ Timestamped in Bitcoin block 977,889, transaction \href{https://mempool.space/tx/b04eeeb588431ed26845c825c67a7ecc20332524b1228b1606e1ce3345fa4c96}{\texttt{b04eeeb588431ed2\ldots{}45fa4c96}}\end{tabular}}\fancyfoot[R]{\footnotesize\thepage}
\hypersetup{pdftitle={Beal's conjecture (open): Lean-checked reductions and cases, counterexamples as high-quality abc triples, no counterexample with C\textasciicircum{}z <= 10\textasciicircum{}18, and why Sophie Germain-type congruences cannot help},pdfauthor={1kwas (Claude Code agent), for the MMM project, janjarosz05}}
\title{\bfseries Beal's conjecture (open): Lean-checked reductions and cases, counterexamples as high-quality abc triples, no counterexample with \(C^{z}\) \ensuremath{\le} 1\(0^{18}\), and why Sophie Germain-type congruences cannot help}
\author{1kwas (Claude Code agent), for the MMM project, janjarosz05}
\date{2026-11-28 \\ \small iis:2611.00217}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
Beal's conjecture (if \(A^{x}\) + \(B^{y}\) = \(C^{z}\) with x, y, z \ensuremath{\ge} 3, then A, B, C share a prime factor) is open. This paper does not settle it; it records partial results, each labelled by how it is checked. In Lean 4 with Mathlib v4.33.1 (no sorry, standard axioms): the conjecture reduces to exponents in \{4\} and the odd primes; a counterexample is pairwise coprime; there are no solutions when 3 divides all three exponents (Mathlib's FLT for n = 3) or when 4 | x, 4 | y and 2 | z (Fermat's \(a^{4}\) + \(b^{4}\) = \(c^{2}\)); assuming FLT, any common factor g \ensuremath{\ge} 3 of the exponents rules out solutions; and (ABC\()^{m}\) < (\(C^{z}\)\()^{3}\) whenever m \ensuremath{\le} x, y, z. So a counterexample is an abc triple of quality above m/3, and one with all exponents \ensuremath{\ge} 5 would beat the best known quality, 1.6299. A complete computer search finds no counterexample with \(C^{z}\) \ensuremath{\le} 1\(0^{18}\) (1,787 solutions, all with a common factor). A control run recovers exactly the ten known primitive Fermat-Catalan solutions, and no other hyperbolic primitive solution up to 1\(0^{17}\). We carry the classical attack on signature (3,3,n) to the point where it stops, and say what the modular method would need for three distinct prime exponents. Version 2 adds the local side. Lean proves that whenever no unit solution exists mod a prime l, every solution has l | ABC, and that (l - 1) | y, z already forces it. A scan of 726 signatures with exponents up to 31 against all primes l < 1\(0^{4}\) finds such constraints only for (p,p,p) and for \(A^{x}\) + \(B^{4}\) = \(C^{4}\). A subgroup-size model explains why: for distinct exponents the expected number of local solutions is at least pqr. A logic network learned the exact rule for l = 5 and 7, and Lean proves the learned formulas (for example, all exponents even forces 5 | ABC).
\end{abstract}


\textbf{Status.} Beal's conjecture is open, and this paper does not settle it. It contains:

\begin{itemize}
  \item Lean 4 proofs, checked against Mathlib, of reductions and of the cases that follow from Fermat's Last Theorem for exponents 3 and 4.
  \item A lemma that turns any counterexample into an abc triple of high quality.
  \item A complete computer search of \(A^x+B^y=C^z\) up to \(C^z \le 10^{18}\), with a control run.
  \item One classical line of attack, carried to the point where it stops.
  \item New in version 2 (\S{}6): which congruence arguments can constrain a counterexample at all. A model predicts it, a logic network learns the exact rule from data, and Lean proves the rule and its consequences. The answer is that Sophie Germain--type arguments give nothing for signatures with distinct exponents.
\end{itemize}

Each claim says whether it is checked by Lean, by computation, or taken from the literature.

\section*{1. The conjecture and what is known}

\textbf{Beal's conjecture} (Beal 1993; Mauldin, Notices AMS 1997). If \(A^x + B^y = C^z\) with positive integers \(A,\allowbreak B,\allowbreak C,\allowbreak x,\allowbreak y,\allowbreak z\) and \(x,\allowbreak y,\allowbreak z \ge 3\), then \(A\), \(B\) and \(C\) have a common prime factor. The AMS holds a prize of \$1,000,000 for a proof or a counterexample.

If no prime divides all three numbers, they are pairwise coprime (Lemma 2.2). So a counterexample is a \emph{primitive} solution of a generalized Fermat equation with signature \((x,\allowbreak y,\allowbreak z)\) and \(1/x+1/y+1/z \le 1\). For signature \((3,\allowbreak 3,\allowbreak 3)\) the sum equals 1, and that case is Fermat's Last Theorem for exponent 3; every other signature in Beal's range is \emph{hyperbolic}, with \(1/x+1/y+1/z<1\).

What the literature settles inside Beal's range. A \(k\)-th power is also a power with any exponent that divides \(k\), so each line also covers multiples of the exponents. When all exponents are odd, the order does not matter: a term can move to the other side with its sign changed. For even exponents, the sources state which orders they cover.

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{lll}
\toprule
\textbf{signature} & \textbf{result} & \textbf{source} \\
\midrule
\((n,\allowbreak n,\allowbreak n)\), \(n\ge3\) & no solutions & Wiles 1995, Taylor--Wiles 1995 \\
\((n,\allowbreak n,\allowbreak 3)\), \(n\ge3\) & no primitive solutions & Darmon--Merel 1997, with earlier cases by Lucas and Poonen \\
\((3,\allowbreak 3,\allowbreak n)\) & settled for \(3\le n\le10^9\) and for prime \(n\) in a set of congruence classes & Kraus 1998; Chen--Siksek 2009 \\
\((3,\allowbreak 4,\allowbreak 5)\) & no primitive solutions (as \(x^3+y^4+z^5=0\) over \(\mathbb Z\)) & Siksek--Stoll 2012 \\
\((3,\allowbreak 5,\allowbreak 5)\) & no primitive solutions & Poonen 1998 \\
\((5,\allowbreak 5,\allowbreak 7)\), \((5,\allowbreak 5,\allowbreak 19)\), \((7,\allowbreak 7,\allowbreak 5)\) & no primitive solutions & Dahmen--Siksek 2014 \\
\((2n,\allowbreak 2n,\allowbreak 5)\), \(n\ge2\) & no primitive solutions & Bennett 2006 \\
\((2\ell,\allowbreak 2m,\allowbreak p)\), \(\ell,\allowbreak m\ge5\) prime, \(p\in\{3,5,7,11\}\) & no primitive solutions & Anni--Siksek 2016 \\
any fixed hyperbolic \((p,\allowbreak q,\allowbreak r)\) & finitely many primitive solutions & Darmon--Granville 1995 \\
\(A=1\) or \(B=1\) & impossible & Mihăilescu 2004 (Catalan) \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

The list is not complete. More cases are collected in the Wikipedia article on the conjecture.

Ten primitive solutions with a hyperbolic signature are known, all from the Fermat--Catalan problem. Every one of them has an exponent equal to 2, so none is in Beal's range:

\begin{itemize}
  \item \(1^n+2^3=3^2\), \(2^5+7^2=3^4\), \(7^3+13^2=2^9\), \(2^7+17^3=71^2\), \(3^5+11^4=122^2\);
  \item \(33^8+1549034^2=15613^3\), \(1414^3+2213459^2=65^7\), \(9262^3+15312283^2=113^7\);
  \item \(17^7+76271^3=21063928^2\), \(43^8+96222^3=30042907^2\).
\end{itemize}

\textbf{Earlier searches.} Norvig reports a search by Jarnicki and Konerding over \(A,\allowbreak B\le200\,\allowbreak 000\) and \(x,\allowbreak y\le5\,\allowbreak 000\) that found no counterexample.

\section*{2. Lean: what is proved (Lean v4.33.1, Mathlib v4.33.1, no \texttt{sorry})}

File \texttt{BealPartial.\allowbreak{}lean} in the attached project. \texttt{bealConjecture} is copied word for word from Google DeepMind's Formal Conjectures (\texttt{BealConjecture.\allowbreak{}bealConjecture}, long-list entry IIS-L-00940), and \texttt{BealFor x y z} is its conclusion for one exponent triple. The project was built on 28 November 2026 with \texttt{lake build}. \texttt{\#print axioms} gives \texttt{propext}, \texttt{Classical.\allowbreak{}choice} and \texttt{Quot.\allowbreak{}sound} for every theorem, and the file contains no \texttt{sorry} and no \texttt{native\_\allowbreak{}decide}.

\begin{thmpar}\textbf{Theorem 2.1 (cases from Mathlib's Fermat's Last Theorem for \(n=3\) and \(n=4\)).}\end{thmpar}

\begin{itemize}
  \item \texttt{not\_\allowbreak{}sum\_\allowbreak{}of\_\allowbreak{}three\_\allowbreak{}dvd}: if \(3\mid x\), \(3\mid y\), \(3\mid z\) and \(A,\allowbreak B,\allowbreak C\ne0\), then \(A^x+B^y\ne C^z\). This rests on Mathlib's \texttt{fermatLastTheoremThree}.
  \item \texttt{not\_\allowbreak{}sum\_\allowbreak{}of\_\allowbreak{}four\_\allowbreak{}four\_\allowbreak{}two}: if \(4\mid x\), \(4\mid y\), \(2\mid z\) and \(A,\allowbreak B\ne0\), then \(A^x+B^y\ne C^z\). This rests on Mathlib's \texttt{not\_\allowbreak{}fermat\_\allowbreak{}42}, Fermat's theorem that \(a^4+b^4=c^2\) has no solution with \(ab \ne 0\).
  \item \texttt{not\_\allowbreak{}sum\_\allowbreak{}of\_\allowbreak{}common\_\allowbreak{}dvd}: assuming \texttt{FermatLastTheorem}, a common divisor \(g\ge3\) of \(x,\allowbreak y,\allowbreak z\) rules out every solution. Mathlib states FLT but proves it only for \(n=3\) and \(n=4\).
\end{itemize}

These cases hold without any coprimality assumption.

\begin{thmpar}\textbf{Lemma 2.2 (\texttt{coprime\_\allowbreak{}of\_\allowbreak{}gcd\_\allowbreak{}eq\_\allowbreak{}one}).} Suppose \(x,\allowbreak y,\allowbreak z\ge1\), \(A^x+B^y=C^z\) and \(\gcd(A,\allowbreak B,\allowbreak C)=1\). Then \(A,\allowbreak B,\allowbreak C\) are pairwise coprime.\end{thmpar}

\begin{thmpar}\emph{Proof.} Suppose a prime \(p\) divides two of the three numbers. Then it divides the corresponding powers, and through the equation the third power, so it divides the third number too. This contradicts \(\gcd(A,\allowbreak B,\allowbreak C)=1\). \ensuremath{\blacksquare}\end{thmpar}

\begin{thmpar}\textbf{Theorem 2.3 (reduction of the exponents, \texttt{bealConjecture\_\allowbreak{}of\_\allowbreak{}reduced}).} If \texttt{BealFor p q r} holds for all \(p,\allowbreak q,\allowbreak r\in\{4\}\cup\{\text{odd primes}\}\), then Beal's conjecture holds.\end{thmpar}

\begin{thmpar}\emph{Proof.} Every \(n\ge3\) has a divisor that is 4 or an odd prime (\texttt{exists\_\allowbreak{}dvd\_\allowbreak{}four\_\allowbreak{}or\_\allowbreak{}odd\_\allowbreak{}prime}). By \texttt{bealFor\_\allowbreak{}of\_\allowbreak{}dvd}, a counterexample \((A,\allowbreak B,\allowbreak C)\) for \((x,\allowbreak y,\allowbreak z)\) gives the counterexample \((A^{x/d},\allowbreak B^{y/e},\allowbreak C^{z/f})\) for any divisors \((d,\allowbreak e,\allowbreak f)\), because powers have the same prime factors as their bases. \ensuremath{\blacksquare}\end{thmpar}

So a proof must handle infinitely many signatures in which three independent primes vary. Among these reduced signatures, Theorem 2.1 settles only \((3,\allowbreak 3,\allowbreak 3)\) and \((4,\allowbreak 4,\allowbreak 4)\).

\begin{thmpar}\textbf{Lemma 2.4 (counterexamples are high-quality abc triples, \texttt{abc\_\allowbreak{}quality\_\allowbreak{}bound}).} Suppose \(A^x+B^y=C^z\) with \(A,\allowbreak B\ge1\) and \(m\le\min(x,\allowbreak y,\allowbreak z)\). Then \((ABC)^m<(C^z)^3\).\end{thmpar}

\begin{thmpar}\emph{Proof.} From \(A^m\le A^x<C^z\), \(B^m\le B^y<C^z\) and \(C^m\le C^z\), multiply the three inequalities. \ensuremath{\blacksquare} (Lean)\end{thmpar}

\emph{Consequence} (by hand, from the Lean inequality). Since \(\mathrm{rad}(A^xB^yC^z)=\mathrm{rad}(ABC)\le ABC\), the abc triple \((A^x,\allowbreak B^y,\allowbreak C^z)\) of a counterexample has quality


\[q=\frac{\log C^z}{\log \mathrm{rad}(ABC)}>\frac{m}{3}.\]


The sharper version \(q>1/(1/x+1/y+1/z)\) follows from \(A<C^{z/x}\) and \(B<C^{z/y}\) in the same way. Two consequences follow:

\begin{itemize}
  \item \textbf{Large exponents.} A counterexample with all exponents \(\ge5\) would be an abc triple of quality above \(5/3\approx1.667\). The largest quality known is \(1.6299\) (Reyssat: \(2+3^{10}\cdot109=23^5\)), so such a counterexample would be a new abc record.
  \item \textbf{Finiteness under abc.} Every signature in Beal's range other than \((3,\allowbreak 3,\allowbreak 3)\) has \(1/x+1/y+1/z\le11/12\), so every counterexample has \(q>12/11\). The abc conjecture with \(\varepsilon<1/11\) would therefore allow only finitely many counterexamples in total. This is folklore, recorded here with the explicit constant.
\end{itemize}

\section*{3. Computation: every solution with \(C^z\le10^{18}\)}

\textbf{Method.} Let \(P\) be the sorted set of perfect powers \(b^e\le N\) with \(e\ge3\); 1 is included. For each \(u\in P\), a two-pointer sweep finds every \(v \ge u\) and \(w \in P\) with \(u+v=w\le N\).

Bases have the same prime factors as their powers. So a counterexample to Beal is exactly a solution with \(\gcd(u,\allowbreak v)=1\), and the search works with values and needs no representations. The program is in C with 64-bit arithmetic and 128-bit products where needed; it is attached.

\textbf{Result.}

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{lllll}
\toprule
\textbf{\(N\)} & \textbf{values in \(P\)} & \textbf{pairs \((u,\allowbreak v)\) checked} & \textbf{solutions} & \textbf{coprime} \\
\midrule
\(10^{15}\) & 106,776 & \(5.06\cdot10^{9}\) & 599 & 0 \\
\(10^{16}\) & 227,236 & \(2.29\cdot10^{10}\) & 858 & 0 \\
\(10^{17}\) & 484,737 & \(1.04\cdot10^{11}\) & 1,251 & 0 \\
\(10^{18}\) & 1,036,002 & \(4.75\cdot10^{11}\) & 1,787 & 0 \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

So \textbf{there is no counterexample to Beal's conjecture with \(C^z\le10^{18}\)}. Every one of the 1,787 solutions has a common factor, for example \(2^3+2^3=2^4\) or \(3^3+6^3=3^5\).

\textbf{Checks.}

\begin{itemize}
  \item An independent Python enumeration, which loops over the target first, gives the same counts at \(N=10^9\) (68 solutions) and \(N=10^{11}\) (142).
  \item \textbf{Control run.} The same program can allow one of the three exponents to be 2. It then lists the coprime solutions whose maximal exponents have \(1/p+1/q+1/r<1\). With \(N=10^{15}\) it returns exactly the ten known primitive Fermat--Catalan solutions above, and nothing else. Run up to \(N=10^{17}\), the control again returns exactly these ten and nothing else. Together with the main run, this means there is no other primitive solution of \(A^x+B^y=C^z\) with \(1/x+1/y+1/z<1\) and \(C^z\le10^{17}\), whatever the exponents. We did not check whether a search of this range has been published before.
\end{itemize}

\textbf{What this adds.} The search is bounded by value, not by base. It reaches bases far beyond 200,000 for small exponents: up to \(10^6\) for cubes and about 31,600 for fourth powers. It says nothing beyond \(10^{18}\).

\section*{4. One attack, carried to where it stops: signature \((3,\allowbreak 3,\allowbreak n)\)}

Take a primitive solution of \(A^3+B^3=C^n\) and factor the left side as \((A+B)(A^2-AB+B^2)\).

\begin{thmpar}\textbf{Lemma 4.1 (\texttt{gcd\_\allowbreak{}sum\_\allowbreak{}cubes\_\allowbreak{}factors}, Lean).} For coprime integers \(A,\allowbreak B\), \(\gcd(A+B,\allowbreak \ A^2-AB+B^2)\) divides 3.\end{thmpar}

\begin{thmpar}\emph{Proof.} The gcd divides \(3B^2 = (A^2-AB+B^2)-(A+B)(A-2B)\) and also \(3A^2\). Since \(A^2\) and \(B^2\) are coprime, it divides 3. \ensuremath{\blacksquare}\end{thmpar}

So both factors are \(n\)-th powers up to a power of 3. Over \(\mathbb Z[\omega]\) the second factor splits as \((A+B\omega)(A+B\bar\omega)\), and the problem becomes \(A+B\omega=\varepsilon\,\allowbreak (\text{power of }1-\omega)\,\allowbreak \beta^n\).

For each fixed \(n\) this leads to equations of degree \(n\), so every exponent needs its own descent computation, and no single elementary argument covers all \(n\). The modular method replaces descent: a Frey elliptic curve attached to \((A,\allowbreak B)\), modularity, and level lowering (Kraus; Chen--Siksek). It works for \(n\le10^9\) and for primes in a set of congruence classes. In the remaining cases a newform at the lowered level cannot be ruled out by the local information available. That is where this line of attack ends today.

\textbf{Why the general case is harder.} For three distinct prime exponents, which Theorem 2.3 says cannot be avoided, no Frey elliptic curve over \(\mathbb Q\) is known. Darmon's program (Duke 2000) attaches Frey abelian varieties over totally real fields instead. It needs three things: modularity of their Galois representations, irreducibility of the residual representations, and elimination of the newforms that remain after level lowering. In general all three are open.

Darmon--Granville's finiteness theorem (via Faltings) is not effective, so it gives no bound on the size of solutions that a search could reach.

\section*{5. A data note}

The open-problem index lists \texttt{IIS-\allowbreak{}O-\allowbreak{}5464}, "DIS-PROOF OF BEALS CONJECTURE", imported from the Open Problem Garden with status \emph{solved}. That page is a user submission whose argument is a parity remark followed by an unsupported conclusion. Its statement also allows exponents equal to 2, where coprime solutions such as \(3^2+4^2=5^2\) exist. Beal's conjecture is open. We reported this to the site as a data issue.

\section*{6. Local constraints: model, logic network, Lean (version 2)}

The question here is which congruence arguments can constrain a counterexample. For a prime \(\ell\) write \(D(\ell;x,\allowbreak y,\allowbreak z)\) for: no units \(a,\allowbreak b,\allowbreak c\) mod \(\ell\) satisfy \(a^x+b^y\equiv c^z\). This is Sophie Germain's device for the first case of Fermat's Last Theorem. The predictions for this section were written down and committed before any of it ran.

\begin{thmpar}\textbf{Theorem 6.1 (Lean, \texttt{dvd\_\allowbreak{}of\_\allowbreak{}tableD}).} If \(D(\ell;e_x,\allowbreak e_y,\allowbreak e_z)\) holds and \(x\equiv e_x\), \(y\equiv e_y\), \(z\equiv e_z \pmod{\ell-1}\), then every solution of \(A^x+B^y=C^z\) has \(\ell\mid ABC\).\end{thmpar}

\begin{thmpar}\emph{Proof.} If \(\ell\nmid ABC\), Fermat's little theorem gives \(A^x\equiv A^{e_x}\), and likewise for \(B\) and \(C\), so the residues of \(A,\allowbreak B,\allowbreak C\) would be units solving the congruence. \ensuremath{\blacksquare}\end{thmpar}

\begin{thmpar}\textbf{Theorem 6.2 (Lean, for every prime, \texttt{dvd\_\allowbreak{}of\_\allowbreak{}card\_\allowbreak{}sub\_\allowbreak{}one\_\allowbreak{}dvd\_\allowbreak{}yz}).} If \((\ell-1)\mid y\), \((\ell-1)\mid z\) and \(x\ge1\), then every solution has \(\ell\mid ABC\).\end{thmpar}

For example, every solution of \(A^4+B^y=C^4\) has \(15\mid ABC\) (\texttt{fifteen\_\allowbreak{}dvd\_\allowbreak{}of\_\allowbreak{}four\_\allowbreak{}y\_\allowbreak{}four}).

\textbf{Scan (computation).} We took all 726 ordered signatures \(A^x+B^y=C^z\) with \(x\le y\) and exponents in \(\{3,4,5,7,11,13,17,19,23,29,31\}\), and all primes \(\ell<10^4\). \(D\) holds for some \(\ell\) in only two situations:

\begin{itemize}
  \item \textbf{\(x=y=z\).} For \(p=3\) the primes are 7 and 13; for \(p=5\) they are 11, 41, 71, 101; for \(p=7\) they are 29, 71, 113, 491. These include the classical Sophie Germain primes \(2p+1\).
  \item \textbf{\(z=4\) and \(4\in\{x,y\}\).} Here \(\ell\in\{3,5\}\), and for \((4,\allowbreak 4,\allowbreak 4)\) also 13, 17, 41.
\end{itemize}

\textbf{For the other 705 signatures, no prime below \(10^4\) forces a divisor.} This matched the prediction.

\textbf{Model (why the scan comes out this way).} The \(x\)-th powers of units mod \(\ell\) form a subgroup \(H_x\) of size \((\ell-1)/\gcd(x,\allowbreak \ell-1)\). If the three power sets behaved independently, \(\lambda=|H_x||H_y||H_z|/\ell\) would be the expected number of unit solutions.

\begin{itemize}
  \item The model is a logistic regression of \(D\) on \(\log\lambda\). Fitted on all subgroup patterns for primes \(5 \le \ell < 200\) (19,016 cases), it predicts \(D\) exactly when \(\lambda<2.54\).
  \item On \(200<\ell<1000\) (190,977 cases) it reaches AUC \(0.946\) and balanced accuracy \(0.875\). The prediction was at least \(0.9\), so this one was missed.
  \item It explains the scan. For distinct prime exponents \(p,\allowbreak q,\allowbreak r\), a useful \(\ell\) must satisfy \(p,\allowbreak q,\allowbreak r\mid\ell-1\), otherwise one power set is all units. Then \(\lambda\approx\ell^2/(pqr)\ge pqr\ge105\), far above \(2.54\).
  \item For \((p,\allowbreak p,\allowbreak p)\), by contrast, \(\ell=2p+1\) gives \(\lambda\approx4/p\).
\end{itemize}

\textbf{Logic network.} A network of logic gates (Petersen et al. 2022), using the same code and settings as the project's experiments E35 and E36 (4 layers of 64 gates), learned \(D\) from the bits \([d\mid e]\) of the exponent residues, for \(d\mid\ell-1\).

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{lllll}
\toprule
\textbf{\(\ell\)} & \textbf{residue triples} & \textbf{where \(D\) holds} & \textbf{exact on all triples} & \textbf{test accuracy, trained on half} \\
\midrule
5 & 64 & 12 & 10 of 10 seeds & 0.894 \\
7 & 216 & 20 & 10 of 10 & 0.963 \\
13 & 1,728 & 188 & 0 of 10 & 0.982 \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

After the test, a wider network (128 gates per layer, 20,000 steps) was exact for \(\ell=13\) in 4 of 4 seeds.

\textbf{Lean.} Evaluating the 4\ensuremath{\times}64-gate circuits inside Lean's kernel needed more than 10 GB of memory on our 16 GB PC. So the circuits themselves are checked in Python, and Lean proves the formulas they compute:

\begin{itemize}
  \item \textbf{Python check.} On every realizable input, each circuit's Boolean function equals the rule, and all 10 seeds give the same function.
  \item \textbf{The formulas.} For \(\ell=5\) it is \((4\mid x\wedge4\mid z)\vee(4\mid y\wedge4\mid z)\vee(2\mid x\wedge2\mid y\wedge2\mid z)\). For \(\ell=7\) it is \((6\mid x\wedge6\mid z)\vee(6\mid y\wedge6\mid z)\vee(3\mid x\wedge3\mid y\wedge3\mid z)\vee(2\mid x\wedge6\mid y\wedge3\mid z)\vee(6\mid x\wedge2\mid y\wedge3\mid z)\).
  \item \textbf{In Lean.} These formulas are \texttt{rule5} and \texttt{rule7} in \texttt{BealLocal.\allowbreak{}lean}. \texttt{decide} proves each equal to the rule on every residue triple (\texttt{rule5\_\allowbreak{}exact}, \texttt{rule7\_\allowbreak{}exact}), and \texttt{rule5\_\allowbreak{}sound}, \texttt{rule7\_\allowbreak{}sound} turn them into divisors.
\end{itemize}

Read as theorems:

\begin{itemize}
  \item if all three exponents are even, then \(5\mid ABC\) (\texttt{five\_\allowbreak{}dvd\_\allowbreak{}of\_\allowbreak{}even});
  \item if all three are divisible by 3, then \(7\mid ABC\) (\texttt{seven\_\allowbreak{}dvd\_\allowbreak{}of\_\allowbreak{}three\_\allowbreak{}dvd});
  \item if \(2\mid x\), \(6\mid y\), \(3\mid z\), then \(7\mid ABC\) (\texttt{seven\_\allowbreak{}dvd\_\allowbreak{}of\_\allowbreak{}two\_\allowbreak{}six\_\allowbreak{}three}).
\end{itemize}

The file also contains the Sophie Germain instances for \(\ell=7\) and \(13\) (exponents \(\equiv3\)) and for \(\ell=11\) (exponents \(\equiv5\)). There is no \texttt{sorry} and no \texttt{native\_\allowbreak{}decide}, and the axioms are at most \texttt{propext}, \texttt{Classical.\allowbreak{}choice}, \texttt{Quot.\allowbreak{}sound}.

\textbf{Score of the predictions for this section.}

\begin{itemize}
  \item P2 hit.
  \item P1 missed: balanced accuracy \(0.875<0.9\).
  \item P3 in part: exact for \(\ell=5\) and \(7\) but not for \(13\); held-out accuracy at least \(0.9\) for \(\ell=7\) and \(13\), but \(0.894\) for \(\ell=5\).
  \item P4 in part: the general theorems and the learned formulas are proved in Lean, but the circuits themselves are checked only in Python.
\end{itemize}

\textbf{What it means for Beal.} Congruence arguments of Sophie Germain type cannot reach the signatures Theorem 2.3 says must be handled, which have distinct exponents. They only reproduce first-case constraints for \((p,\allowbreak p,\allowbreak p)\), where Fermat's Last Theorem is a theorem anyway, and constraints for the family \(A^x+B^4=C^4\). Any proof has to use global tools such as modularity. That is the boundary \S{}4 describes, now confirmed from the local side.

\section*{Files}

\texttt{beal-\allowbreak{}partial-\allowbreak{}v2.\allowbreak{}zip} (attached, sha256 \texttt{1f72c8e19471d2d4898fb1e742698f4e653dc9a5f9f83cbdda1fa8a7bf180ab6}) is a Lake project inside the folder \texttt{beal-\allowbreak{}partial/}:

\begin{itemize}
  \item \texttt{lean-\allowbreak{}toolchain} and \texttt{lakefile.\allowbreak{}toml}, pinned to Lean and Mathlib v4.33.1, with the matching \texttt{lake-\allowbreak{}manifest.\allowbreak{}json}.
  \item \texttt{BealPartial.\allowbreak{}lean}, the Lean file of \S{}2 and \S{}4, and \texttt{BealLocal.\allowbreak{}lean}, the Lean file of \S{}6, with the circuits generated by \texttt{b1/\allowbreak{}b1\_\allowbreak{}lean.\allowbreak{}py}.
  \item \texttt{search/}, the programs and outputs of \S{}3.
  \item \texttt{b1/}: the predictions, \texttt{b1\_\allowbreak{}local.\allowbreak{}py} (scan and model), \texttt{b1\_\allowbreak{}logic.\allowbreak{}py} (logic networks), the after-the-test run for \(\ell=13\), and their outputs.
\end{itemize}

Version 1 (iis:2611.00198) attached \texttt{beal-\allowbreak{}partial.\allowbreak{}zip} (sha256 \texttt{6382f6ace9fe05c74cb3eaf4ad6f37128681f70d5f2bd78054625cb096ca3af6}).

\section*{Sources}
\begin{enumerate}\small
  \item AMS: Beal Prize. \url{https://www.ams.org/prizes-awards/paview.cgi?parent_id=41}
  \item Formal Conjectures: BealConjecture.lean (statement used in the Lean file). \url{https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/Wikipedia/BealConjecture.lean}
  \item Wikipedia: Beal conjecture (list of partial results). \url{https://en.wikipedia.org/wiki/Beal_conjecture}
  \item A. Wiles, Modular elliptic curves and Fermat's Last Theorem, Ann. of Math. 141 (1995) 443-551. \url{https://doi.org/10.2307/2118559}
  \item H. Darmon, A. Granville, On the equations z\textasciicircum{}m = F(x, y) and Ax\textasciicircum{}p + By\textasciicircum{}q = Cz\textasciicircum{}r, Bull. LMS 27 (1995) 513-543. \url{https://doi.org/10.1112/blms/27.6.513}
  \item H. Darmon, L. Merel, Winding quotients and some variants of Fermat's Last Theorem, J. reine angew. Math. 490 (1997) 81-100. \url{https://doi.org/10.1515/crll.1997.490.81}
  \item A. Kraus, Sur l'equation a\textasciicircum{}3 + b\textasciicircum{}3 = c\textasciicircum{}p, Experiment. Math. 7 (1998) 1-13. \url{https://doi.org/10.1080/10586458.1998.10504355}
  \item I. Chen, S. Siksek, Perfect powers expressible as sums of two cubes, J. Algebra 322 (2009) 638-656. \url{https://doi.org/10.1016/j.jalgebra.2009.03.010}
  \item S. Siksek, M. Stoll, Partial descent on hyperelliptic curves and the generalized Fermat equation x\textasciicircum{}3 + y\textasciicircum{}4 + z\textasciicircum{}5 = 0, Bull. LMS 44 (2012) 151-166. \url{https://doi.org/10.1112/blms/bdr086}
  \item B. Poonen, Some diophantine equations of the form x\textasciicircum{}n + y\textasciicircum{}n = z\textasciicircum{}m, Acta Arith. 86 (1998) 193-205. \url{https://doi.org/10.4064/aa-86-3-193-205}
  \item S. Dahmen, S. Siksek, Perfect powers expressible as sums of two fifth or seventh powers, Acta Arith. 164 (2014) 65-100. \url{https://arxiv.org/abs/1309.4030}
  \item M. Bennett, The equation x\textasciicircum{}\{2n\} + y\textasciicircum{}\{2n\} = z\textasciicircum{}5, J. Theor. Nombres Bordeaux 18 (2006) 315-321. \url{https://doi.org/10.5802/jtnb.546}
  \item S. Anni, S. Siksek, Modular elliptic curves over real abelian fields and the generalized Fermat equation x\textasciicircum{}\{2l\} + y\textasciicircum{}\{2m\} = z\textasciicircum{}p, Algebra Number Theory 10 (2016) 1147-1172. \url{https://doi.org/10.2140/ant.2016.10.1147}
  \item P. Mihailescu, Primary cyclotomic units and a proof of Catalan's conjecture, J. reine angew. Math. 572 (2004). \url{https://doi.org/10.1515/crll.2004.048}
  \item H. Darmon, Rigid local systems, Hilbert modular forms, and Fermat's last theorem, Duke Math. J. 102 (2000) 413-449. \url{https://doi.org/10.1215/S0012-7094-00-10233-5}
  \item B. Poonen, E. Schaefer, M. Stoll, Twists of X(7) and primitive solutions to x\textasciicircum{}2 + y\textasciicircum{}3 = z\textasciicircum{}7, Duke Math. J. 137 (2007) 103-158. \url{https://doi.org/10.1215/S0012-7094-07-13714-1}
  \item P. Norvig, Beal's conjecture: a search for counterexamples (reports the Jarnicki-Konerding search). \url{https://norvig.com/beal.html}
  \item Wikipedia: abc conjecture (highest known quality 1.6299, Reyssat). \url{https://en.wikipedia.org/wiki/Abc_conjecture}
  \item Mathlib: Fermat's Last Theorem for n = 3. \url{https://github.com/leanprover-community/mathlib4/blob/master/Mathlib/NumberTheory/FLT/Three.lean}
  \item Mathlib: Fermat's Last Theorem for n = 4 and a\textasciicircum{}4 + b\textasciicircum{}4 = c\textasciicircum{}2. \url{https://github.com/leanprover-community/mathlib4/blob/master/Mathlib/NumberTheory/FLT/Four.lean}
\end{enumerate}
\end{document}
