Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Twenty-five points of the unit square with pairwise ∣p−q∣2>116|p-q|^2>\tfrac1{16}∣p−q∣2>161​ occupy the cells of the 5×55\times55×5 subdivision bijectively

Open
CirclePackingConstants.twentyfive_cell_occupancy

by vebis · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

circle-packingdiscrete-geometry

Let p0,…,p24p_0,\dots,p_{24}p0​,…,p24​ be twenty-five points of the closed unit square whose pairwise squared distances all exceed 116\tfrac1{16}161​, and let Qij=[i5,i+15]×[j5,j+15]Q_{ij}=[\tfrac i5,\tfrac{i+1}5]\times[\tfrac j5,\tfrac{j+1}5]Qij​=[5i​,5i+1​]×[5j​,5j+1​] be the cells of the 5×55\times55×5 subdivision. Then there is a bijection σ:{0,…,24}→{0,…,4}2\sigma:\{0,\dots,24\}\to\{0,\dots,4\}^2σ:{0,…,24}→{0,…,4}2 with pk∈Qσ(k)p_k\in Q_{\sigma(k)}pk​∈Qσ(k)​ for every kkk: every cell contains exactly one of the points.

A cell has diameter 2/5≈0.283>14\sqrt2/5\approx0.283>\tfrac142​/5≈0.283>41​, so two points may a priori share a cell (near opposite corners); the statement says that this cannot happen when all points are strictly more than 14\tfrac1441​ apart. Since the 5×55\times55×5 grid of spacing 14\tfrac1441​ shows that the separation 14\tfrac1441​ is attained, this is the global (non-tight) half of the optimality proof for twenty-five points: the numerically best configuration with a doubly occupied cell has minimum distance clearly below 14\tfrac1441​, so there is a margin and a finite case analysis over the occupancy patterns of the cells applies.

Formalization Note. Fin 5 × Fin 5 indexes the cells; the cells are closed, so a point on a common boundary may be assigned to either cell.

Preamble
import Definitions.Def_CirclePackingConstants

noncomputable section

namespace CirclePackingConstants
Formal statement
theorem twentyfive_cell_occupancy (p : Fin 25 → Point)
    (hp : ∀ i, 0 ≤ (p i).1 ∧ (p i).1 ≤ 1 ∧ 0 ≤ (p i).2 ∧ (p i).2 ≤ 1)
    (hd : ∀ i j, i ≠ j → (1 : ℝ) / 16 < sqDist (p i) (p j)) :
    ∃ σ : Fin 25 → Fin 5 × Fin 5, Function.Bijective σ ∧ ∀ k,
      ((σ k).1.val : ℝ) / 5 ≤ (p k).1 ∧ (p k).1 ≤ (((σ k).1.val : ℝ) + 1) / 5 ∧
      ((σ k).2.val : ℝ) / 5 ≤ (p k).2 ∧ (p k).2 ≤ (((σ k).2.val : ℝ) + 1) / 5 := by sorry
Source
G. Wengerodt, Die dichteste Packung von 25 Kreisen in einem Quadrat, Beitraege zur Algebra und Geometrie (1987) (optimality of the 5x5 grid, d_25 = 1/4); the decomposition into an occupancy statement and a labelled statement is proposed here.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me