Ordered pairs at distance greater than a threshold
DefinitionEsgk_FarPairApexCountdiscrete-geometrydistinct-distances
For an indexed configuration of points in the plane and a real number , FarOrderedPairs p s is the set of ordered pairs of distinct indices whose points are farther apart than :
Apex-counting arguments bound the size of this set from above and from below.
Formalization Note The set is a Finset (Fin n × Fin n); each unordered pair is counted in both orders.
Definition code
/-
Copyright (c) 2026 Adam McKenna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam McKenna
-/
import Definitions.Def_Esgk_Foundation
namespace Esgk
open EuclideanGeometry
variable {n : ℕ}
noncomputable def FarOrderedPairs (p : Config n) (s : ℝ) : Finset (Fin n × Fin n) :=
(Finset.univ : Finset (Fin n)).offDiag.filter (fun ab ↦ s < dist (p ab.1) (p ab.2))
end Esgk