% AUTO-GENERATED AMS SINGLE-COLUMN EDITION by ouropen.ams % Derived from paper.toml + source manuscript — edit those and re-run `ouropen ams` or `ouropen check -s`. \documentclass[11pt,reqno]{amsart} \usepackage[margin=0.90in,footskip=24pt]{geometry} \raggedbottom \emergencystretch=3.0em \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage{booktabs,array,multirow,tabularx,longtable} \usepackage{graphicx} \usepackage[table]{xcolor} \usepackage{enumitem} \usepackage{fancyvrb} \usepackage{microtype} \usepackage{placeins} \usepackage{flafter} \usepackage{needspace} \usepackage{etoolbox} \usepackage[ colorlinks=true, linkcolor=navy, citecolor=navy, urlcolor=navy, pdftitle={Two 37-Digit 20-Base Strong Pseudoprimes: Kernel-Verified Certificates, Order Criteria, and Exact Sieve Laws}, pdfauthor={Tyler B. Hughes}, pdfsubject={MSC 2020: 11Y11, 11A51, 11Y16}, pdfkeywords={strong pseudoprimes, Miller--Rabin primality test, Pratt certificates, Jacobsthal character sums, Lean 4 formalization} ]{hyperref} \pdfstringdefDisableCommands{\def\allowbreak{}} \def\UrlBreaks{\do\/\do-\do.} \def\UrlNoBreaks{\do\:} \definecolor{navy}{HTML}{1B4F72} \definecolor{rulegray}{HTML}{C6D2DC} \definecolor{codebg}{HTML}{F7F9FB} \providecolor{hcsNavy}{HTML}{1B4F72} \providecolor{hcsLinkBlue}{HTML}{0055CC} \providecolor{hcsDarkNavy}{HTML}{163A54} \providecolor{hcsGold}{HTML}{D49B1A} \providecolor{hcsAmberInk}{HTML}{8A5A00} \providecolor{hcsAmberBg}{HTML}{FDF6E7} \providecolor{hcsGreen}{HTML}{1E6B45} \providecolor{hcsGreenBg}{HTML}{EAF5EF} \providecolor{hcsRed}{HTML}{A62626} \providecolor{hcsRedBg}{HTML}{FCEAEA} \providecolor{hcsTint}{HTML}{EDF3F7} \providecolor{hcsPanel}{HTML}{F2F4F6} \providecolor{hcsRule}{HTML}{A6BCCB} \providecolor{hcsMuted}{HTML}{4A5568} \providecolor{hcsInk}{HTML}{1A1A1A} % Clean AMS-style section headings without \MakeUppercase (preserves lowercase math $n$) \makeatletter \renewcommand{\section}{\@startsection{section}{1}{\z@}% {2.2ex \@plus 0.6ex \@minus 0.2ex}% {1.1ex \@plus 0.2ex}% {\normalfont\large\bfseries}} \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}% {1.6ex \@plus 0.4ex \@minus 0.2ex}% {0.7ex \@plus 0.2ex}% {\normalfont\normalsize\bfseries}} \renewcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% {1.2ex \@plus 0.3ex \@minus 0.1ex}% {-0.6em}% {\normalfont\normalsize\bfseries}} % Allow clean line breaks after commas in long inline math lists (braced `{,}` thousands separators stay intact) % `\relax` terminates TeX integer scanning after `\penalty200` so trailing digits `0`..`9` are never absorbed! % Restore normal comma mathcode inside fancyvrb environments so math-mode commas in `label=` never recurse. \mathchardef\ouropen@comma=\mathcode`\, \mathcode`\,="8000 {\catcode`\,=\active \gdef,{\ouropen@comma\penalty200\relax}} \AtBeginEnvironment{Verbatim}{\mathcode`\,=\ouropen@comma} \AtBeginEnvironment{BVerbatim}{\mathcode`\,=\ouropen@comma} \AtBeginEnvironment{LVerbatim}{\mathcode`\,=\ouropen@comma} \AtBeginEnvironment{SaveVerbatim}{\mathcode`\,=\ouropen@comma} \apptocmd{\FV@CatCodes}{\mathcode`\,=\ouropen@comma}{}{} % Prevent theorems/propositions/lemmas from starting orphaned with 1-2 lines at page bottom \AtBeginEnvironment{theorem}{\needspace{5\baselineskip}} \AtBeginEnvironment{proposition}{\needspace{5\baselineskip}} \AtBeginEnvironment{lemma}{\needspace{5\baselineskip}} \AtBeginEnvironment{corollary}{\needspace{5\baselineskip}} \AtBeginEnvironment{conjecture}{\needspace{5\baselineskip}} \AtBeginEnvironment{mainresult}{\needspace{5\baselineskip}} % Match amsart small-caps TABLE N. caption style on longtable environments \def\LT@makecaption#1#2#3{% \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{% \centering\footnotesize\textsc{#1{#2.}}\enspace #3\endgraf\vskip\baselineskip}% \hss}}} \makeatother % Compatibility shims for hughes-article.cls layout helpers \newenvironment{highlightbox}{\par\medskip\noindent\ignorespaces}{\par\medskip} \newenvironment{wideeq}{}{} \newenvironment{keyresult}[1][]{\par\medskip\noindent\ifstrempty{#1}{}{\textbf{#1.}\ }\ignorespaces}{\par\medskip} \newenvironment{calloutbox}[1][]{\par\medskip\noindent\ifstrempty{#1}{}{\textbf{#1.}\ }\ignorespaces}{\par\medskip} \newenvironment{scopebox}[1][]{\par\medskip\noindent\ifstrempty{#1}{}{\textbf{#1.}\ }\ignorespaces}{\par\medskip} \newcommand{\hcstoprule}{\toprule} \newcommand{\hcsbottomrule}{\bottomrule} \newcommand{\tablesubhead}[1]{\textbf{#1}} \newcommand{\tierlean}{Lean kernel} \newcommand{\tierwritten}{Written} \newcommand{\tierexternal}{External} \newcommand{\tiercert}{Cert-only} \newcommand{\tiercertonly}{Cert-only} \newcommand{\tiernative}{Native-decide} \newcommand{\tieropen}{Open} \newcommand{\statuspass}[1]{\textsf{#1}} \newcommand{\statuswarn}[1]{\textsf{#1}} \newcommand{\statusfail}[1]{\textsf{#1}} \newcommand{\statusna}[1]{\textsf{#1}} \newcommand{\auditpass}[1]{\textsf{#1}} \newcommand{\auditwarn}[1]{\textsf{#1}} \newcommand{\auditfail}[1]{\textsf{#1}} \newcommand{\auditna}[1]{\textsf{#1}} \providecommand{\datesbox}[2]{} \providecommand{\ouropenabstract}{} % Theorem environments \theoremstyle{plain} \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{conjecture}[theorem]{Conjecture} \newtheorem{claim}[theorem]{Claim} \newtheorem{observation}[theorem]{Observation} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{example}[theorem]{Example} \newtheorem{problem}[theorem]{Open Problem} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \newtheorem{note}[theorem]{Note} \theoremstyle{plain} \newtheorem{applemma}{Lemma}[section] % User mathematical macros carried over from primary manuscript \DeclareMathOperator{\ord}{ord} \newcommand{\leg}[2]{\left(\frac{#1}{#2}\right)} \title[Two 37-Digit 20-Base Strong Pseudoprimes]{Two 37-Digit 20-Base Strong Pseudoprimes: Kernel-Verified Certificates, Order Criteria, and Exact Sieve Laws} \author{Tyler B.\ Hughes} \address{Independent Researcher, United States} \date{November 28, 2026} \subjclass[2020]{11Y11, 11A51, 11Y16} \keywords{strong pseudoprimes, Miller--Rabin primality test, Pratt certificates, Jacobsthal character sums, Lean~4 formalization} \thanks{AI-assisted preprint: AI systems generated and checked this work; no human mathematician has yet refereed the proof. $6$ of $8$ main results are formally verified in pure-kernel Lean~4 with zero \texttt{sorry}, zero \texttt{native\_decide}, and standard axioms only; see Section~\ref{sec:verif}, the companion verification dossier, and \url{https://mathdiscoveries.org/results/spsp-psi20}. Independent kernel replay was not run, and the statement audit is an automated check only.} \begin{document} \begin{abstract} The first twelve prime bases suffice for every unsigned 64-bit integer, whereas the first twenty fail inside 128 bits. We exhibit two 37-digit counterexamples $n_1 = p_1(2p_1-1)$ (121 bits) and $n_2 = p_2(2p_2-1)$ (123 bits) in Zhang's $K_2$ family, each passing the Miller--Rabin strong test through base $71$ and failing at $73$ while passing Fermat at $73$, giving the unconditional bound $\psi_{20} \le n_1 < 2^{121}$. All four Pratt primality proofs, all twenty-one strong tests, the $K_2$ order and Fermat criteria, the exact strong-liar share $(1 + 2\cdot 4^{-e})/6$ and base-2 cap $3/16$, the sieve residue count $A(b)$, the exact $b\bmod 8$ Jacobsthal character-sum cell split, and the general $A/B$ semiprime quadratic-residue law are proved inside the Lean~4 pure kernel. An external GMP sieve extending Zhang's $K_2$ search from $10^{36}$ to $10^{37}$ across $1{,}024$ shards ($64$ rechecked) returns exactly $n_1$ and $n_2$, while Zhang's unrestricted conjecture $\psi_t = \psi'_t$ ($t \ge 12$) remains open. Companion result page: \url{https://mathdiscoveries.org/results/spsp-psi20}. \end{abstract} \maketitle % ============================================================================= \section{Introduction and Main Results} % ============================================================================= When a composite integer passes a deterministic strong probable-prime test to a fixed set of prime bases, the least such composite marks the exact boundary beyond which the test ceases to be decisive. Setting aside integers below $2$ and prime divisors of the chosen bases (checked directly), Sorenson and Webster proved that the threshold $\psi_{12}$ for the first twelve prime bases exceeds $2^{64}$~\cite{sorensonwebster2017}. A natural computational question follows immediately: do eight additional prime bases suffice for signed or unsigned 128-bit arithmetic? Two explicit semiprime factorizations settle the question in the negative. \begin{highlightbox} \begin{theorem}[Two 37-Digit 20-Base Strong Pseudoprimes]\label{thm:main} For each prime $p$ listed below, $q = 2p - 1$ is also prime, the product $n = pq \in (10^{36}, 10^{37}]$ is a strong pseudoprime to every one of the first twenty prime bases $2, 3, \dots, 71$, fails the strong test at the 21st prime $73$, and still passes the Fermat test $73^{n-1} \equiv 1 \pmod{n}$: \begin{align*} p_1 &= 1113813905784150541, \\ n_1 &= 2481162833436289154832260656117034821 \\ &\qquad (2^{120} < n_1 < 2^{121}), \\ p_2 &= 1726253494836549181, \\ n_2 &= 5959902256870799858089729225626992341 \\ &\qquad (2^{122} < n_2 < 2^{123}). \end{align*} Consequently, $\psi_{20} \le n_1 < 2^{121}$ and $\psi_k \le n_1$ for every $k \le 20$. \end{theorem} \end{highlightbox} For both witnesses, $n - 1 = 4d$ with $d$ odd, so the strong test to base $b$ accepts precisely when $b^d \equiv 1$, $b^d \equiv -1$, or $b^{2d} \equiv -1 \pmod{n}$. The standalone Python check below verifies both compositeness factorizations and all twenty-one base tests verbatim (executed by \texttt{recompute.py}). \par\vspace{12pt}\noindent\begin{minipage}{\linewidth}\vspace{4pt} \begin{Verbatim}[ fontsize=\footnotesize, frame=lines, framesep=6pt, framerule=0.5pt, label={{\footnotesize\bfseries\ Box 1: Instant Witness Check (10 lines, verified verbatim by recompute.py)\ }}, labelposition=topline ] bases = (2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71) for p in (1113813905784150541, 1726253494836549181): n = p * (2*p - 1) d, rem = divmod(n - 1, 4) assert rem == 0 and d % 2 == 1 and 1 < p < n < 2**127 def passes(b): x = pow(b, d, n) return x in (1, n-1) or x*x % n == n-1 assert all(passes(b) for b in bases) assert not passes(73) and pow(73, n-1, n) == 1 \end{Verbatim} \end{minipage}\par\vspace{8pt} All six proved mathematical theorems in this manuscript (Theorems~\ref{thm:main}, \ref{thm:orders}, \ref{thm:jacobsthal} and Propositions~\ref{prop:liar-share}, \ref{prop:sieve-count}, \ref{prop:kgen}) are formalized inside the pure Lean~4 kernel (\texttt{SpspPsi20/}, Section~\ref{sec:trust-boundary}). Only the two large-scale external C sieve enumerations (Propositions~\ref{prop:enum} and \ref{prop:companion}) sit outside Lean, and Zhang's unrestricted conjecture (Conjecture~\ref{conj:zhang}) is explicitly open. Figure~\ref{fig:discovery} summarizes the sieve counts and bit-length positions of $n_1$ and $n_2$ relative to the 128-bit cutoffs and Bleichenbacher's 1996 witness~\cite{bleichenbacher1996}. \begin{figure}[t] \centering \includegraphics[width=0.90\textwidth]{figures/discovery_architecture.png} \caption{Search attrition and witness sizes in $K_2 = \{p(2p-1) : p, 2p-1\text{ prime}\}$. Top: horizontal log-scale counts across the interval $10^{36} < p(2p-1) \le 10^{37}$, from $1{,}528{,}961{,}196{,}313{,}242{,}172$ candidate integers $p$ through wheel residue filters ($52{,}613{,}846{,}073$), certified prime pairs ($1{,}809{,}514{,}692$), and the exact $2$ twenty-base survivors. Bottom: bit-length ruler showing $n_1$ (121 bits) and $n_2$ (123 bits) below both signed ($2^{127}$) and unsigned ($2^{128}$) 128-bit cutoffs, alongside Bleichenbacher's 41-digit (135-bit) 1996 witness~\cite{bleichenbacher1996}. Each witness carries an unconditional Lean~4 Pratt and strong-test proof; only the total count $2$ in the band relies on the external enumeration.} \label{fig:discovery} \end{figure} % ============================================================================= \section{Order Criteria and Strong-Liar Density in $K_2$}\label{sec:orders} % ============================================================================= Write an odd integer $n \ge 3$ as $n - 1 = 2^s d$ with $d$ odd, and suppose $\gcd(b, n) = 1$. The Miller--Rabin strong test accepts $n$ to base $b$ when $b^d \equiv 1 \pmod{n}$ or $b^{2^i d} \equiv -1 \pmod{n}$ for some $0 \le i < s$. For any odd prime $r$ with $\gcd(b, r) = 1$, write $t_r(b) = v_2(\ord_r b)$ for the 2-adic valuation of the multiplicative order of $b \bmod r$, and write $j_r(b) = v_2(r-1) - t_r(b)$ for the maximal $j \le v_2(r-1)$ such that $b^{(r-1)/2^j} \equiv 1 \pmod{r}$. Jaeschke established the 2-adic signature criterion for squarefree integers~\cite[Proposition~1]{jaeschke1993} and the odd-base Fermat criterion~\cite[Proposition~4]{jaeschke1993} that Theorem~\ref{thm:orders} specializes to $K_2$; Arnault~\cite[Lemma~3.1, p.~358]{arnault1995mcom} states part~(1) for $K_2$ numbers. \begin{theorem}[Fermat and Strong-Test Order Criteria for $K_2$]\label{thm:orders} Let $p$ and $q = 2p - 1$ be odd primes, set $n = pq$, and suppose $\gcd(b, n) = 1$. Then: \begin{enumerate}[leftmargin=1.5em,itemsep=2pt] \item $b^{n-1} \equiv 1 \pmod{n}$ if and only if $\leg{b}{q} = 1$; \item $n$ is a strong probable prime to base $b$ if and only if $v_2(\ord_p b) = v_2(\ord_q b)$, equivalently $j_q(b) = j_p(b) + 1$. \end{enumerate} \end{theorem} \begin{proof} Write $p - 1 = 2^e u$ with $u$ odd. Then $q - 1 = 2^{e+1} u$ and $n - 1 = (2p + 1)(p - 1) = 2^e (2p + 1) u$. Modulo $p$, Fermat's congruence holds for every unit $b$. Modulo $q$, Euler's criterion gives $b^{p-1} = b^{(q-1)/2} \equiv \leg{b}{q} \pmod{q}$, and raising to the odd power $2p+1$ preserves this sign, establishing (1) by the Chinese remainder theorem. For (2), the odd part of $n - 1$ is $d = (2p + 1) u$, which strips the odd parts of both $\ord_p b$ and $\ord_q b$. Thus $b^d \bmod p$ has order $2^{t_p(b)}$ and $b^d \bmod q$ has order $2^{t_q(b)}$. If $t_p(b) = t_q(b) = 0$, then $b^d \equiv 1 \pmod{pq}$. If $t_p(b) = t_q(b) = t \ge 1$, then $t \le e$ (since $2^t \mid p - 1 = 2^e u$), so squaring $t - 1 < e$ times reaches $-1$ simultaneously modulo $p$ and modulo $q$. Conversely, if $t_p(b) \ne t_q(b)$, one residue reaches $1$ strictly before the other, so they can never equal $-1$ at the same squaring step. Finally, $j_q(b) - j_p(b) = (e + 1 - t_q(b)) - (e - t_p(b)) = 1 + t_p(b) - t_q(b)$. \end{proof} Figure~\ref{fig:orders} plots $(t_p(b), t_q(b))$ across all twenty-one prime bases for both $n_1$ and $n_2$. Every base through $71$ lands on the diagonal $t_p = t_q$; at base $73$, the valuations separate to $(1, 2)$ for $n_1$ and $(2, 1)$ for $n_2$ while still satisfying $t_q(73) < 3 = v_2(q - 1)$, explaining why both witnesses pass the Fermat test at $73$ yet fail its strong test. \begin{figure}[htb] \centering \includegraphics[width=0.98\linewidth]{figures/matching_orders.png} \caption{Exact counts of prime bases $b \le 71$ in each $(v_2(\ord_p b), v_2(\ord_q b))$ cell (all 20 lie on the diagonal), together with the crimson cross locating base $73$ at $(1, 2)$ for $n_1$ and $(2, 1)$ for $n_2$. Both crosses lie below $v_2(q-1) = 3$, so $73$ remains a quadratic residue modulo $q$ and passes the Fermat test on both composites.} \label{fig:orders} \end{figure} Counting unit classes in $(\mathbb{Z}/p\mathbb{Z})^\times \times (\mathbb{Z}/q\mathbb{Z})^\times$ by their 2-primary order yields the exact strong-liar fraction and base-2 congruence restrictions~\cite{jaeschke1993,zhang2007}. These are known: part~(1) is an instance of Monier's count of Miller--Rabin liars~\cite[Proposition~1, p.~101]{monier1980}, and Damg\r{a}rd, Landrock, and Pomerance give it for these $n$ in the proof of their Theorem~4(i)~\cite[pp.~186--187]{dlp1993}; the quarter share in part~(2) is (1.5) of Zhang and Tang~\cite[p.~2087]{zhangtang2003} and (1.6) of Zhang~\cite[p.~2097]{zhang2007}; and Zhang and Tang's Table~6~\cite[p.~2096]{zhangtang2003} gives the maximum $3/16$ of part~(3) for $K_2$ numbers that are strong pseudoprimes to base $2$. The base-2 restriction uses Jaeschke's remark~\cite[p.~919]{jaeschke1993}. We include a short proof. \begin{proposition}[Strong-Liar Density and Base-2 Cap]\label{prop:liar-share} Let $p$ and $q = 2p - 1$ be odd primes, $n = pq$, and $e = v_2(p - 1)$. Let $L(n)$ be the number of unit classes $b \in (\mathbb{Z}/n\mathbb{Z})^\times$ for which $n$ is a strong probable prime to base $b$. Then: \begin{enumerate}[leftmargin=1.5em,itemsep=2pt] \item $L(n) / \varphi(n) = (1 + 2\cdot 4^{-e}) / 6$; \item if $p \equiv 3 \pmod{4}$ (so $e = 1$), then $L(n)/\varphi(n) = 1/4$ and $n$ fails the strong test to base $2$; \item if $n$ passes the strong test to base $2$, then $p \equiv 1 \pmod{4}$, $q \equiv 1 \pmod{8}$, $n \equiv 1 \pmod{4}$, and $L(n)/\varphi(n) \le 3/16$, with equality at $e = 2$. \end{enumerate} \end{proposition} \begin{proof} Write $p - 1 = 2^e u$ with $u$ odd, so $q - 1 = 2^{e+1} u$. In any cyclic group of order $2^E u$, exactly $u$ elements have $v_2(\ord) = 0$ and $2^{k-1} u$ elements have $v_2(\ord) = k$ for each $1 \le k \le E$. By the Chinese remainder theorem and Theorem~\ref{thm:orders}, \[ L(n) = u^2 + \sum_{k=1}^{e} (2^{k-1} u)^2 = u^2 \left(1 + \frac{4^e - 1}{3}\right) = \frac{4^e + 2}{3} u^2. \] Dividing by $\varphi(n) = (p-1)(q-1) = 2^{2e+1} u^2$ gives $(4^e + 2)/(6 \cdot 4^e) = (1 + 2\cdot 4^{-e})/6$. When $p \equiv 3 \pmod{4}$, we have $q = 2p - 1 \equiv 5 \pmod{8}$, so $\leg{2}{q} = -1$ and base $2$ fails even the Fermat test by Theorem~\ref{thm:orders}(1). Hence passing base $2$ forces $p \equiv 1 \pmod{4}$, whence $q \equiv 1 \pmod{8}$, $n = pq \equiv 1 \pmod{4}$, $e \ge 2$, and $(1 + 2\cdot 4^{-e})/6 \le 3/16$ (with equality at $e = 2$, achieved by both $n_1$ and $n_2$). \end{proof} % ============================================================================= \section{Pratt Certificates and Wheel Residue Counts} % ============================================================================= Although $n_1$ and $n_2$ are visibly composite, proving membership in $K_2$ requires certifying primality of $p_1, q_1, p_2, q_2$. A Pratt certificate~\cite{pratt1975} proves primality of $r$ by factoring $r - 1$ completely and exhibiting a primitive root $a$ satisfying $a^{r-1} \equiv 1 \pmod{r}$ and $a^{(r-1)/\ell} \not\equiv 1 \pmod{r}$ for every prime $\ell \mid r - 1$, recursing on each prime factor $\ell$. Because $q - 1 = 2(p - 1)$, each pair $(p_i, q_i)$ shares its entire odd factorization tree (twelve non-leaf nodes across both witnesses, all verified inside \texttt{Spsp\allowbreak{}Psi20/\allowbreak{}Witnesses.lean} via Mathlib's \texttt{lucas\_\allowbreak{}primality} and rechecked by \texttt{recompute.py}). \begin{table}[htb] \centering \caption{Top-level Pratt certificate nodes for the four prime factors of $n_1$ and $n_2$, where $r_1 = 18563565096402509$ and $r_2 = 158955202102813$ are recursively certified in twelve total non-leaf nodes.} \label{tab:pratt} \small \begin{tabular}{@{}lrl@{}} \hcstoprule Node & Witness $a$ & Factorization of node minus $1$ \\ \midrule $p_1$ & $2$ & $2^2 \cdot 3 \cdot 5 \cdot r_1$ \\ $q_1$ & $101$ & $2^3 \cdot 3 \cdot 5 \cdot r_1$ \\ $p_2$ & $10$ & $2^2 \cdot 3 \cdot 5 \cdot 181 \cdot r_2$ \\ $q_2$ & $89$ & $2^3 \cdot 3 \cdot 5 \cdot 181 \cdot r_2$ \\ \hcsbottomrule \end{tabular} \end{table} To search $10^{36} < p(2p-1) \le 10^{37}$ efficiently, note that Proposition~\ref{prop:liar-share}(3) forces $q \equiv 1 \pmod{4}$. For every odd prime base $b \le 71$, quadratic reciprocity therefore gives $\leg{b}{q} = \leg{2p - 1}{b}$. Any residue class $x = p \bmod b$ with $\leg{2x-1}{b} \ne 1$ or $x \equiv 0 \pmod{b}$ (since $p > 71$) can be discarded before any primality test. \begin{proposition}[Admissible Residue Count and First-Wheel Products]\label{prop:sieve-count} For every odd prime $b$, the number of residue classes $x \in \mathbb{F}_b$ with $x \ne 0$ and $\leg{2x - 1}{b} = 1$ is \[ A(b) = \frac{b - 2 - \leg{-1}{b}}{2} = \begin{cases} (b - 1)/2 & \text{if } b \equiv 3 \pmod{4}, \\ (b - 3)/2 & \text{if } b \equiv 1 \pmod{4}. \end{cases} \] Over $4$ and the ten odd primes $3 \le b \le 31$, the first-wheel modulus and local-count products equal \[ 4 \prod_{3 \le b \le 31} b = 401{,}120{,}980{,}260, \qquad \prod_{3 \le b \le 31} A(b) = 10{,}135{,}125. \] \end{proposition} \begin{proof} Since $b$ is odd, $x \mapsto 2x - 1$ permutes $\mathbb{F}_b$, so exactly $(b - 1)/2$ classes satisfy $\leg{2x-1}{b} = 1$. The excluded class $x = 0$ maps to $-1$, which is a quadratic residue precisely when $\leg{-1}{b} = 1$ (i.e., $b \equiv 1 \pmod{4}$), leaving $(b - 1)/2 - (1 + \leg{-1}{b})/2 = (b - 2 - \leg{-1}{b})/2$. Direct multiplication gives $4\prod_{3 \le b \le 31} b = 401{,}120{,}980{,}260$ and $\prod_{3 \le b \le 31} A(b) = 1 \cdot 1 \cdot 3 \cdot 5 \cdot 5 \cdot 7 \cdot 9 \cdot 11 \cdot 13 \cdot 15 = 10{,}135{,}125$. Because $4$ and the ten odd primes $3, 5, \dots, 31$ are pairwise coprime, the Chinese remainder theorem (formalized in \texttt{Spsp\allowbreak{}Psi20.\allowbreak{}sieve\_\allowbreak{}wheel\_\allowbreak{}crt\_\allowbreak{}card} and \texttt{Spsp\allowbreak{}Psi20.\allowbreak{}first\_\allowbreak{}wheel\_\allowbreak{}crt\_\allowbreak{}card}) identifies these products with the $10{,}135{,}125$ simultaneous admissible residue classes modulo $401{,}120{,}980{,}260$ satisfying $p \equiv 1 \pmod{4}$ and all ten local predicates. \end{proof} Jaeschke~\cite[Section~4, p.~925]{jaeschke1993} sieved the same form with $b = 3, 5, 7, 11$ and $p \equiv 1 \pmod{4}$, which yield $15$ residue classes modulo $4{,}620$; Proposition~\ref{prop:sieve-count} is the same count over $3 \le b \le 31$. % ============================================================================= \section{Character-Sum Sieve Laws and Enumerations} % ============================================================================= Although the residue wheel constrains only $\leg{2x - 1}{b} = +1$, the survival probability of a prime pair at an odd prime base $b$ also depends on $\leg{x}{b} = \leg{p}{b}$ (by quadratic reciprocity, since $p \equiv 1 \pmod{4}$). Write $\chi$ for the quadratic character of $\mathbb{F}_b$ ($\chi(0) = 0$), and let $N_{-+}$ and $N_{++}$ count $x \in \mathbb{F}_b$ with $(\chi(x), \chi(2x-1)) = (-1, +1)$ and $(+1, +1)$, respectively. \begin{theorem}[Jacobsthal Correlation Sum and Exact $b \bmod 8$ Split]\label{thm:jacobsthal} For every odd prime $b$, \[ \sum_{x \in \mathbb{F}_b} \chi(x)\chi(2x - 1) = -\leg{2}{b}, \] and the two wheel-admissible residue cells satisfy exact integer identities: \begin{align*} 4 N_{-+} &= b - 2 - \leg{-1}{b} + 2\leg{2}{b}, \\ 4 N_{++} &= b - 2 - \leg{-1}{b} - 2\leg{2}{b}. \end{align*} \end{theorem} Both parts are known. The sum is Jacobsthal's evaluation~\cite[Chapter~I, \S2, p.~7]{jacobsthal1906} at $(a, b, c) = (2, -1, 0)$, and also follows from Lemma~A.3 of Weng~\cite[p.~43]{weng2021}. Under $t = 2x - 1$, with the signs twisted by $\chi(2)$, the cell identities are the counts of consecutive residue and non-residue pairs of Aladov~\cite[Theorem~1, p.~61]{aladov1896} and Jacobsthal~\cite[Chapter~III, \S1, p.~26]{jacobsthal1906}, as tabulated by Conrad~\cite[Section~3, p.~5]{conradqr}. We include a short proof. \begin{proof} Observe that $8x(2x - 1) = (4x - 1)^2 - 1$. Setting $u = 4x - 1$ permutes $\mathbb{F}_b$ and gives $\chi(8)\sum_x \chi(x)\chi(2x-1) = \sum_{u \in \mathbb{F}_b} \chi(u^2 - 1)$. The affine conic $v^2 = u^2 - 1$ has $b - 1$ points over $\mathbb{F}_b$, parameterized by $u + v = t \in \mathbb{F}_b^\times$, $u - v = t^{-1}$. On the other hand, counting points over $u$ gives $\sum_u (1 + \chi(u^2 - 1)) = b + \sum_u \chi(u^2 - 1)$, so $\sum_u \chi(u^2 - 1) = -1$. Since $\chi(8) = \chi(2)$, this proves $\sum_x \chi(x)\chi(2x-1) = -\chi(2)$. Moreover, $\sum_{x \ne 0, 2^{-1}} \chi(x) = -\chi(2^{-1}) = -\chi(2)$. Adding and subtracting $\sum_{x \ne 0, 2^{-1}} \chi(x)(1 + \chi(2x-1)) = 2(N_{++} - N_{-+}) = -2\chi(2)$ against $N_{-+} + N_{++} = A(b)$ (Proposition~\ref{prop:sieve-count}) yields both identities. \end{proof} \paragraph{Heuristic attrition model.} For a prime pair in cohort $e = v_2(p - 1) \ge 2$, modeling admissible residues as uniform over the $b - 2$ classes $x \notin \{0, 2^{-1}\}$ and higher 2-power residue choices as independent yields the per-base pass fraction \[ S_e(b) = \frac{N_{-+}/2 + h_e N_{++}}{b - 2}, \qquad h_e = \frac{1 + 8\cdot 4^{-e}}{6}. \] In particular, at $e = 2$ (both new witnesses) $h_2 = 1/4$, giving $S_2(3) = 1/4$ and $S_2(5) = 1/12$, while the sign $\leg{2}{b}$ creates systematic variation modulo $8$. At base $2$, the quadratic supplement yields $S_2(2) = 1/2$ and $S_e(2) = h_e$ for $e \ge 3$. Weighting cohorts by $2^{-e}$ predicts survival fraction $\sum_{e \ge 2} 2^{-e} \prod_{i \le t} S_e(b_i)$, whose successive ratios track Zhang's observed fixed-cutoff ($10^{36}$) attrition ratios closely (Figure~\ref{fig:ratios}). Multiplying by the Bateman--Horn prime-pair integral gives an expected $1.614$ twenty-base survivors in $(10^{36}, 10^{37}]$ (versus $2$ found). Crucially, this model is purely explanatory and is never used by the sieve to discard candidates. \begin{figure}[htb] \centering \includegraphics[width=0.98\linewidth]{figures/observed_ratios.png} \caption{Measured attrition ratios at Zhang's single cutoff $10^{36}$ (counts before divided by counts after each prime base $b \in [29, 67]$~\cite{zhang2007}) compared with the exact-$b\bmod 8$ Jacobsthal residue model and the naive constant baseline $16/3$. The final ratio is $24/4 = 6.0$.} \label{fig:ratios} \end{figure} To probe other linear semiprime families $p = Bm + 1$, $q = Am + 1$ with coprime $A, B > 0$, we use the following general 2-adic quadratic-residue obstruction. \begin{proposition}[General Ratio $A/B$ Necessary Condition]\label{prop:kgen} Let $p, q$ be odd primes and $a, b$ positive integers with $\gcd(a, b) = 1$ and $b(q - 1) = a(p - 1)$. Set $n = pq$, and let $c$ satisfy $\gcd(c, n) = 1$. If $n$ is a strong probable prime to base $c$, then: \begin{enumerate}[leftmargin=1.5em,itemsep=2pt] \item if $v_2(a) = v_2(b)$, then $\leg{c}{p} = \leg{c}{q}$; \item if $v_2(b) < v_2(a)$, then $\leg{c}{q} = 1$; \item if $v_2(a) < v_2(b)$, then $\leg{c}{p} = 1$. \end{enumerate} \end{proposition} These cases are known: with Jaeschke's Proposition~1, his Proposition~3~\cite[p.~918]{jaeschke1993} gives case~(1), and Propositions~2.5 and~2.6 of Sorenson and Webster (arXiv preprint~\cite{sorensonwebster2017}, Section~2.3, p.~5), which they attribute to Jaeschke, give all three cases together with their Theorem~2.2 (Jaeschke's Proposition~1). \begin{proof} By Jaeschke's signature criterion, passing the strong test forces $t_p(c) = t_q(c)$. On the other hand, for any odd prime $r$ and unit $c$, Euler's criterion gives $\leg{c}{r} = -1 \iff t_r(c) = v_2(r - 1)$, and $\leg{c}{r} = 1 \iff t_r(c) < v_2(r - 1)$. Since $b(q - 1) = a(p - 1)$, we have $v_2(q - 1) - v_2(p - 1) = v_2(a) - v_2(b)$. If $v_2(a) = v_2(b)$, then $v_2(p-1) = v_2(q-1)$ so $t_p(c) = t_q(c)$ hits the top valuation at $p$ if and only if it hits it at $q$. If $v_2(b) < v_2(a)$, then $t_q(c) = t_p(c) \le v_2(p-1) < v_2(q-1)$, forcing $\leg{c}{q} = 1$; symmetrically $v_2(a) < v_2(b)$ forces $\leg{c}{p} = 1$. \end{proof} \paragraph{External computational enumerations.} Our main search extended Zhang's $K_2$ enumeration~\cite{zhang2007} across the next decimal decade using a two-stage wheel (first wheel modulo $401{,}120{,}980{,}260$ from Proposition~\ref{prop:sieve-count}, second wheel for $37, 41, 43$, and direct Legendre lookups through $71$), testing surviving factors $p, 2p-1 < 2^{62}$ deterministically via the proven twelve-base threshold~\cite{sorensonwebster2017} and applying GMP strong tests to the $1{,}809{,}514{,}692$ surviving prime pairs. \begin{proposition}[External $K_2$ Enumeration on ${(10^{36}, 10^{37}]}$ --- Cert Only]\label{prop:enum} Across all $1{,}024$ shards covering $10^{36} < p(2p-1) \le 10^{37}$, the primary GMP C sieve scanned $1{,}528{,}961{,}196{,}313{,}242{,}172$ integers $p$, filtered $52{,}613{,}846{,}073$ wheel-admissible candidates, certified $1{,}809{,}514{,}692$ prime pairs, and returned exactly $n_1$ and $n_2$ passing the first $20$ prime bases (and $0$ passing all $21$ prime bases through $73$). An independent second implementation using a different traversal and deterministic primality test reproduced every shared count and hit across $64$ shards ($62$ pre-selected summary/boundary shards plus both hit shards); a planted wrong-factor control recovered $0/24$ of Zhang's benchmark rows versus $24/24$ for the verified code. Subject to Zhang's enumeration through $10^{36}$ and this external search, $\psi'_{20} = n_1$ and $\psi'_{21} > 10^{37}$. \end{proposition} \begin{proposition}[Companion Seven-Ratio Search --- Cert Only]\label{prop:companion} A separate single-implementation sieve built from Proposition~\ref{prop:kgen} tested $A/B \in \{3, 4, 5, 6, 3/2, 4/3, 5/2\}$ with $p > 173$ and $pq \le \psi'_{17}$, finding no strong pseudoprime below $\psi'_t$ for $14 \le t \le 17$. \end{proposition} \begin{conjecture}[Zhang's Minimality Conjecture~\cite{zhang2007}]\label{conj:zhang} For every integer $t \ge 12$, the unrestricted threshold $\psi_t$ equals the $K_2$-restricted threshold $\psi'_t$. \end{conjecture} % ============================================================================= \FloatBarrier \section{Formal Verification Summary}\label{sec:verif}\label{sec:trust-boundary} \begin{sloppypar} Machine-checked claims in this manuscript are formalized in pure-kernel Lean~4 (\texttt{leanprover/\allowbreak{}lean4:v4.\allowbreak{}35.0}) in library \texttt{Spsp\allowbreak{}Psi20} ($103$ audited declarations) using only standard axioms (\texttt{Classical.\allowbreak{}choice}, \texttt{Quot.sound}, \texttt{propext}), with zero \texttt{sorry} and zero \texttt{native\_\allowbreak{}decide}. Table~\ref{tab:verif} maps every tracked statement to its proof status and Lean~4 declaration. \begin{itemize}[leftmargin=1.8em,itemsep=2pt,topsep=4pt] \item \textbf{Main results:} $6$ of $8$ ($75\%$) proved in pure-kernel Lean~4. \item \textbf{Abstract claims:} $6$ of $7$ ($86\%$) proved in pure-kernel Lean~4. \item \textbf{All tracked proved claims:} $6$ of $8$ ($75\%$) proved in pure-kernel Lean~4. (1 open problem excluded from proved denominators.) \item \textbf{Verification status:} Independent kernel replay: not run. Statement audit: automated check only. External artifact replay: 0 of 2 independently replayed. \item \textbf{Pinned external script:} \texttt{recompute.py} (SHA-256 \texttt{01e0453d3c26}); \texttt{recompute.py} (SHA-256 \texttt{13c82937ac8e}). \item \textbf{Companion Verification Dossier:} Verbatim Lean~4 definitions and theorem signatures ($13$ definitions, $6$ theorem signatures), concrete sanity witnesses, semantic domain-guard notes, and per-file SHA-256 checksums are provided in the accompanying verification dossier PDF. \item \textbf{Companion page and archive:} \url{https://mathdiscoveries.org/results/spsp-psi20} \item \textbf{Lean~4 repository:} \url{https://github.com/mathdiscoveries/spsp-psi20} \end{itemize} \end{sloppypar} \begin{table}[htbp] \centering \caption{Claim-to-Lean~4 verification map for tracked statements in this paper.} \label{tab:verif}\label{tab:trust-ledger} \footnotesize \setlength{\tabcolsep}{4pt} \begin{tabular}{@{}>{\raggedright\arraybackslash}p{0.42\linewidth}>{\raggedright\arraybackslash}p{0.11\linewidth}>{\raggedright\arraybackslash}p{0.42\linewidth}@{}} \toprule Paper statement & Status & Lean~4 declaration / scope \\ \midrule Theorem~\ref{thm:main}: Two 37-Digit 20-Base Strong Pseudoprimes & Lean kernel & \texttt{Spsp\allowbreak{}Psi20.\allowbreak{}main\_\allowbreak{}two\_\allowbreak{}witnesses} \\ Theorem~\ref{thm:orders}: Fermat and Strong-Test Order Criteria for $K_2$ & Lean kernel & \texttt{Spsp\allowbreak{}Psi20.\allowbreak{}k2\_\allowbreak{}fermat\_\allowbreak{}and\_\allowbreak{}sprp\_\allowbreak{}criteria} \\ Proposition~\ref{prop:liar-share}: Strong-Liar Density and Base-2 Cap & Lean kernel & \texttt{Spsp\allowbreak{}Psi20.\allowbreak{}k2\_\allowbreak{}strong\allowbreak{}Liar\_\allowbreak{}share\_\allowbreak{}and\_\allowbreak{}base2\_\allowbreak{}cap} \\ Proposition~\ref{prop:sieve-count}: Admissible Residue Count and First-Wheel Products & Lean kernel & \texttt{Spsp\allowbreak{}Psi20.\allowbreak{}sieve\_\allowbreak{}admissible\_\allowbreak{}and\_\allowbreak{}wheel} \\ Theorem~\ref{thm:jacobsthal}: Jacobsthal Correlation Sum and Exact $b \bmod 8$ Split & Lean kernel & \texttt{Spsp\allowbreak{}Psi20.\allowbreak{}k2\_\allowbreak{}jacobsthal\_\allowbreak{}and\_\allowbreak{}cells} \\ Proposition~\ref{prop:kgen}: General Ratio $A/B$ Necessary Condition & Lean kernel & \texttt{Spsp\allowbreak{}Psi20.\allowbreak{}k\_\allowbreak{}gen\_\allowbreak{}legendre\_\allowbreak{}of\_\allowbreak{}ratio} \\ Proposition~\ref{prop:enum}: External $K_2$ Enumeration on ${(10^{36}, 10^{37}]}$ --- Cert Only & Cert-only & External certificate: recompute.\allowbreak{}py (01e\allowbreak{}0453d\allowbreak{}3c\allowbreak{}26) [regenerable; replay pending] \\ Proposition~\ref{prop:companion}: Companion Seven-Ratio Search --- Cert Only & Cert-only & External certificate: recompute.\allowbreak{}py (13c\allowbreak{}82937ac\allowbreak{}8e) [regenerable; replay pending] \\ Conjecture~\ref{conj:zhang}: Zhang's Minimality Conjecture~\cite{zhang2007} & Open & Open conjecture \\ \bottomrule \end{tabular} \end{table} \FloatBarrier % ============================================================================= % ============================================================================= \section{Prior Work and Open Questions} % ============================================================================= Jaeschke~\cite{jaeschke1993} characterized strong pseudoprimes via 2-adic orders; Arnault~\cite{arnault1995mcom} built multi-base composites; the criteria and counts of Theorems~\ref{thm:orders} and~\ref{thm:jacobsthal} and Propositions~\ref{prop:liar-share} and~\ref{prop:kgen} were proved earlier by Jaeschke, Arnault, Monier~\cite{monier1980}, Damg\r{a}rd, Landrock, and Pomerance~\cite{dlp1993}, Zhang and Tang~\cite{zhangtang2003}, Zhang~\cite{zhang2007}, Aladov~\cite{aladov1896}, Jacobsthal~\cite{jacobsthal1906}, Weng~\cite{weng2021}, and Sorenson and Webster~\cite{sorensonwebster2017}, as credited at each statement, and are proved again here and formalized in Lean~4; Bleichenbacher~\cite{bleichenbacher1996} (Table~3.2, $t=78$) gave a 41-digit 21-base witness ($\approx 11{,}727\times n_1$). Zhang~\cite{zhang2007} exhausted $K_2$ to $10^{36}$ and stated Conjecture~\ref{conj:zhang}; Sorenson and Webster~\cite{sorensonwebster2017} proved $\psi_{12} > 2^{64}$ (certifying factor tests $< 2^{62}$); Pratt~\cite{pratt1975} gave the certificates in \texttt{SpspPsi20/}. Chinese-language journals were not exhaustively searched (no priority claim). Open: $\psi_{20} = n_1$ (Conjecture~\ref{conj:zhang}, $t=20$) and $\psi_{21} < 2^{128}$. % ============================================================================= \needspace{5\baselineskip} \section{Data Availability, Reproducibility, and Use of AI} % ============================================================================= Sources live in the companion archive and \texttt{SpspPsi20/} ($103$ audited declarations; public package at \texttt{mathdiscoveries/\allowbreak{} spsp-psi20} commit \texttt{8bb3b62}, Palomar entry \texttt{PALOMAR- 2026- 11- 23- 000033} comparing $9$ theorems across all six Lean-proved main results via mechanical Lean checking plus automated editorial review). Running \texttt{python3 papers/\allowbreak{} spsp-psi20/\allowbreak{} draft5/\allowbreak{} recompute.py} checks the Section~1 box, twelve Pratt nodes, $(10^{36}, 10^{37}]$ count, wheel counts, and Jacobsthal cells (\texttt{-s DIR} aggregates archived $1{,}024$-shard summaries; full GMP/C replay pending). AI systems assisted with calculations, Lean~4 proofs, figures, and drafting. No human mathematician has yet refereed the proof. \datesbox{November 2026}{November 28, 2026} % ============================================================================= \begin{thebibliography}{99} \bibitem{aladov1896} Aladov, N.\ S. [Aladow, N.] On the distribution of quadratic residues and nonresidues of a prime $P$ in the series $1, 2, \ldots, P - 1$ (in Russian). \emph{Mat.\ Sb.} \textbf{1896}, \emph{18}, 61--75. \bibitem{arnault1995mcom} Arnault, F. Rabin--Miller primality test: Composite numbers which pass it. \emph{Math.\ Comp.} \textbf{1995}, \emph{64} (209), 355--361. DOI: \href{https://doi.org/10.1090/S0025-5718-1995-1260124-2}{\nolinkurl{10.1090/S0025-5718-1995-1260124-2}}. \bibitem{bleichenbacher1996} Bleichenbacher, D. Efficiency and security of cryptosystems based on number theory. Ph.D.\ thesis, Diss.\ ETH No.\ 11404, ETH Z\"urich, \textbf{1996}. \bibitem{conradqr} Conrad, K. Quadratic residue patterns modulo a prime. Expository note, University of Connecticut. \url{https://kconrad.math.uconn.edu/blurbs/ugradnumthy/QuadraticResiduePatterns.pdf}. \bibitem{dlp1993} Damg\r{a}rd, I.; Landrock, P.; Pomerance, C. Average case error estimates for the strong probable prime test. \emph{Math.\ Comp.} \textbf{1993}, \emph{61} (203), 177--194. DOI: \href{https://doi.org/10.1090/S0025-5718-1993-1189518-9}{\nolinkurl{10.1090/S0025-5718-1993-1189518-9}}. \bibitem{jacobsthal1906} Jacobsthal, E. Anwendungen einer Formel aus der Theorie der quadratischen Reste. Inaugural-Dissertation, Friedrich-Wilhelms-Universit\"at zu Berlin; W.\ Fr.\ K\"astner: G\"ottingen, \textbf{1906}. \bibitem{jaeschke1993} Jaeschke, G. On strong pseudoprimes to several bases. \emph{Math.\ Comp.} \textbf{1993}, \emph{61} (204), 915--926. DOI: \href{https://doi.org/10.1090/S0025-5718-1993-1192971-8}{\nolinkurl{10.1090/S0025-5718-1993-1192971-8}}. \bibitem{monier1980} Monier, L. Evaluation and comparison of two efficient probabilistic primality testing algorithms. \emph{Theoret.\ Comput.\ Sci.} \textbf{1980}, \emph{12} (1), 97--108. DOI: \href{https://doi.org/10.1016/0304-3975(80)90007-9}{\nolinkurl{10.1016/0304-3975(80)90007-9}}. \bibitem{pratt1975} Pratt, V.\ R. Every prime has a succinct certificate. \emph{SIAM J.\ Comput.} \textbf{1975}, \emph{4} (3), 214--220. DOI: \href{https://doi.org/10.1137/0204018}{\nolinkurl{10.1137/0204018}}. \bibitem{sorensonwebster2017} Sorenson, J.\ P.; Webster, J. Strong pseudoprimes to twelve prime bases. \emph{Math.\ Comp.} \textbf{2017}, \emph{86} (304), 985--1003. DOI: \href{https://doi.org/10.1090/mcom/3134}{\nolinkurl{10.1090/mcom/3134}}. Preprint \href{https://arxiv.org/abs/1509.00864v1}{arXiv:1509.00864v1}. \bibitem{weng2021} Weng, Y. Biases in moments of Dirichlet coefficients of elliptic curve families. \href{https://arxiv.org/abs/2102.02702v3}{arXiv:2102.02702v3}, \textbf{2021}. \bibitem{zhang2007} Zhang, Z. Two kinds of strong pseudoprimes up to $10^{36}$. \emph{Math.\ Comp.} \textbf{2007}, \emph{76} (260), 2095--2107. DOI: \href{https://doi.org/10.1090/S0025-5718-07-01977-1}{\nolinkurl{10.1090/S0025-5718-07-01977-1}}. \bibitem{zhangtang2003} Zhang, Z.; Tang, M. Finding strong pseudoprimes to several bases.\ II. \emph{Math.\ Comp.} \textbf{2003}, \emph{72} (244), 2085--2097. DOI: \href{https://doi.org/10.1090/S0025-5718-03-01545-X}{\nolinkurl{10.1090/S0025-5718-03-01545-X}}. \end{thebibliography} \end{document}