Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3 — an equilibrium is stable iff every two clusters are more than 1 + min{W_A,W_B}/max{W_A,W_B} apart

Open
BHTOpinion.Approx.Supplement.theorem3_stable_iff

by mikedeng1 · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

clustersopinion-dynamicsp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1stability

Consider nnn agents with positive weights w1,…,wnw_1,\dots,w_nw1​,…,wn​ evolving by the weighted system (2.4). Let s∈Fs\in Fs∈F be an equilibrium: for all i,ji,ji,j, either si=sjs_i=s_jsi​=sj​ or ∣si−sj∣≥1|s_i-s_j|\ge1∣si​−sj​∣≥1. A cluster of sss is the set of agents sharing one value aaa, with weight Wa=∑i:si=awiW_a=\sum_{i:s_i=a}w_iWa​=∑i:si​=a​wi​. The equilibrium is stable if adding one agent of weight δ\deltaδ at any opinion moves no original agent by more than Δ(δ,s)\Delta(\delta,s)Δ(δ,s), with Δ(δ,s)→0\Delta(\delta,s)\to0Δ(δ,s)→0 as δ↓0\delta\downarrow0δ↓0 (over all perturbing opinions, all times and all solutions).

Theorem 3. The equilibrium sss is stable if and only if for any two clusters AAA and BBB, with values sA≠sBs_A\neq s_BsA​=sB​ and weights WA,WBW_A,W_BWA​,WB​,

∣sA−sB∣  >  d  =  1+min⁡{WA,WB}max⁡{WA,WB}.|s_A-s_B| \;>\; d \;=\; 1+\frac{\min\{W_A,W_B\}}{\max\{W_A,W_B\}} .∣sA​−sB​∣>d=1+max{WA​,WB​}min{WA​,WB​}​.

The inequality is strict: an equilibrium with two clusters exactly at distance ddd is unstable. For clusters of equal weight the threshold is 222; unequal weights allow stable intercluster distances below 222. The theorem explains why simulations of (2.1) typically end with clusters about 222 apart.

Formalization Note Clusters are indexed by pairs of agents with different values; the condition is required for every such pair (all pairs of clusters, not only adjacent ones). Stability is the predicate IsStable of the supplement's weighted-model definition, an ε\varepsilonε–η\etaη form of lim⁡δ↓0Δ(δ,s)=0\lim_{\delta\downarrow0}\Delta(\delta,s)=0limδ↓0​Δ(δ,s)=0 in which displacement is measured only for the original agents and every solution counts.

Differences from the source:

  • encoding: any two clusters A and B, their distance → every pair of agents i, j with s_i ≠ s_j, distance |s_i − s_j|, weights W at s_i and s_j; reason: clusters of an equilibrium are the distinct values of s; each pair of clusters is reached by a pair of agents
  • reading: an equilibrium (weights implicit) → s ∈ F with fixed weights w_i > 0; reason: §2.2 sets the theorem in the weighted system (2.4) with mass weights; positivity is the ordinary mass interpretation used by the proof's center of mass, and unit weights are included
  • reading: Δ(δ, s̃) is a supremum over solutions of the system (2.1) → solutions of the weighted system (2.4) with the new agent of weight δ; reason: the definition is given in the weighted setup of §2.2, with an added agent of weight δ; (2.1) has no weights
Preamble
import Mathlib
import Definitions.Def_BHTOpinion_Discrete_Model
import Definitions.Def_BHTOpinion_Approx_Supplement_Weighted
Formal statement
namespace BHTOpinion.Approx.Supplement

theorem theorem3_stable_iff {n : ℕ} (w : Fin n → ℝ) (hw : ∀ i : Fin n, 0 < w i)
    (s : Fin n → ℝ) (hs : s ∈ BHTOpinion.Discrete.F n) :
    IsStable w s ↔
      ∀ i j : Fin n, s i ≠ s j →
        1 + min (clusterWeight w s (s i)) (clusterWeight w s (s j)) /
            max (clusterWeight w s (s i)) (clusterWeight w s (s j)) < |s i - s j| := by sorry

end BHTOpinion.Approx.Supplement
Source
Blondel, Hendrickx, Tsitsiklis, Continuous-time average-preserving opinion dynamics with opinion-dependent communications, SIAM J. Control Optim. 48 (2010), DOI 10.1137/090766188, Theorem 3, p. 5220 (PDF 7); setting (2.4) and stability p. 5220; proof sketch p. 5221 (PDF 8)

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