Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§9.1 — projection onto Boolean vectors by coordinatewise rounding

Proved
BoydADMM.Nonconvex.boolean_projection

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

boolean-optimizationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-bookp2o-v1projection

Let v∈Rnv\in\mathbb R^nv∈Rn. Round each entry independently to its nearest value in {0,1}\{0,1\}{0,1}, choosing zero when vi=1/2v_i=1/2vi​=1/2, and call the resulting vector www. Then www is Boolean and

∥w−v∥22≤∥x−v∥22for every x∈{0,1}n.\|w-v\|_2^2\le\|x-v\|_2^2\quad\text{for every }x\in\{0,1\}^n.∥w−v∥22​≤∥x−v∥22​for every x∈{0,1}n.

This is the exact Euclidean projection used for Boolean constraints in nonconvex ADMM.

Formalization Note At a tie, both zero and one are nearest; the chosen convention fixes a candidate without claiming uniqueness.

Preamble
import Mathlib
import Definitions.Def_BoydADMM_Nonconvex_ProjectionBasics
Formal statement
namespace BoydADMM.Nonconvex

/-- §9.1, p. 74: rounding each entry to a nearest Boolean value gives a
Euclidean projection onto the Boolean cube. -/
theorem boolean_projection {n : ℕ} (v : Fin n → ℝ) :
    roundBoolean v ∈ booleanSet ∧
    ∀ x ∈ booleanSet, sqDist (roundBoolean v) v ≤ sqDist x v := by sorry

end BoydADMM.Nonconvex
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. 74, §9.1, Boolean constraints bullet
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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me