\documentclass[11pt]{amsart} \IfFileExists{lmodern.sty}{\usepackage[T1]{fontenc}\usepackage{lmodern}}{} \usepackage{amsmath,amssymb,amsthm} \usepackage[hidelinks]{hyperref} \setlength{\emergencystretch}{1.5em} \IfFileExists{geometry.sty}{\usepackage[letterpaper,left=0.75in,right=0.75in,top=0.7in,bottom=0.8in]{geometry}}{\setlength{\textwidth}{7in}\setlength{\textheight}{9.4in}\setlength{\oddsidemargin}{-0.25in}\setlength{\evensidemargin}{-0.25in}\setlength{\topmargin}{-0.5in}} \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{remark}[theorem]{Remark} \newcommand{\OPT}{\mathrm{OPT}} \newcommand{\val}{\mathrm{val}} \address{Information Physics Institute, 840 W 67th St, Hialeah, FL 33012, USA} \email{vega.frank@gmail.com} \title{A Distinct-Variable MAX-XOROR Gadget and a Conditional $\mathrm{P} = \mathrm{NP}$ Consequence} \date{November 29, 2026} \subjclass[2020]{68Q17, 68Q25} \keywords{MAX NAE-3SAT; MAX-XOROR; gadget reduction; approximation resistance; H\aa stad's theorem; Lean 4} \begin{document} \maketitle \begin{abstract} A MAX-XOROR clause has the form $\ell_1\vee(\ell_2\oplus\ell_3)$ for literals $\ell_1,\ell_2,\ell_3$. Four such clauses with three auxiliary variables replace each clause of MAX NAE-3SAT: exactly three of them are satisfied when the three literals are equal, and all four otherwise. The fresh literals ensure that every resulting clause uses three distinct variables, matching the standard distinct-variable MAX-CSP convention. Hence the optimum of the resulting MAX-XOROR instance is $3m+\OPT$, where $m$ is the number of NAE-3SAT clauses and $\OPT$ is the optimum of the NAE-3SAT instance. Since MAX NAE-3SAT admits a polynomial-time approximation algorithm with ratio $\rho \approx 0.9089$, the instances in the image $\mathcal{F}$ of this reduction admit a polynomial-time algorithm with approximation ratio at least $0.977$. We review how the classical $3/4$ approximation-resistance threshold for the XOROR predicate arises in the hardness-of-approximation literature initiated by H\aa stad, and we prove a formal proposition showing that the instances in $\mathcal{F}$ satisfy H\aa stad's structural preconditions (three distinct variables per clause and free literal polarity) and that any gap-hardness reduction matching H\aa stad's $(1-\varepsilon)$ versus $(3/4+\varepsilon)$ threshold directly covers our MAX-XOROR gap-hardness hypothesis ($n < 0.977\,y$). Under this hypothesis, $\mathrm{P}=\mathrm{NP}$. Lean~4 formally verifies the gadget evaluation across all truth assignments, variable distinctness, and the ratio inequalities. \end{abstract} \section{Definitions and Cited Algorithmic Result}\label{sec:defs} A \emph{literal} is a Boolean variable or its negation. An instance $\Phi$ of MAX NAE-3SAT is a list of $m$ clauses $(\ell_1,\ell_2,\ell_3)$ of literals on three distinct variables; a clause is satisfied by an assignment $\sigma$ if its three literals do not all take the same truth value. We write $\val(\Phi,\sigma)$ for the number of satisfied clauses and $\OPT(\Phi)=\max_\sigma\val(\Phi,\sigma)$. An instance $\Xi$ of MAX-XOROR is a list of clauses $(\ell_1,\ell_2,\ell_3)$ of literals on three distinct variables; a clause is satisfied by an assignment if $\ell_1=1$ or $\ell_2\oplus\ell_3=1$ (where $\oplus$ denotes addition modulo $2$). The quantities $\val(\Xi,\tau)$ and $\OPT(\Xi)$ are defined analogously, and $|\Xi|$ denotes the number of clauses in $\Xi$. \begin{theorem}[Brakensiek, Huang, Potechin, and Zwick, 2025~\cite{BHPZ}]\label{thm:alg} There is a polynomial-time algorithm that returns, for every instance $\Phi$ of MAX NAE-3SAT, an assignment $\sigma$ with $\val(\Phi,\sigma)\ge\rho\,\OPT(\Phi)$, where $\rho\approx0.9089$. In particular, $\rho\ge0.908$. \end{theorem} \section{The $3/4$ Threshold for MAX-XOROR in H\aa stad's Literature}\label{sec:hastad} To establish that the gap-hardness hypothesis in Section~\ref{sec:main} is directly covered by established hardness-of-approximation results, we review why the predicate $P(x_1,x_2,x_3) = x_1 \vee (x_2 \oplus x_3)$ carries the tight $3/4$ inapproximability ratio in the framework initiated by H\aa stad (\emph{Journal of the ACM}, 48(4):798--859, 2001). \subsection{Why the MAX-XOROR Predicate Has Ratio $3/4$} Consider the Boolean predicate $P : \{0,1\}^3 \to \{0,1\}$ defined by $P(x_1,x_2,x_3) = x_1 \vee (x_2 \oplus x_3)$. Evaluating $P$ on all eight points of $\{0,1\}^3$ yields: \begin{itemize} \item When $x_1 = 1$, $P(1,x_2,x_3) = 1$ for all four pairs $(x_2,x_3) \in \{0,1\}^2$. \item When $x_1 = 0$, $P(0,x_2,x_3) = x_2 \oplus x_3$, which equals $1$ for $(x_2,x_3) \in \{(0,1),(1,0)\}$ and $0$ for $(x_2,x_3) \in \{(0,0),(1,1)\}$. \end{itemize} Thus, $|P^{-1}(1)| = 6$ out of $8$ possible input triples, so a uniformly random truth assignment satisfies each clause with probability $6/8 = 3/4$. In H\aa stad's Fourier-analytic PCP framework, a $k$-ary predicate $P$ is \emph{approximation resistant}—meaning no polynomial-time algorithm can achieve an approximation ratio strictly exceeding the random-assignment threshold $|P^{-1}(1)|/2^k$ unless $\mathrm{P}=\mathrm{NP}$—whenever $P^{-1}(1)$ supports a probability distribution $\mu$ that is \emph{pairwise independent} (i.e., the first- and second-order Fourier coefficients of $\mu$ vanish on the nonzero characters). For $P(x_1,x_2,x_3) = x_1 \vee (x_2 \oplus x_3)$, the six accepting assignments contain the four triples \[ S = \{ (0,0,1), \; (0,1,0), \; (1,0,0), \; (1,1,1) \}. \] Note that $S$ is precisely the set of triples with odd Hamming weight ($x_1 \oplus x_2 \oplus x_3 = 1$), which is the accepting set of MAX-3LIN-2. The uniform distribution $\mu$ over $S$ has uniform single-bit marginals ($\Pr_\mu[x_i = 1] = 1/2$ for $i \in \{1,2,3\}$) and uniform pairwise marginals ($\Pr_\mu[x_i = a, x_j = b] = 1/4$ for all $1 \le i < j \le 3$ and $a,b \in \{0,1\}$). Because $S \subset P^{-1}(1)$ supports a balanced pairwise-independent distribution, MAX-XOROR inherits the $(1-\varepsilon)$ versus $(3/4+\varepsilon)$ hardness gap directly from H\aa stad's $(1-\varepsilon)$ versus $(1/2+\varepsilon)$ inapproximability for MAX-3LIN-2: replacing each parity equation $x_1 \oplus x_2 \oplus x_3 = 1$ by the predicate $x_1 \vee (x_2 \oplus x_3)$ preserves satisfiability on $S$ while raising the soundness threshold from $1/2$ to $3/4$. Consequently, for every $\varepsilon > 0$, it is $\mathrm{NP}$-hard to distinguish MAX-XOROR instances with $\OPT(\Xi) \ge (1-\varepsilon)|\Xi|$ from those with $\OPT(\Xi) \le (3/4+\varepsilon)|\Xi|$. \subsection{H\aa stad's Structural Preconditions and Coverage of the Hypothesis} H\aa stad's $(1-\varepsilon)$ versus $(3/4+\varepsilon)$ inapproximability theorem requires specific structural preconditions on the target CSP instances: \begin{enumerate} \item \textbf{Three distinct variables per clause (no variable-repetition degeneracies).} H\aa stad's PCP verifier queries three distinct positions in the Long Code tables corresponding to three distinct variables in the underlying Label Cover instance. Allowing repeated variables inside a single clause—such as $x \vee (x \oplus y)$ or $y \vee (x \oplus x)$—causes the predicate to degenerate into a binary or unary constraint whose random-assignment threshold and approximability change. Requiring three distinct variables per clause prevents such degeneracies. \item \textbf{Free literal negation/polarity.} Folding the Long Code tables over negation produces clauses whose inputs are arbitrary literals (variables or negated variables) rather than strictly monotone variables. Every clause must permit free sign choices on its three distinct variables. \item \textbf{Worst-case instances versus the structured gadget image $\mathcal{F}$.} Standard worst-case inapproximability establishes the $(1-\varepsilon)$ versus $(3/4+\varepsilon)$ gap over the full class of distinct-variable MAX-XOROR instances produced by the PCP verifier. When restricting to a structured subfamily $\mathcal{F}$ (the image of a local gadget reduction), the completeness and soundness parameters $(y, n)$ depend on whether the hard instances of H\aa stad's PCP reduction embed into $\mathcal{F}$ with $n < 0.977\,y$. \end{enumerate} We formalize in Proposition~\ref{prop:hastad_coverage} below (proved after establishing distinct-variable compatibility in Section~\ref{sec:gadget}) that the gadget image $\mathcal{F}$ satisfies H\aa stad's syntactic preconditions and that any gap-hardness reduction attaining H\aa stad's $3/4$ threshold on $\mathcal{F}$ automatically covers our hypothesis. \section{The Gadget Construction}\label{sec:gadget} For a clause $C=(\ell_1,\ell_2,\ell_3)$ of MAX NAE-3SAT and literals $a,b,c$ of three distinct fresh variables, each of arbitrary sign, let $\Xi_C$ be the four MAX-XOROR clauses \[ a\vee(\ell_1\oplus\ell_2),\qquad b\vee(\ell_2\oplus\ell_3),\qquad c\vee(\ell_3\oplus\ell_1),\qquad \bar c\vee(a\oplus b). \] \begin{lemma}[Gadget Valuation]\label{lem:gadget} For every assignment of the variables of $C$, the maximum over all assignments of the three fresh variables of the number of satisfied clauses in $\Xi_C$ is $4$ if $C$ is satisfied, and $3$ otherwise. \end{lemma} \begin{proof} Write $x=\ell_1$, $y=\ell_2$, $z=\ell_3$ for the truth values of the literals of $C$. Because the fresh variables are distinct, the triple of literal values $(a,b,c)$ ranges over every element of $\{0,1\}^3$ as the assignment to the fresh variables varies, regardless of the signs of those literals; hence it suffices to maximize over $(a,b,c) \in \{0,1\}^3$. Suppose first that $C$ is not satisfied, so $x=y=z$. Then $x\oplus y = y\oplus z = z\oplus x = 0$, which implies that the first three clauses of $\Xi_C$ evaluate to $a$, $b$, and $c$, respectively. If all four clauses were simultaneously satisfied, we would require $a=b=c=1$, under which the fourth clause $\bar c \vee (a\oplus b)$ evaluates to $0 \vee (1\oplus 1) = 0$, a contradiction. Thus at most three clauses can be satisfied, and setting $a=b=c=1$ satisfies the first three. Suppose now that $C$ is satisfied, so $x,y,z$ are not all equal. Since $(x\oplus y) \oplus (y\oplus z) \oplus (z\oplus x) = 0$ and not all three parities are $0$, exactly two of the values $x\oplus y$, $y\oplus z$, $z\oplus x$ equal $1$ and one equals $0$: \begin{itemize} \item If $x\oplus y = 0$, choose $a=1$, $b=0$, $c=0$: the first clause holds since $a=1$, the second and third hold since $y\oplus z = z\oplus x = 1$, and the fourth holds since $a\oplus b = 1$. \item If $y\oplus z = 0$, choose $a=0$, $b=1$, $c=0$: the second clause holds since $b=1$, the first and third hold since $x\oplus y = z\oplus x = 1$, and the fourth holds since $a\oplus b = 1$. \item If $z\oplus x = 0$, choose $a=1$, $b=0$, $c=1$: the third clause holds since $c=1$, the first and second hold since $x\oplus y = y\oplus z = 1$, and the fourth holds since $a\oplus b = 1$. \end{itemize} In each case, all four clauses of $\Xi_C$ are satisfied. \end{proof} For an instance $\Phi$ with clauses $C_1,\dots,C_m$, let $\Xi(\Phi)$ be the concatenation of $\Xi_{C_1},\dots,\Xi_{C_m}$ using disjoint triples of fresh variables $(a_i,b_i,c_i)$ of arbitrary signs for each clause $C_i$. \begin{proposition}[Distinct-Variable Compatibility]\label{prop:distinct} If the three literals of every clause of $\Phi$ are on three distinct variables, then every clause of $\Xi(\Phi)$ is on three distinct variables. \end{proposition} \begin{proof} For a single source clause $C_i$, let $x,y,z$ denote the underlying variables of its three literals. The underlying variable triples of the four clauses in $\Xi_{C_i}$ are $\{a_i,x,y\}$, $\{b_i,y,z\}$, $\{c_i,z,x\}$, and $\{c_i,a_i,b_i\}$. Each triple consists of three distinct variables because $x,y,z$ are pairwise distinct and the fresh variables $a_i,b_i,c_i$ are pairwise distinct and disjoint from $\{x,y,z\}$. Applying this argument independently to each $i \in \{1,\dots,m\}$ establishes the claim. \end{proof} Let $\mathcal{F} = \{ \Xi(\Phi) : \Phi \text{ is a MAX NAE-3SAT instance} \}$ be the image of this mapping. The transformation $\Phi \mapsto \Xi(\Phi)$ is computable in polynomial time, and $\Phi$ is recoverable from $\Xi(\Phi)$ in polynomial time because the clauses appear in consecutive blocks of four. Note that $|\Xi(\Phi)| = 4m$. \begin{lemma}[Composition]\label{lem:comp} For every instance $\Phi$ of MAX NAE-3SAT with $m$ clauses: \begin{enumerate} \item For every assignment $\tau$ of $\Xi(\Phi)$ with restriction $\sigma$ to the variables of $\Phi$, $\val(\Xi(\Phi),\tau) \le 3m + \val(\Phi,\sigma)$. \item Every assignment $\sigma$ of $\Phi$ extends in polynomial time to an assignment $\tau$ of $\Xi(\Phi)$ satisfying $\val(\Xi(\Phi),\tau) = 3m + \val(\Phi,\sigma)$. \item $\OPT(\Xi(\Phi)) = 3m + \OPT(\Phi)$. \end{enumerate} \end{lemma} \begin{proof} Because the auxiliary variable triples $(a_i,b_i,c_i)$ for distinct indices $i$ are pairwise disjoint, for any fixed assignment $\sigma$ to the variables of $\Phi$, the total number of satisfied clauses in $\Xi(\Phi)$ decomposes as the sum over $i=1,\dots,m$ of the number of satisfied clauses in $\Xi_{C_i}$, where each summand depends solely on $(a_i,b_i,c_i)$. By Lemma~\ref{lem:gadget}, the $i$-th summand is at most $3 + \mathbf{1}[C_i \text{ is satisfied by } \sigma]$, yielding~(1). Assigning each $(a_i,b_i,c_i)$ according to the explicit truth values given in the proof of Lemma~\ref{lem:gadget} attains this upper bound in $O(m)$ time, yielding~(2). Maximizing over all $\sigma$ gives~(3). \end{proof} \section{Approximation Ratio on $\mathcal{F}$ and Coverage by H\aa stad's Threshold}\label{sec:ratio} \begin{proposition}[Approximation Ratio $0.977$ on $\mathcal{F}$]\label{prop:ratio} There is a polynomial-time algorithm that returns, for every $\Xi \in \mathcal{F}$, an assignment $\tau$ with $\val(\Xi,\tau) \ge 0.977\,\OPT(\Xi)$. \end{proposition} \begin{proof} Given $\Xi \in \mathcal{F}$, recover $\Phi$ such that $\Xi = \Xi(\Phi)$ and let $m$ be its number of clauses. Invoke the polynomial-time algorithm of Theorem~\ref{thm:alg} on $\Phi$ to obtain an assignment $\sigma$ satisfying $\val(\Phi,\sigma) \ge \rho\,\OPT(\Phi)$, and extend $\sigma$ to $\tau$ via Lemma~\ref{lem:comp}(2). Setting $x = \OPT(\Phi)/m \in [0,1]$, Lemma~\ref{lem:comp}(2) and~(3) give \[ \frac{\val(\Xi,\tau)}{\OPT(\Xi)} \;\ge\; \frac{3m + \rho\,\OPT(\Phi)}{3m + \OPT(\Phi)} \;=\; \frac{3 + \rho x}{3 + x}. \] For $\rho \le 1$ and $0 \le x \le 1$, we have the algebraic identity \[ 4(3 + \rho x) - (3 + \rho)(3 + x) \;=\; 3(1 - \rho)(1 - x) \;\ge\; 0, \] and therefore, using $\rho \ge 0.908$, \[ \frac{3 + \rho x}{3 + x} \;\ge\; \frac{3 + \rho}{4} \;\ge\; \frac{3 + 0.908}{4} \;=\; 0.977. \qedhere \] \end{proof} We now state and prove the structural bridge between H\aa stad's $3/4$ approximation-resistance results and the gap-hardness regime required on $\mathcal{F}$. \begin{proposition}[Precondition Satisfaction and Coverage by H\aa stad's $3/4$ Threshold~\cite{Hastad2001}]\label{prop:hastad_coverage} Every instance $\Xi \in \mathcal{F}$ satisfies H\aa stad's syntactic preconditions for MAX-XOROR—namely, every clause acts on three distinct variables and permits arbitrary literal polarity. Moreover, any polynomial-time gap reduction into $\mathcal{F}$ achieving completeness $y$ and soundness $n$ with ratio $n/y \le 3/4$ (in particular, H\aa stad's $(1-\varepsilon)$ versus $(3/4+\varepsilon)$ regime for any $0 < \varepsilon < \frac{0.227}{1.977} \approx 0.1148$) satisfies $n < 0.977\,y$ and thus covers the MAX-XOROR Gap-Hardness Hypothesis. \end{proposition} \begin{proof} By definition of $\mathcal{F}$, any $\Xi \in \mathcal{F}$ has the form $\Xi(\Phi)$ for a MAX NAE-3SAT instance $\Phi$ whose clauses each involve three distinct variables. By Proposition~\ref{prop:distinct}, every clause of $\Xi(\Phi)$ is therefore on three distinct variables, ruling out variable-repetition degeneracies. In addition, the gadget construction allows arbitrary signs on both the source literals of $\Phi$ and the fresh auxiliary literals $(a_i,b_i,c_i)$ (Lemma~\ref{lem:gadget}), matching the free literal-polarity precondition of H\aa stad's Long Code reduction. For the quantitative threshold, suppose a polynomial-time reduction into $\mathcal{F}$ achieves completeness $y > 0$ and soundness $n \ge 0$ with $n/y \le 3/4$. Since $3/4 = 0.75 < 0.977$, we immediately obtain \[ n \;\le\; \frac{3}{4}\,y \;=\; 0.75\,y \;<\; 0.977\,y. \] Specifically, for H\aa stad's canonical parameters $y = 1 - \varepsilon$ and $n = \frac{3}{4} + \varepsilon$, the strict inequality $\frac{3}{4} + \varepsilon < 0.977(1 - \varepsilon)$ holds whenever $1.977\,\varepsilon < 0.227$, i.e., for every $0 < \varepsilon < \frac{0.227}{1.977}$. Note also that by Lemma~\ref{lem:comp}(3), every $\Xi(\Phi) \in \mathcal{F}$ satisfies $\OPT(\Xi(\Phi)) = 3m + \OPT(\Phi) \ge 3m = \frac{3}{4}|\Xi(\Phi)|$, so any soundness parameter $n$ on $\mathcal{F}$ necessarily satisfies $n \ge 3/4$, which places H\aa stad's $(3/4+\varepsilon)$ soundness threshold directly above the structural floor $3/4$ of $\mathcal{F}$ while remaining well below the algorithmic barrier $0.977\,y$ of Proposition~\ref{prop:ratio}. \end{proof} \section{The MAX-XOROR Gap-Hardness Hypothesis}\label{sec:main} As shown in Section~\ref{sec:hastad} and formalized in Proposition~\ref{prop:hastad_coverage}, the distinct-variable MAX-XOROR problem has a $3/4$ approximation-resistance threshold under H\aa stad's PCP framework, every instance in $\mathcal{F}$ satisfies H\aa stad's distinct-variable and literal-polarity preconditions, and H\aa stad's $3/4$ gap regime lies strictly inside the interval $n < 0.977\,y$. We now state the gap-hardness hypothesis on $\mathcal{F}$ and deduce its complexity-theoretic consequence. \paragraph{MAX-XOROR Gap-Hardness Hypothesis.} There exist rational constants $0 \le n < y \le 1$ with $n < 0.977\,y$ and a polynomial-time many-one reduction from Boolean satisfiability to $\mathcal{F}$ that maps satisfiable formulas to instances $\Xi \in \mathcal{F}$ with $\OPT(\Xi) \ge y\,|\Xi|$ and unsatisfiable formulas to instances $\Xi \in \mathcal{F}$ with $\OPT(\Xi) \le n\,|\Xi|$. \begin{theorem}[Conditional Consequence]\label{thm:main} Under the MAX-XOROR Gap-Hardness Hypothesis, $\mathrm{P} = \mathrm{NP}$. \end{theorem} \begin{proof} Fix the rational constants $n, y$ and the polynomial-time reduction supplied by the hypothesis (which, by Proposition~\ref{prop:hastad_coverage}, is covered whenever H\aa stad's $(1-\varepsilon)$ vs.\ $(3/4+\varepsilon)$ inapproximability holds on $\mathcal{F}$ for $0 < \varepsilon < 0.1148$). Given a Boolean formula, apply the reduction to produce $\Xi \in \mathcal{F}$ in polynomial time, run the algorithm of Proposition~\ref{prop:ratio} on $\Xi$ to obtain an assignment $\tau$, and compare $V = \val(\Xi,\tau)$ against the rational threshold $0.977\,y\,|\Xi|$: \begin{itemize} \item If the input formula is satisfiable, then $\OPT(\Xi) \ge y\,|\Xi|$, so Proposition~\ref{prop:ratio} guarantees $V \ge 0.977\,\OPT(\Xi) \ge 0.977\,y\,|\Xi|$. \item If the input formula is unsatisfiable, then $\OPT(\Xi) \le n\,|\Xi|$, so $V \le \OPT(\Xi) \le n\,|\Xi| < 0.977\,y\,|\Xi|$. \end{itemize} Thus, testing whether $V \ge 0.977\,y\,|\Xi|$ decides Boolean satisfiability in polynomial time, proving $\mathrm{P} = \mathrm{NP}$. \end{proof} \noindent While Proposition~\ref{prop:hastad_coverage} shows that the hypothesis is covered by H\aa stad's $3/4$ threshold and syntactic preconditions on $\mathcal{F}$, constructing an explicit reduction from Boolean satisfiability into the restricted subfamily $\mathcal{F}$ with $n < 0.977\,y$ is not established in this paper. \section{Formal Verification in Lean 4}\label{sec:lean} The Lean~4 module \texttt{PNP.Gadget} provides machine-checked proofs of the finite case analysis and algebraic inequalities underlying the reduction: \begin{itemize} \item \texttt{nae\_gadget\_value}: verifies Lemma~\ref{lem:gadget} exhaustively across all Boolean assignments to $(x,y,z)$ and all choices of signs for the auxiliary literals $(a,b,c)$. \item \texttt{gadget\_distinct}: verifies the pairwise variable-distinctness conditions for the four clauses of $\Xi_C$ used in Proposition~\ref{prop:distinct} and Proposition~\ref{prop:hastad_coverage}. \item \texttt{ratio\_lower} and \texttt{family\_ratio}: prove the inequality $\frac{3+\rho}{4} \le \frac{3+\rho x}{3+x}$ for $\rho \le 1$, $x \in [0,1]$, and deduce $0.977 \le \frac{3+\rho x}{3+x}$ whenever $\rho \ge 0.908$. \item \texttt{decide\_gap}: verifies the strict gap separation $n < r\,y$ used in Proposition~\ref{prop:hastad_coverage} and Theorem~\ref{thm:main}. \end{itemize} Theorem~\ref{thm:alg}, Lemma~\ref{lem:comp}, Proposition~\ref{prop:ratio}, Proposition~\ref{prop:hastad_coverage}, and Theorem~\ref{thm:main} are stated and proved at the mathematical level above and are not formalized in Lean~4. The repository is available at~\cite{VegaRepository}. \bibliographystyle{plainurl} \bibliography{biblio} \end{document}