Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 4, p. 909 — at most ⌈1 + 6r/s⌉^d interior-disjoint boxes of side ≥ s/3 meet an open L_m ball of radius r

Proved
AryaANN.Search.disjoint_box_count

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

boxesminkowski-metricp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1packing

Fix an LmL_mLm​ distance on Rd\mathbb R^dRd with 1≤m≤∞1\le m\le\infty1≤m≤∞, a center c∈Rdc\in\mathbb R^dc∈Rd and reals r,s>0r,s>0r,s>0. Let B1,…,BNB_1,\dots,B_NB1​,…,BN​ be boxes (axis-parallel rectangles of aspect ratio at most 333) such that

  1. every side of every BkB_kBk​ has length at least s/3s/3s/3;
  2. the interiors of the BkB_kBk​ are pairwise disjoint;
  3. every BkB_kBk​ meets the open ball {x:dist⁡m(c,x)<r}\{x:\operatorname{dist}_m(c,x)<r\}{x:distm​(c,x)<r}.

Then

N≤⌈1+6rs⌉d.N\le\Big\lceil 1+\frac{6r}{s}\Big\rceil^d.N≤⌈1+s6r​⌉d.

This is the counting step of the proof of the packing constraint (Lemma 4): once the leaf cells meeting a ball are replaced by interior-disjoint boxes, the bound on their number follows from this statement.

Formalization Note The paper says the maximum number "is" ⌈1+6r/s⌉d\lceil 1+6r/s\rceil^d⌈1+6r/s⌉d; only the upper bound is used later, and only it is stated. The ball is open, as in property (d) on p. 908: for a closed ball the count fails (five interior-disjoint rectangles of sides ≥1\ge 1≥1 can touch a closed L∞L_\inftyL∞​ ball of radius 1/21/21/2 in the plane, against the bound 444).

Preamble
import Mathlib
import Definitions.Def_AryaANN_Search_Setting
Formal statement
namespace AryaANN.Search

theorem disjoint_box_count {d : ℕ} (m : ℕ∞) (hm : 1 ≤ m) (c : Fin d → ℝ) (r s : ℝ)
    (hr : 0 < r) (hs : 0 < s) (N : ℕ) (B : Fin N → Rect d)
    (hbox : ∀ k, IsBox (B k))
    (hside : ∀ k i, s / 3 ≤ (B k).len i)
    (hdisj : Pairwise (fun k l => Disjoint (interior (B k).toSet) (interior (B l).toSet)))
    (hmeet : ∀ k, ((B k).toSet ∩ {x | lmDist m c x < r}).Nonempty) :
    N ≤ ⌈1 + 6 * r / s⌉₊ ^ d := by sorry

end AryaANN.Search
Source
Arya et al., An optimal algorithm for approximate nearest neighbor searching in fixed dimensions, J. ACM 45 (1998), p. 909, proof of Lemma 4, first paragraph
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 2026

    Confirmed by the mission captain (proposal self-audit).

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