math.CO — Combinatorics
The planar Gates of Hell problem: an optimal-order discrepancy bound for arbitrary probability measures
We give a recursive construction which, for every doubly stochastic matrix , produces a permutation matrix with prefix-sum error at most . The construction transports a fractional child measure monotonically to the available unit atoms and then rounds cumulative masses in one dimension. The child error remains between zero and the parent error, up to one half. A recursive interval estimate prevents a second logarithmic loss. It follows that every Borel probability measure on the square admits an equal-weight -point approximation with star discrepancy at most , and rectangle discrepancy at most . Approximating points may lie outside the original support. The rounding argument is finite-dimensional and applies to arbitrary real matrix entries. Together with Schmidt's classical planar lower bound for Lebesgue measure, this settles the order-of-magnitude version of the planar Gates of Hell problem. The central existence theorems have also been formalized in Lean 4. The scope of the formalization and the available verification evidence are discussed in the appendix. The Lean source files will be made publicly available separately.