Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Regional partition menus from center and distance-witness guesses

Definition
StableMSR_RegionalSeeds

by lreyzin · Nov 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

algorithmsclusteringdynamic-programmingformal-verification

Restrict each guessed ball/threshold equivalence test to a supplied set W of points. Materialize the resulting classes and retain only feasible partitions of W. The trace of an optimal partition consists of all its nonempty intersections with W.

Definition code
import Definitions.Def_StableMSR_FewBallRows
set_option autoImplicit false
open scoped Classical
open StableMSR.Recovery StableMSR.Recovery.OracleQueries
open StableMSR.Recovery.CartesianBallRows StableMSR.Recovery.FewBallRows
namespace StableMSR.Recovery.RegionalSeeds
def seedWorld (x : World) (h : ℕ) : World := {x with k:=h+1}
noncomputable def tracePartition {n : ℕ} (O : Partition n) (W : Cluster n) : Partition n :=
  ((O.filter (fun C=>(C∩W).Nonempty)).image (fun C=>C∩W))
noncomputable def classes {n : ℕ} (W : Cluster n) (R : Relation) : Partition n :=
  W.image (fun i=>W.filter (fun j=>R i.val j.val))
noncomputable def traceMenu (x : World) (h : ℕ) (W : Cluster x.n) : Finset (Partition x.n) :=
  (((Finset.range (h+1)).product (Finset.range (rows x.n (h+1)))).image
    (fun gu=>classes W (digitRel (seedWorld x h) gu.1 gu.2))).filter
      (fun P=>Feasible W P.card P)
end StableMSR.Recovery.RegionalSeeds
Source
Exact Sum-of-Radii Clustering under Any Constant Stability, arXiv:2611.03547, Lemmas 3.3 and 3.8 and Algorithm 1. Local-window variant of the large-cluster enumeration.

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