Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Centroid of an indexed planar configuration

Definition
Esgk_ConfigurationCentroid

by mysticflounder · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

discrete-geometrygeometry

For an indexed configuration p=(p1,…,pn)p=(p_1,\dots,p_n)p=(p1​,…,pn​) of nnn points in the plane, configCentroid p is the centroid

c(p)=1n∑j=1npj.c(p)=\frac1n\sum_{j=1}^n p_j .c(p)=n1​j=1∑n​pj​.

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 n=0n=0n=0 the formula gives the origin, because the Lean inverse of 000 is 000.

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

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me