Centered stripe localization for 36 points in a square
DefinitionCirclePacking36CenteredStripescircle-packingdiscrete-geometryfinite-certificates
Round each coordinate to the nearest point of the mesh with step . Each rounded label represents a centered interval clipped to the unit segment. The function gap gives the maximum distance between two such intervals in half-mesh units. The predicate localizesAt asks whether every 36-label family touching all four boundary lines and passing the exact integer gap test has at least six labels in each of six narrow strips in one of the two orientations. The strips are centered at for and have half-width .
Definition code
import Mathlib
set_option autoImplicit false
namespace CirclePacking36CenteredStripes
/-- Largest gap between two clipped intervals, in units of half a lattice step. -/
def gap (N a b : ℕ) : ℤ :=
2 * |(a : ℤ) - (b : ℤ)| + 2 -
(if min a b = 0 then 1 else 0) - (if max a b = N then 1 else 0)
/-- Each target stripe has at least six labels whose rounding interval lies in it. -/
def counts (m : ℕ) (u : Fin 36 → Fin (60 * m + 1)) : Prop :=
∀ a : Fin 6, 6 ≤ (Finset.univ.filter fun i =>
(26 : ℤ) * (2 * |((u i).val : ℤ) - 12 * (m : ℤ) * a.val| + 1) ≤
120 * (m : ℤ)).card
/-- The centered finite configuration localizes in at least one axis orientation. -/
def localizesAt (m : ℕ) : Prop :=
∀ q : Fin 36 → Fin (60 * m + 1) × Fin (60 * m + 1),
(∃ i, (q i).1.val = 0) →
(∃ i, (q i).1.val = 60 * m) →
(∃ i, (q i).2.val = 0) →
(∃ i, (q i).2.val = 60 * m) →
(∀ i j, i ≠ j → (24 * (m : ℤ)) ^ 2 <
gap (60 * m) (q i).1.val (q j).1.val ^ 2 +
gap (60 * m) (q i).2.val (q j).2.val ^ 2) →
counts m (fun i => (q i).1) ∨ counts m (fun i => (q i).2)
end CirclePacking36CenteredStripesSource
Alternate finite localization for https://prove2.me/theorems/147bdcc6-cfea-4ca8-99dc-9cfc2e63bded