Distinct active contacts for all coordinates of a packing in a square
ProvedCirclePackingConstants.square_packing_distinct_active_contactscircle-packingdiscrete-geometrylinear-algebra
Any feasible separation of n ≥ 2 labelled points in the closed unit square is attained by a configuration touching all four walls in which each of the 2n coordinates can be assigned a distinct active constraint. A coordinate can be assigned its own wall contact or a pair at the prescribed separation incident to its point. Each unordered pair may be used only once. For n = 36 this supplies a necessary condition involving 72 distinct contacts. The proof maximizes the sum of squared distances from the square centre, establishes injectivity of the linear map of active constraints, and applies Hall's theorem to its row supports.
Preamble
import Definitions.Def_CirclePackingConstants
Formal statement
namespace CirclePackingConstants
theorem square_packing_distinct_active_contacts (n : ℕ) (hn : 2 ≤ n) (s : ℝ)
(p : Fin n → CirclePackingConstants.Point)
(hp : ∀ i, 0 ≤ (p i).1 ∧ (p i).1 ≤ 1 ∧ 0 ≤ (p i).2 ∧ (p i).2 ≤ 1)
(hs : ∀ i j, i ≠ j → s^2 ≤ CirclePackingConstants.sqDist (p i) (p j)) :
∃ q : Fin n → CirclePackingConstants.Point,
(∀ i, 0 ≤ (q i).1 ∧ (q i).1 ≤ 1 ∧ 0 ≤ (q i).2 ∧ (q i).2 ≤ 1) ∧
(∃ i, (q i).1 = 0) ∧ (∃ i, (q i).1 = 1) ∧
(∃ i, (q i).2 = 0) ∧ (∃ i, (q i).2 = 1) ∧
(∀ i j, i ≠ j → s^2 ≤ CirclePackingConstants.sqDist (q i) (q j)) ∧
∃ f : (Fin n × Bool) → (Fin n × Bool) ⊕ (Fin n × Fin n),
Function.Injective f ∧ ∀ a, match f a with
| .inl b => a = b ∧
((if b.2 then (q b.1).2 else (q b.1).1) = 0 ∨
(if b.2 then (q b.1).2 else (q b.1).1) = 1)
| .inr e => (a.1 = e.1 ∨ a.1 = e.2) ∧ e.1 < e.2 ∧
CirclePackingConstants.sqDist (q e.1) (q e.2) = s^2 := by sorry
end CirclePackingConstantsSource
Direct proof by compactness, a two-sided displacement argument, and Hall's marriage theorem.