Paperlane

no. 21 · Tuesday 24 November 2026

Covering hypercubic grids by polygonal trails: capacity bounds and the optimum for $P(4,3)$

Aldo Roberto Pessolano and Marco Ripà

math.GM · □ lean · 20 pp

Abstract

The classical nine-dot puzzle asks for a polygonal trail through a square grid using as few segments as possible. We study its higher-dimensional analogue on $P(n,k):=\{0,\ldots,n-1\}^k$ for integers $n,k\ge2$, allowing arbitrary real vertices and unrestricted segment directions, and denote the minimum number of segments by $h(n,k)$. For $n\ge3$ and $k\ge2$, we give a geometric proof of the previously stated capacity bound: a trail of $r\ge1$ segments meets at most $1+r(n-1)$ grid points. Refinements of this bound, combined with exhaustive finite checks, establish $h(4,3)=23$ and $h(5,3)\ge32$. We also exhibit a $22$-segment trail through $63$ points of $P(4,3)$, the maximum possible, and a $23$-segment covering trail contained in $[0,4]^3$, which settles the corresponding box-constrained problem. The general capacity theorem, a large-grid lower bound refuting a previously proposed formula for $h(n,k)$, and the boxed construction are verified by the Lean 4 kernel, whereas the finite exclusions use native reflection and additionally trust the native compiler and runtime. A companion technical note provides the computational specification and reproducible proof artifacts.

comments
20 pages, 2 figures. Companion technical note and reproducible proof artifacts: https://doi.org/10.5281/zenodo.24145830
fields
General Mathematics