\documentclass[11pt]{article} \usepackage[margin=1in]{geometry} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath,amssymb,amsthm} \usepackage{booktabs} \usepackage[hidelinks]{hyperref} \hypersetup{pdfauthor={Tohid Atashbar},pdftitle={Pittel's second-moment conjecture for nearly balanced stable matching markets is false, and with one extra worker the true order is (log n)^2},pdfsubject={},pdfkeywords={},pdfcreator={LaTeX},pdfproducer={pdfTeX}} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{conjecture}[theorem]{Conjecture} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \newcommand{\E}{\mathbb{E}} \renewcommand{\P}{\mathbb{P}} \newcommand{\R}{\mathbb{R}} \newcommand{\Bin}{\mathrm{Bin}} \newcommand{\Beta}{\mathrm{Beta}} \newcommand{\supp}{\mathrm{supp}} \newcommand{\sstar}{s_*} \title{Pittel's second-moment conjecture for nearly balanced\\ stable matching markets is false,\\ and with one extra worker the true order is $(\log n)^2$} \author{Tohid Atashbar\thanks{International Monetary Fund. The views expressed in this paper are those of the author and do not necessarily represent the views of the IMF, its Executive Board, or IMF management.}} \date{Version 1.3, 30 November 2026.} \begin{document} \maketitle \begin{abstract} Consider a two-sided matching market with $n$ firms and $n+1$ workers whose preference lists are independent and uniformly random, and let $S_n$ be the number of stable matchings. Pittel (arXiv:1701.08900) proved $\E[S_n]\sim n/(e\log n)$ and conjectured that $\E[S^2]=O(\E[S]^2)$ whenever the two sides have asymptotically equal sizes, as in the balanced case treated by Lennon and Pittel. We prove that with one extra worker the second moment is of order $n^2$: there is an absolute constant $C$ with $n^2/C\le\E[S_n^2]\le Cn^2$ for all $n$. Hence $\E[S_n^2]/\E[S_n]^2$ is of exact order $(\log n)^2$, and the conjecture fails at this precise rate. We also show $\liminf\E[S_n^2]/n^2\ge1/(2e^3)$ and conjecture that this is the limit. For $d\ge1$ extra workers with $d/n\to0$ we prove that the ratio is unbounded, so the conjecture fails for every sequence to which it applies. The proofs rest on an exact integral formula for the probability that two given matchings are both stable, and on one feature of it: firms that change partner in the same direction reinforce one another. As a result, in the market conditioned on a given matching being stable, the expected number of other stable matchings that differ from it on many more than $\sqrt n$ firms, up to about $n/\log n$, is not small, provided almost all of these firms prefer the same one of the two. A heuristic computation suggests that the same mechanism accounts for the term $\frac12e^{-3}(n\log n)^2$ in the theorem of Lennon and Pittel. A large second moment does not by itself say that a typical market has many stable matchings; that question is left open. Status: the bare refutation for one extra worker is machine-checked in Lean~4 and merged in a public repository; the two-sided bound for one extra worker and the refutation for general $d$ are paper proofs, checked step by step by independent AI-assisted readings, and the exact formula on which they rest is confirmed by exact computation for $n=2$ to $5$; these results have not yet been peer reviewed. \end{abstract} \section{Introduction} \paragraph{Which statement is which.} Pittel's conjecture concerns \emph{nearly balanced} markets: $n$ agents on the short side and $n+d_n$ on the long side with $d_n\ge1$ and $d_n/n\to0$. This paper contains results of two kinds, with different status, and they should not be confused. \begin{itemize} \item[(i)] \emph{One extra worker} ($d_n=1$). The conjecture fails: this is machine-checked in Lean and merged in a public repository (Section~\ref{sec:lean}). The true order, $\E[S^2]/\E[S]^2\asymp(\log n)^2$ (Theorem~\ref{thm:order}), is proved on paper only; the proof was checked step by step by an independent AI-assisted reading (Section~\ref{sec:num}); it is not formalised and not yet peer reviewed. \item[(ii)] \emph{Nearly balanced markets in general} ($d_n\ge1$, $d_n/n\to0$). The conjecture fails for \emph{every} such sequence (Theorem~\ref{thm:all} and Corollary~\ref{cor:all}): paper proofs, checked by two independent AI-assisted readings on 27 November 2026; not formalised and not yet peer reviewed; the order of the ratio is not determined for $d\ge2$. The \emph{formal} general statement quantifies over all sequences, so it is already refuted by the single sequence $d_n=1$ of (i); the Lean file submitted against that statement was merged on 29 November 2026 (Section~\ref{sec:lean}). \end{itemize} \subsection{The model, the random variable, and Pittel's conjecture} There are $n$ firms and $n+d$ workers, $d\ge 1$. Each firm ranks all workers and each worker ranks all firms; the $2n+d$ rankings are independent and uniform over all strict orders. A \emph{matching} is an injection $M$ from the firms to the workers, so $d$ workers are unmatched. A pair $(i,j)$ with $j\neq M(i)$ \emph{blocks} $M$ if firm $i$ prefers $j$ to $M(i)$ and worker $j$ is either unmatched or prefers $i$ to its partner. A matching is \emph{stable} if no pair blocks it. This is the definition of Gusfield and Irving~\cite{GI89} used by Pittel~\cite{Pit17}. The random variable is \[ S=S_{n,d}=\text{the number of stable matchings of the random market},\qquad S_n=S_{n,1}. \] At least one stable matching always exists, so $S\ge1$. The main results concern $d=1$: $n$ firms and $n+1$ workers. For the balanced market ($d=0$), Pittel~\cite{Pit89} proved $\E[S]\sim e^{-1}n\log n$, and Lennon and Pittel~\cite{LP09} proved $\E[S^2]\sim(e^{-2}+\tfrac12e^{-3})(n\log n)^2$. So in the balanced market $\E[S^2]/\E[S]^2$ is bounded, and $S$ is of the order of its mean with probability bounded away from $0$. Ashlagi, Kanoria and Leshno~\cite{AKL17} discovered that a single extra worker changes the structure of the set of stable matchings drastically. Pittel~\cite{Pit17} then proved (\cite[Theorem~1.3, p.~6]{Pit17}; there $n_1=n$ is the size of the short side and $n_2=n+d$): if $n_2>n_1\to\infty$ then \begin{equation}\label{eq:pittel} \E[S]\sim \frac{n\,\exp\!\bigl(-\frac{e^{s}-1-s}{e^{s}-1}\bigr)}{d\,s},\qquad s=\log\frac{n+d}{d}, \end{equation} so that $\E[S]\sim e^{-1}n/(d\log n)$ for fixed $d$, and in particular $\E[S_n]\sim n/(e\log n)$. \paragraph{The conjecture.} It is the unnumbered conjecture on page~7 of~\cite{Pit17} (arXiv version~2 of 13 February 2017), stated right after Theorem~1.3 and its Note. In Pittel's notation, with $n_1$ men, $n_2>n_1$ women and $S(\mathbf n)$ the number of stable matchings: \begin{quote} ``We conjecture that for $n_2/n_1\to1$, i.e.\ when $\E[S(\mathbf n)]\to\infty$, the second order moment $\E[S^2(\mathbf n)]=O\bigl(\E^2[S(\mathbf n)]\bigr)$, so that, with a positive limiting probability, $S(\mathbf n)=\theta\bigl(\E[S(\mathbf n)]\bigr)$, in a complete analogy with the case $n_1=n_2$, see [11].'' \end{quote} (Reference [11] there is~\cite{LP09}.) The case $n_2=n_1+1$ is inside the conjecture. \subsection{Results} \begin{theorem}[one extra worker: the true order]\label{thm:order} Let $S_n$ be the number of stable matchings with $n$ firms and $n+1$ workers. \begin{enumerate} \item[(a)] \emph{Upper bound, every $n\ge100$:} $\ \E[S_n^2]\le\E[S_n]+6e^{21}\,n^2$. \item[(b)] \emph{Lower bound, every $n\ge10^7$:} $\ \E[S_n^2]\ge5\cdot10^{-8}\,n^2$. \item[(c)] \emph{All $n$:} there is an absolute constant $C$ (not explicit) such that $n^2/C\le\E[S_n^2]\le C\,n^2$ for every $n\ge1$. Consequently $\E[S_n^2]/\E[S_n]^2\asymp(\log n)^2$ for $n\ge2$. \item[(d)] \emph{Asymptotic only:} \[ \frac1{2e^3}\ \le\ \liminf_{n\to\infty}\frac{\E[S_n^2]}{n^2}\ \le\ \limsup_{n\to\infty}\frac{\E[S_n^2]}{n^2}\ \le\ 6e^{21}. \] With the upper half of~\eqref{eq:pittel} (a citation, not reproved here), $\liminf_{n\to\infty}\E[S_n^2]/(\E[S_n]^2(\log n)^2)\ge1/(2e)$. \end{enumerate} \end{theorem} The upper bound is Theorem~\ref{thm:upper2}, the lower bound is Theorem~\ref{thm:lower2}, and the constant $1/(2e^3)=0.0249$ is Theorem~\ref{thm:const2}; all are proved in Section~\ref{sec:order}. In (c), the lower bound for $n<10^7$ is the trivial one, $\E[S_n^2]\ge1$. Nothing is proved about the existence of $\lim\E[S_n^2]/n^2$; we conjecture that it is $1/(2e^3)$ (Section~\ref{sec:remains}). The constants $6e^{21}$ and $5\cdot10^{-8}$ are artefacts of the proofs. \paragraph{How this changes the conjecture.} For $n_2=n_1+1$ the conjectured relation $\E[S^2]=O(\E^2[S])$ is false, and the statement that replaces it is \[ \E[S_n^2]\asymp n^2,\qquad \frac{\E[S_n^2]}{\E^2[S_n]}\asymp(\log n)^2 . \] The ratio is unbounded, but only poly-logarithmically. The second half of the conjecture, that $S=\theta(\E[S])$ with positive limiting probability, was meant as a consequence of the first; it is not decided here, in either direction (Section~\ref{sec:remains}). The next three theorems are lower bounds obtained by a simpler argument, which uses only pairs of stable matchings that differ on at most $\sqrt n$ firms. For one extra worker they are weaker than Theorem~\ref{thm:order} in order (they give $\log n$ instead of $(\log n)^2$), but Theorem~\ref{thm:one} has explicit constants from $n=100$ on, and Theorem~\ref{thm:all} covers every number $d$ of extra workers. Write \[ \sstar=\log\Bigl(1+\frac nd\Bigr),\qquad N=\frac{n}{d\,\sstar}. \] By~\eqref{eq:pittel}, $\E[S]$ is of order $N$. \begin{theorem}[one extra worker, explicit]\label{thm:one} For every $n\ge 100$, \[ \E[S_n^2]\ \ge\ \frac{n^2}{7000\log n},\qquad \E[S_n]\ \le\ \frac{5n}{\log n},\qquad \frac{\E[S_n^2]}{\E[S_n]^2}\ \ge\ \frac{\log n}{175000}. \] \end{theorem} \begin{theorem}[fixed $d$]\label{thm:const} For every fixed $d\ge1$, \[ \liminf_{n\to\infty}\ \E[S_{n,d}^2]\,\frac{d\log n}{n^2}\ \ge\ \frac1{2e^3}. \] Consequently, by~\eqref{eq:pittel}, $\liminf_{n\to\infty}\E[S_{n,d}^2]/(\E[S_{n,d}]^2\log n)\ge d/(2e)$. \end{theorem} \begin{theorem}[all $d$]\label{thm:all} For every $n\ge10^4$ and every $d\ge1$: \begin{enumerate} \item[(a)] if $N\ge 66$, then $\E[S^2]\ge 6\cdot10^{-6}\,N\min(n,N^2)$; \item[(b)] if $d\le n/3$, then $\E[S]\le 7N$; \item[(c)] $\E[S^2]/\E[S]^2\ \ge\ 10^{-7}\min(N,\,n/N)$. \end{enumerate} \end{theorem} \begin{corollary}\label{cor:all} Let $d_n\ge1$ and $d_n/n\to0$. Then $\E[S_{n,d_n}^2]/\E[S_{n,d_n}]^2\to\infty$. Thus the conjecture fails for every sequence to which it applies. \end{corollary} \begin{proof} With $t=n/d_n\to\infty$ we have $N=t/\log(1+t)\to\infty$. The function $d\mapsto d\log(1+n/d)$ is increasing, so $n/N=d_n\log(1+n/d_n)\ge\log(1+n)\to\infty$. Apply Theorem~\ref{thm:all}(c). \end{proof} For $d\ge2$ we do not know the order of $\E[S^2]$: Theorem~\ref{thm:all} is only a lower bound, which is not sharp for $d=1$ by Theorem~\ref{thm:order}. When $d$ is of order $n$, $N$ is bounded and Theorem~\ref{thm:all}(c) is empty; this is consistent with~\eqref{eq:pittel} and with the fact that the conjecture is stated only for $n_2/n_1\to1$. \subsection{Status of each result}\label{sec:status} We use four labels, and keep them apart throughout: machine-checked; paper proof checked by independent AI-assisted readings (the term is defined in Section~\ref{sec:num}, with what each reading covered and did not cover); computation; conjecture or open question. None of the paper proofs has yet been peer reviewed. \begin{center} \small \begin{tabular}{@{}p{0.47\textwidth}p{0.47\textwidth}@{}} \toprule Result & Status\\ \midrule (i) One extra worker: no constant $C$ has $\E[S_n^2]\le C\,\E[S_n]^2$ for all large $n$ (the conjecture fails) & \textbf{Merged, machine-checked.} Lean~4 proof accepted by the Lean kernel and merged in a public repository on 28 November 2026 (pull request 14797; Section~\ref{sec:lean}). It proves $\E[S_n^2]\ge e^{-75}n^2/(115200\log n)$ for $n=16P^4$, $P\ge200$, and $\E[S_n]\le10n/\log n$ for $n\ge2\cdot10^5$; nothing more.\\[2pt] (i) One extra worker: Theorem~\ref{thm:order} (order $n^2$, ratio of order $(\log n)^2$; constant $1/(2e^3)$), Proposition~\ref{prop:exact} & \textbf{Paper proof; independently checked.} Checked step by step by an independent AI-assisted reading (28 November 2026); the exact pair formula confirmed by exact computation for $n=2$ to $5$ with two independently written programs. Not formalised. Not yet peer reviewed.\\[2pt] (ii) Nearly balanced markets, $d_n\ge1$, $d_n/n\to0$: the conjecture fails for every such sequence (Theorem~\ref{thm:all}, Corollary~\ref{cor:all}); explicit and fixed-$d$ lower bounds (Theorems~\ref{thm:one}, \ref{thm:const}) & \textbf{Paper proof; independently checked.} Checked step by step by two independent AI-assisted readings (27 November 2026). Not formalised. Not yet peer reviewed.\\[2pt] (ii) The formal general statement (all sequences with $d_n\ge1$, $d_n/n\to0$) is false, through $d_n=1$ & \textbf{Merged, machine-checked.} Its negation is a theorem of the merged file of (i). The file submitted against the general statement itself (pull request 15561, opened 28 November 2026) was merged on 29 November 2026.\\[2pt] Exact values for $n\le5$; tables & \textbf{Computation.} Exact values: certified by exact rational arithmetic and re-verified by an independently written program. Tables: simulation or floating point. Not used in any proof.\\[2pt] $\E[S_n^2]\sim n^2/(2e^3)$; $\mathrm{Var}(\log S_n)\to\infty$ & \textbf{Conjecture.}\\[2pt] Typical size of $S_n$ (does $S_n/\E[S_n]\to0$ in probability?); order of $\E[S^2]$ for $d\ge2$ & \textbf{Open question.}\\ \bottomrule \end{tabular} \end{center} \subsection{The idea, and two questions a reader will ask} \emph{Over which pairs does the second moment run?} $S^2$ is the number of \emph{ordered} pairs $(M,M')$ of stable matchings, the diagonal $M=M'$ included (it contributes $\E[S]$). All stable matchings of a market leave the same worker unmatched, so only pairs with the same unmatched worker count, and by symmetry $\E[S_n^2]=(n+1)!\sum_\sigma\P(M_0\text{ and }M_0\sigma\text{ are both stable})$, where $M_0$ is a fixed matching and $\sigma$ runs over the permutations of the firms. This identity is exact; it is checked by exact enumeration for $n\le3$ and by exact integration for $n\le5$ (Section~\ref{sec:num}). Fix a stable matching $M_0$ and look for others. In a market with few extra workers, the score that a firm gives to its partner is about $\sstar/n$ and the score that a worker gives to its partner is about $1/\sstar$ (scores are uniform on $[0,1]$, smaller is better), so the product is about $1/n$. Take a cycle of $k$ firms and let each firm move to the next firm's worker. The new matching is again stable, up to a factor close to $1$, when for each of the $k$ firms two ``diagonal'' scores fall below two old ones; this has probability about $n^{-k}$ and can happen in two ways: the firms lose and the workers gain (type~A), or the reverse (type~B). There are about $n^k/k$ cycles of length $k$, so the expected number of stable matchings that differ from $M_0$ by one $k$-cycle is about $2/k$. \emph{First approximation.} If disjoint cycles could be flipped independently, the number of ways to move $m$ firms, with weight $2$ per cycle, would be about $e^{-2}m\cdot m!$. Choosing $m$ of the $n$ firms and paying $n^{-m}$ costs a factor of about $e^{-m^2/n}$, so this is accurate for $m\le\sqrt n$, and summing $e^{-2}m$ over $m\le\sqrt n$ gives a number of order $n$. So, given that $M_0$ is stable, the expected number of stable matchings is at least of order $n$, whereas $\E[S]$ is only of order $n/\log n$ for one extra worker: $\E[S^2]\gtrsim n\,\E[S]\gg\E[S]^2$. For larger $d$ each moved firm costs an additional factor $\rho\approx1-1/N$, which truncates the sum at $m\approx N$ and gives $\min(n,N^2)$. This is the content of Theorems~\ref{thm:one}--\ref{thm:all}, and of the machine-checked refutation. \emph{Why do pairs that differ on more than $\sqrt n$ firms count after all?} Because the cycles are not independent. If $a$ firms move in cycles of type~A and $b$ firms in cycles of type~B, the exact formula (Proposition~\ref{prop:exact}) shows that a moved firm and a moved worker of the same type interact through $1-u_iv_j+p_iq_j$ instead of $1-u_iv_j$. The term $p_iq_j$, of order $1/n$, was discarded in the first approximation (Lemma~\ref{lem:lower}). Over the $a^2+b^2$ pairs of equal type it amounts to a factor of about $e^{(a^2+b^2)/n}$, which together with the cost $e^{-(a+b)^2/n}$ leaves $e^{-2ab/n}$. So when almost all moved firms are of one type, that is when the two stable matchings are comparable or nearly comparable in the lattice of stable matchings, the expected number of such pairs carries no penalty for moving many firms, up to about $n/\log n$ of them. The number of pairs $(a,b)$ with $ab\le n$ is of order $n\log n$ rather than $n$, which gives $\E[S_n^2]\asymp n\log n\cdot\E[S_n]\asymp n^2$. Section~\ref{sec:config} describes these configurations and shows them in simulations. \emph{A caution.} A large second moment does not, by itself, show that a typical market has a widely variable number of stable matchings: rare markets can dominate $\E[S_n^2]$. Nothing is proved here about which markets carry it. In simulations (status: simulation; $n=50,100,200$) the hundredth of the markets with the most stable matchings carries $0.28$, $0.35$, $0.40$ of the sum of $S^2$, and the tenth with the most carries $0.68$, $0.74$, $0.80$. Statements about typical markets need probability bounds that we do not have (Section~\ref{sec:remains}). Moreover, all statements of the form ``pairs of this kind are not rare'' in this paper are about expected numbers of pairs, equivalently about the market conditioned on a given matching being stable, a conditioning that favours markets with many stable matchings. Finally, the order $n^2$ cannot be seen in simulations of feasible size: for $n\le400$ the simulated $\E[S_n^2]/n^2$ is decreasing, and the heuristic of Section~\ref{sec:config} itself predicts a minimum near $n=10^3$. The theorem rests on the proofs. \section{Scores and the one-matching formula}\label{sec:one} Let the firms be $1,\dots,n$, let the workers be $1,\dots,n$ together with $d$ further workers, whose set is denoted $U$. Let $X_{ij}$ ($i$ a firm, $j$ any worker) and $Y_{ij}$ ($i$ a firm, $j$ any worker) be independent random variables, uniform on $[0,1]$. Firm $i$ prefers $j$ to $j'$ when $X_{ij}x_i$. Given $(x,y)$ these events concern distinct entries, independent of the diagonal ones, and have probabilities $1-x_iy_j$ and $1-x_i$. Hence $\P(M_0\text{ stable}\mid x,y)=\Phi(x,y)$. All $N_M$ matchings are stable with the same probability. \end{proof} \section{Pairs of stable matchings}\label{sec:pairs} Fix a permutation $\sigma$ of $\{1,\dots,n\}$ with support $D=\{i:\sigma(i)\ne i\}$, $|D|=m$, and with cycles $C_1,\dots,C_r$ of length at least $2$. Let $M_0\sigma$ be the matching $i\mapsto\sigma(i)$. The diagonal entries are \[ x_i=X_{ii},\ y_i=Y_{ii}\quad(i\notin D);\qquad a_i=X_{ii},\ a_i'=X_{i\sigma(i)},\ b_i=Y_{ii},\ b_i'=Y_{\sigma^{-1}(i)\,i}\quad(i\in D). \] Thus $a_i,a'_i$ are the scores that firm $i$ gives to its partners in $M_0$ and $M_0\sigma$, and $b_i,b'_i$ are the scores that worker $i$ gives to its partners in $M_0$ and $M_0\sigma$. For a firm $i$ write $(x_i,x_i')=(a_i,a_i')$ if $i\in D$ and $x_i'=x_i$ otherwise; for a worker $j\le n$ write $(y_j,y_j')=(b_j,b_j')$ if $j\in D$ and $y_j'=y_j$ otherwise. \begin{lemma}[pair formula]\label{lem:pair} Almost surely, $M_0$ and $M_0\sigma$ are both stable if and only if: \begin{itemize} \item[\textup{(T)}] every cycle $C$ of $\sigma$ is of type A ($a_ib_i'$ for all $i\in C$) or of type B ($a_i>a_i'$ and $b_i\max(x_i,x_i')$. \end{itemize} Given the diagonal entries, the events in \textup{(G)} and \textup{(W)} are independent, with probabilities \[ g_{ij}=1-x_iy_j-x_i'y_j'+\min(x_i,x_i')\min(y_j,y_j')\qquad\text{and}\qquad 1-\max(x_i,x_i'). \] \end{lemma} \begin{proof} $M_0$ is stable when no pair $(i,j)$, $j\ne i$, blocks it, and $M_0\sigma$ when no pair $(i,j)$, $j\ne\sigma(i)$, blocks it. For $j\le n$, $j\notin\{i,\sigma(i)\}$, worker $j$ is matched in both matchings, and the two conditions are exactly (G). For $w\in U$ they are (W). The remaining conditions exist only for $i\in D$: \begin{itemize} \item[(i)] $(i,\sigma(i))$ does not block $M_0$: not ($a_i'b_i'$. Let $k=\sigma^{-1}(i)$. Then (i) for $k$ reads: not ($a_k'b'$ on $C$ by (ii): type~A. Otherwise $a_i>a_i'$ for all $i\in C$, and (i) gives $b'_{\sigma(i)}>b_{\sigma(i)}$ for all $i\in C$: type~B. Conversely, types A and B imply (i) and (ii). The entries in (G) and (W) are distinct from each other and from the diagonal entries, which gives the independence. The probability in (G) is one minus the area of the union of two rectangles whose intersection is $[0,\min(x_i,x_i'))\times[0,\min(y_j,y_j'))$. \end{proof} \begin{lemma}[lower bound for a pair]\label{lem:lower} $\P(M_0\text{ and }M_0\sigma\text{ are both stable})\ \ge\ 2^{r}J_m$. \end{lemma} \begin{proof} A type pattern assigns A or B to each cycle. The type of a cycle involves only the entries indexed by that cycle, and the $2^r$ patterns are disjoint events. Fix a pattern $\epsilon$; we show that $\P(\epsilon,\textup{(G)},\textup{(W)})\ge J_m$. Put $u_i=\max(x_i,x_i')$ and $v_j=\max(y_j,y_j')$. The union of the two rectangles in (G) lies in $[0,u_i)\times[0,v_j)$, so $g_{ij}\ge1-u_iv_j\ge0$. The pairs in (G) are all pairs $i\ne j$ except the $m$ pairs $(i,\sigma(i))$, $i\in D$, and the missing factors $1-u_iv_{\sigma(i)}$ lie in $[0,1]$. Hence \[ \prod_{\textup{(G)}}g_{ij}\ \prod_i\bigl(1-\max(x_i,x_i')\bigr)^d\ \ge\ \Phi(u,v). \] By Lemma~\ref{lem:pair}, $\P(\epsilon,\textup{(G)},\textup{(W)})$ is the integral of the left side over the diagonal entries in the region defined by $\epsilon$, so it is at least the integral of $\Phi(u,v)$ over that region. For $i\in D$ of type A we have $u_i=a_i'$, $v_i=b_i$, and $a_i$, $b_i'$ range freely over $(0,u_i)$, $(0,v_i)$; for type B we have $u_i=a_i$, $v_i=b_i'$, and $a_i'$, $b_i$ range freely over $(0,u_i)$, $(0,v_i)$. These free variables do not appear in $\Phi(u,v)$, and integrating them out gives the factor $u_iv_i$ for each $i\in D$. The result is $\int\Phi(u,v)\prod_{i\in D}u_iv_i\,du\,dv=J_m$. \end{proof} Let $d_2(m)$ be the sum of $2^{\#\text{cycles}}$ over the derangements of an $m$-set ($d_2(0)=1$, $d_2(1)=0$). \begin{lemma}[summation]\label{lem:sum} $\displaystyle \E[S^2]\ \ge\ N_M\sum_{m=0}^{n}\binom nm d_2(m)\,J_m .$ \end{lemma} \begin{proof} $\E[S^2]$ is the sum of $\P(M,M'\text{ both stable})$ over ordered pairs of matchings. Keep the pairs with the same set of unmatched workers. By symmetry their contribution is \[ N_M\sum_\sigma\P(M_0\text{ and }M_0\sigma\text{ are both stable}). \] Apply Lemma~\ref{lem:lower} and group the permutations by their support. \end{proof} \begin{lemma}\label{lem:d2} For $m\ge2$, $d_2(m)\ge m!\,(m+3)/10$, and $\bigl|d_2(m)/m!-e^{-2}(m+3)\bigr|\le(m+3)\,2^{m}/m!$ for all $m\ge 1$. \end{lemma} \begin{proof} The exponential generating function of permutations with weight $2$ per cycle is $(1-z)^{-2}$; removing fixed points gives $\sum_md_2(m)z^m/m!=e^{-2z}(1-z)^{-2}$. Hence $d_2(m)/m!=\sum_{l\le m}\frac{(-2)^l}{l!}(m+1-l)=(m+1)E_m+2E_{m-1}$ with $E_k=\sum_{l\le k}(-2)^l/l!$. As $2^l/l!$ is nonincreasing for $l\ge1$, $|E_k-e^{-2}|\le2^{k+1}/(k+1)!$. This gives the second claim, and for $m\ge 7$ it gives $E_m,E_{m-1}>e^{-2}-2^7/7!>1/10$, hence the first claim. For $m=2,\dots,6$, $d_2(m)/m!=1,\ \tfrac23,\ 1,\ \tfrac{16}{15},\ \tfrac{11}9$. \end{proof} \section{The window bound}\label{sec:window} For $s>0$ put \[ F(s)=\int_0^1e^{-st}dt=\frac{1-e^{-s}}{s},\qquad H(s)=\int_0^1te^{-st}dt=\frac{1-(1+s)e^{-s}}{s^2}, \qquad\rho(s)=1-\frac{s}{e^s-1}, \] so that $H(s)=F(s)\rho(s)/s$. For $x\in[0,1]^n$ write $s=\sum_ix_i$ and $x=s\,\delta$ with $\delta$ in the simplex $\Delta=\{\delta_i\ge0,\ \sum\delta_i=1\}$. We use the following standard facts about the Dirichlet distribution with parameter $\alpha=(\alpha_1,\dots,\alpha_n)$, $\alpha_0=\sum\alpha_i$ (density proportional to $\prod\delta_i^{\alpha_i-1}$ on $\Delta$). \begin{itemize} \item[(D1)] For measurable $f\ge0$ on $\R_+^n$: $\int f(x)\,dx=\int_0^\infty\frac{s^{n-1}}{(n-1)!}\,\E f(s\delta)\,ds$, with $\delta$ uniform on $\Delta$. \item[(D2)] If $\delta$ is uniform on $\Delta$, then $\E\prod_{i\le m}\delta_i=(n-1)!/(n+m-1)!$, and the law of $\delta$ reweighted by $\prod_{i\le m}\delta_i$ is Dirichlet with $\alpha=(2,\dots,2,1,\dots,1)$ ($m$ twos), $\alpha_0=n+m$. We write $\P_\alpha,\E_\alpha$ for this law. \item[(D3)] Under a Dirichlet law, $\E\,\delta_i^2=\frac{\alpha_i(\alpha_i+1)}{\alpha_0(\alpha_0+1)}$, $\E\,\delta_i^3=\frac{\alpha_i(\alpha_i+1)(\alpha_i+2)}{\alpha_0(\alpha_0+1)(\alpha_0+2)}$, and $\delta_i$ has the $\Beta(\alpha_i,\alpha_0-\alpha_i)$ law. \item[(D4)] $\P(\Beta(1,b)>z)=(1-z)^b$ and $\P(\Beta(2,b)>z)=(1-z)^b(1+bz)$. \end{itemize} \begin{proposition}[window bound]\label{prop:window} Let $n\ge2$, $d\ge1$, $0\le m\le n$, $0m}A^0_j\prod_{j\le m}A^1_j, \qquad A^{\ell}_j=\int_0^1t^{\ell}\prod_{i\ne j}(1-x_it)\,dt . \end{equation} Fix $s\in[s_1,s_2]$, $z=z(s)$, and $x=s\delta$ with $\max_i\delta_i\le z$; then $\max_ix_i\le1/2$. Let $Q_2=\sum\delta_i^2$, $Q_3=\sum\delta_i^3$, $q=\sum x_i^2=s^2Q_2$, $\kappa=\sum x_i^3=s^3Q_3$, and $s_j=s-x_j\ge s(1-z)$. \emph{Step 1.} For $0\le w\le\frac12$, $-\log(1-w)\le w+\frac{w^2}2+\frac{w^3}{3(1-w)}\le w+\frac{w^2}{2}+\frac23w^3$. Hence, for $0\le t\le1$, \[ \prod_{i\ne j}(1-x_it)\ \ge\ \exp\Bigl(-s_jt-\frac q2t^2-\frac23\kappa t^3\Bigr). \] \emph{Step 2.} Let $\E_u$ be the expectation under the density $e^{-ut}/F(u)$ on $[0,1]$ and $\E_u'$ under $te^{-ut}/H(u)$ on $[0,1]$. These are the exponential law of rate $u$ and the Gamma$(2,u)$ law, conditioned on $[0,1]$; conditioning on $[0,1]$ does not increase the mean of an increasing function, so $\E_ut^2\le2/u^2$, $\E_ut^3\le6/u^3$, $\E_u't^2\le6/u^2$, $\E_u't^3\le24/u^3$. By Step~1 and Jensen's inequality, \[ A^0_j\ge F(s_j)\exp\Bigl(-\frac{q}{s_j^2}-\frac{4\kappa}{s_j^3}\Bigr),\qquad A^1_j\ge H(s_j)\exp\Bigl(-\frac{3q}{s_j^2}-\frac{16\kappa}{s_j^3}\Bigr). \] \emph{Step 3.} $\mu(u)=-(\log F)'(u)=\E_ut=\frac1u-\frac1{e^u-1}$ and $\nu(u)=-(\log H)'(u)=\E_u't$ are nonincreasing, and $\nu\ge\mu$. Hence $F(s_j)\ge F(s)e^{x_j\mu(s)}$ and $H(s_j)\ge H(s)e^{x_j\nu(s)}\ge H(s)e^{x_j\mu(s)}$. Since $\sum_jx_j\mu(s)=s\mu(s)=\rho(s)$, \[ \prod_{j>m}F(s_j)\prod_{j\le m}H(s_j)\ \ge\ F(s)^{n-m}H(s)^me^{\rho(s)} =(1-e^{-s})^n\rho(s)^ms^{-(n+m)}e^{\rho(s)} . \] \emph{Step 4.} By Step~1 with $t=1$, $\prod_i(1-x_i)^d\ge\exp(-ds-\frac d2q-\frac{2d}3\kappa)$. \emph{Step 5.} Insert Steps 2--4 in~\eqref{eq:yint} and use $s_j\ge s(1-z)$: \[ \int\Phi(x,y)\prod_{j\le m}y_j\,dy\ \ge\ (1-e^{-s})^n\rho(s)^ms^{-(n+m)}e^{\rho(s)-ds}\,e^{-T}, \] \[ T=Q_2\Bigl[\frac{n+2m}{(1-z)^2}+\frac{d\,s^2}{2}\Bigr]+Q_3\Bigl[\frac{4n+12m}{(1-z)^3}+\frac{2d\,s^3}3\Bigr]. \] \emph{Step 6.} Multiply by $\prod_{i\le m}x_i=s^m\prod_{i\le m}\delta_i$ and integrate over the set of $x=s\delta$ with $s\in[s_1,s_2]$ and $\delta\in A_s:=\{\max_i\delta_i\le z(s)\}$, using (D1) and (D2): \[ (n+m-1)!\,J_m\ \ge\ \int_{s_1}^{s_2}(1-e^{-s})^n\rho(s)^me^{\rho(s)-ds}\, \E_\alpha\bigl[e^{-T};A_s\bigr]\frac{ds}{s}. \] By Jensen's inequality for the conditional law given $A_s$, and $T\ge0$, $\E_\alpha[e^{-T};A_s]\ge p\exp(-\E_\alpha[T]/p)$ with $p=\P_\alpha(A_s)$. By (D3), $\E_\alpha Q_2=\frac{2n+4m}{(n+m)(n+m+1)}\le\frac2{n+1}$ and $\E_\alpha Q_3=\frac{6n+18m}{(n+m)(n+m+1)(n+m+2)}\le\frac6{(n+1)(n+2)}$, so $\E_\alpha T\le\tau(s)$. (The first inequality is equivalent to $m\le m^2$. The second is equivalent to $(n+3m)(n+1)(n+2)\le(n+m)(n+m+1)(n+m+2)$, which holds with equality for $m=0,1$, and the difference of the two sides is nondecreasing in $m\ge1$.) By (D3) and (D4), \[ 1-p\le(n-m)(1-z)^{n+m-1}+m(1-z)^{n+m-2}\bigl(1+(n+m-2)z\bigr)\le\pi(s). \] Since $p\mapsto p\,e^{-\tau/p}$ is increasing, the claim follows. \end{proof} \begin{lemma}[upper bound for one matching]\label{lem:upper} For $n\ge2$ and $d\ge1$, \[ J_0\ \le\ \frac{K_n}{(n-1)!}\int_0^\infty(1-e^{-s})^ne^{-ds}\,\frac{ds}{s},\qquad K_n=e^{10/9}+e^{5/2}\,n\,(0.9)^{n-1}. \] \end{lemma} \begin{proof} With $A^0_j$ as in~\eqref{eq:yint}, $A^0_j\le\int_0^1e^{-ts_j}dt=F(s_j)$, $s_j=s-x_j$. As $\mu$ is nonincreasing, $\mu\le\frac12$ and $\mu(u)\le1/u$, \[ \log F(s-x_j)-\log F(s)\le x_j\,\mu(s-x_j)\le x_j\min\Bigl(\frac12,\frac1{s-x_j}\Bigr) =\min\Bigl(\frac{s\delta_j}2,\frac{\delta_j}{1-\delta_j}\Bigr). \] The sum over $j$ of the right side is at most $2+\frac12$ (terms with $\delta_j\le\frac12$ are at most $2\delta_j$; at most one $j$ has $\delta_j>\frac12$, and its term is at most $x_j/2\le\frac12$), and it is at most $\frac1{1-0.1}$ if $\max_j\delta_j\le0.1$. Also $\prod(1-x_i)^d\le e^{-ds}$. So on the cube the integrand of $J_0$, integrated over $y$, is at most $F(s)^ne^{-ds}\bigl(e^{10/9}+e^{5/2}\mathbf 1\{\max\delta_j>0.1\}\bigr)$. Enlarge the cube to $\R_+^n$ and use (D1): for $\delta$ uniform on $\Delta$, $\P(\max\delta_j>0.1)\le n(0.9)^{n-1}$ by (D3), (D4), and $F(s)^ne^{-ds}s^{n-1}=(1-e^{-s})^ne^{-ds}/s$. \end{proof} \section{Proofs of the theorems}\label{sec:proofs} We use repeatedly that, for $m\le\sqrt n$, \begin{equation}\label{eq:ratio} \prod_{k2\mu)=\P(\Bin(n+d,2\mu)\le d-1)\le\frac{2d}{(d+1)^2}\le\frac12$ (Chebyshev's inequality; the mean is $2d$ and the variance is at most $2d$). So the probability is at least $\frac38$. \end{itemize} Therefore $(n+m-1)!\,J_m\ge e^{-2.53}\cdot0.7\cdot\frac38\cdot\frac{B(d,n+1)}{1.35\,\sstar} \ge0.015\,B(d,n+1)/\sstar$. By~\eqref{eq:ident}, \eqref{eq:ratio} and Lemma~\ref{lem:d2}, \[ N_M\binom nmd_2(m)J_m\ \ge\ \frac{m+3}{10}\cdot0.015\,N\,e^{-m^2/n}\ \ge\ 0.00055\,(m+3)\,N . \] Let $M=\lfloor\min(\sqrt n,N/6)\rfloor\ge11$. Then $\sum_{m=2}^{M}(m+3)\ge M^2/2\ge0.41\min(n,N^2/36)$, and Lemma~\ref{lem:sum} gives $\E[S^2]\ge6\cdot10^{-6}N\min(n,N^2)$. \emph{(b).} Let $d\le n/3$, so $\mu\le\frac14$ and $n+d\le\frac43n$. By Lemma~\ref{lem:upper} and the substitution $w=e^{-s}$, $J_0\le\frac{K_n}{(n-1)!}\int_0^1(1-w)^nw^{d-1}\frac{dw}{\log(1/w)}$. On $w\le\sqrt\mu$ we have $1/\log(1/w)\le2/\sstar$, and this part is at most $2B(d,n+1)/\sstar$. On $w>\sqrt\mu$ we use $(1-w)/\log(1/w)\le1$; this part is at most \[ \int_{\sqrt\mu}^1(1-w)^{n-1}w^{d-1}dw=B(d,n)\,\P\bigl(\Bin(n+d-1,\sqrt\mu)\le d-1\bigr). \] The binomial has mean $\lambda=(n+d-1)\sqrt\mu\ge0.99\sqrt n$, and $\lambda\ge2\mu(n+d-1)\ge2d-\frac12$, so $d-1<\lambda/2$; by the Chernoff bound $\P(\Bin\le\lambda/2)\le e^{-\lambda/8}$ the probability is at most $e^{-\sqrt n/9}$. Since $B(d,n)\le\frac43B(d,n+1)$ and $N_MB(d,n+1)/(n-1)!=n/d$, \[ \E[S]=N_MJ_0\le K_n\,N\Bigl(2+\tfrac43\,\sstar\,e^{-\sqrt n/9}\Bigr)\le7N\qquad(n\ge10^4), \] because $K_n\le3.04$ and $\sstar\le\log(n+1)$. \emph{(c).} If $N\ge66$ then $d\le n/3$, and (a), (b) give $\E[S^2]/\E[S]^2\ge6\cdot10^{-6}\min(n,N^2)/(49N)\ge10^{-7}\min(n/N,N)$. If $N<66$ then $\min(N,n/N)<66$ and $\E[S^2]/\E[S]^2\ge1$. \qed \subsection{Proof of Theorem~\ref{thm:const}} Fix $d\ge1$, $a,b>0$ and $M>0$; let $L=\log n$. Apply Proposition~\ref{prop:window} with $s_1=\log(n/d)-a$, $s_2=\log(n/d)+b$, $z=1/(2s_2)$ and $0\le m\le M\sqrt n$, and write $s=\log(n/d)+u$. As $n\to\infty$, uniformly in $u\in[-a,b]$ and $m\le M\sqrt n$: $\tau\to2$ and $\pi\to0$; $\rho(s)\ge1-O(L/n)$, so $e^{\rho}\to e$ and $\rho^m\to1$; $(1-e^{-s})^ne^{-ds}=(1+o(1))(d/n)^de^{-du}\exp(-de^{-u})$; and $1/s\ge(1+o(1))/L$. Hence \[ (n+m-1)!\,J_m\ \ge\ (1+o(1))\,e^{-1}\Bigl(\frac dn\Bigr)^{d}\frac{G}{L},\qquad G=\int_{-a}^{b}e^{-du}\exp(-de^{-u})\,du . \] Moreover $N_M\binom nmm!/(n+m-1)!=(1+o(1))\,\frac{n^{d+1}}{d!}\,e^{-m^2/n}$ uniformly in $m\le M\sqrt n$, and by Lemma~\ref{lem:d2} and a Riemann sum, \[ \sum_{m\le M\sqrt n}\frac{d_2(m)}{m!}\,e^{-m^2/n}=(1+o(1))\,e^{-2}n\int_0^Mve^{-v^2}dv =(1+o(1))\,e^{-2}\,n\,\frac{1-e^{-M^2}}2 . \] By Lemma~\ref{lem:sum}, $\liminf\E[S^2]L/n^2\ge e^{-3}\,\frac{d^dG}{d!}\,\frac{1-e^{-M^2}}{2}$. Let $a,b,M\to\infty$: then $d^dG\to\Gamma(d)$ and the right side tends to $1/(2e^3d)$. The second statement follows from~\eqref{eq:pittel}, which gives $\E[S]\sim e^{-1}n/(dL)$ for fixed $d$. \qed \subsection{Proof of Theorem~\ref{thm:one}} Let $d=1$, $n\ge100$, $L=\log n$. \emph{Lower bound.} Let $0\le m\le\sqrt n$. Apply Proposition~\ref{prop:window} with $s_1=L-1$, $s_2=L+2$, $z=1/(2(L+2))$, and write $s=L+u$, $u\in[-1,2]$. Each quantity below is monotone in $n\ge100$, so that its value at $n=100$ is its worst value. \begin{itemize} \item $(1-e^{-s})^ne^{-s}=n^{-1}e^{-u}(1-e^{-u}/n)^n\ge n^{-1}e^{-u}\exp(-e^{-u})\,e^{-e^2/n}$, because $\log(1-w)\ge-w-w^2$ for $0\le w\le\frac12$; and $e^{-e^2/n}\ge0.9287$. \item $\int_{-1}^{2}e^{-u}\exp(-e^{-u})\,du=\exp(-e^{-2})-\exp(-e)>0.8074$. \item $\rho(s)\ge\rho(L-1)=1-r_n$, $r_n=e(L-1)/(n-e)$; $r_n$ and $\sqrt n\,r_n$ are decreasing and $r_{100}<0.10074$. Hence $e^{\rho}\ge2.457$ and $\rho^m\ge\exp(-\sqrt n(r_n+r_n^2))\ge0.3299$. \item $\pi\le n(1+2\sqrt nz)(1-z)^{n-1}\le0.1038$; the derivative of the logarithm of this bound is at most $\frac{1.5}{n}-\frac1{2(L+2)}\bigl(1-\frac{1.1}{L+2}\bigr)<0$. \item $\tau\le\frac2{n+1}\bigl[\frac{n+2\sqrt n}{(1-z)^2}+\frac{(L+2)^2}2\bigr] +\frac6{(n+1)(n+2)}\bigl[\frac{4n+12\sqrt n}{(1-z)^3}+\frac23(L+2)^3\bigr]\le3.709$; each part is decreasing. \item Hence $(1-\pi)\exp(-\tau/(1-\pi))\ge0.8962\,e^{-4.139}\ge0.01428$. And $1/s\ge1/(L+2)$. \end{itemize} Multiplying, $n(L+2)(n+m-1)!\,J_m\ge0.8074\cdot0.9287\cdot0.3299\cdot2.457\cdot0.01428>0.00867$. By Lemma~\ref{lem:sum}, \eqref{eq:ident} (with $d=1$), \eqref{eq:ratio} and Lemma~\ref{lem:d2}, \[ \E[S^2]\ \ge\ \frac{n+1}{L+2}\cdot\frac{0.00867}{10}\sum_{m=2}^{M}(m+3)e^{-m^2/n},\qquad M=\lfloor\sqrt n\rfloor\ge10. \] Using $e^{-v}\ge1-v$ and $M^2\le n$, the sum is at least $\frac{M^2+7M-8}2-\frac{(M+1)^2}4-1.05(M+1)\ge\frac{(M+1)^2}4\ge\frac n4$. Therefore $\E[S^2]\ge0.00867\,n(n+1)/(40(L+2))\ge n^2/(7000L)$, since $(L+2)/L\le1.435$. \emph{Upper bound.} By Lemmas~\ref{lem:one} and~\ref{lem:upper}, $\E[S]\le(n+1)n\,K_n\,I_n$ with $I_n=\int_0^\infty(1-e^{-s})^ne^{-s}\,ds/s$. Since $\int_0^{c}(1-e^{-s})^ne^{-s}ds=(1-e^{-c})^{n+1}/(n+1)$: on $s\ge L-1$ use $1/s\le1/(L-1)$; on $[L/2,L-1]$ use $1/s\le2/L$ and $(1-e/n)^{n+1}\le e^{-e}$; on $s\le L/2$ use $(1-e^{-s})^n/s\le(1-e^{-s})^{n-1}\le e^{-(n-1)/\sqrt n}$. Thus \[ \E[S]\ \le\ \frac nL\,K_n\Bigl(\frac L{L-1}+2e^{-e}+(n+1)L\,e^{-(n-1)/\sqrt n}\Bigr)\ \le\ 4.41\,\frac nL , \] because every term is decreasing in $n$ and at $n=100$ the two factors are $3.074$ and $1.433$. The third inequality of the theorem follows from the first two. \qed \section{One extra worker: the second moment is of order $n^2$}\label{sec:order} In this section $d=1$, $L=\log n$, and $N_M=(n+1)!$. We prove Theorem~\ref{thm:order}. \subsection{The exact interaction of two moved firms} Fix $\sigma\neq\mathrm{id}$ with support $D$ and a type pattern $\epsilon$ (Lemma~\ref{lem:pair}). Let $A$ and $B$ be the sets of firms in cycles of type A and of type B, $a=|A|$, $b=|B|$, $m=a+b$. Workers $1,\dots,n$ carry the labels of their $M_0$-partners, so a worker $j\in D$ has the type of the cycle of $j$. For a firm $i$ and a worker $j\le n$ put \begin{align*} u_i&=\max(x_i,x_i'),& l_i&=\min(x_i,x_i'),& p_i&=u_i-l_i,\\ v_j&=\max(y_j,y_j'),& w_j&=\min(y_j,y_j'),& q_j&=v_j-w_j , \end{align*} so that $p_i=0$ for $i\notin D$ and $q_j=0$ for $j\notin D$. \begin{proposition}\label{prop:exact} On the event $\epsilon$, for every pair $(i,j)$ of \textup{(G)}, \[ 1-g_{ij}=u_iv_j-t_{ij}\,p_iq_j ,\qquad t_{ij}=\begin{cases}1&\text{if $i,j\in D$ have the same type,}\\0&\text{otherwise.}\end{cases} \] \end{proposition} \begin{proof} $1-g_{ij}=x_iy_j+x_i'y_j'-\min(x_i,x_i')\min(y_j,y_j')$. If $i\notin D$ this is $x_i(y_j+y_j'-w_j)=u_iv_j$, and similarly if $j\notin D$. Type A means $(x_i,x_i')=(l_i,u_i)$ and $(y_j,y_j')=(v_j,w_j)$; type B means $(x_i,x_i')=(u_i,l_i)$ and $(y_j,y_j')=(w_j,v_j)$. For equal types $1-g_{ij}=l_iv_j+u_iw_j-l_iw_j=u_iv_j-p_iq_j$, and for different types $1-g_{ij}=l_iw_j+u_iv_j-l_iw_j=u_iv_j$. \end{proof} Lemma~\ref{lem:lower} uses only $g_{ij}\ge1-u_iv_j$. The neglected term $p_iq_j$ is of order $1/n$ and there are about $a^2+b^2$ pairs of equal type, so Lemma~\ref{lem:lower} loses a factor of about $e^{(a^2+b^2)/n}$. The counting factor in the proof of Theorem~\ref{thm:const} decays like $e^{-m^2/n}$, and the product of the two is $e^{-2ab/n}$: \emph{pairs of stable matchings that differ on $m\gg\sqrt n$ firms are not rare in expectation, provided almost all moved firms move in the same direction.} Summing $e^{-2ab/n}$ over $a$ and $b$ gives a quantity of order $n\log n$, where the sum of $e^{-m^2/n}$ gave $n$. \paragraph{Notation.} Let $\eta_k=D_k/k!$, where $D_k$ is the number of derangements of $k$ points ($\eta_0=1$, $\eta_1=0$, $\tfrac13\le\eta_k\le\tfrac12$ for $k\ge2$). The \emph{class} $(a,b)$ is the set of pairs $(\sigma,\epsilon)$ with $|A|=a$ and $|B|=b$. There are $n!/(a!\,b!\,(n-m)!)$ choices of $(A,B)$, and for each of them the pairs $(\sigma,\epsilon)$ correspond to the pairs (derangement of $A$, derangement of $B$). Let $P_\epsilon(\sigma)=\P(M_0\text{ and }M_0\sigma\text{ are stable, with pattern }\epsilon)$ and let $T(a,b)$ be $N_M$ times the sum of $P_\epsilon(\sigma)$ over the class $(a,b)$; $T(0,0)=\E[S_n]$. Put \[ s=\sum_iu_i,\qquad P_A=\sum_{i\in A}p_i,\qquad P_B=\sum_{i\in B}p_i,\qquad s_A=s-P_A,\qquad s_B=s-P_B , \] so that $s_A$ and $s_B$ are the firms' total scores in $M_0$ and in $M_0\sigma$. On the event $\epsilon$ we use the variables $l_i,p_i>0$, $l_i+p_i<1$ for $i\in D$ and $w_j,q_j>0$, $w_j+q_j<1$ for $j\in D$; the pattern fixes which of the two scores is the smaller, so this change of variables has Jacobian $1$. Put $z_{ij}=u_iv_j-t_{ij}p_iq_j$ for all $i,j\le n$; by Proposition~\ref{prop:exact}, $1-g_{ij}=z_{ij}$ on the pairs of \textup{(G)}, and $0\le z_{ij}\le u_iv_j\le1$ always. For a worker $j$ and a set $E$ of firms, \begin{equation}\label{eq:coef} \sum_{i\in E}z_{ij}= \begin{cases} \bigl(\sum_{E}u_i\bigr)\,y_j & j\notin D,\\[2pt] \bigl(\sum_{E}u_i\bigr)\,w_j+\bigl(\sum_{E}u_i-\sum_{E\cap A}p_i\bigr)\,q_j & j\in A, \end{cases} \end{equation} and the same with $B$ for $j\in B$. For $c,s>0$ let \[ G(c,s)=\iint_{w,q>0,\ w+q<1}e^{-sw-cq}\,dw\,dq=\frac1c\int_0^1e^{-sw}\bigl(1-e^{-c(1-w)}\bigr)\,dw . \] Since $1-e^{-c(1-w)}\le1-e^{-c}$, and since $\int_0^1e^{-sw}e^{-c(1-w)}dw\le e^{-c}$ for $c\le s$, \begin{equation}\label{eq:G} \frac{1-e^{-s}-s\,e^{-c}}{c\,s}\ \le\ G(c,s)\quad(00). \end{equation} \subsection{The upper bound} \begin{theorem}\label{thm:upper2} For every $n\ge100$, $\ \E[S_n^2]\le\E[S_n]+6e^{21}n^2$. \end{theorem} \begin{proof} \emph{All pairs.} In a market with strict preferences every stable matching leaves the same agents unmatched~\cite{MW70,GS85}. Hence two matchings with different unmatched workers are never both stable, and the inequality of Lemma~\ref{lem:sum} is an equality before Lemma~\ref{lem:lower} is applied: $\E[S_n^2]=\sum_{a,b}T(a,b)$. Here both directions of Lemma~\ref{lem:pair} are used: if $M_0$ and $M_0\sigma$ are stable then some pattern $\epsilon$ holds, so $\P(M_0,M_0\sigma\text{ stable})=\sum_\epsilon P_\epsilon(\sigma)$. (The lower bounds use only the ``if'' direction.) Fix $\sigma\neq\mathrm{id}$ and $\epsilon$. \emph{Workers.} By Lemma~\ref{lem:pair} and $1-z\le e^{-z}$, $P_\epsilon(\sigma)\le\int\exp\bigl(-s-\sum_{\textup{(G)}}z_{ij}\bigr)$. For a worker $j$ the firms $i$ with $(i,j)$ in \textup{(G)} are all firms except $j$ and $j'=\sigma^{-1}(j)$; if $j\in D$ then $j'\ne j$ lies in the same cycle and has the type of $j$. By~\eqref{eq:coef} the sum over these firms is $(s-u_j)y_j$ if $j\notin D$ and $(s-u_j-u_{j'})w_j+(s_A-l_j-l_{j'})q_j$ if $j\in A$ ($s_B$ if $j\in B$). The worker variables separate, and by~\eqref{eq:G} their integral is at most \[ \prod_{j\notin D}F(s-u_j)\ \prod_{j\in D}F(s-u_j-u_{j'})\ \prod_{j\in A}F(s_A-l_j-l_{j'})\ \prod_{j\in B}F(s_B-l_j-l_{j'}). \] \emph{Shifts.} By the proof of Lemma~\ref{lem:upper}, $\log F(t-x)-\log F(t)\le x\min(\tfrac12,\tfrac1{t-x})$ for $0\le x\le t$. If $0\le\varepsilon_j\le\min(t,2)$ and $\sum_j\varepsilon_j\le2t$, then $\prod_jF(t-\varepsilon_j)\le e^7\prod_jF(t)$: the indices with $\varepsilon_j\le t/2$ contribute at most $2\varepsilon_j/t$ each, hence at most $4$ in total, and fewer than four indices have $\varepsilon_j>t/2$, each contributing at most $\varepsilon_j/2\le1$. The three groups of shifts satisfy the hypothesis with $t=s$, $t=s_A$ and $t=s_B$: every $u_i\le1$ occurs at most twice in the first group, and $\sum_{j\in A}(l_j+l_{j'})=2\sum_{i\in A}l_i\le2s_A$. So the worker integral is at most $e^{21}F(s)^nF(s_A)^aF(s_B)^b$. \emph{Firms.} This bound depends on the firm variables only through $R=s-P_A-P_B$, $P_A$ and $P_B$, which are sums of $n$, $a$ and $b$ nonnegative variables. Enlarge the domain of these variables to the orthant; the volume element becomes $R^{n-1}P_A^{a-1}P_B^{b-1}\,dR\,dP_A\,dP_B/((n-1)!\,(a-1)!\,(b-1)!)$. Put $P_A=s\alpha$, $P_B=s\beta$, $\varrho=1-\alpha-\beta$ and use $F(c)\le1/c$ for $c=s_A=s(1-\alpha)$ and $c=s_B$. The powers of $s$ combine to $1/s$, and \begin{gather*} P_\epsilon(\sigma)\ \le\ \frac{e^{21}}{(n-1)!\,(a-1)!\,(b-1)!}\ I_0\int\varrho^{n-1}\alpha^{a-1}\beta^{b-1}(1-\alpha)^{-a}(1-\beta)^{-b}\,d\alpha\,d\beta ,\\ I_0=\int_0^\infty(1-e^{-s})^ne^{-s}\,\frac{ds}s , \end{gather*} where the integral is over the simplex $\alpha,\beta\ge0$, $\alpha+\beta\le1$ (for $b=0$ there is no variable $\beta$ and no factor $(b-1)!$). Since $\varrho\le(1-\alpha)(1-\beta)$, this integral is at most $B(a,n-a)\,B(b,n-b)$ when $a,b\le n-1$. Finally $I_0\le2/(L(n+1))+e^{1-\sqrt n}$: on $s\ge L/2$ use $1/s\le2/L$ and $\int_0^\infty(1-e^{-s})^ne^{-s}\,ds=1/(n+1)$; on $s\le L/2$ use $(1-e^{-s})/s\le1$, so that $(1-e^{-s})^n/s\le(1-e^{-s})^{n-1}\le(1-n^{-1/2})^{n-1}\le e^{-(n-1)/\sqrt n}\le e^{1-\sqrt n}$, and $\int_0^\infty e^{-s}\,ds=1$. \emph{Summation.} Multiplying by $N_M$ and by the number of pairs in the class, \begin{align*} T(a,b)&\le e^{21}(n+1)n\,I_0\,\eta_a\eta_b\,c(a,b),\\ c(a,b)&=\frac{n!}{(n-m)!}\,\frac{\Gamma(n-a)\Gamma(n-b)}{\Gamma(n)^2}=\frac n{n-a}\prod_{k=0}^{b-1}\frac{n-a-k}{n-1-k}\ \le\ \frac n{n-a}\,e^{-b(a-1)/(n-1)} , \end{align*} because $(n-a-k)/(n-1-k)\le(n-a)/(n-1)$. For $2\le a\le n-1$ we have $\sum_{b\ge0}\eta_be^{-b(a-1)/(n-1)}\le1+\frac{n-1}{2(a-1)}$, and, using $\frac{n-1}{(n-a)(a-1)}=\frac1{n-a}+\frac1{a-1}$, \[ \sum_{a=2}^{n-1}\frac12\,\frac n{n-a}\Bigl(1+\frac{n-1}{2(a-1)}\Bigr)\ \le\ n(1+L). \] By the symmetry $(a,b)\leftrightarrow(b,a)$ the classes other than $(0,0)$, $(n,0)$ and $(0,n)$ contribute at most $2e^{21}(n+1)n\,I_0\,n(1+L)\le5.9\,e^{21}n^2$ for $n\ge100$. \emph{The classes $(n,0)$ and $(0,n)$.} Here $\varrho=1-\alpha$. Keeping the factor $(1-e^{-s(1-\alpha)})^n$ of $F(s_A)^n$ we get, with $t=1-\alpha$, $\int_0^1(1-t)^{n-1}t^{-1}(1-e^{-st})^n\,dt\le2^{-n}/n+2s\,e^{-(n-1)/(2s)}$ (use $1-e^{-st}\le st$ for $t\le\frac1{2s}$, and $t^{-1}\le2s$, $(1-t)^{n-1}\le e^{-(n-1)/(2s)}$ for $t>\frac1{2s}$). The prefactor is $N_MD_n/((n-1)!)^2\le(n+1)n^2/2$, and $s+(n-1)/(2s)\ge\sqrt{2(n-1)}$. This gives $T(n,0)\le0.008\,e^{21}n^2$ for $n\ge100$, and the same for $T(0,n)$. \end{proof} \subsection{The lower bound} \begin{theorem}\label{thm:lower2} For every $n\ge10^7$, $\ \E[S_n^2]\ge5\cdot10^{-8}\,n^2$. Moreover $\liminf_{n\to\infty}\E[S_n^2]/n^2\ge1.6\cdot10^{-6}$. \end{theorem} \begin{proof} Let $n\ge10^4$, $a,b\ge2$ and $m=a+b\le n/(64(L+1))$. Write $q_u=\sum_iu_i^2$. \emph{Step 1: all pairs.} Since $g_{ij}=1-z_{ij}$ on \textup{(G)} and $1-z_{ij}\in[0,1]$ for all $i,j\le n$, we have $\prod_{\textup{(G)}}g_{ij}\ge\prod_{i,j\le n}(1-z_{ij})$. \emph{Step 2: workers.} Assume $u_i\le\frac12$ for all $i$. Then $z_{ij}\in[0,\frac12]$, $1-z_{ij}\ge e^{-z_{ij}-z_{ij}^2}$ and $z_{ij}^2\le u_i^2v_j^2$. By~\eqref{eq:coef} with $E$ the set of all firms, $\sum_iz_{ij}$ equals $sy_j$ for $j\notin D$ and $sw_j+s_Aq_j$ for $j\in A$ ($s_B$ for $j\in B$). By Jensen's inequality, as in the proof of Proposition~\ref{prop:window}, $\int_0^1e^{-sy-q_uy^2}dy\ge F(s)e^{-2q_u/s^2}$, and for $00,\ w+q<1}e^{-sw-cq-q_u(w+q)^2}\,dw\,dq\ \ge\ G(c,s)\,e^{-6q_u/c^2}: \] under independent exponential laws of rates $s$ and $c$ the second moment of $w+q$ is $s^{-2}+c^{-2}+(s^{-1}+c^{-1})^2\le6c^{-2}$, and conditioning the real variable $w+q$ on $w+q<1$ does not increase it. With $\prod_i(1-u_i)\ge e^{-s-q_u}$, the integral of $\prod_{i,j}(1-z_{ij})\prod_i(1-u_i)$ over the worker variables is at least \[ e^{-s}F(s)^{n-m}G(s_A,s)^aG(s_B,s)^b\,e^{-\kappa q_u},\qquad \kappa=1+\frac{2(n-m)}{s^2}+\frac{6a}{s_A^2}+\frac{6b}{s_B^2}. \] \emph{Step 3: firms.} Let $r_i=l_i$ for $i\in D$ and $r_i=x_i$ otherwise, so that $R=\sum_ir_i$. Restrict to $r_i\le\frac14$ for all $i$, $P_A,P_B\le\frac14$ (then $u_i\le\frac12$) and $L\le s\le L+1$. Write $r=R\,\delta$, $(p_i)_{i\in A}=P_A\,\delta^A$, $(p_i)_{i\in B}=P_B\,\delta^B$ with $\delta,\delta^A,\delta^B$ in the simplices of dimensions $n,a,b$; Lebesgue measure is $R^{n-1}P_A^{a-1}P_B^{b-1}\,dR\,dP_A\,dP_B/((n-1)!(a-1)!(b-1)!)$ times the product $\mathcal U$ of the three uniform laws. With $P_A=s\alpha$, $P_B=s\beta$, $\varrho=1-\alpha-\beta$ and~\eqref{eq:G}, the powers of $s$ combine to $1/s$ and \begin{multline*} (n-1)!\,(a-1)!\,(b-1)!\,P_\epsilon(\sigma)\ \ge\ \int_L^{L+1}\frac{ds}s\,e^{-s}(1-e^{-s})^{n-m} \int\varrho^{n-1}\alpha^{a-1}\beta^{b-1}(1-\alpha)^{-a}(1-\beta)^{-b}\\ \times\gamma_A^a\,\gamma_B^b\ \E_{\mathcal U}\bigl[e^{-\kappa q_u};\ \max_i\delta_i\le\tfrac1{4s}\bigr]\,d\alpha\,d\beta , \end{multline*} where the inner integral is over $\alpha,\beta\le\frac1{4s}$ and $\gamma_A=1-e^{-s}-se^{-s(1-\alpha)}$, $\gamma_B=1-e^{-s}-se^{-s(1-\beta)}$. Drop $(1-\beta)^{-b}\ge1$. The measure $\varrho^{n-1}\alpha^{a-1}\beta^{b-1}(1-\alpha)^{-a}\,d\alpha\,d\beta$ on the simplex has total mass \[ Z=B(n,b)\,B(a,n+b-a), \] and under its normalisation $\nu$ we have $\alpha\sim\Beta(a,n+b-a)$ and $\beta=(1-\alpha)\beta'$ with $\beta'\sim\Beta(b,n)$ independent of $\alpha$ (substitute $\beta=(1-\alpha)\beta'$). Let $\mathcal G=\{\alpha\le\frac1{4s},\ \beta'\le\frac1{4s},\ \max_i\delta_i\le\frac1{4s}\}$. On $\mathcal G$ we have $s_A,s_B\ge s-\frac14$, so $\gamma_A,\gamma_B\ge\gamma_0:=1-(1+1.3s)e^{-s}$ and $\kappa\le\kappa_0:=1+2(n-m)/s^2+6m/(s-\frac14)^2$. By Jensen's inequality for the law $\nu\times\mathcal U$ conditioned on $\mathcal G$, \[ \text{inner integral}\ \ge\ Z\,\gamma_0^m\,\P(\mathcal G)\exp\bigl(-\kappa_0\,\E[q_u]/\P(\mathcal G)\bigr). \] The moments $\E\delta_i=\frac1n$, $\E\delta_i^2=\frac2{n(n+1)}$ (and the same with $a$, $b$) give $\E_{\mathcal U}[q_u\mid R,P_A,P_B]=\frac{2R^2}{n+1}+\frac{2R(P_A+P_B)}n+\frac{2P_A^2}{a+1}+\frac{2P_B^2}{b+1}$; with $R\le s$, $P_A=s\alpha$, $P_B\le s\beta'$, $\E\alpha=\frac a{n+b}$, $\E\alpha^2=\frac{a(a+1)}{(n+b)(n+b+1)}$ and the same for $\beta'$ with $b$, \[ \E[q_u]\ \le\ s^2\Bigl(\frac2{n+1}+\frac{4m}{n^2}\Bigr)\ \le\ \frac{2s^2}n\Bigl(1+\frac{2m}n\Bigr). \] By Markov's inequality $\P(\alpha>\frac1{4s})\le\frac{4sa}{n+b}$ and $\P(\beta'>\frac1{4s})\le\frac{4sb}{n+b}$, and $\P(\max_i\delta_i>\frac1{4s})\le n(1-\frac1{4s})^{n-1}$. For $m\le n/(64(L+1))$, $L\le s\le L+1$ and $n\ge10^4$ this gives $\P(\mathcal G)\ge\frac78$, $\kappa_0\E[q_u]\le4.1$ and $\gamma_0^m\ge1-m(1+1.3L)/n\ge0.97$. Hence the inner integral is at least $0.97\cdot\frac78\cdot e^{-4.1\cdot8/7}\,Z\ge0.0078\,Z$. \emph{Step 4: the integral in $s$.} For $L\le s\le L+1$, $(1-e^{-s})^{n-m}\ge(1-\frac1n)^n\ge0.36$ and $\frac1s\ge\frac1{L+1}$, and $\int_L^{L+1}e^{-s}ds=(1-e^{-1})/n$. Therefore \[ P_\epsilon(\sigma)\ \ge\ \frac{0.0017\ Z}{n(L+1)\,(n-1)!\,(a-1)!\,(b-1)!}. \] \emph{Step 5: counting.} Multiplying by $N_M$ and by the number of pairs in the class, $T(a,b)\ge0.0017\,\Lambda(a,b)/(n(L+1))$ with \[ \Lambda(a,b)=\eta_a\eta_b\,\frac{(n+1)!\,n!\,(n+b-a-1)!}{(n-m)!\,((n+b-1)!)^2} =\eta_a\eta_b\,\frac{\prod_{k=-(b-1)}^{b-1}(n-a+k)}{\prod_{k=2}^{b-1}(n+k)\ \prod_{k=1}^{b-1}(n+k)} . \] The numerator has $2b-1$ factors and the denominator $2b-3$: $\Lambda(a,b)\approx\eta_a\eta_bn^2(1-a/n)^{2b-1}$, and \emph{there is no factor $e^{-m^2/n}$}. For $\sqrt n\le a\le n/2$ and $2\le b\le n/(4a)$ (so $b\le\sqrt n/4$) the numerator is at least $(n-a)^{2b-1}(1-b^3/(n-a)^2)\ge(n-a)^{2b-1}/2$, the denominator is at most $(n+b)^{2b-3}$, and $((n-a)/(n+b))^{2b-3}\ge e^{-2b(a+b)/(n-a)}\ge e^{-4ab/n-4b^2/n}\ge e^{-5/4}$. Hence $\Lambda(a,b)\ge\frac19(n-a)^2e^{-5/4}/2\ge n^2/252$. \emph{Step 6: summation.} Let $\mathrm{Reg}$ be the set of $(a,b)$ with $\sqrt n\le a\le n/(128(L+1))$ and $2\le b\le n/(4a)$; then $m\le2a\le n/(64(L+1))$. The classes $(b,a)$ with $(a,b)\in\mathrm{Reg}$ are different classes with the same bound (exchange the two types). So \[ \E[S_n^2]\ \ge\ 2\,|\mathrm{Reg}|\cdot\frac{n^2}{252}\cdot\frac{0.0017}{n(L+1)},\qquad |\mathrm{Reg}|=\sum_{a=\lceil\sqrt n\rceil}^{\lfloor n/(128(L+1))\rfloor}\Bigl(\Bigl\lfloor\frac n{4a}\Bigr\rfloor-1\Bigr)\ \ge\ n\,h(n), \] where $h(n)=\frac14\bigl(\frac L2-\log(128(L+1))-n^{-1/2}\bigr)-\frac1{64(L+1)}$ (use $\sum_{a=a_0}^{a_1}\frac1a\ge\log\frac{a_1+1}{a_0}$). The function $h(n)/(L+1)$ is increasing for $n\ge10^7$, where it equals $0.00530$, and it tends to $\frac18$. This gives $\E[S_n^2]\ge7.1\cdot10^{-8}n^2$ for $n\ge10^7$ and $\liminf\E[S_n^2]/n^2\ge0.0034/(252\cdot8)=1.69\cdot10^{-6}$. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:order}] (a) is Theorem~\ref{thm:upper2}, (b) is Theorem~\ref{thm:lower2} and (d) is Theorem~\ref{thm:const2} with Theorem~\ref{thm:upper2}. For (c): the upper bound holds for $n\ge100$ by (a) and $\E[S_n]\le\E[S_n^2]$, and for the finitely many $n<100$ because $\E[S_n^2]$ is finite; the lower bound holds for $n\ge10^7$ by (b), and for smaller $n$ because $S_n\ge1$ (a stable matching always exists), so that $\E[S_n^2]\ge1$. For the ratio one needs $\E[S_n]\asymp n/\log n$. This is Pittel's theorem~\eqref{eq:pittel}; alternatively, for $n\ge100$, $\E[S_n]\le5n/\log n$ (Theorem~\ref{thm:one}) and $\E[S_n]\ge0.026\,(n+1)/(L+2)$, which is the case $m=0$ of the proof of Theorem~\ref{thm:one}. For the finitely many $2\le n<100$ the ratio statement holds because $1\le\E[S_n^2]/\E[S_n]^2<\infty$. \end{proof} \begin{remark} (i) The constant $6e^{21}$ comes from the crude treatment of the shifts; in simulations the ratio of $T(a,b)$ to $(n+1)n\,I_0\,\eta_a\eta_b\,c(a,b)$ is below $0.35$ (Section~\ref{sec:num}). (ii) The region $\mathrm{Reg}$ is empty unless $\sqrt n\ge128(L+1)$, that is $n$ above about $5\cdot10^6$; the bound of the proof is $7.2\cdot10^{-8}n^2$ at $n=10^7$ and $4.9\cdot10^{-7}n^2$ at $n=10^{10}$. The value $1.69\cdot10^{-6}$ is reached only in the limit. (iii) \emph{Not proved here.} For $d$ extra workers the proof of Theorem~\ref{thm:upper2} should go through with $e^{-s}$ replaced by $e^{-ds}$ and give $\E[S^2]\le\E[S]+C\,n(1+L)\,N_M\,I_0(d)/(n-1)!$ with $I_0(d)=\int_0^\infty(1-e^{-s})^ne^{-ds}ds/s$; we have not written this out, it has not been read, and we claim nothing for $d\ge2$ beyond Theorem~\ref{thm:all}. \end{remark} \subsection{The constant}\label{sec:const} \begin{theorem}[asymptotic only]\label{thm:const2} $\displaystyle\liminf_{n\to\infty}\frac{\E[S_n^2]}{n^2}\ \ge\ \frac1{2e^3}$. Consequently, by the upper half $\E[S_n]\le(1+o(1))\,n/(e\log n)$ of~\eqref{eq:pittel}, which we cite from~\cite{Pit17} and do not reprove, $\displaystyle\liminf_{n\to\infty}\frac{\E[S_n^2]}{\E[S_n]^2(\log n)^2}\ \ge\ \frac1{2e}$. \end{theorem} This is a statement about the limit inferior only: the parameters of the proof are sent to their limits after $n$, and no explicit $n$ is attached to any constant; the explicit statement for finite $n$ remains Theorem~\ref{thm:lower2}. Without the citation, Theorem~\ref{thm:one} ($\E[S_n]\le5n/\log n$) gives the ratio statement with $1/(50e^3)$ in place of $1/(2e)$. Compare Theorem~\ref{thm:const} with $d=1$: the constant $1/(2e^3)$ is the same, and the factor $\log n$ has disappeared. Together with Theorem~\ref{thm:upper2}, \[ 0.0249=\frac1{2e^3}\ \le\ \liminf_{n\to\infty}\frac{\E[S_n^2]}{n^2}\ \le\ \limsup_{n\to\infty}\frac{\E[S_n^2]}{n^2}\ \le\ 6e^{21}; \] nothing is proved about the existence of the limit. \begin{proof} We refine the proof of Theorem~\ref{thm:lower2}. Fix $0<\varepsilon<\frac14$, $K\ge1$, $A_0,B_0>0$ and $0<\zeta\le\frac12$, and put $\theta=1/(2(1-\zeta))$. All $o(1)$ are uniform over the classes with $K^2\sqrt n\le a\le n^{1-\varepsilon}$, $2\le b\le\sqrt n/K$ (so $m\le2n^{1-\varepsilon}$) and over $s\in[L-A_0,L+B_0]$, as $n\to\infty$ with the five parameters fixed. Throughout, the firm variables are restricted to $r_i\le\zeta/2$ for all $i$ and $P_A,P_B\le\zeta/2$; then $l_i\le\zeta/2$ and $u_i\le\zeta$. \emph{Workers.} For $0\le z\le\zeta$, $-\log(1-z)\le z+z^2/(2(1-z))\le z+\theta z^2$. Since $\max_iu_i\le\zeta$, every pair of \textup{(G)} has $z_{ij}\in[0,\zeta]$ and $z_{ij}^2\le u_i^2v_j^2$. We now keep the exact set \textup{(G)}. For $j\notin D$ the firms are those with $i\ne j$, and \[ \int_0^1e^{-(s-u_j)y-\theta q_uy^2}\,dy\ \ge\ F(s-u_j)\,e^{-2\theta q_u/(s-u_j)^2}\ \ge\ F(s)\,e^{u_j\mu(s)-2\theta q_u/(s-\zeta)^2}, \] where $\mu=-(\log F)'$ is nonincreasing, $\mu(s)\le1/s$ and $s\mu(s)=\rho(s)=1-s/(e^s-1)$, as in Proposition~\ref{prop:window}. For $j\in A$ the coefficients of $w_j$ and $q_j$ are $s'=s-u_j-u_{j'}$ and $c'=s_A-l_j-l_{j'}$ with $s_A-\zeta\le c'\le s'$; as in Step~2 above the integral is at least $G(c',s')e^{-6\theta q_u/c'^2}\ge G(s_A,s)e^{-6\theta q_u/(s_A-\zeta)^2}$, because $G$ is decreasing in both arguments. Since $\sum_{j\notin D}u_j=s-\sum_{i\in D}u_i$, the worker integral times $e^{-s}$ is at least \begin{gather*} e^{-s}F(s)^{n-m}G(s_A,s)^aG(s_B,s)^b\exp\Bigl(\rho(s)-\frac1s\sum_{i\in D}u_i-\kappa'q_u\Bigr),\\ \kappa'=\theta\Bigl(1+\frac{2(n-m)}{(s-\zeta)^2}+\frac{6a}{(s_A-\zeta)^2}+\frac{6b}{(s_B-\zeta)^2}\Bigr). \end{gather*} \emph{Firms.} Proceed as in Step~3 with $\mathcal G=\{\alpha,\beta'\le\frac\zeta{2s},\ \max_i\delta_i\le\frac\zeta{2s}\}$. We have $\frac1s\sum_{i\in D}u_i\le\alpha+\beta+\sum_{i\in D}\delta_i$, whose mean is at most $3m/n=o(1)$; $\P(\mathcal G)\ge1-\frac{2sm}{\zeta n}-n(1-\frac\zeta{2s})^{n-1}=1-o(1)$; on $\mathcal G$, $\kappa'\le\theta(1+2n/(s-\zeta)^2+6m/(s-\frac32\zeta)^2)$, so $\kappa'\E[q_u]\le4\theta+o(1)$; the factors $\gamma_A,\gamma_B$ are at least $1-(1+se^{\zeta/2})e^{-s}$, whose $m$-th power is $1-o(1)$ because $mL/n\to0$; and $\rho(s)=1-o(1)$. Jensen's inequality gives: inner integral $\ge(1-o(1))\,e^{1-2/(1-\zeta)}Z$. \emph{The integral in $s$.} $\int_{L-A_0}^{L+B_0}(1-e^{-s})^ne^{-s}\,ds/s\ge \bigl((1-e^{-B_0}/n)^{n+1}-(1-e^{A_0}/n)^{n+1}\bigr)/((n+1)(L+B_0))=(1-o(1))(e^{-e^{-B_0}}-e^{-e^{A_0}})/(nL)$. So $T(a,b)\ge(1-o(1))\,c_1\,\Lambda(a,b)/(nL)$ with $c_1=e^{1-2/(1-\zeta)}(e^{-e^{-B_0}}-e^{-e^{A_0}})$. \emph{The classes.} As in Step~5, $\Lambda(a,b)\ge\eta_a\eta_b(n-a)^2\bigl(\frac{n-a}{n+b}\bigr)^{2b-3}\bigl(1-\frac{b^3}{(n-a)^2}\bigr) \ge(1-o(1))\,e^{-2/K^2}\eta_a\eta_b\,n^2e^{-bx_a}$ with $x_a=2a/(n-a)$. Here $x_a\to0$ uniformly and $x_a\sqrt n/K\ge2K$. Since $\sum_b\eta_bz^b=e^{-z}/(1-z)$, we have $\sum_{b\ge2}\eta_be^{-bx}=(e^{-1}+o(1))/x$ as $x\to0$, and the part $b>\sqrt n/K$ of this sum is at most $(\frac12e^{-2K}+o(1))/x_a$. Hence $\sum_{2\le b\le\sqrt n/K}\eta_be^{-bx_a}\ge(e^{-1}-\frac12e^{-2K}-o(1))\,\frac n{2a}$, and $\sum_{K^2\sqrt n\le a\le n^{1-\varepsilon}}\eta_a/a=(e^{-1}(\frac12-\varepsilon)+o(1))L$. Adding the classes $(b,a)$, \[ \E[S_n^2]\ \ge\ (1-o(1))\,n^2\,c_1\,e^{-2/K^2}\bigl(e^{-1}-\tfrac12e^{-2K}\bigr)\,e^{-1}\bigl(\tfrac12-\varepsilon\bigr). \] Let $n\to\infty$, then $\zeta\to0$ and $A_0,B_0\to\infty$ (so that $c_1\to e^{-1}$), $K\to\infty$ and $\varepsilon\to0$. \end{proof} \section{Which configurations create the large second moment}\label{sec:config} This section explains, without new proofs, where the mass of $\E[S_n^2]$ sits. The statements marked \emph{heuristic} are computations in which every factor $1-z$ of the pair formula is replaced by $e^{-z}$. What Section~\ref{sec:order} proves about them is this: an upper bound for every class, of the same form but with $e^{-ab/n}$ in place of $e^{-2ab/n}$ and with the constant $e^{21}$ (Theorem~\ref{thm:upper2}); and a lower bound of matching form on the classes of the region $\mathrm{Reg}$ of Theorem~\ref{thm:lower2} (and, by Section~\ref{sec:proofs}, on the square $a,b\le\sqrt n$). The asymptotic equality~\eqref{eq:heur} itself is not proved. The tables are simulations; they illustrate the mechanism and are not used in any proof. \subsection{Classes of pairs} Let $M$ and $M'$ be two stable matchings of the same market. The firms on which they differ are permuted in cycles, and on each cycle either every firm prefers $M$ and every worker prefers $M'$ (type~A), or the reverse (type~B); this is condition (T) of Lemma~\ref{lem:pair}. Let $a$ be the number of firms in cycles of type~A and $b$ the number in cycles of type~B. The pair is \emph{comparable} in the lattice of stable matchings exactly when $b=0$ or $a=0$. $T(a,b)$ is the expected number of ordered pairs of stable matchings of class $(a,b)$, so that $\E[S_n^2]=\sum_{a,b}T(a,b)$ and $T(0,0)=\E[S_n]$. \subsection{The factor $e^{-2ab/n}$ (heuristic)} For $m=a+b\ll n/\log n$ the computation gives \begin{equation}\label{eq:heur} \frac{T(a,b)}{\E[S_n]}\ \approx\ \eta_a\,\eta_b\,e^{-2ab/n},\qquad \eta_k\to e^{-1}. \end{equation} Three factors enter. Choosing the moved firms and paying for their scores gives $\prod_{kn/\log n$\\ \midrule 50 & 200000 & 4.452 & 42.2 & 0.725 & 0.987 & 0.482 & 0.225\\ 100 & 100000 & 7.556 & 148.1 & 0.623 & 0.978 & 0.409 & 0.203\\ 200 & 40000 & 13.155 & 533.9 & 0.546 & 0.975 & 0.343 & 0.184\\ \bottomrule \end{tabular} \caption{Plain simulation (independently written program). The last four columns are shares of $\E[S_n^2]-\E[S_n]$. Standard errors of $\E[S_n^2]$: $0.44$, $3.1$, $16.4$. (Status: computation; simulation.)}\label{tab:shares} \end{table} Almost all pairs have $ab\le n$; the share within distance $\sqrt n$ falls with $n$; about a fifth of the pairs differ on more than $n/\log n$ firms. \paragraph{What the simulations do not show.} They do \emph{not} show the order $n^2$. In Table~\ref{tab:shares}, $\E[S_n^2]/n^2$ is $0.0169$, $0.0148$, $0.0134$ for $n=50,100,200$: it decreases. The heuristic predicts this. With $\E[S_n]=n/(e\log n)$, the sum of $\mathcal F$ over all classes gives $\E[S_n^2]/n^2\approx0.0189$, $0.0163$, $0.0150$, $0.0144$, $0.0141$ for $n=50$, $100$, $200$, $400$, $800$ and $0.0142$, $0.0145$, $0.0154$, $0.0162$ for $n=3200$, $10^4$, $10^5$, $10^6$: a minimum near $n=10^3$ and a slow rise afterwards towards $e^{-3}/2=0.0249$. (In the expansion $\E[S_n^2]/n^2\approx e^{-3}(\frac12-\log\log n/\log n+c_n/\log n)$ the term $c_n/\log n$ is positive and shrinking, and at these sizes it outweighs the growth of $-\log\log n/\log n$; equivalently, the sum of $\mathcal F$ divided by $e^{-2}n$ is $1.89$, $2.30$, $2.69$, $3.56$, $4.50$ for $n=800$, $3200$, $10^4$, $10^5$, $10^6$, against $\frac12\log n-\log\log n=1.44$, $1.95$, $2.38$, $3.31$, $4.28$.) At $n=800$ our two runs of the sampler for the market conditioned on $M_0$ being stable disagree by about two standard errors: the earlier run ($173$ stable matchings per stable $M_0$, standard error $22$; Table~\ref{tab:sim}) gives $\E[S_n^2]=6689$, that is $0.0105\,n^2$, while the later one ($233$, standard error $19$; Table~\ref{tab:classes}) gives, with $\E[S_n]=38.6$, about $9000$, that is $0.0141\,n^2$. We draw no conclusion at $n=800$. No $n$ within reach of simulation separates $n^2$ from $n^2/\log n$. The simulations are evidence for the mechanism (which classes carry the pairs), not for the order; the order rests on the proofs of Section~\ref{sec:order}. \subsection{The same configurations in the balanced market (heuristic)} In the balanced market $\E[S]\sim e^{-1}n\log n$ comes from $n\int ds/s$ over $\log n\le s\le n/\log n$, with the same correction constant $e^{-1}$. For pairs the computation has no factor $e^{-s}$, and for $s$ in the bulk of that range $e^{-s_A}$ is far below $1/n$ for every $a\le n/2$, so the cut-off is of order $n$. The classes with $ab\le n$ then contribute \[ \E[S]\cdot e^{-2}\,\frac n2\,\bigl(\log n+O(1)\bigr)=\tfrac12e^{-3}(n\log n)^2\,(1+o(1)), \] and the remaining classes, in which the two matchings are nearly independent, contribute $\E[S]^2=e^{-2}(n\log n)^2$. The total is $(e^{-2}+\frac12e^{-3})(n\log n)^2$, the theorem of Lennon and Pittel~\cite{LP09}. So the term $\frac12e^{-3}$ of that theorem is the contribution of the comparable and nearly comparable pairs, with no free parameter. With one extra worker the same pairs give $n^2/(2e^3)$, while $\E[S]^2$ drops to $n^2/(e\log n)^2$: the two terms change places. This is a comparison of leading constants only. We have not compared it with the steps of the proof in~\cite{LP09}, and we have not tested it class by class in simulations of the balanced market; the method of Theorem~\ref{thm:upper2} does not apply there as written, because without the factor $e^{-s}$ the integral $I_0$ diverges on the orthant. \section{What is machine-checked and public, and what the formal statement says}\label{sec:lean} On the site where the refutation was submitted the two problems are called ``Pittel's second-moment conjecture for nearly balanced markets'' (the general statement, identifier \texttt{Arxiv.1701.08900.second\_moment}) and its one-extra-worker case (\texttt{Arxiv.1701.08900.second\_moment\_one\_extra\_worker}). This section separates the public, machine-checked refutation from the stronger results of Section~\ref{sec:order}, which exist on paper only. \subsection{The formal statement} The conjecture was formalised in Lean~4 in the \emph{formal-conjectures} library, contributed by B.~Cowgill and merged there on 9 November 2026. The statement and the model are in the files \begin{center} \small\texttt{FormalConjectures/Arxiv/1701.08900/SecondMoment.lean}\\ \texttt{FormalConjecturesForMathlib/Combinatorics/StableMarriage/Unbalanced.lean} \end{center} The statement for one extra worker is \begin{verbatim} theorem second_moment_one_extra_worker : exists C : Real, 0 < C /\ (eventually, for n : Nat in atTop), secondMomentNumStableMatchings n (n + 1) <= C * (expectedNumStableMatchings n (n + 1)) ^ 2 \end{verbatim} (here and below the Unicode symbols of the Lean source are transliterated: \texttt{exists} for $\exists$, \texttt{/\textbackslash} for $\wedge$, ``eventually'' for the filter quantifier, \texttt{not} for $\neg$, \texttt{<=} for $\le$) and the general statement \texttt{second\_moment} asserts the same, with $n+d_n$ in place of $n+1$, for every sequence $d$ with $d_n\ge1$ and $d_n/n\to0$ (the constant may depend on the sequence). \subsection{Do the formal definitions match the problem?} We compared the definitions with Section~1.1, item by item. \begin{itemize} \item \emph{Preferences.} \texttt{Profile n m} consists of a rank function for each of the $n$ firms (a permutation of the $m$ workers) and for each of the $m$ workers (a permutation of the $n$ firms); a smaller rank is preferred. \texttt{uniformProfile} is the uniform law on the finite set of profiles. So the $n+m$ rankings are independent and uniform over strict orders, as in~\cite{Pit17}. \item \emph{Matchings.} \texttt{Matching n m} is an embedding of the firms into the workers: every firm is matched and $m-n$ workers are not. This is Pittel's notion for $n_1=n\le n_2=m$. \item \emph{Stability.} \texttt{IsBlockingPair p mu i j} says: $\mu(i)\ne j$, firm $i$ ranks $j$ above $\mu(i)$, and every firm $k$ with $\mu(k)=j$ is ranked by $j$ below $i$. The last clause is empty when $j$ is unmatched, so an unmatched worker blocks with any firm that prefers it. This is the definition of Section~1.1. \item \emph{The two moments.} \texttt{numStableMatchings} counts the stable embeddings, and the two quantities in the statement are the integrals of this count and of its square (squared as a real number) against \texttt{uniformProfile}. With $m=n+1$ they are $\E[S_n]$ and $\E[S_n^2]$. \item \emph{The asymptotic relation.} ``$\E[S^2]=O(\E^2[S])$'' is rendered as: there is $C>0$ such that the inequality holds for all sufficiently large $n$. \end{itemize} A numerical confirmation, by two independently written programs, that the rank model of the formal definitions, as re-implemented from the definitions (the enumeration was not run on the Lean code itself), is the model of this paper: exhaustive enumeration of all profiles gives $\E[S_2]=\frac{25}{24}$, $\E[S_2^2]=\frac98$ ($288$ profiles) and $\E[S_3]=\frac{4277}{3888}$, $\E[S_3^2]=\frac{40657}{31104}$ ($17{,}915{,}904$ profiles), the values given by the integral formulas of Sections~\ref{sec:one} and~\ref{sec:pairs}. Two differences of scope should be kept in mind. First, the conjecture in~\cite{Pit17} is about every regime with $n_2/n_1\to1$; the formal statement \texttt{second\_moment\_one\_extra\_worker} is the single case $n_2=n_1+1$, and \texttt{second\_moment} quantifies over all sequences with $d_n/n\to0$, so one sequence refutes it. Second, the page of the problem on the site to which the refutation was submitted (lefttosolve.com) carried, when we read it on 28 November 2026, the label ``Refutation accepted $\cdot$ statement being verified $\cdot$ checked by Lean here'', with the explanation that the formal statement must still be checked against the original problem before the refutation counts as solving it. We do not know what that check will consist of; the comparison above is ours. \subsection{What the merged Lean file proves} The file \begin{center} \small\texttt{proofs/Arxiv.1701.08900.second\_moment\_one\_extra\_worker.lean} \end{center} ($4{,}184$ lines; axioms \texttt{propext}, \texttt{Classical.choice}, \texttt{Quot.sound}) was merged into the public repository \texttt{lefttosolve2/open-math-agents} on 28 November 2026 (pull request 14797), after the Lean kernel accepted it against the statement above. Its three main statements are, with $L=\log n$: \begin{verbatim} theorem expected_le (n : Nat) (hn : 200000 <= n) : expectedNumStableMatchings n (n + 1) <= 10 * n / Real.log n theorem second_moment_lower (P n : Nat) (hP : 200 <= P) (hn : n = 16 * P ^ 4) : Real.exp (-75) * (n : Real) ^ 2 / (115200 * Real.log n) <= secondMomentNumStableMatchings n (n + 1) theorem OMA.disproof : not (type_of% @Arxiv.<<1701.08900>>.second_moment_one_extra_worker) \end{verbatim} In words: $\E[S_n]\le10n/\log n$ for $n\ge2\cdot10^5$; $\E[S_n^2]\ge e^{-75}n^2/(115200\log n)$ along the sequence $n=16P^4$, $P\ge200$; hence, for every $C$, the inequality $\E[S_n^2]\le C\,\E[S_n]^2$ fails for some arbitrarily large $n$ of this form, which contradicts ``for all sufficiently large $n$''. The upper bound on the mean is proved inside the file; it does not rely on~\cite{Pit17}. The merged file also contains the negation of the general formal statement, as the theorem \texttt{OMA.not\_second\_moment\_general}, obtained from the sequence $d_n=1$. The submission against the general statement itself is a companion file with the same proof, ending in the corresponding \texttt{OMA.disproof} (\texttt{proofs/Arxiv.1701.08900.second\_moment.lean}, pull request 15561, opened 28 November 2026); it was merged on 29 November 2026. The formal proof follows the first approximation of Section~1.4, by a route adapted to the proof assistant: no continuous scores (a counting lemma for rankings gives the cube integrals directly), a sufficient event for a pair of matchings with $2\le a,b\le\sqrt n/4$ moved firms of each type, and one-dimensional Laplace integrals. Its constants are much weaker than those of Theorem~\ref{thm:one}. \textbf{What it does not prove.} The Lean file gives a lower bound of order $n^2/\log n$ for $\E[S_n^2]$ on a sparse sequence of $n$. It contains no upper bound for $\E[S_n^2]$, no lower bound of order $n^2$, and nothing of Proposition~\ref{prop:exact}. Theorem~\ref{thm:order} is not formalised. \section{Exact and numerical checks}\label{sec:num} None of the following is used in the proofs. \paragraph{Exact checks.} For $(n,d)=(2,1),(3,1),(4,1),(2,2),(2,3),(3,2),(4,2)$ we integrated the pair formula of Lemma~\ref{lem:pair} symbolically for every permutation and every type pattern. The sum, multiplied by $N_M$, equals $\E[S^2]$ computed by exhaustive enumeration of all preference profiles in the five cases where that is feasible: $\frac98$ for $(2,1)$, $\frac{40657}{31104}$ for $(3,1)$, $\frac{17}{16}$ for $(2,2)$, $\frac{83}{80}$ for $(2,3)$ and $\frac{90007}{77760}$ for $(3,2)$. (For $(3,2)$ the enumeration is over the profiles in which the first firm's list is in a fixed order; relabelling the workers maps every profile to one of these and preserves $S$, so the values are exact.) For $(4,1)$ it equals $\frac{3652990993}{2388787200}$, the value of an exact count in the rank model in which the firms' rankings are enumerated and the workers' rankings are counted in closed form (there are about $1.6\cdot10^{15}$ profiles); for $(4,2)$ no independent value is available. The right side of Lemma~\ref{lem:sum} is $1.0787$, $1.1949$, $1.3351$ for $(n,1)$, $n=2,3,4$, below the exact values $1.1250$, $1.3071$, $1.5292$. \paragraph{Simulations for $d=1$.} Dividing Lemma~\ref{lem:sum} by $\E[S]=N_MJ_0$ gives $\E[S\mid M_0\text{ stable}]\ge\E[W\mid M_0\text{ stable}]$, where $W=\sum_md_2(m)\,e_m(x_1y_1,\dots,x_ny_n)$ and $e_m$ is the elementary symmetric polynomial. Both sides were estimated with a Gibbs sampler for the market conditioned on $M_0$ being stable (Table~\ref{tab:sim}). The table also shows the lower bound on $\E[S^2]$ obtained by evaluating Proposition~\ref{prop:window} numerically (trapezoid rule in $s$, the best $z$ on a grid, all $m$) and inserting it in Lemma~\ref{lem:sum}. \begin{table}[ht] \centering \small \begin{tabular}{@{}rrrrrr@{}} \toprule $n$ & proved bound & Lemma~\ref{lem:sum}, right side & $\E[S^2]$ & $\E[S]^2$ & $\E[S^2]/\E[S]^2$\\ \midrule 100 & 13.6 & 57 & 144 & 55.6 & 2.6\\ 200 & 85.6 & 175 & 522 & 171 & 3.1\\ 400 & 405 & 551 & 1898 & 486 & 3.9\\ 800 & 1706 & 2138 & 6689 & 1490 & 4.5\\ \bottomrule \end{tabular} \caption{One extra worker. Column 2 is the lower bound on $\E[S^2]$ given by Proposition~\ref{prop:window} and Lemma~\ref{lem:sum}, evaluated numerically; columns 3--6 are Monte Carlo estimates (relative standard errors between $0.02$ and $0.13$). Status: computation.}\label{tab:sim} \end{table} The inequalities column $2\le$ column $3\le$ column $4$ hold in every row, and at $n=800$ the proved lower bound already exceeds the simulated $\E[S]^2$. Column 2 divided by $n^2/\log n$ equals $0.0063$, $0.0114$, $0.0152$, $0.0178$ for $n=100,\dots,800$, and $0.0219$, $0.0230$, $0.0235$ for $n=10^4,10^5,10^6$; it increases to the constant $1/(2e^3)=0.0249$ of Theorem~\ref{thm:const}. Column 3 divided by $n\,\E[S]$ is between $0.062$ and $0.077$ for $n=100,\dots,800$, close to the value $e^{-2}/2=0.068$ predicted by the proof of Theorem~\ref{thm:const}. The simulated $\E[S\mid M_0\text{ stable}]$ is two to four times larger than column~3 divided by $\E[S]$, and the factor grows with $n$: this is the loss in Lemma~\ref{lem:lower}, which comes from pairs of moved firms of the same type (Proposition~\ref{prop:exact}); see Section~\ref{sec:config}. \paragraph{Exact values by class (status: certified by exact rational arithmetic and re-verified by an independently written program).} With $g_{ij}$ written as in Proposition~\ref{prop:exact}, we computed $T(a,b)$ exactly for $d=1$ and $n\le5$. The sum over the classes equals $\frac98$, $\frac{40657}{31104}$ and $\frac{3652990993}{2388787200}$ for $n=2,3,4$, the values of $\E[S^2]$ obtained by enumeration of preference profiles. For $n=5$ it gives \[ \E[S_5]=\frac{28875460604909}{23328000000000}=1.237803,\qquad \E[S_5^2]=\frac{242866775489460553}{136048896000000000}=1.785143 . \] Enumeration of the profiles is out of reach at $n=5$ (there are about $5.8\cdot10^{26}$), and so is the exact formula at $n=6$. An independently written program, with $g_{ij}$ coded from Lemma~\ref{lem:pair} rather than from Proposition~\ref{prop:exact}, gives the same two values at $n=5$: the fractions agree to the last digit, and its plain Monte Carlo over $3{,}000{,}000$ markets gives $1.23799$ (standard error $0.00029$) and $1.78598$ ($0.00110$). In all cases $T(a,b)=T(b,a)$. For $n=4$ and $\sigma=(12)(34)$ the two patterns with equal types have probability $\frac{98267569}{17199267840000}$ each and the two mixed patterns $\frac{674041}{268738560000}$ each: equal types are $2.28$ times more likely, which is the term $p_iq_j$ of Proposition~\ref{prop:exact}. \paragraph{The classes, and the bound of Theorem~\ref{thm:upper2}.} The simulations of the classes are in Section~\ref{sec:config} (Tables~\ref{tab:classes} and~\ref{tab:shares}). In them, the ratio of $T(a,b)$ to the expression $(n+1)n\,I_0\,\eta_a\eta_b\,c(a,b)$ of the proof of Theorem~\ref{thm:upper2} is at most $0.35$ on every class with enough observations ($n=50,100,200$, independent program) and at most $0.33$ on every block of classes ($n=100,200,400$, ours); the theorem allows $e^{21}$. At $n=5$ the exact ratios are between $0.002$ and $0.09$. All identities and elementary inequalities used in Section~\ref{sec:order} were also tested on random values by two independently written programs. \paragraph{General $d$.} For $n\in\{10^4,10^5,10^6\}$ and $d$ between $1$ and $n/10$, the numerical value of the bound of Proposition~\ref{prop:window} for $\E[S^2]$, divided by the same bound for $\E[S]$ (the term $m=0$) and by $\min(n,N^2)$, stays between $0.04$ and $0.22$ while $\min(n,N^2)$ varies over three orders of magnitude, in agreement with the form of Theorem~\ref{thm:all}(a). \paragraph{Independent verification, and its limits.} The arguments of this paper were checked, at the author's direction, by \emph{independent AI-assisted readings}. By this we mean a separate run of the AI system named in the statement at the end of the paper, set up to re-derive the argument line by line and to write its own programs, without access to the programs of the first derivation. There were three such readings. \emph{First reading (27 November 2026).} An earlier version of the argument, for one extra worker and with a cruder form of Proposition~\ref{prop:window} (constants $e^{-20}/1440$ and $25$, threshold $n\ge10^4$), was re-derived line by line. With an independently written program this reading \begin{itemize} \item enumerated all $288$ preference profiles for $n=2$ and all $17{,}915{,}904$ profiles for $n=3$ (with $d=1$), directly in the rank model, and obtained $\E[S]=\frac{25}{24}$, $\frac{4277}{3888}$ and $\E[S^2]=\frac98$, $\frac{40657}{31104}$, as well as the probability that $M_0$ and $M_0\sigma$ are both stable for each $\sigma$: $\frac1{72}$ for the transposition ($n=2$), $\frac{119}{46656}$ for each transposition and $\frac1{2048}$ for each $3$-cycle ($n=3$); \item evaluated the pair formula of Lemma~\ref{lem:pair} exactly and obtained the same numbers, each of the two types contributing exactly one half; \item for $n=4$ and $\sigma=(12)(34)$ obtained $\frac{98267569}{17199267840000}$ for each pattern with equal types and $\frac{674041}{268738560000}$ for each mixed pattern, identical to our values, and confirmed them by a direct Monte Carlo experiment in the score model; \item checked the statements quoted from~\cite{Pit17} against the text of that paper. \end{itemize} It found no gap. \emph{Second reading (27 November 2026).} It covered the case of $d$ extra workers in Lemmas~\ref{lem:one}--\ref{lem:d2}, Proposition~\ref{prop:window}, Lemma~\ref{lem:upper} and the proofs of Theorems~\ref{thm:one}--\ref{thm:all}. With its own program it enumerated all profiles for $(n,d)=(2,2)$ and $(2,3)$ ($9{,}216$ and $460{,}800$ profiles) and, for $(3,2)$, all profiles up to relabelling of the workers ($111{,}974{,}400$ profiles with the first firm's list fixed, out of $13{,}436{,}928{,}000$), and found $(\E[S],\E[S^2])=(\frac{49}{48},\frac{17}{16})$, $(\frac{81}{80},\frac{83}{80})$ and $(\frac{408947}{388800},\frac{90007}{77760})$, the values given by Lemma~\ref{lem:one} and by the pair formula, and no pair of stable matchings with different sets of unmatched workers; it reproduced column~2 of Table~\ref{tab:sim} with its own quadrature (its values are higher by a factor of at most $1.015$); it compared the bound of Proposition~\ref{prop:window} with a Monte Carlo evaluation of $J_m$ itself for $(n,d)=(100,1)$ and $(200,5)$ (the bound was below in every case); and it recomputed all constants. It found no gap; its corrections (a missing hypothesis $z<1$ in Proposition~\ref{prop:window}, three rounded numbers in the proof of Theorem~\ref{thm:one}, and some wording) are incorporated. \emph{Third reading (28 November 2026).} Section~\ref{sec:order} was written on 28 November 2026. The third reading went through Proposition~\ref{prop:exact} and the proofs of Theorems~\ref{thm:upper2}, \ref{thm:lower2} and~\ref{thm:const2} step by step and found no gap. It re-derived the ``only if'' half of Lemma~\ref{lem:pair}, which the upper bound needs; enumerated all profiles for $n=2,3$; computed $\E[S_n]$ and $\E[S_n^2]$ exactly from the pair formula for $n\le5$ with an independently written program (identical fractions to ours); ran plain simulations for $n=50,100,200$ in which every ordered pair of stable matchings is classified (Table~\ref{tab:shares}); and tested each identity and inequality of Section~\ref{sec:order} on random values. Its corrections are incorporated: the thresholds and constants of Theorem~\ref{thm:lower2} (the constant quoted for $n\ge10^7$ is the one the proof gives there, and the larger constant is stated only as a limit inferior), the remark that the lower bound holds for all $n$ because $S_n\ge1$, the dependence of the ratio statement of Theorem~\ref{thm:const2} on the upper half of~\eqref{eq:pittel}, and the plain statement that simulations do not show the order $n^2$ (Section~\ref{sec:config}). The statement for $d$ extra workers in the last remark of Section~\ref{sec:order} was not checked and is not claimed. The third reading then went through the whole paper against its sources (the quotation from~\cite{Pit17}, the merged Lean file, the formal definitions), and its corrections of wording are incorporated. \emph{What the third reading did not verify, and what covers it.} Of Sections~\ref{sec:one} to~\ref{sec:proofs} it verified Lemma~\ref{lem:one} and Lemma~\ref{lem:pair} (both directions) and went closely through Lemmas~\ref{lem:lower} and~\ref{lem:sum}. It did \emph{not} verify Lemma~\ref{lem:d2}, Proposition~\ref{prop:window}, Lemma~\ref{lem:upper}, or the proofs of Theorems~\ref{thm:one}, \ref{thm:const} and~\ref{thm:all} in Section~\ref{sec:proofs}; for these the only checks are the first two readings. What is machine-checked is exactly the content of Section~\ref{sec:lean}: there is no $C$ with $\E[S_n^2]\le C\,\E[S_n]^2$ for all large $n$, together with the two bounds of the Lean file ($\E[S_n]\le10n/\log n$ for $n\ge2\cdot10^5$, and the lower bound for $\E[S_n^2]$ along $n=16P^4$). So the failure of the conjecture for one extra worker does not depend on any paper proof. Theorems~\ref{thm:one}, \ref{thm:const}, \ref{thm:all} and Corollary~\ref{cor:all} (explicit constants, fixed $d$, all $d$) are paper proofs checked by the first two readings; Theorem~\ref{thm:order} and Proposition~\ref{prop:exact} are paper proofs checked by the third. Section~\ref{sec:order} uses from the earlier sections only Lemma~\ref{lem:pair}, the inequality for $F$ from the proof of Lemma~\ref{lem:upper}, and, for the ratio, $\E[S_n]\asymp n/\log n$, which is also Pittel's theorem~\eqref{eq:pittel}. \emph{Limits.} The case $n=4$ was not enumerated over all profiles. The explicit theorems start at $n=100$, $n=10^4$ and $n=10^7$, beyond the range of the simulations, and rest on the proofs alone. The numerical evaluations use floating point, not interval arithmetic. The simulations of the market conditioned on $M_0$ being stable were not rerun by the readings. All three readings were carried out with the same AI system as the first derivation, so they may share blind spots. The results have not yet been peer reviewed, and no specialist in random matching has checked the proofs. Only the refutation described in Section~\ref{sec:lean} is formalised (by a different, cruder route); Theorem~\ref{thm:order} is not. Novelty: the results were not found in a bounded literature search (arXiv listings, the papers citing~\cite{Pit17} as listed by one citation index, public code repositories, on 28 November 2026); MathSciNet, zbMATH and Google Scholar were not searched, and a failed search does not establish novelty. \section{What replaces the conjecture, and what is not known}\label{sec:remains} \paragraph{One extra worker (proved).} By Theorem~\ref{thm:order}, the statement that replaces $\E[S_n^2]=O(\E[S_n]^2)$ is $\E[S_n^2]\asymp n^2$, that is $\E[S_n^2]/\E[S_n]^2\asymp(\log n)^2$. \begin{conjecture}[sharp form]\label{conj:sharp} $\E[S_n^2]\sim n^2/(2e^3)$, that is $\E[S_n^2]/\E[S_n]^2\sim(\log n)^2/(2e)$. More precisely, $\E[S_n^2]/\E[S_n]=e^{-2}n\bigl(\tfrac12\log n-\log\log n+O(1)\bigr)$. \end{conjecture} The lower half, $\liminf\E[S_n^2]/n^2\ge1/(2e^3)$, is Theorem~\ref{thm:const2}. The existence of the limit and the upper half are not proved. The reasons to believe the conjecture are the heuristic~\eqref{eq:heur} with its cut-off, the agreement of that heuristic with the simulated classes (Table~\ref{tab:classes}), and the fact that the same computation reproduces the term $\frac12e^{-3}(n\log n)^2$ of the theorem of Lennon and Pittel (Section~\ref{sec:config}). A proof of the upper half would need three things that Theorem~\ref{thm:upper2} does not have: the sharp constant in place of $e^{21}$ (concentration of the scores on the set used in the lower bound), the weight $e^{-2ab/n}$ in place of $e^{-ab/n}$, and a proof that the classes with $a$ above $n/\log n$ are negligible. \paragraph{More extra workers (open).} Theorem~\ref{thm:all} gives $\E[S^2]/\E[S]\ge c\min(n,N^2)$ for every $d$. For $d=1$ this is not sharp. We expect the truth to be of order $\min\bigl(N^2,\ n(1+\log^+(N^2/n))\bigr)$: the factor $\rho\approx1-1/N$ per moved firm cuts the classes at $m\approx N$, and the sum of $e^{-2ab/n}$ over $a+b\le N$ is of this order. Nothing of this is proved for $d\ge2$. At the other end, $\E[S^2]=O(\E[S]^2)$ is a theorem for $d=0$~\cite{LP09}, and we expect it to hold when $d/n$ is bounded away from $0$, where $\E[S]$ is bounded by~\eqref{eq:pittel}. \paragraph{What a large second moment does and does not say.} The conjecture was meant to give that $S$ is of the order of $\E[S]$ with probability bounded away from $0$. The growth of $\E[S^2]/\E[S]^2$ does not decide this, in either direction. A large second moment does not show that a typical market has a widely variable number of stable matchings: $\E[S_n^2]$ can be carried by rare markets with very many stable matchings. Nothing is proved about this. In simulations (status: simulation, independently written program; $n=50,100,200$) the hundredth of the markets with the most stable matchings carries $0.28$, $0.35$, $0.40$ of the sum of $S^2$, and the tenth with the most carries $0.68$, $0.74$, $0.80$. What the second moment method now yields is only the Paley--Zygmund bound $\P(S_n\ge\frac12\E[S_n])\ge\E[S_n]^2/(4\E[S_n^2])\ge c/(\log n)^2$, a lower bound that tends to $0$. Any statement about the typical size of $S_n$ requires additional probability bounds, which we do not have. \begin{conjecture}[numerical evidence only]\label{conj:typical} With one extra worker, $\mathrm{Var}(\log S_n)\to\infty$. \end{conjecture} \paragraph{Open question.} Does $S_n/\E[S_n]\to0$ in probability with one extra worker, or is $\P(S_n\ge c\,\E[S_n])$ bounded away from $0$ for some $c>0$, as Pittel's conjecture intended? The data below do not point either way. The evidence is plain simulation of markets with one extra worker (status: computation): \begin{center} \small \begin{tabular}{@{}rrrrrrr@{}} \toprule $n$ & samples & mean & median & $\P(S\ge\text{mean})$ & $\P(S\ge\text{mean}/2)$ & $\mathrm{Var}(\log S)$\\ \midrule 25 & 240000 & 2.74 & 2 & 0.373 & 0.672 & 0.45\\ 50 & 100300 & 4.49 & 3 & 0.311 & 0.560 & 0.68\\ 100 & 25000 & 7.46 & 4 & 0.326 & 0.625 & 0.90\\ 200 & 12030 & 13.07 & 8 & 0.297 & 0.530 & 1.16\\ 400 & 3600 & 22.05 & 12 & 0.293 & 0.516 & 1.40\\ \bottomrule \end{tabular} \end{center} $\mathrm{Var}(\log S)$ grows over the whole range, by about $1.5$ per unit of $\log\log n$, whereas in the balanced market it decreases (from $0.37$ at $n=25$ to $0.21$ at $n=400$); this is the basis of Conjecture~\ref{conj:typical}. A growth like a multiple of $\log\log n$ is far too slow for simulation to settle. On the other hand $\P(S\ge\text{mean}/2)$ stays near one half over this range (the independent samples give $0.557$, $0.626$, $0.525$ at $n=50,100,200$), so the table gives no support to $S_n/\E[S_n]\to0$; that is why it is stated as a question. In the balanced market, by contrast, a computer-checked proof made public by Cowgill as a Lean repository in November 2026~\cite{Cow26} establishes that $\P(S\ge\varepsilon_n\E[S])\to1$ for every sequence $\varepsilon_n\to0$; the repository attributes this statement to Lennon's dissertation and says that~\cite{LP09} asks it. We have not checked that proof. \paragraph{A related threshold.} The value $N\approx\sqrt n$, that is $d\approx2\sqrt n/\log n$, is the threshold $d\ge\sqrt n\,(\log n)^{-\gamma}$, $\gamma<1$, of \cite[Theorem~1.6]{Pit17} up to a power of $\log n$. \section*{Use of an AI system} This work was carried out by the author with extensive use of the AI system Claude (Anthropic) and his own tool, Economic Modeling Studio (``The Studio''), \url{https://github.com/tatashbar/Economic-Modeling-Studio}, under the author's direction and step-by-step guidance. The author chose the problem, directed the work at each stage, decided which results to pursue, set the standards of verification, and required independent re-derivations, exact computations and adversarial readings before a claim was kept. Under that direction the AI system was used to derive and check proofs, to write the formal (Lean) proofs and the programs, to run the computations and to draft the text. The author is responsible for the content and for any errors. The results have not yet been peer reviewed. The code and the verification scripts are available at \url{https://github.com/tatashbar/stable-matching-second-moment}. \begin{thebibliography}{99} \bibitem{AKL17} I.~Ashlagi, Y.~Kanoria and J.~D.~Leshno, Unbalanced random matching markets: the stark effect of competition, \emph{Journal of Political Economy} 125 (2017), 69--98. \bibitem{Cow26} B.~Cowgill, \emph{Lean formalization of the Lennon--Pittel conjecture on random stable matchings}, computer-checked proof, \texttt{github.com/bocowgill/lennon-pittel}, November 2026. \bibitem{GS85} D.~Gale and M.~Sotomayor, Some remarks on the stable matching problem, \emph{Discrete Applied Mathematics} 11 (1985), 223--232. \bibitem{GI89} D.~Gusfield and R.~W.~Irving, \emph{The Stable Marriage Problem: Structure and Algorithms}, MIT Press, 1989. \bibitem{LP09} C.~Lennon and B.~Pittel, On the likely number of solutions for the stable marriage problem, \emph{Combinatorics, Probability and Computing} 18 (2009), 371--421. \bibitem{MW70} D.~G.~McVitie and L.~B.~Wilson, Stable marriage assignment for unequal sets, \emph{BIT} 10 (1970), 295--309. \bibitem{Pit89} B.~Pittel, The average number of stable matchings, \emph{SIAM Journal on Discrete Mathematics} 2 (1989), 530--549. \bibitem{Pit17} B.~Pittel, On likely solutions of the stable matching problem with unequal numbers of men and women, \emph{Mathematics of Operations Research} 44(1) (2019), 122--146 (published online 18 September 2018, DOI 10.1287/moor.2017.0917); arXiv:1701.08900v2 (2017). Page numbers in the text refer to the arXiv version: Lemma~1.2 and Theorem~1.3 are on page~6, the conjecture is on page~7, and Theorem~1.6 is on page~8. \end{thebibliography} \end{document}