An integer box separation test bounds occupancy in a narrow strip
ProvedCirclePackingConstants.card_le_of_integer_box_stripcircle-packingdiscrete-geometryfinite-certificates
Suppose finitely many labeled integer points lie in the rectangle from left to right and bottom to top. For every distinct pair, suppose exceeds . If the width is and is a positive integer with , then the rectangle contains at most labels. This gives an exact occupancy constraint for finite circle-packing certificates.
Preamble
import Mathlib
Formal statement
theorem CirclePackingConstants.card_le_of_integer_box_strip {ι : Type} (s : Finset ι)
(x y : ι → ℕ) (left right bottom top d threshold : ℕ) (hd : 0 < d)
(hx : ∀ i ∈ s, left ≤ x i ∧ x i ≤ right)
(hy : ∀ i ∈ s, bottom ≤ y i ∧ y i ≤ top)
(hcut : (((right - left : ℕ) : ℤ) + 1) ^ 2 + (d : ℤ) ^ 2 ≤ (threshold : ℤ) ^ 2)
(hsep : ∀ i ∈ s, ∀ j ∈ s, i ≠ j →
(threshold : ℤ) ^ 2 < (|(x i : ℤ) - x j| + 1) ^ 2 + (|(y i : ℤ) - y j| + 1) ^ 2) :
s.card ≤ (top - bottom) / d + 1 := by sorrySource
Elementary projection bound for the finite square-packing certificate https://prove2.me/theorems/72cc6f58-4399-4e21-a64d-d038e84a3afd