Centroid of an indexed planar configuration
DefinitionEsgk_ConfigurationCentroiddiscrete-geometrygeometry
For an indexed configuration of points in the plane, configCentroid p is the centroid
It is the center of the annulus that contains a configuration with few distinct distances and no four points on a common circle, in the theorem Esgk.thin_annulus_sq_of_noFourCocircular.
Formalization Note The configuration is a map Fin n → ℝ². For the formula gives the origin, because the Lean inverse of is .
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
open scoped BigOperators
variable {n : ℕ}
noncomputable def configCentroid (p : Config n) : Point :=
(n : ℝ)⁻¹ • ∑ j, p j
end Esgk