\documentclass[11pt,reqno]{amsart} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage{booktabs} \usepackage{array} \usepackage{graphicx} \usepackage{hyperref} \usepackage[margin=1in]{geometry} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem{remark}[theorem]{Remark} \DeclareMathOperator{\sgn}{sgn} \DeclareMathOperator{\idx}{idx} \DeclareMathOperator{\Res}{Res} \title[The Exact Maximum Number of Regular Nash Equilibria in $2\times 2\times 2\times 2$ Games is $45$]{% The Exact Maximum Number of Regular Nash Equilibria\\ in $2\times 2\times 2\times 2$ Games is $45$} \author{Ivan Besevic} \address{ESIEE-IT, Pontoise, France} \email{ivan.besevic@edu.esiee-it.fr} \thanks{ORCID: \href{https://orcid.org/0009-0004-4124-1465}{0009-0004-4124-1465}. All Lean~4.36.0 proofs, homotopy-free Rust certification (\texttt{pandsysroots}/\texttt{pandroots}), and $250$-digit Python/SymPy scripts are publicly reproducible at \url{https://github.com/ivan-fr/nash-exact-45}.} \subjclass[2020]{Primary 91A10; Secondary 91A06, 14P10, 68V20} \keywords{Nash equilibria, binary-action games, algebraic game theory, Shapley index, derangements, rational univariate representation, formal verification, Lean 4} \begin{document} \begin{abstract} Let $\mu(m; 2,\dots,2)$ denote the maximal number of isolated (regular) mixed-strategy Nash equilibria in a generic $m$-player binary-action normal-form game. While $\mu(2;2,2)=3$ is classical and $\mu(3;2,2,2)=9$ was proved by Jahani and von Stengel (2024), the four-player case $\mu(4;2,2,2,2)$ stood between $37$ (Hertling and Vuji\'c, 2024/2026) and $65$ (Vid\=unas, 2017) until our recent companion work narrowed it to $\{43, 45\}$ via a $C_4 \times \mathbb{Z}_2$-symmetric witness $G_{43}$ (proved obstructed at $n_4 \le 7$) and a sharp $3$-cube incidence upper bound $\mu(4;2,2,2,2) \le 45$. In this paper we close the remaining gap and determine the exact four-player maximum: \[ \mu(4; 2, 2, 2, 2) \;=\; 45. \] We construct an explicit two-digit integer $2\times 2\times 2\times 2$ game $G_{45}$ (all $32$ payoff-difference entries in $[-62, 60]$) obtained by breaking the $C_4 \times \mathbb{Z}_2$ symmetry on the unique boundary-saturating sign orbit. The game $G_{45}$ simultaneously attains the universal boundary maximum $n_0 + n_2 + n_3 = 8 + 12 + 16 = 36$ and the full McKelvey--McLennan interior derangement bound $n_4 = {!4} = 9$, yielding $45$ strictly regular mixed Nash equilibria with exact Shapley index sum $+8 - 12 + 0 + 5 = +1$. Its nine completely mixed equilibria are given by a radical-free exact Rational Univariate Representation (RUR) over an irreducible degree-$9$ polynomial $R_9(p_2) \in \mathbb{Z}[p_2]$ whose nine real simple roots lie in $(0,1)$ with pairwise $p_2$-separation at least $0.0387$. The entire lower bound---all $45$ strictly regular equilibria of $G_{45}$, their pairwise distinctness, nondegenerate reduced Jacobians, and global Shapley index sum $+1$---is formally verified end-to-end in Lean~4.36.0 (zero \texttt{sorry}, zero \texttt{native\_decide}, standard axioms only) using exact polynomial divisibility identities, intermediate value brackets, and kernel-verified rational interval arithmetic with algebraic divided-difference enclosures. Combined with our Lean-verified $4096$-pattern $3$-cube incidence upper bound (modulo the classical $2\times 2\times 2$ Shapley index theorem and McKelvey--McLennan's bound $n_4 \le {!4}=9$), this settles $\mu(4;2,2,2,2)=45$. Independent homotopy-free Krawczyk certification (\texttt{pandsysroots~0.34.0} / \texttt{pandroots~0.31.0}) and $250$-digit exact symbolic verification (\texttt{mpmath}/\texttt{SymPy}, maximum direct RUR residual $2.46 \times 10^{-242}$) confirm every equilibrium. \end{abstract} \maketitle \section{Introduction and Main Theorem} Determining the maximal number $\mu(m; d_1, \dots, d_m)$ of isolated mixed-strategy Nash equilibria in a generic $m$-player normal-form game with pure strategy counts $d_1, \dots, d_m$ is a central benchmark in algebraic game theory. For bimatrix games ($m=2$), upper bounds of Keiding~\cite{Keiding1997}, cyclic-polytope constructions of von Stengel~\cite{vonStengel1999}, and the recent exact resolution of the $5\times 5$ case $\mu(2;5,5)=31$ by Ickstadt, Theobald, and von Stengel~\cite{Ickstadt2024} illustrate the interplay between polyhedral combinatorics and real algebraic geometry. For multiplayer games ($m \ge 3$), the canonical binary-action family $d_1 = \dots = d_m = 2$ has strategy space $Q_m = [0,1]^m$. By McKelvey and McLennan~\cite{McKelveyMcLennan1997}, the maximal number of regular completely mixed equilibria on any $k$-dimensional face of $Q_m$ is the derangement number \[ {!k} \;=\; k! \sum_{j=0}^{k} \frac{(-1)^j}{j!}, \qquad ({!0}=1,\; {!1}=0,\; {!2}=1,\; {!3}=2,\; {!4}=9,\; {!5}=44). \] Summing over all $\binom{m}{k}2^{m-k}$ faces of $Q_m$ gives the upper bound $V(m) = \sum_{k=0}^{m} \binom{m}{k}2^{m-k}({!k})$ of Vid\=unas~\cite{Vidunas2017}, yielding $V(2)=5$, $V(3)=16$, $V(4)=65$. Exact maxima were known for $m=2$ ($\mu(2;2,2)=3$) and $m=3$, where Jahani and von Stengel~\cite{JahaniVonStengel2024} (building on~\cite{JahaniVonStengel2022}) proved $\mu(3;2,2,2)=9$. For $m \ge 4$, Hertling and Vuji\'c~\cite{HertlingVujic2026} constructed product games giving $\mu(m;2,\dots,2) \ge \frac{1}{2}(V(m)+{!m})$---in particular $\mu(4;2,2,2,2) \ge 37$---and conjectured equality for all $m \ge 2$ (Conjecture~4.5). In our companion paper~\cite{Besevic2026}, we disproved Conjecture~4.5 at $m=4$ via an explicit $C_4 \times \mathbb{Z}_2$-symmetric integer game $G_{43}$ with $43$ strictly regular equilibria ($8$ pure, $12$ two-face, $16$ three-face, $7$ interior), proved an exact algebraic obstruction showing $n_4 \le 7$ throughout the entire $C_4 \times \mathbb{Z}_2$ slice, and established the universal upper bound $\mu(4;2,2,2,2) \le 45$ via a $2\times 2\times 2$ opposite-index identity and an exhaustive $4096$-pattern $3$-cube incidence certificate. This left only two odd integers $\{43, 45\}$ for $\mu(4;2,2,2,2)$. Here we break the $C_4 \times \mathbb{Z}_2$ obstruction on the same boundary-saturating sign pattern and settle the four-player binary-action problem completely. \begin{theorem}[Exact Determination of $\mu(4;2,2,2,2)$]\label{thm:main} The maximal number of isolated regular mixed-strategy Nash equilibria in a generic $2\times 2\times 2\times 2$ game is \[ \mu(4; 2, 2, 2, 2) \;=\; 45. \] Specifically: \begin{enumerate} \item \emph{(Lower bound, unconditional.)} The explicit two-digit integer $2\times 2\times 2\times 2$ game $G_{45}$ defined in Table~\ref{tab:g45} possesses $45$ pairwise distinct, strictly regular mixed Nash equilibria: \[ (n_0, n_2, n_3, n_4) \;=\; (8,\, 12,\, 16,\, 9), \qquad n_0 + n_2 + n_3 + n_4 \;=\; 45, \] with layer Shapley index sums $+8$, $-12$, $0$, and $+5$ (global sum $+1$). Because every equilibrium is strictly regular, $45$ regular equilibria persist throughout a nonempty open subset of generic $2\times 2\times 2\times 2$ games. \item \emph{(Upper bound.)} Every generic $2\times 2\times 2\times 2$ game satisfies $n_0 + n_2 + n_3 \le 36$ (from the $3$-cube face-weight bound $c_0 + 2c_2 + 4c_3 \le 18$) and $n_4 \le {!4} = 9$ (McKelvey--McLennan~\cite{McKelveyMcLennan1997}), hence $n_0 + n_2 + n_3 + n_4 \le 45$. \end{enumerate} \end{theorem} \begin{table}[ht] \centering \caption{Progression of bounds on $\mu(4; 2, 2, 2, 2)$ and layer decompositions $(n_0, n_2, n_3, n_4)$.} \label{tab:history} \begin{tabular}{@{}lccccc@{}} \toprule Reference / Construction & $n_0$ & $n_2$ & $n_3$ & $n_4$ & Total \\ \midrule Hertling--Vuji\'c~\cite{HertlingVujic2026} (lower bound) & $8$ & $12$ & $8$ & $9$ & $37$ \\ $G_{43}$ ($C_4\times \mathbb{Z}_2$-symmetric)~\cite{Besevic2026} & $8$ & $12$ & $16$ & $7$ & $43$ \\ \textbf{$G_{45}$ (Theorem~\ref{thm:main}, this work)} & $\mathbf{8}$ & $\mathbf{12}$ & $\mathbf{16}$ & $\mathbf{9}$ & $\mathbf{45}$ \\ \midrule 3-cube incidence upper bound~\cite{Besevic2026} & \multicolumn{3}{c}{$n_0 + n_2 + n_3 \le 36$} & $\le 9$ & $\le 45$ \\ Vid\=unas $V(4)$~\cite{Vidunas2017} (upper bound) & $\le 16$ & $\le 24$ & $\le 16$ & $\le 9$ & $\le 65$ \\ \bottomrule \end{tabular} \end{table} \section{Preliminaries: Payoff Differences, Regularity, and Shapley Index} A $2\times 2\times 2\times 2$ game is determined up to best-response equivalence by its four multilinear payoff-difference functions $d_i : [0,1]^3 \to \mathbb{R}$ ($i \in \{0,1,2,3\}$), where $p = (p_0, p_1, p_2, p_3) \in [0,1]^4$ denotes the probabilities of playing action~$1$: \[ d_i(p_{-i}) \;=\; \sum_{(b_0, b_1, b_2) \in \{0,1\}^3} D_{i,\, 4b_0 + 2b_1 + b_2}\, \prod_{r=0}^{2} \bigl(b_r\, p_{o_i(r)} + (1-b_r)(1 - p_{o_i(r)})\bigr), \] with opponents $(o_i(0), o_i(1), o_i(2))$ listed in ascending order of $\{0,1,2,3\} \setminus \{i\}$. A profile $p \in [0,1]^4$ is a \emph{strictly regular mixed Nash equilibrium} with mixing set $M(p) = \{i : 0 < p_i < 1\}$ if: \begin{enumerate} \item $d_i(p_{-i}) < 0$ whenever $p_i = 0$, and $d_i(p_{-i}) > 0$ whenever $p_i = 1$ (strict best-response margins); \item $d_i(p_{-i}) = 0$ for every $i \in M(p)$ (exact indifference); \item the reduced negative Jacobian $N(p) := \bigl(-\partial d_i / \partial p_j(p)\bigr)_{i,j \in M(p)}$ is nonsingular, $\det N(p) \ne 0$ (with $\det N(p) := 1$ when $M(p) = \varnothing$). \end{enumerate} Its \emph{Shapley / Lemke--Howson / Poincar\'e--Hopf index}~\cite{Shapley1974,Harsanyi1973,Rosenmuller1971,Wilson1971} is $\idx(p) := \sgn(\det N(p)) \in \{-1, +1\}$, and for any generic game the indices of all equilibria sum to $+1$. Since a single player cannot mix in isolation ($!1 = 0$), every equilibrium has $|M(p)| \in \{0, 2, 3, 4\}$. \section{The Two-Digit Integer Witness $G_{45}$ and Its Exact RUR} \subsection{Explicit payoff-difference table} Define the two-digit integer game $G_{45}$ by the $4 \times 8$ payoff-difference table in Table~\ref{tab:g45}. All $32$ entries are nonzero integers in $[-62, 60]$ sharing the exact alternating XOR sign pattern $(-,+,+,-,+,-,-,+)$ on every row. \begin{table}[ht] \centering \caption{Exact two-digit integer payoff-difference table $D_{i,\, 4b_0+2b_1+b_2}$ of $G_{45}$ ($\max |D| = 62$). Columns are indexed by opponent action triples $(b_0, b_1, b_2) \in \{0,1\}^3$ in ascending player order.} \label{tab:g45} \begin{tabular}{@{}crrrrrrrr@{}} \toprule Player $i$ & $(0,0,0)$ & $(0,0,1)$ & $(0,1,0)$ & $(0,1,1)$ & $(1,0,0)$ & $(1,0,1)$ & $(1,1,0)$ & $(1,1,1)$ \\ \midrule $0$ & $-35$ & $35$ & $60$ & $-55$ & $52$ & $-56$ & $-43$ & $42$ \\ $1$ & $-53$ & $59$ & $43$ & $-35$ & $32$ & $-36$ & $-37$ & $26$ \\ $2$ & $-45$ & $56$ & $43$ & $-57$ & $59$ & $-30$ & $-51$ & $27$ \\ $3$ & $-31$ & $37$ & $39$ & $-42$ & $43$ & $-62$ & $-36$ & $52$ \\ \bottomrule \end{tabular} \end{table} \subsection{Boundary equilibria ($8 + 12 + 16 = 36$)} On the boundary of $Q_4$, $G_{45}$ saturates the exact universal maximum $36$ across all three boundary layers: \begin{itemize} \item \textbf{Pure equilibria ($k=0$):} All $8$ odd-parity vertices $a \in \{0,1\}^4$ with $a_0 + a_1 + a_2 + a_3 \equiv 0 \pmod 2$ satisfy the strict best-response inequalities with minimum payoff margin $26$, contributing index sum $+8$. \item \textbf{Two-face equilibria ($k=2$):} Exactly $12$ of the $24$ two-dimensional faces of $Q_4$ carry an interior equilibrium, each with exact rational coordinates, strict best-response margins at least $0.02428$, and negative reduced Jacobian determinant, contributing index sum $-12$. \item \textbf{Three-face equilibria ($k=3$):} Every one of the $8$ three-cube faces ($p_f = b$, $f \in \{0,1,2,3\}$, $b \in \{0,1\}$) carries $2$ interior equilibria obtained as the two real roots in $(0,1)$ of a primitive integer quadratic $Q_{f,b}(t) = 0$ with linear-fractional back-substitution for the remaining two coordinates. Every $3$-face equilibrium satisfies the fixed player's strict best-response condition with margin at least $0.00663$, and the two roots on each $3$-cube carry opposite indices $+1$ and $-1$, giving $16$ equilibria with index sum $0$. \end{itemize} \subsection{Exact radical-free RUR for all $9$ interior equilibria} The completely mixed system $d_0 = d_1 = d_2 = d_3 = 0$ is multilinear in $(p_0, p_1, p_2, p_3)$. Writing \[ d_0(p_1, p_2, p_3) = A_0(p_2, p_3) + B_0(p_2, p_3)\,p_1, \qquad d_1(p_0, p_2, p_3) = A_1(p_2, p_3) + B_1(p_2, p_3)\,p_0, \] solving linearly gives $p_1 = -A_0/B_0$ and $p_0 = -A_1/B_1$. Clearing denominators in $d_2 = 0$ and $d_3 = 0$ yields two polynomials $Q_2(p_2, p_3)$ (degree $3$ in $p_3$, degree $2$ in $p_2$) and $Q_3(p_2, p_3)$ (degree $2$ in $p_3$, degree $3$ in $p_2$). Their $5\times 5$ Sylvester resultant with respect to $p_3$ factors cleanly by the spurious factor $\Res_{p_3}(A_0, B_0)\Res_{p_3}(A_1, B_1)$ (degree $4$ in $p_2$), leaving the exact primitive \textbf{irreducible} degree-$9$ elimination polynomial $R_9(t) \in \mathbb{Z}[t]$ ($t = p_2$): \begin{align}\label{eq:R9} R_9(t) \;=\;& 412058883837923016\, t^9 - 2043762314168162810\, t^8 + 4349878482727662845\, t^7 \nonumber\\ & - 5191815946073323224\, t^6 + 3806868860951519198\, t^5 - 1763070632560938440\, t^4 \nonumber\\ & + 508994427289079020\, t^3 - 86462266422190480\, t^2 + 7549417795992520\, t \nonumber\\ & - 238819710312800. \end{align} Moreover, pseudo-dividing $Q_2$ by $Q_3$ in $p_3$ and removing the polynomial $\gcd$ produces a degree-$1$ subresultant $L_1(t)\,p_3 + L_0(t) = 0$ with primitive polynomials $L_0, L_1 \in \mathbb{Z}[t]$ of degree $8$, yielding the exact radical-free Rational Univariate Representation (RUR): \begin{equation}\label{eq:rur} p_3(t) = -\frac{L_0(t)}{L_1(t)}, \qquad p_1(t) = -\frac{A_0(t, p_3(t))}{B_0(t, p_3(t))}, \qquad p_0(t) = -\frac{A_1(t, p_3(t))}{B_1(t, p_3(t))}. \end{equation} Substituting $p_3 = -L_0(t)/L_1(t)$ into $Q_3$ and $Q_2$ produces two \textbf{exact polynomial identities in $\mathbb{Z}[t]$} with zero remainder: \begin{align}\label{eq:div_ids} L_1(t)^2\, Q_3\!\left(t, -\frac{L_0(t)}{L_1(t)}\right) &\;=\; K_3(t)\, R_9(t) \qquad (\deg K_3 = 10), \\ L_1(t)^3\, Q_2\!\left(t, -\frac{L_0(t)}{L_1(t)}\right) &\;=\; K_2(t)\, R_9(t) \qquad (\deg K_2 = 17). \nonumber \end{align} Hence, for \emph{any} real root $t$ of $R_9(t) = 0$ at which $L_1(t)$, $B_0(t, p_3(t))$, and $B_1(t, p_3(t))$ are nonzero, the rational point $(p_0(t), p_1(t), t, p_3(t))$ solves all four equations $d_0 = d_1 = d_2 = d_3 = 0$ identically. All nine roots of $R_9(t)$ are real, simple, and strictly inside $(0,1)$, with minimum $p_2$-separation $0.038761$ and minimum $4$D Euclidean separation $0.186515$ (Table~\ref{tab:interior} and Figure~\ref{fig:g45}). Breaking the $C_4 \times \mathbb{Z}_2$ symmetry resolves the complex-conjugate pair that obstructed $G_{43}$ into the well-separated asymmetric trio $\#5, \#6, \#7$ (indices $+1, -1, +1$) deep inside $(0,1)^4$. \begin{table}[ht] \centering \caption{All $!4 = 9$ completely mixed regular Nash equilibria of $G_{45}$, strictly ordered by $p_2$, evaluated directly from the exact RUR~\eqref{eq:rur} at $250$-digit precision (zero Newton iterations). All residuals satisfy $\max_i |d_i| \le 2.46 \times 10^{-242}$.} \label{tab:interior} \begin{tabular}{@{}ccccccc@{}} \toprule $\#$ & $p_0$ & $p_1$ & $p_2$ & $p_3$ & $\det(-J)$ & $\idx$ \\ \midrule $1$ & $0.9992828$ & $0.5444218$ & $0.0659506$ & $0.4624108$ & $+76533.39$ & $+1$ \\ $2$ & $0.0960361$ & $0.4193647$ & $0.2014255$ & $0.4579552$ & $+49999.18$ & $+1$ \\ $3$ & $0.6525683$ & $0.0165385$ & $0.3856337$ & $0.9930620$ & $+825633.26$ & $+1$ \\ $4$ & $0.4805720$ & $0.5109919$ & $0.5131496$ & $0.4999210$ & $-17259.51$ & $-1$ \\ $5$ & $0.3135063$ & $0.8952630$ & $0.5519106$ & $0.3070070$ & $+17585.07$ & $+1$ \\ $6$ & $0.3971990$ & $0.7668187$ & $0.6189318$ & $0.2108619$ & $-8477.31$ & $-1$ \\ $7$ & $0.4634220$ & $0.6864032$ & $0.6973352$ & $0.0774880$ & $+17194.06$ & $+1$ \\ $8$ & $0.9109661$ & $0.5490817$ & $0.9258079$ & $0.6032554$ & $+64413.13$ & $+1$ \\ $9$ & $0.0006609$ & $0.4682883$ & $0.9997343$ & $0.5512926$ & $+90314.05$ & $+1$ \\ \bottomrule \end{tabular} \end{table} \begin{figure}[ht] \centering \includegraphics[width=\textwidth]{fig_g45.pdf} \caption{(a) Signed logarithmic plot $\operatorname{arsinh}(R_9(p_2)/10^6)$ of the exact irreducible degree-$9$ elimination resultant on $[0,1]$, showing all $!4 = 9$ real simple roots strictly inside $(0,1)$, their Shapley indices ($+1$ circles, $-1$ squares), and the symmetry-broken trio $\#5$--$\#7$. (b) Layer-by-layer comparison of $2\times 2\times 2\times 2$ benchmarks showing that $G_{45}$ simultaneously attains the boundary ceiling $36$ and the interior derangement bound $9$.} \label{fig:g45} \end{figure} \section{Self-Contained Proof of the Upper Bound $\mu(4;2,2,2,2) \le 45$} Because the exact equality $\mu(4;2,2,2,2) = 45$ relies on the matching upper bound from our companion work~\cite{Besevic2026}, we give here a complete, self-contained proof stating explicitly the genericity conditions and the exact hypotheses of the two classical theorems used. \begin{definition}[Generic $2\times 2\times 2\times 2$ games]\label{def:generic} A $2\times 2\times 2\times 2$ game $G$ with payoff-difference table $D \in \mathbb{R}^{32}$ is \emph{generic} if it lies in the dense Zariski-open subset $\mathcal{G}_4 \subset \mathbb{R}^{32}$ where: \begin{enumerate} \item every pure-profile payoff difference is nonzero ($D_{i,a_{-i}} \ne 0$ for all $i, a_{-i}$); \item $G$, every restricted $3$-cube face game $G|_F$ ($F \in \{1,\dots,8\}$), and every restricted $2$-face game are regular (nondegenerate): every mixed Nash equilibrium has strict best-response margins on pure actions and nonsingular reduced Jacobian $\det(-J_{\mathrm{mix}}) \ne 0$; \item on every $3$-cube face $G|_F$, every completely mixed equilibrium $(x,y,z) \in (0,1)^3$ satisfies $b_1(x) b_2(x) \ne 0$ (nonvanishing elimination denominators in~\eqref{eq:elim3} below), and distinct completely mixed equilibria on $G|_F$ have distinct $x$-coordinates; \item $G$ and every restricted face game $G|_F$ lie in the generic locus of McKelvey and McLennan's theorem~\cite{McKelveyMcLennan1997}. \end{enumerate} \end{definition} We invoke two classical theorems under the exact regularity and genericity hypotheses of Definition~\ref{def:generic}: \begin{itemize} \item \textbf{Shapley--Harsanyi--Rosenm\"uller--Wilson Index Theorem}~\cite{Harsanyi1973,Rosenmuller1971,Shapley1974,Wilson1971}: \emph{In any regular (nondegenerate) finite normal-form game, the set of mixed Nash equilibria is finite, every equilibrium $p$ has well-defined index $\idx(p) = \sgn(\det(-J_{\mathrm{mix}}(p))) \in \{-1, +1\}$ (with $\idx(p) = +1$ for pure equilibria), and $\sum_{p} \idx(p) = +1$.} \item \textbf{McKelvey--McLennan Theorem}~\cite[Theorem~1]{McKelveyMcLennan1997}: \emph{For any generic $m$-player binary-action game (outside a proper algebraic hypersurface of $\mathbb{R}^{m 2^{m-1}}$), the number of regular completely mixed Nash equilibria is at most ${!m}$. In particular, $n_4 \le {!4} = 9$ for $m=4$ and $c_3(F) \le {!3} = 2$ on every $3$-cube face $G|_F$.} \end{itemize} \begin{lemma}[Exact $2\times 2\times 2$ Derivative Identity and Opposite-Index Lemma]\label{lem:oppindex} Consider a $2\times 2\times 2$ game with bilinear payoff differences $d_0(y,z)$, $d_1(x,z) = a_1(x) + b_1(x)z$, and $d_2(x,y) = a_2(x) + b_2(x)y$, and define the degree-$\le 2$ elimination polynomial \begin{equation}\label{eq:elim3} q(x) \;:=\; b_1(x)\,b_2(x)\, d_0\!\left(-\frac{a_2(x)}{b_2(x)},\; -\frac{a_1(x)}{b_1(x)}\right) \;=\; q_2 x^2 + q_1 x + q_0. \end{equation} At any completely mixed equilibrium $p = (x,y,z) \in (0,1)^3$ with $b_1(x)b_2(x) \ne 0$, one has the exact polynomial identity \begin{equation}\label{eq:det_qprime} \det J(x,y,z) \;=\; \det\!\begin{pmatrix} 0 & \partial_y d_0 & \partial_z d_0 \\ \partial_x d_1 & 0 & b_1(x) \\ \partial_x d_2 & b_2(x) & 0 \end{pmatrix} \;=\; -q'(x). \end{equation} Consequently, if a generic $2\times 2\times 2$ game has two completely mixed equilibria $p_1 = (x_1,y_1,z_1)$ and $p_2 = (x_2,y_2,z_2)$ with $x_1 \ne x_2$, then $q(x) = q_2(x - x_1)(x - x_2)$ with $q_2 \ne 0$, so \[ \det(-J(p_1))\,\det(-J(p_2)) \;=\; q'(x_1)\,q'(x_2) \;=\; -\bigl(q_2(x_2 - x_1)\bigr)^2 \;<\; 0, \] and hence $\idx(p_1) + \idx(p_2) = 0$. \end{lemma} \begin{proof} Differentiating $q(x) = b_1(x)b_2(x)\,d_0(y(x), z(x))$ along $y(x) = -a_2(x)/b_2(x)$ and $z(x) = -a_1(x)/b_1(x)$ at a root where $d_0(y,z) = 0$, the product-rule terms multiplying $d_0$ vanish, leaving \[ q'(x) \;=\; b_1(x)b_2(x)\bigl(\partial_y d_0 \cdot y'(x) + \partial_z d_0 \cdot z'(x)\bigr). \] Since $d_1(x, z(x)) \equiv 0$ and $d_2(x, y(x)) \equiv 0$, implicit differentiation gives $z'(x) = -\partial_x d_1 / b_1(x)$ and $y'(x) = -\partial_x d_2 / b_2(x)$, whence \[ q'(x) \;=\; -b_1(x)\,\partial_y d_0\,\partial_x d_2 \;-\; b_2(x)\,\partial_z d_0\,\partial_x d_1 \;=\; -\det J(x,y,z). \] (This identity is also proved directly by pure ring expansion in \texttt{det\_jac\_eq\_neg\_deriv\_q} in Lean~4.) Since $3$ is odd, $\det(-J) = -\det J = q'(x)$. When $q$ has two distinct roots $x_1 \ne x_2$, Vieta's factorization yields $q'(x_1) = q_2(x_1 - x_2) = -q'(x_2)$, so $\det(-J(p_1))\det(-J(p_2)) = -(q_2(x_2-x_1))^2 < 0$ and the indices cancel. \end{proof} \begin{proposition}[Universal $3$-Cube Incidence Bound~\cite{Besevic2026}]\label{prop:ub} Every generic $2\times 2\times 2\times 2$ game $G \in \mathcal{G}_4$ with equilibrium counts $(n_0, n_2, n_3, n_4)$ satisfies $n_0 + n_2 + n_3 \le 36$ and $n_0 + n_2 + n_3 + n_4 \le 45$. \end{proposition} \begin{proof} For each of the $8$ three-cube faces $F = \{p \in Q_4 : p_f = b\}$ ($f \in \{0,1,2,3\}$, $b \in \{0,1\}$), let $G|_F$ be the restricted $2\times 2\times 2$ game with pure-profile sign pattern $\sigma(F) \in \{\pm 1\}^{12}$ (well-defined by Definition~\ref{def:generic}(1)), and let $(c_0(F), k_+(F), k_-(F), c_3(F))$ denote the numbers of pure equilibria, two-face equilibria of index $+1$, two-face equilibria of index $-1$, and completely mixed equilibria of $G|_F$, with $c_2(F) = k_+(F) + k_-(F)$ and interior index sum $\idx_3(F)$. \begin{enumerate} \item \emph{Combinatorial sign-pattern bounds on $G|_F$.} The pure count $c_0(F)$ is uniquely determined by $\sigma(F)$. On each of the $6$ two-dimensional faces of $Q_3$ (fixing player $f' \in \{0,1,2\}$ to $b' \in \{0,1\}$), a unique completely mixed $2$-face solution $(p_i, p_j) \in (0,1)^2$ exists if and only if both active players' payoff differences change sign across the face; when it exists, its reduced negative Jacobian determinant $-(c_{i1}-c_{i0})(c_{j1}-c_{j0})$ has sign determined solely by $\sigma(F)$ (formalized in \texttt{face2\_negJacDet\_sign}), and by multilinearity the fixed player $f'$ can satisfy the strict best-response condition at $(p_i, p_j)$ only if at least one of the $4$ corner signs of $d_{f'}$ on that $2$-face has the required sign. Counting these admissible $+1$ and $-1$ two-faces gives exact sign-pattern upper bounds $k_+(F) \le k_+^{\max}(\sigma(F))$ and $k_-(F) \le k_-^{\max}(\sigma(F))$. \item \emph{Index constraint and $4096$-pattern certificate.} By McKelvey--McLennan ($c_3(F) \le 2$) and Lemma~\ref{lem:oppindex} ($c_3(F)=2 \implies \idx_3(F)=0$), we have $(c_3(F), \idx_3(F)) \in \{(0,0), (1,+1), (1,-1), (2,0)\}$. By the Shapley--Harsanyi--Rosenm\"uller--Wilson index theorem on the regular $2\times 2\times 2$ game $G|_F$, \[ c_0(F) + k_+(F) - k_-(F) + \idx_3(F) \;=\; 1. \] Exhaustive verification over all $2^{12} = 4096$ sign patterns $\sigma \in \{\pm 1\}^{12}$ (kernel-checked in Lean~4 by \texttt{all\_4096\_patterns\_valid} and \texttt{cube3\_universal\_bounds}) proves that every feasible tuple satisfies \[ c_0(F) + 2\,c_2(F) + 4\,c_3(F) \;\le\; 18. \] \item \emph{Face-restriction double counting.} Every equilibrium $p$ of $G$ of support size $k \in \{0,2,3\}$ restricts to a regular equilibrium of every $3$-cube face $F$ containing $p$ (since the active players' indifference and best-response inequalities are unchanged upon restricting to $F$). Each pure equilibrium ($k=0$) lies on $4$ three-cube faces, each two-face equilibrium ($k=2$) lies on $2$, and each three-face equilibrium ($k=3$) lies on $1$. Conversely, an equilibrium of $G|_F$ need not satisfy the fourth player's best-response inequality in $G$, giving the exact face-restriction inequalities \[ 4\,n_0 \;\le\; \sum_{F=1}^{8} c_0(F), \qquad 2\,n_2 \;\le\; \sum_{F=1}^{8} c_2(F), \qquad n_3 \;\le\; \sum_{F=1}^{8} c_3(F). \] Taking the linear combination $1 \cdot (4n_0) + 2 \cdot (2n_2) + 4 \cdot n_3$ yields \[ 4(n_0 + n_2 + n_3) \;\le\; \sum_{F=1}^{8} \bigl(c_0(F) + 2\,c_2(F) + 4\,c_3(F)\bigr) \;\le\; 8 \cdot 18 \;=\; 144, \] so $n_0 + n_2 + n_3 \le 36$. Combining with McKelvey--McLennan's interior bound $n_4 \le {!4} = 9$ gives $n_0 + n_2 + n_3 + n_4 \le 45$. \qedhere \end{enumerate} \end{proof} \begin{remark}[Classification of Tight $4$-Player Sign Patterns] Equality $n_0 + n_2 + n_3 = 36$ forces $c_0(F) + 2c_2(F) + 4c_3(F) = 18$ on \emph{every} one of the $8$ three-cube faces $F$. Out of all $4096$ three-cube sign patterns, only $8$ attain $18$: two of Type~A with $(c_0, c_2, c_3) = (4, 3, 2)$ and six of Type~B with $(0, 5, 2)$. Lifting to all $2^{32}$ four-player sign patterns leaves only $16$ globally tight patterns falling into three orbits: Orbit~A (2 patterns, all $8$ faces of Type~A, which hosts $G_{43}$ and $G_{45}$), Orbit~B (6 patterns, all $8$ faces of Type~B), and Orbit~C (8 mixed patterns of 2 Type~A and 6 Type~B faces, which cannot reach $36$ boundary equilibria because the pure equilibria on the two Type~A faces violate the fourth player's best-response condition). \end{remark} \section{Formal Verification in Lean~4.36.0 and Independent Audits} \sloppy To make Theorem~\ref{thm:main} completely immune to numerical or symbolic error, we provide three independent verification layers in the companion repository \url{https://github.com/ivan-fr/nash-exact-45}. \subsection{End-to-end Lean~4.36.0 proof} The Lean~4.36.0 library \texttt{NashExact45} (built against Mathlib~\texttt{v4.36.0}) compiles cleanly with zero \texttt{sorry}, zero \texttt{admit}, zero \texttt{native\_decide}, and depends strictly on the three standard axioms \texttt{[propext, Classical.choice, Quot.sound]}: \begin{itemize} \item \texttt{NashExact45/Game.lean}: Formalizes generic $2\times 2\times 2\times 2$ games, \texttt{IsRegularNashEq}, \texttt{shapleyIndex}, the explicit integer witness \texttt{G45}, and a kernel-verified rational interval arithmetic library \texttt{QIv} equipped with a pure algebraic divided-difference polynomial enclosure (\texttt{QIv.evalPolyMVT}) and intermediate value theorem root-existence lemmas. \item \texttt{NashExact45/Boundary.lean}: Certifies all $36$ boundary equilibria of \texttt{G45} ($8$ pure, $12$ exact-rational two-face, and $16$ three-face equilibria via quadratic elimination and \texttt{QIv}), their exact index sums ($+8$, $-12$, $0$), and pairwise distinctness (\texttt{equilibriaBoundary\_nodup}) via support signatures and disjoint rational brackets. \item \texttt{NashExact45/Interior.lean}: Proves the exact RUR divisibility identities~\eqref{eq:div_ids} (\texttt{Q3\_rur\_identity} and \texttt{Q2\_rur\_identity}) by \texttt{ring}, certifies all $9$ interior roots in strictly disjoint dyadic brackets (denominators $\le 2^{23}$) with trimmed rational box enclosures (\texttt{intCert\_sound}), proves strict interiority in $(0,1)^4$, $\det(-J) \ne 0$, exact index sum $+5$, and strict ordering $t_1 < \dots < t_9$. \item \texttt{NashExact45/UpperBound.lean}: Formalizes the $2\times 2\times 2$ derivative identity (\texttt{det\_jac\_eq\_neg\_deriv\_q}), the Opposite-Index Lemma (\texttt{opposite\_index\_lemma}), the kernel-decided $4096$-pattern certificate (\texttt{all\_4096\_patterns\_valid}, using only \texttt{[propext, Quot.sound]}), and the pattern-wired conditional upper bound (\texttt{upper\_bound\_m4\_from\_3cube\_games}) with face-restriction inequalities ($\le$). \item \texttt{NashExact45.lean}: Combines all modules into \texttt{G45\_length}, \texttt{G45\_all\_regular}, \texttt{G45\_nodup}, \texttt{G45\_index\_sum}, \texttt{lower\_bound\_m4\_45}, and \texttt{g45\_lower\_and\_conditional\_upper\_45} (which extracts the $8$ restricted $3$-cube face games \texttt{faceGame3 D F} of an arbitrary $D : \texttt{Game4}$ and discharges $c_0(F) + 2c_2(F) + 4c_3(F) \le 18$ internally in Lean). \end{itemize} \begin{remark}[Transparent verification boundary] The lower bound $\mu(4;2,2,2,2) \ge 45$ (\texttt{lower\_bound\_m4\_45}) is proved \emph{unconditionally from first principles} in the Lean~4 kernel: it constructs an explicit list of $45$ pairwise distinct real profiles in $[0,1]^4$ satisfying \texttt{IsRegularNashEq G45} with exact Shapley index sum $+1$. For the matching upper bound $\mu(4;2,2,2,2) \le 45$, Lean does not formalize the full topological/algebraic-geometric machinery of index theory or BKK/derangement counting; rather, \texttt{g45\_lower\_and\_conditional\_upper\_45} proves the unconditional lower bound alongside the conditional upper bound \texttt{upper\_bound\_m4\_from\_3cube\_games}, which discharges $c_0(F) + 2c_2(F) + 4c_3(F) \le 18$ internally from the real face games \texttt{faceGame3 D F} while taking as explicit hypotheses the Shapley--Harsanyi--Rosenm\"uller--Wilson index theorem on $2\times 2\times 2$~\cite{Shapley1974,Harsanyi1973}, McKelvey--McLennan's interior bound $n_4 \le {!4} = 9$~\cite{McKelveyMcLennan1997}, and the face-restriction incidence inequalities ($\le$). \end{remark} \subsection{Homotopy-free Krawczyk and $250$-digit symbolic verification} Independently of Lean~4: \begin{enumerate} \item \texttt{src/main.rs} (\texttt{pandsysroots~0.34.0} + \texttt{pandroots~0.31.0}) solves the $4$-variable trilinear system $d_0=d_1=d_2=d_3=0$ directly via homotopy-free Krawczyk certification in $0.02\text{ s}$, certifying all $9/9$ isolated complex roots to be real and strictly inside $(0,1)^4$ (maximum ball radius $5.77 \times 10^{-13}$, maximum residual $1.93 \times 10^{-14}$), and independently certifies all $16$ three-face equilibria via $3$-variable \texttt{pandsysroots}, all $9$ roots of $R_9$ via \texttt{pandroots}, and the $4096$-pattern upper bound. \item \texttt{verify\_250digits.py} (\texttt{SymPy} + \texttt{mpmath} at $250$ decimal digits) re-derives $R_9, L_0, L_1, K_3, K_2$ from Table~\ref{tab:g45}, confirms irreducibility of $R_9$ over $\mathbb{Q}$, and evaluates all $45$ equilibria directly from the exact formulas with zero Newton polishing, obtaining maximum residual $2.46 \times 10^{-242}$, minimum $4$D separation $0.006018$ across all $45$ equilibria ($0.186515$ among the $9$ interior equilibria), and global Shapley index sum $+1$. \end{enumerate} \section{Outlook} With $\mu(2;2,2)=3$, $\mu(3;2,2,2)=9$, and now $\mu(4;2,2,2,2)=45$ all determined exactly, the sequence of exact binary-action maxima begins $3, 9, 45$. Notably, $\mu(4;2,2,2,2)=45$ lies strictly above Hertling--Vuji\'c's $37$ and saturates the face-weight ceiling $36 + {!4}$. The next open binary-action case is $m=5$, which currently stands at $185 \le \mu(5;2,2,2,2,2) \le 279$~\cite{HertlingVujic2026,Besevic2026}; lifting our symmetry-breaking RUR search to $5$-player games and sharpening $4$-cube incidence inequalities remain natural next directions. \begin{thebibliography}{10} \bibitem{Besevic2026} I.~Besevic, \emph{Disproving the Hertling--Vuji\'c conjecture on maximal mixed Nash equilibria: $43 \le \mu(4; 2,2,2,2) \le 45$ and universal upper bounds for all $m \ge 4$}, Zenodo (2026), doi:\href{https://doi.org/10.5281/zenodo.24729824}{10.5281/zenodo.24729824}; HexagonMath \texttt{hexagon:2612.00135}. \bibitem{Harsanyi1973} J.~C.~Harsanyi, \emph{Oddness of the number of equilibrium points: a new proof}, Int.\ J.\ Game Theory \textbf{2} (1973), 235--250. \bibitem{HertlingVujic2026} C.~Hertling and M.~Vuji\'c, \emph{Maximal number of mixed Nash equilibria in generic games where each player has two pure strategies}, arXiv:2412.17890 (v1, December 2024; v2, September 25, 2026). \bibitem{Ickstadt2024} C.~Ickstadt, T.~Theobald, and B.~von Stengel, \emph{A stable-set bound and maximal numbers of Nash equilibria in bimatrix games}, Math.\ Oper.\ Res.\ (2024), doi:10.1287/moor.2024.0809, arXiv:2411.12385. \bibitem{JahaniVonStengel2022} S.~Jahani and B.~von Stengel, \emph{Automated equilibrium analysis of $2\times 2\times 2$ games}, in \emph{Algorithmic Game Theory (SAGT 2022)}, Lecture Notes in Comput.\ Sci., vol.~13584, Springer, Cham, 2022, pp.~223--237. \bibitem{JahaniVonStengel2024} S.~Jahani and B.~von Stengel, \emph{Generic three-player two-action games have at most nine Nash equilibria}, preprint, April 2024. \bibitem{Keiding1997} H.~Keiding, \emph{On the maximal number of Nash equilibria in an $n \times n$ bimatrix game}, Games Econom.\ Behav.\ \textbf{21} (1997), 148--160. \bibitem{McKelveyMcLennan1997} R.~D.~McKelvey and A.~McLennan, \emph{The maximal number of regular totally mixed Nash equilibria}, J.\ Econom.\ Theory \textbf{72} (1997), no.~2, 411--425. \bibitem{Rosenmuller1971} J.~Rosenm\"uller, \emph{On a generalization of the Lemke--Howson algorithm to noncooperative $n$-person games}, SIAM J.\ Appl.\ Math.\ \textbf{21} (1971), no.~1, 73--79. \bibitem{Shapley1974} L.~S.~Shapley, \emph{A note on the Lemke--Howson algorithm}, Math.\ Program.\ Study \textbf{1} (1974), 175--189. \bibitem{Vidunas2017} R.~Vid\=unas, \emph{Counting derangements and Nash equilibria}, Ann.\ Comb.\ \textbf{21} (2017), no.~1, 131--152, doi:10.1007/s00026-017-0344-2. \bibitem{vonStengel1999} B.~von Stengel, \emph{New maximal numbers of equilibria in bimatrix games}, Discrete Comput.\ Geom.\ \textbf{21} (1999), no.~4, 557--568. \bibitem{Wilson1971} R.~Wilson, \emph{Computing equilibria of $n$-person games}, SIAM J.\ Appl.\ Math.\ \textbf{21} (1971), no.~1, 80--87. \end{thebibliography} \end{document}