Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Actual polynomial Gini dispersion and local mass

Definition
DerivativeChainContinuation_PolynomialNearCollision

by labuka · Oct 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

continuation-20261026derivative-chainsgeometric-budgets

Define Gini dispersion from the polynomial root multiset with uniform degree normalization, and local mass from the proportion of root slots in a closed radius-ρ\rhoρ ball. All roots count multiplicity; no supplied coupling or chosen root labeling enters either definition.

Definition code
import Mathlib
import Definitions.Def_DerivativeChainPrivate_foundations

set_option autoImplicit false
set_option backward.isDefEq.respectTransparency false
namespace DerivativeChainContinuation
open Polynomial DerivativeChainPrivate
open scoped BigOperators

noncomputable def polynomialGini (p : Polynomial ℂ) : ℝ :=
  (p.natDegree:ℝ)⁻¹*(p.natDegree:ℝ)⁻¹*
    (p.roots.map (fun x => (p.roots.map (fun y => ‖x-y‖)).sum)).sum

noncomputable def polynomialLocalMass (p : Polynomial ℂ) (x : ℂ) (ρ : ℝ) : ℝ :=
  (p.natDegree:ℝ)⁻¹*(p.roots.map (fun y => if ‖x-y‖ ≤ ρ then (1:ℝ) else 0)).sum










end DerivativeChainContinuation
Source
https://github.com/Amal-David/derivative-chain-prize/blob/21d2a2ac5cd4b4e6263cbc715dd5f925427fc976/continuation_formal/Source/PolynomialNearCollision.lean#L8-L10; https://github.com/Amal-David/derivative-chain-prize/blob/21d2a2ac5cd4b4e6263cbc715dd5f925427fc976/continuation_formal/Source/PolynomialNearCollision.lean#L12-L13

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me