Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4.4.3, p. 32 — the scalar x_i-update for λ|x_i| is x_i⁺ = S_{λ/ρ}(v_i)

Proved
BoydADMM.Prox.scalar_soft_threshold

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

l1-regularizationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-bookp2o-v1proximal-operatorsoft-thresholding

Let λ>0\lambda>0λ>0, ρ>0\rho>0ρ>0 and vi∈Rv_i\in\mathbb Rvi​∈R. The scalar problem

xi+=argmin⁡xi(λ∣xi∣+ρ2(xi−vi)2)x_i^+=\operatorname*{argmin}_{x_i}\Bigl(\lambda|x_i|+\tfrac{\rho}{2}(x_i-v_i)^2\Bigr)xi+​=xi​argmin​(λ∣xi​∣+2ρ​(xi​−vi​)2)

has the unique solution

xi+=Sλ/ρ(vi).x_i^+=S_{\lambda/\rho}(v_i).xi+​=Sλ/ρ​(vi​).

That is, t∈Rt\in\mathbb Rt∈R minimizes λ∣t∣+ρ2(t−vi)2\lambda|t|+\tfrac{\rho}{2}(t-v_i)^2λ∣t∣+2ρ​(t−vi​)2 over R\mathbb RR if and only if t=Sλ/ρ(vi)t=S_{\lambda/\rho}(v_i)t=Sλ/ρ​(vi​).

This is the scalar update that component separability (§4.4.2) reduces the ℓ1\ell_1ℓ1​-regularized xxx-update to.

Formalization Note The book writes "the solution"; the objective is strictly convex, so we state that Sλ/ρ(vi)S_{\lambda/\rho}(v_i)Sλ/ρ​(vi​) is a minimizer and the only one, as an equivalence. λ\lambdaλ is written lam because λ is a Lean keyword.

Preamble
import Mathlib
import Definitions.Def_BoydADMM_Prox_Basic

open Matrix
Formal statement
namespace BoydADMM.Prox

theorem scalar_soft_threshold (lam ρ : ℝ) (hlam : 0 < lam) (hρ : 0 < ρ) (a t : ℝ) :
    (∀ s : ℝ, lam * |t| + (ρ / 2) * (t - a) ^ 2 ≤ lam * |s| + (ρ / 2) * (s - a) ^ 2) ↔
      t = softThreshold (lam / ρ) a := by sorry

end BoydADMM.Prox
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. 32, §4.4.3
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