% Which results are verified in Lean, and under which hypotheses? \providecommand{\leandecl}[1]{\texttt{#1}} \section{Which results are verified in Lean, and under which hypotheses?}\label{sec:lean} Every numbered statement of this paper and both algorithms have counterparts proved in Lean~4~\cite{lean4} with the Mathlib library~\cite{mathlib}, and so do the unnumbered claims listed in Table~\ref{tab:lean-claims}. A reader who doubts a step of the reductions can therefore consult a proof whose constructions, probability estimates and running-time bounds the Lean kernel has checked. The kernel certifies the formal statements, and the value of this certificate depends on how faithfully they express the printed ones and on what they assume. Tables~\ref{tab:lean} and~\ref{tab:lean-claims} form a dictionary between the results of this paper and their names in Lean, with the classical hypothesis that each one uses. Each result on the left links to its place in this paper. The names on the right belong to the module \texttt{Results} of the supplement, which restates every result under a name that describes its content, with the statement of the declaration that proves it. The file \texttt{README\_FORMALIZATION.md} in the folder \texttt{lean} of the supplement repeats this dictionary and gives, for every name, the proving declaration and, for every result, its premises and main hypotheses. The following paragraphs state the classical hypotheses and the conventions that fix the meaning of the formal statements, identify the proofs that Lean carries out by another route and the claims left outside, and explain how to repeat the check. \begin{table}[!ht] \caption{Dictionary between the numbered statements and the algorithms of this paper and their names in Lean, with the classical premise that each row uses: IS for \texttt{IndependentSetHard} and SS for \texttt{SubsetSumHard}. Each entry on the left links to the statement. The names belong to the namespace \texttt{MostLikelyDelaunay.Results}. Several names in one row prove the parts of the statement together, and some rows add more general forms that the text describes.}\label{tab:lean} \centering\footnotesize\renewcommand{\arraystretch}{1.2} \begin{tabular}{@{}>{\footnotesize\raggedright\arraybackslash}p{0.14\linewidth}>{\footnotesize\raggedright\arraybackslash}p{0.72\linewidth}>{\footnotesize\raggedright\arraybackslash}p{0.08\linewidth}@{}} \toprule Statement & Lean names & Premise\\ \midrule \hyperref[prop:four-centres]{Prop.~\ref*{prop:four-centres}} & \leandecl{four\_site\_centre\_type}, \leandecl{quadrilateral\_types\_outrank\_centre\_type}, \leandecl{four\_site\_hull\_type\_probability} & none\\ \hyperref[prop:centre-rank]{Prop.~\ref*{prop:centre-rank}} & \leandecl{centre\_rank} & none\\ \hyperref[prop:line]{Prop.~\ref*{prop:line}} & \leandecl{sorted\_means\_half\_approximation}, \leandecl{sorted\_means\_half\_approximation\_sites}, \leandecl{sorted\_order\_half\_approximation}, \leandecl{sorted\_order\_optimal\_symmetric\_means}, \leandecl{sorted\_order\_optimal\_four\_sites} & none\\ \hyperref[thm:socg-gaussian]{Thm.~\ref*{thm:socg-gaussian}} & \leandecl{gaussian\_mode\_search\_np\_hard}, \leandecl{gaussian\_decaying\_factor\_search\_np\_hard} & IS\\ \hyperref[lem:geometry]{Lem.~\ref*{lem:geometry}} & \leandecl{contact\_layout}, \leandecl{contact\_layout\_machine} & none\\ \hyperref[lem:completion]{Lem.~\ref*{lem:completion}} & \leandecl{cell\_completion} & none\\ \hyperref[lem:stability]{Lem.~\ref*{lem:stability}} & \leandecl{local\_stability}, \leandecl{local\_stability\_machine\_output}, \leandecl{local\_stability\_machine\_time} & none\\ \hyperref[thm:gaussian-hull]{Thm.~\ref*{thm:gaussian-hull}} & \leandecl{hull\_mode\_search\_np\_hard}, \leandecl{hull\_label\_search\_np\_hard}, \leandecl{hull\_cyclic\_order\_search\_np\_hard}, \leandecl{hull\_one\_call\_reduction} & SS\\ \hyperref[def:L]{Def.~\ref*{def:L}} & \leandecl{LogarithmicTailCondition} & none\\ \hyperref[thm:main]{Thm.~\ref*{thm:main}} & \leandecl{radial\_mode\_search\_np\_hard} & IS\\ \hyperref[prop:equiv]{Prop.~\ref*{prop:equiv}} & \leandecl{confinement\_criterion}, \leandecl{confinement\_independent\_copies} & none\\ \hyperref[lem:near]{Lem.~\ref*{lem:near}} & \leandecl{near\_density\_symmetric\_continuous}, \leandecl{near\_density\_uniform\_limit}, \leandecl{near\_density\_window} & none\\ \hyperref[lem:weights]{Lem.~\ref*{lem:weights}} & \leandecl{weight\_bounds} & none\\ \hyperref[lem:expansion]{Lem.~\ref*{lem:expansion}} & \leandecl{block\_expansion}, \leandecl{zero\_field\_cycle\_expansion}, \leandecl{zero\_field\_cycle\_reversal}, \leandecl{field\_change\_bound}, \leandecl{field\_phase\_gap} & none\\ \hyperref[lem:block]{Lem.~\ref*{lem:block}} & \leandecl{block\_gap} & none\\ \hyperref[alg:reduction]{Alg.~\ref*{alg:reduction}} & \leandecl{radial\_one\_call\_reduction} & none\\ \hyperref[lem:localdisks]{Lem.~\ref*{lem:localdisks}} & \leandecl{local\_disks}, \leandecl{local\_disks\_dyadic}, \leandecl{local\_disks\_repeated} & none\\ \hyperref[lem:block-product]{Lem.~\ref*{lem:block-product}} & \leandecl{block\_product\_bound}, \leandecl{block\_product\_bound\_dyadic}, \leandecl{block\_product\_bound\_repeated}, \leandecl{block\_product\_bound\_layout} & none\\ \hyperref[prop:failure]{Prop.~\ref*{prop:failure}} & \leandecl{failure\_bound}, \leandecl{repeated\_failure\_bound}, \leandecl{failure\_bound\_any\_copies}, \leandecl{failure\_bound\_general}, \leandecl{failure\_bound\_general\_copies}, \leandecl{failure\_upper\_bound\_layout}, \leandecl{failure\_lower\_bound\_layout} & none\\ \hyperref[prop:oneblock]{Prop.~\ref*{prop:oneblock}} & \leandecl{one\_block\_certified}, \leandecl{gaussian\_one\_block\_certified}, \leandecl{gaussian\_squared\_density\_integral}, \leandecl{gaussian\_second\_moment} & none\\ \hyperref[thm:factor]{Thm.~\ref*{thm:factor}} & \leandecl{radial\_constant\_factor\_search\_np\_hard}, \leandecl{radial\_inapproximable\_unless\_p\_eq\_np}, \leandecl{radial\_scheme\_implies\_p\_eq\_np}, \leandecl{radial\_randomized\_factor\_implies\_np\_eq\_rp} & IS\\ \hyperref[thm:elliptical]{Thm.~\ref*{thm:elliptical}} & \leandecl{elliptic\_mode\_and\_factor\_search\_np\_hard}, \leandecl{elliptic\_inapproximable\_unless\_p\_eq\_np}, \leandecl{elliptic\_randomized\_factor\_implies\_np\_eq\_rp} & IS\\ \hyperref[lem:quantile]{Lem.~\ref*{lem:quantile}} & \leandecl{quantile\_coupling} & none\\ \hyperref[thm:additive]{Thm.~\ref*{thm:additive}} & \leandecl{additive\_sampling\_guarantee}, \leandecl{additive\_sampling\_realizations} & none\\ \hyperref[alg:additive]{Alg.~\ref*{alg:additive}} & \leandecl{additiveSamplingMachine}, \leandecl{additive\_sampling\_guarantee} & none\\ \hyperref[prop:relative]{Prop.~\ref*{prop:relative}} & \leandecl{relative\_search\_with\_lower\_bound}, \leandecl{relative\_search\_general} & none\\ \hyperref[prop:histogram]{Prop.~\ref*{prop:histogram}} & \leandecl{ideal\_histogram\_recovery}, \leandecl{histogram\_recovery\_machine} & none\\ \bottomrule \end{tabular} \end{table} \begin{table}[!ht] \caption{Dictionary between unnumbered claims of the text, with the places where each claim appears, and their names in Lean, with the classical premise that each row uses. The names belong to the namespace \texttt{MostLikelyDelaunay.Results}.}\label{tab:lean-claims} \centering\footnotesize\renewcommand{\arraystretch}{1.2} \begin{tabular}{@{}>{\footnotesize\raggedright\arraybackslash}p{0.24\linewidth}>{\footnotesize\raggedright\arraybackslash}p{0.62\linewidth}>{\footnotesize\raggedright\arraybackslash}p{0.08\linewidth}@{}} \toprule Claim & Lean names & Premise\\ \midrule Hull edges are the pairs in exactly one face (Section~\ref{sec:introduction}) & \leandecl{hull\_edge\_iff\_single\_face}, \leandecl{hull\_edges\_determined\_by\_type} & none\\ General position almost surely (Secs.~\ref{sec:introduction} and~\ref{sec:elliptical}) & \leandecl{general\_position\_almost\_surely} & none\\ Factor \(1/2\) for Gaussian sites (Section~\ref{sec:introduction}) & \leandecl{gaussian\_half\_factor\_search\_np\_hard} & IS\\ Small noise and the stable regime (Secs.~\ref{sec:centres} and~\ref{sec:examples}) & \leandecl{small\_noise\_centre\_mode}, \leandecl{gaussian\_small\_noise\_centre\_mode}, \leandecl{stable\_regime\_centre\_type}, \leandecl{uniform\_disk\_stable\_regime} & none\\ Gaussian translation bound (Section~\ref{sec:centres}) & \leandecl{gaussian\_translation\_total\_variation}, \leandecl{gaussian\_translation\_chain}, \leandecl{gaussian\_translation\_type\_bound} & none\\ Moving the centres of Prop.~\ref{prop:four-centres} (Section~\ref{sec:centres}) & \leandecl{four\_site\_centre\_perturbation}, \leandecl{four\_site\_centre\_perturbation\_constant} & none\\ Centre or samples after Prop.~\ref{prop:centre-rank} (Section~\ref{sec:centres}) & \leandecl{centre\_or\_samples\_rule} & none\\ Cauchy law and slow tails (Sec.~\ref{sec:heavy}) & \leandecl{cauchy\_tail\_ratio\_tendsto\_zero}, \leandecl{log\_tail\_bridge\_weight\_comparable} & none\\ Negative remarks on projections and linear maps (Secs.~\ref{sec:heavy} and~\ref{sec:elliptical}) & \leandecl{asymmetric\_zero\_field\_marginal}, \leandecl{no\_common\_projection\_scale}, \leandecl{stretch\_flips\_incircle} & none\\ Factor \(2^{-n^{1-\epsilon}}\) for radial and elliptic laws (Secs.~\ref{sec:amp-replication} and~\ref{sec:elliptical}) & \leandecl{radial\_decaying\_factor\_search\_np\_hard}, \leandecl{elliptic\_mode\_and\_factor\_search\_np\_hard}, \leandecl{radial\_decaying\_factor\_implies\_p\_eq\_np}, \leandecl{radial\_randomized\_decaying\_factor\_implies\_np\_eq\_rp} & IS\\ Sorting with \(O(n\log n)\) comparisons and the unique oriented mode (Secs.~\ref{sec:introduction} and~\ref{sec:line}) & \leandecl{merge\_sort\_comparisons}, \leandecl{merge\_sort\_sorts}, \leandecl{unique\_oriented\_mode}, \leandecl{oriented\_mode\_iff\_sorted} & none\\ Example laws (Secs.~\ref{sec:elliptical} and~\ref{sec:examples}) & \leandecl{cauchy\_one\_call\_reduction}, \leandecl{cauchy\_factor\_reductions}, \leandecl{uniform\_disk\_factor\_reductions}, \leandecl{beta\_tail\_law\_admissible}, \leandecl{log\_tail\_law\_admissible}, \leandecl{gaussian\_covariance\_elliptic\_reductions}, \leandecl{radial\_laws\_elliptic\_hypotheses}, \leandecl{sqrt\_law\_elliptic\_hypotheses}, \leandecl{beta\_tail\_law\_no\_positive\_moment}, \leandecl{sqrt\_law\_density\_unbounded}, \leandecl{singular\_law\_mutually\_singular}, \leandecl{singular\_law\_elliptic\_reductions}, \leandecl{radial\_hypotheses\_scaling}, \leandecl{elliptic\_reductions\_scaling} & none\\ Deterministic enumeration (Sec.~\ref{sec:additive-algorithm}) & \leandecl{deterministic\_enumeration}, \leandecl{deterministic\_enumeration\_time} & none\\ \bottomrule \end{tabular} \end{table} \textbf{Classical hypotheses.} The statements of this paper depend on two results from the literature, which the module \texttt{ClassicalHypotheses} of the supplement states as definitions. The premise \texttt{IndependentSetHard} asserts that \textsc{Maximum Independent Set} is NP-hard on simple cubic planar graphs, and Mohar proves this for the subclass of 2-connected graphs~\cite[Theorem~4.1(a)]{mohar_face}, which implies it for the whole class. The premise \texttt{SubsetSumHard} asserts that \textsc{Subset Sum} with positive items \(a_1,\ldots,a_m\) and a target \(1\le T\le A=\sum_i a_i\) is NP-hard~\cite[problem~18, pp.~95, 100]{karp}. Theorems~\ref{thm:socg-gaussian}, \ref{thm:main}, \ref{thm:factor} and~\ref{thm:elliptical} take \texttt{IndependentSetHard} as a premise, Theorem~\ref{thm:gaussian-hull} takes \texttt{SubsetSumHard}, and no other numbered statement uses either. The Lean statements of these four theorems, and those in the rows of Table~\ref{tab:lean-claims} with premise IS, write \texttt{IndependentSetHard} out as its definition, \texttt{NativeHard} applied to \texttt{MachineModel.basis} and \texttt{OneCallDecision.yes}, which reads \texttt{NativeHard basis yes} where these two namespaces are open. For the laws of Sections~\ref{sec:elliptical} and~\ref{sec:examples}, the declarations in the row of example laws of Table~\ref{tab:lean-claims} check the hypotheses of Theorems~\ref{thm:main}, \ref{thm:factor} and~\ref{thm:elliptical} and build the reductions, so their NP-hardness uses \texttt{IndependentSetHard} in the same way. Neither premise is an axiom, so each one appears in the statement of every theorem that uses it. The reductions themselves are proved outright. For Theorem~\ref{thm:gaussian-hull}, for instance, \texttt{hull\_one\_call\_reduction} states the one-call reduction from \textsc{Subset Sum} with no premise at all. A premise enters only in the last step, which composes a reduction with the reductions from every problem in NP that the classical theorem provides. Deriving the two premises from the cited theorems requires writing their reductions as transition tables of the model described below. The formalization README explains this derivation informally, since a formal proof would need the Cook--Levin theorem and the cited reductions in this model. A third named premise, the classical duality between Delaunay triangulations and Voronoi diagrams, enters only declarations about labelled Voronoi diagrams, and no statement of this paper depends on it. \textbf{Conventions.} Inputs are binary words, with rationals written in binary. Running time is measured on finite transition tables over three tapes with a built-in clock: each table halts within a number of steps bounded by a polynomial in its input length, and the degree of this polynomial is part of the table. The classes P, NP and RP are defined with these tables. A search problem is NP-hard when every language in NP reduces to it with one call to a solver. One table writes the query from the input, and a second table decides membership from the input and the reply. The second table must be correct for every acceptable reply, so a solver may break ties arbitrarily, and some acceptable reply of polynomial length must exist. Lemma~\ref{lem:geometry} and Algorithm~\ref{alg:reduction} also have versions that count bit operations, and the hardness theorems run them as transition tables. Planarity is combinatorial. A graph is planar when each connected component has a rotation system of genus zero, given by face labels on its darts that agree with a cyclic order at every vertex and satisfy Euler's relation. The faces of a plane drawing provide such labels, so this class contains the graphs of Mohar's theorem, and the equivalence with topological planarity is left outside the development. The Delaunay search problems are promise problems: their queries consist of rational centres in general position, and every reduction writes only such queries. The type of a configuration is formalized as its set of label triples whose open circumdisk contains no site. In general position these triples are the Delaunay triangles, and every displacement law considered here puts probability one on general position. \textbf{Proofs that follow another route.} For some statements of Table~\ref{tab:lean}, the formal proof follows a different route from the body. Lean verifies Theorem~\ref{thm:socg-gaussian} by applying the reductions for radial laws to the standard Gaussian, as the last paragraph of Section~\ref{sec:model} notes. Theorem~\ref{thm:main} gives the exact mode, and the replication argument of Section~\ref{sec:amp-replication}, which also proves Theorem~\ref{thm:factor}, gives the factor \(2^{-n^{1-\epsilon}}\). The direct argument of Section~\ref{sec:socg-gaussian}, which differentiates Gaussian orthant probabilities~\cite{plackett}, is therefore not formalized, and the same holds for Sheppard's closed-form correlation recalled at the start of Section~\ref{sec:responses}. The radial reductions already contain the standard Gaussian, so this route proves Theorem~\ref{thm:socg-gaussian} with no formalization of Sheppard's formula or of the derivatives of Gaussian orthant probabilities. Theorem~\ref{thm:gaussian-hull} is verified for the construction of Section~\ref{sec:gaussian-hull} with a different calibration, defined in the supplement. The formal proof keeps \(U\), \(k\) and \(\lambda=2^{-k}\) from that section, with \(N=2m+4\), and changes \(\beta=\lambda^4\) to \(\beta=2^{-m}\lambda^2/(2^{16}N^2)\), the error unit for which \(2^{11}N^2\) units fill \(G/4\) exactly. With this unit the transition tables evaluate every quantity with \(m+2k+16+2\lceil\log_2(N+1)\rceil\) bits of precision, and the accounting below also covers the rounding of the centres that they compute. It then shows that the errors of the calibration, of the rounding and of the vertex perturbation keep every canonical hull probability within \(G/4=2^{11}N^2\beta\) of its ideal score, where \(G=2^{-m}\lambda^2/8\) is the score gap of Section~\ref{sec:gaussian-hull}. The calibration printed in that section, with \(\beta=\lambda^4\) and the bound \((5m+4)\beta