Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma A.2, p. 14 — projection onto a ball does not increase the consensus error

Proved
DecBilevel.SLDBO.lemma_A_2

by mikedeng1 · Oct 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

consensusp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1projection

Let r≥0r\ge0r≥0 and let Pr\mathcal P_rPr​ be the Euclidean projection onto the closed ball of radius rrr in Rd\mathbb R^dRd. For any x1,…,xn∈Rdx_1,\dots,x_n\in\mathbb R^dx1​,…,xn​∈Rd,

∑i=1n∥Pr[xi]−1n∑j=1nPr[xj]∥2≤∑i=1n∥xi−1n∑j=1nxj∥2.\sum_{i=1}^n\Big\|\mathcal P_r[x_i]-\frac1n\sum_{j=1}^n\mathcal P_r[x_j]\Big\|^2\le\sum_{i=1}^n\Big\|x_i-\frac1n\sum_{j=1}^nx_j\Big\|^2.i=1∑n​​Pr​[xi​]−n1​j=1∑n​Pr​[xj​]​2≤i=1∑n​​xi​−n1​j=1∑n​xj​​2.

This is what allows SLDBO to project vkv^kvk without losing the consensus contraction of gradient tracking.

Formalization Note. Pr\mathcal P_rPr​ is the closed form ballProj r: zzz if ∥z∥≤r\|z\|\le r∥z∥≤r, else r∥z∥z\frac r{\|z\|}z∥z∥r​z.

Preamble
import Mathlib
import Definitions.Def_DecBilevel_SLDBO_Setting
Formal statement
namespace DecBilevel.SLDBO

theorem lemma_A_2 {n d : ℕ} (r : ℝ) (hr : 0 ≤ r) (z : Fin n → E d) :
    ∑ i, ‖ballProj r (z i) - avg (fun j => ballProj r (z j))‖ ^ 2 ≤
      ∑ i, ‖z i - avg z‖ ^ 2 := by sorry

end DecBilevel.SLDBO
Source
Dong, Ma, Yang, Yin, A Single-Loop Algorithm for Decentralized Bilevel Optimization, arXiv:2311.08945v3, p. 14, Lemma A.2
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 23, 2026

    Confirmed by the mission captain (proposal self-audit).

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