Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Projection onto consensus repeats the average

Proved
BoydADMM.Constrained.consensus_projection

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

admmconvex-optimizationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-bookp2o-v1projections

Let N≥1N\ge1N≥1 and write v=(v1,…,vN)∈(Rn)Nv=(v_1,\ldots,v_N)\in(\mathbb R^n)^Nv=(v1​,…,vN​)∈(Rn)N. The Euclidean projection of vvv onto the consensus set D={(z,…,z):z∈Rn}\mathcal D=\{(z,\ldots,z):z\in\mathbb R^n\}D={(z,…,z):z∈Rn} is the constant block vector with value vˉ=N−1∑ivi\bar v=N^{-1}\sum_i v_ivˉ=N−1∑i​vi​:

ΠD(v)=(vˉ,…,vˉ).\Pi_{\mathcal D}(v)=(\bar v,\ldots,\bar v).ΠD​(v)=(vˉ,…,vˉ).

This is the averaging step in the product-space formulation of parallel projections.

Formalization Note The statement uses squared stacked Euclidean distance and includes N≥1N\ge1N≥1 so the mean is defined in the source's sense.

Preamble
import Mathlib
import Definitions.Def_BoydADMM_Constrained_Geometry
Formal statement
namespace BoydADMM.Constrained

/-- §5.1.2, p. 35: projection onto the diagonal consensus set repeats the block average. -/
theorem consensus_projection {N n : ℕ} (hN : 0 < N) (v : Blocks N n) :
    IsBlockProjection (consensusSet N n) v (fun _ => avg v) := by sorry

end BoydADMM.Constrained
Source
Boyd, Parikh, Chu, Peleato, Eckstein, Distributed Optimization and Statistical Learning via the Alternating Direction Method of Multipliers, Found. Trends Mach. Learn. 3(1) (2011), p. 35, §5.1.2, consensus projection display; https://doi.org/10.1561/2200000016
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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