Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Six points in the unit square contain a close pair

Open
CirclePackingConstants.six_unit_square_close_pair

by WillR · Sep 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

discrete-geometrypacking

Let p0,…,p5p_0,\dots,p_5p0​,…,p5​ be six points in the unit square [0,1]2[0,1]^2[0,1]2. Then there exist distinct indices i≠ji \neq ji=j with squared Euclidean distance at most 13/3613/3613/36, i.e. ∣pi−pj∣≤13/6|p_i-p_j| \le \sqrt{13}/6∣pi​−pj​∣≤13​/6.

This is the point-separation form of the optimality of the six-circle packing: d6=13/6d_6 = \sqrt{13}/6d6​=13​/6 is the largest separation attainable by six points in the unit square, so no configuration avoids a pair at distance at most d6d_6d6​. Combined with the matching six-point configuration attaining 13/3613/3613/36, it determines the optimal radius r6=d6/(2(1+d6))r_6 = d_6/(2(1+d_6))r6​=d6​/(2(1+d6​)).

Formalization Note Lean formalizes points as R×R\mathbb{R} \times \mathbb{R}R×R via CirclePackingConstants.Point and squared distance via CirclePackingConstants.sqDist.

Preamble
import Definitions.Def_CirclePackingConstants
Formal statement
namespace CirclePackingConstants

theorem six_unit_square_close_pair : ∀ p : Fin 6 → Point, (∀ i, 0 ≤ (p i).1 ∧ (p i).1 ≤ 1 ∧ 0 ≤ (p i).2 ∧ (p i).2 ≤ 1) → ∃ i j, i ≠ j ∧ sqDist (p i) (p j) ≤ (13 : ℝ) / 36 := by sorry

end CirclePackingConstants
Source
Erich Friedman's table of optimal packings of nnn equal circles in a unit square (https://erich-friedman.github.io/packing/cirinsqu/), entry n=6n=6n=6; the optimal separation d6=13/6d_6=\sqrt{13}/6d6​=13​/6 and the point-separation optimality half used in Sections 4-7 of the supplied Circles in squares source package.

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, licensed under Apache 2.0.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTermsJoin SlackJoin Zulip© 2026 Prove2Me