\section{Additive approximation and sampling}\label{sec:approx} The sampling algorithm returns the most frequent type among its samples. To implement it with finite bits, we round the coordinates of the standard Gaussian vectors that generate the displacements to rational values and bound the probability that rounding changes the type. This gives an additive guarantee. Lower bounds on the modal probability and on its gap from the competitors will then give relative approximation and exact recovery. Throughout this section, site \(i\) is \(X_i=\mu_i+A_iZ_i\), where the centre \(\mu_i\in\Q^2\) and the invertible matrix \(A_i\in\Q^{2\times2}\) are part of the input. The vectors \(Z_1,\ldots,Z_n\) are independent, each with two independent \(N(0,1)\) coordinates. Thus \(X_i\sim N_2(\mu_i,A_iA_i^{\mathsf T})\), allowing each site its own, possibly anisotropic, covariance. The Gaussian reduction uses \(A_i=\sigma I_2\) with the same rational \(\sigma>0\) at every site. The input length \(\mathsf L\) includes the entries of these matrices and any supplied accuracy, confidence and probability bounds. Let \(\mathcal T_n\) be the finite set of complete labelled Delaunay types realizable by \(n\) planar points with labels \(1,\ldots,n\). For each \(T\in\mathcal T_n\), let \(p(T)\) be its probability under these Gaussian sites, and set \(p_*=\max_{T\in\mathcal T_n}p(T)\). We assume \(n\ge4\), since \(\mathcal T_n\) has one element for \(n\le3\). \subsection{A finite distribution with controlled error} To round the coordinates of the \(Z_i\), we divide the standard normal line into intervals of equal probability and choose one rational value per interval (Fig.~\ref{fig:quantile}). Rounding to these values can produce degeneracies. We test all \(\binom n3\) orientation and \(\binom n4\) incircle determinants. Coincident sites also make an orientation determinant vanish. If any test vanishes, we output the symbol \(\bot\). Otherwise we output the complete type. A \emph{valid} type is an element of \(\mathcal T_n\). The extra symbol \(\bot\) has probability zero under the original distribution \(p\). For any rounded output distribution \(\widetilde p\) on this common alphabet, the supremum over events defining total variation can equivalently be written as \[ \TV(p,\widetilde p)=\frac12\sum_{T\in\mathcal T_n\cup\{\bot\}}|p(T)-\widetilde p(T)|. \] \begin{samepage} \begin{lemma}\label{lem:quantile} For an integer \(q\ge2\), partition the standard normal line into \(q\) consecutive intervals of probability \(1/q\), choose a rational representative in the interior of each, and replace each coordinate of each \(Z_i\) by the representative of its interval. If \(\widetilde p_q\) is the resulting output distribution, then \[ \TV(p,\widetilde p_q)\le\frac{n^4}{q}. \] The representatives can be generated individually in time polynomial in \(\log q\), using polynomially many bits. \end{lemma} \end{samepage} \input{figures/quantile} \begin{proof} Round the \(2n\) coordinates of \(Z_1,\ldots,Z_n\) one at a time in a fixed order, using the same sample throughout. If the original and final triangulations differ, some rounding step changed the output. It therefore suffices to add up the probabilities of a change at each step. The coordinates start out independent, and each rounded value depends only on its own original coordinate. Conditional on the current values of all other coordinates, the coordinate about to be rounded still has the standard normal law. In particular, each of its \(q\) intervals still has probability \(1/q\). With those other coordinates fixed, varying the remaining coordinate of \(Z_i\) moves \(X_i\) along a straight line in the direction of the corresponding column of \(A_i\) (Fig.~\ref{fig:quantile}(a)). Every determinant involving only the other sites is constant along the line. If any orientation or incircle determinant vanishes identically, the algorithm reports \(\bot\) both before and after this rounding step. Testing every determinant catches even degeneracies that a triangulation algorithm may never encounter. If no determinant vanishes identically, each pair of fixed sites defines a line that the moving site can meet at most once, and each triple defines a circle that it can meet at most twice. The corresponding determinants are polynomials of degree at most one and two in the moving coordinate. Thus at most \(\binom{n-1}{2}+2\binom{n-1}{3}\le n^3/2\) values are critical. On each interval between critical values, including the two outer intervals, every test keeps its sign and the triangulation stays the same. The sampled coordinate and its representative lie in the interior of the same quantile interval almost surely. Rounding can change the output only if this interior contains a critical value (Fig.~\ref{fig:quantile}(b)). At most \(n^3/2\) intervals can do so. The conditional probability of a change is therefore at most \(n^3/(2q)\). Summing over \(2n\) steps bounds the probability that the coupled outputs differ, and hence their total variation distance, by \(n^4/q\), uniformly in the centres. Given \(j\), we still need to construct a rational number inside its interval. Let \(\Phi\) be the cumulative distribution function of the standard normal. On the probability axis in Fig.~\ref{fig:quantile}(b), the \(j\)th interval runs from \((j-1)/q\) to \(j/q\), with midpoint \(v_j=(j-\tfrac12)/q\). The midpoint is \(1/(2q)\) from either endpoint on the probability axis. Thus any rational \(r_j\) with \(|\Phi(r_j)-v_j|<1/(4q)\) lies strictly inside its quantile interval on the real line, even for the unbounded first and last intervals. We locate such a point by bisection on the real line. For \(K=\lceil\log_2 q\rceil+2\) the Gaussian Chernoff bound gives \(\Phi(-K)=1-\Phi(K)\le e^{-K^2/2}<1/(8q)\), so \([-K,K]\) contains the quantile \(\Phi^{-1}(v_j)\). At the midpoint \(r\) of the current interval, compute a rational \(\widetilde\Phi\) with \(|\widetilde\Phi-\Phi(r)|\le1/(16q)\). If \(|\widetilde\Phi-v_j|\le1/(8q)\), return \(r\). Indeed, \(|\Phi(r)-v_j|\le3/(16q)<1/(4q)\). Otherwise \(\Phi(r)-v_j\) has the sign of \(\widetilde\Phi-v_j\), which shows on which side of \(r\) the quantile lies, and we keep that half. The test must succeed once the search interval has length below \(1/(8q)\). Its midpoint is then within \(1/(16q)\) of the quantile, and \(\Phi'<1\) gives \(|\Phi(r)-v_j|<1/(16q)\), hence \(|\widetilde\Phi-v_j|<1/(8q)\). Starting from length \(2K\), this takes \(O(\log q)\) halvings, and every midpoint is a dyadic rational with \(O(\log q)\) bits. To compute \(\Phi(r)\), we integrate the standard normal density from \(0\) to \(r\) and add \(1/2\). Expand \(e^{-w}\) at zero through degree \(k\) and substitute \(w=x^2/2\). The resulting polynomial in \(x\) has degree \(2k\). Every derivative of \(e^{-w}\) has magnitude at most one for \(w\ge0\), so the pointwise Taylor error is at most \(w^{k+1}/(k+1)!\). Between \(0\) and \(r\), whatever the sign of \(r\), we have \(w\le K^2/2\) along an interval of length \(|r|\le K\). Integrating the pointwise bound therefore gives truncation error at most \(K(K^2/2)^{k+1}/(k+1)!\). Since \(K=O(\log q)\), taking \(k\) a sufficiently large constant multiple of \(K^2\) and using a certified rational approximation to \(1/\sqrt{2\pi}\) gives the required accuracy \(1/(16q)\) with a number of bits polynomial in \(\log q\). \end{proof} \subsection{A polynomial additive search algorithm} The additive algorithm samples \(\widetilde p_q\) and returns a most frequent valid type. It stores only observed types. To compare that output with an unobserved mode, we need a probability bound that holds simultaneously for every type, regardless of the size of the support. \Needspace{8\baselineskip} \begin{theorem}\label{thm:additive} Given independent Gaussian sites specified by rational centres and invertible rational \(2\times2\) covariance factors, and rational \(0<\varepsilon,\delta<1\), a randomized algorithm returns a valid type \(\widehat T\) such that \[ \Prob\{p(\widehat T)\ge p_*-\varepsilon\}\ge1-\delta. \] It uses \(O(\varepsilon^{-2}\log(2/\delta))\) independent discrete realizations and runs in time polynomial in \(n,\mathsf L,1/\varepsilon,\log(1/\delta)\). \end{theorem} \begin{algorithm}[ht] \caption{Additive approximation for Gaussian input}\label{alg:additive} \begin{algorithmic}[1] \Require Rational centres, invertible rational covariance factors \(A_i\), and rational \(0<\varepsilon,\delta<1\) \Ensure \(p(\widehat T)\ge p_*-\varepsilon\) with probability at least \(1-\delta\) \State Choose the smallest power of two \(q\ge4n^4/\varepsilon\). \State Set \(N=\lceil32\varepsilon^{-2}\rceil\lceil\log_2(2/\delta)\rceil\). \For{\(j=1,\ldots,N\)} \State Sample \(2n\) uniform quantile indices, generate their rational representatives and form the rational sites. \State Evaluate all orientation and incircle predicates exactly. Record \(\bot\) if one vanishes, and the canonical type otherwise. \EndFor \State Return a most frequent valid type. If none was observed, return the Delaunay type of \((i,i^2)\), \(i=1,\ldots,n\). \end{algorithmic} \end{algorithm} \begin{proof} Algorithm~\ref{alg:additive} chooses \(q\) so that rounding changes the probability of any type by at most \(\varepsilon/4\) (Lemma~\ref{lem:quantile}). To control the sampling error, fix any ordering of the discrete outputs, including \(\bot\). By the Dvoretzky--Kiefer--Wolfowitz inequality with Massart's constant~\cite{massart}, with probability at least \(1-2\exp(-N\varepsilon^2/32)\) every empirical cumulative frequency is within \(\varepsilon/8\) of its population value. This bound holds for discrete distributions as well: applying their inverse distribution function to uniform draws gives the same cumulative frequencies at the corresponding probability thresholds. The algorithm takes \(N\ge32\varepsilon^{-2}\ln(2/\delta)\), since \(\log_2 x\ge\ln x\) for \(x\ge1\). The bound thus holds simultaneously at all thresholds with confidence at least \(1-\delta\). Subtract the cumulative frequency just before a type from the cumulative frequency through it. Each of the two cumulative errors is at most \(\varepsilon/8\), so the resulting frequency \(\widehat p(T)\) differs from \(\widetilde p_q(T)\) by at most \(\varepsilon/4\). Its denominator counts all \(N\) draws, including \(\bot\). Adding the rounding error gives \(|p(T)-\widehat p(T)|\le\varepsilon/2\) for every valid type on this same event. The algorithm returns a valid type \(\widehat T\) with a largest count. In particular, it occurs at least as often as any true mode \(T_*\), whose count is zero if it was never sampled. Applying the error bound first to \(T_*\) and then to \(\widehat T\) gives \[ p(T_*)\le\widehat p(T_*)+\varepsilon/2 \le\widehat p(\widehat T)+\varepsilon/2 \le p(\widehat T)+\varepsilon . \] If every draw is \(\bot\), all valid types have empirical frequency zero. The fallback is therefore also an empirical maximizer. It is valid because the points \((i,i^2)\) are generic, as shown in the proof of Proposition~\ref{prop:centre-rank}. Each draw takes \(2n\log_2q\) random bits. By Lemma~\ref{lem:quantile}, we generate its rational representatives in polynomial time with polynomial bit length. Exact determinant evaluation and sorted lists of labelled faces then let us compute and count the observed types in polynomial time. Without sampling, enumerating the \(q^{2n}\) grid realizations for \(q=\lceil2n^4/\varepsilon\rceil\) gives \(\widetilde p_q\) exactly, and a most probable valid type of \(\widetilde p_q\), with the same fallback, loses at most \(2\TV(p,\widetilde p_q)\le\varepsilon\). This deterministic variant takes time \((n/\varepsilon)^{O(n)}\operatorname{poly}(\mathsf L)\). \end{proof} \subsection{Relative guarantees and favourable instances} When \(\varepsilon\ge p_*\), the additive guarantee allows every valid type. To obtain a useful relative guarantee, we supply a positive lower bound on \(p_*\) and choose a smaller additive tolerance. If a unique mode is also separated from its competitors by a known positive gap, a tolerance smaller than that gap forces exact recovery. \begin{proposition}\label{prop:relative} If a positive rational lower bound \(\underline p\le p_*\) is supplied, Gaussian input admits randomized relative search with \[ \Prob\{p(\widehat T)\ge(1-\varepsilon)p_*\}\ge1-\delta \] in time polynomial in \(n,\mathsf L,1/\varepsilon,1/\underline p,\log(1/\delta)\). For arbitrary Gaussian input there is such an algorithm with bit cost \[ 2^{O(n\log n)} \operatorname{poly}(\mathsf L,1/\varepsilon,\log(1/\delta)). \] \end{proposition} \begin{proof} With tolerance \(\varepsilon \underline p\), the algorithm of Theorem~\ref{thm:additive} returns a type satisfying \(p(\widehat T)\ge p_*-\varepsilon \underline p\ge(1-\varepsilon)p_*\) in time polynomial in \(1/(\varepsilon \underline p)\) and the other parameters. For the second assertion, the type count used in \eqref{eq:type-count-rank} gives \(p_*\ge 1/(n!C^n)\) for a fixed integer \(C>1\), since every realization is almost surely generic. Using this lower bound for \(\underline p\) gives the stated \(2^{O(n\log n)}\) factor. \end{proof} \begin{samepage} \begin{proposition}\label{prop:histogram} Suppose the mode \(T_*\) is unique, with probability \(p_*=p(T_*)\), gap \(\Delta=p_*-\max_{T\ne T_*}p(T)>0\), and relative gap \(\gamma=\Delta/p_*\). The empirical mode of \(N\) independent ideal Gaussian realizations equals \(T_*\) with probability at least \(1-\delta\) whenever \[ N\ge\frac{20}{p_*\gamma^2} \ln\frac{2|\mathcal T_n|}{\delta}. \] For Gaussian input with known inverse-polynomial lower bounds on \(p_*\) and \(\gamma\), exact modal recovery also has a randomized polynomial-time implementation in bits. \end{proposition} \end{samepage} \begin{proof} Each empirical frequency \(\widehat p(T)\) averages \(N\) independent indicators with variance at most \(p_*\). Bernstein's inequality~\cite[Section~2.7, inequality~(2.10)]{blm} at \(t=\Delta/3\) gives \[ \Prob\{|\widehat p(T)-p(T)|\ge\Delta/3\} \le2\exp\!\left(-\frac{N\Delta^2}{18p_*+2\Delta}\right) \le2\exp\!\left(-\frac{N\Delta^2}{20p_*}\right), \] since \(\Delta\le p_*\). As \(\Delta^2/p_*=p_*\gamma^2\), a union bound over \(\mathcal T_n\) shows that, for the stated \(N\), all these errors are below \(\Delta/3\) with probability at least \(1-\delta\). Then \(T_*\) has strictly largest empirical frequency. For the finite-bit implementation, let \(\underline p\) and \(\underline\gamma\) be the supplied positive lower bounds on the modal probability \(p_*\) and its relative gap \(\gamma\), respectively. Their product is at most \(p_*\gamma=\Delta\). Use half that product as the additive tolerance in Theorem~\ref{thm:additive}. Every other type has probability at most \(p_*-\Delta\), so only \(T_*\) can meet the guarantee. \end{proof} The coupling of Lemma~\ref{lem:quantile} uses independent Gaussian coordinates, and the algorithms need efficient finite sampling. The reductions for Delaunay triangulations require neither independence between coordinates nor an algorithm for evaluating the density or sampling efficiently. The sampling guarantees therefore do not automatically apply to every law covered by those theorems.