Completing random near-full queens boards at the hitting time
We study n-queens completion on random near-full boards: m rows and m columns are free, and each diagonal is independently open or closed. A free row or column with no available square, an empty line, rules out a completion. We prove that under explicit regularity conditions, including the homogeneous model in which all diagonals are open with the same probability, it is with high probability the only obstruction: a board with no empty line has a completion, and a randomized polynomial-time algorithm finds one. This is the queens analogue of the Erdős–Rényi hitting-time theorem for perfect matchings. A completion is a perfect matching that is rainbow for two geometric colourings at once. The proof combines random pools of diagonals, Kahn's matching theorem, a rainbow expanding core built with the Lovász Local Lemma (Moser–Tardos), and a static booster lemma for augmenting paths. The deterministic and algebraic steps are machine-checked in Lean 4 with Mathlib. As a consequence for cryptography, we show that random boards with a planted solution make poor one-way functions: once the number of options per line grows, the planted secret is information-theoretically hidden, but only because the board has many completions, and in experiments on 3,060 planted boards the algorithm, together with a short exact search, always found one. The supplement contains the LaTeX source, the figures, the Lean files with verification instructions, the code for the experiments, an explainer for non-specialists, and SHA-256 fingerprints of every file.
Authors
- Víctor Blanco Bataller (ORCID: https://orcid.org/0009-0006-3569-7452)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24787791
- Primary Topic
- Limits and Structures in Graph Theory
- Type
- preprint