Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(4.2), p. 32 — S_κ(a) = (1 − κ/|a|)₊ a for a ≠ 0

Proved
BoydADMM.Prox.softThreshold_eq_shrink

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

p2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-bookp2o-v1shrinkagesoft-thresholding

For κ≥0\kappa\ge0κ≥0 and every a≠0a\ne0a=0,

Sκ(a)=(1−κ∣a∣)+a.(4.2)S_\kappa(a)=\Bigl(1-\frac{\kappa}{|a|}\Bigr)_+a.\tag{4.2}Sκ​(a)=(1−∣a∣κ​)+​a.(4.2)

This formula shows that soft thresholding is a shrinkage operator: it multiplies aaa by a factor in [0,1)[0,1)[0,1), moving it toward zero.

Formalization Note The hypothesis a≠0a\ne0a=0 is the book's ("for a≠0a\ne0a=0"); it is kept explicitly rather than relying on Lean's convention κ/0=0\kappa/0=0κ/0=0. The hypothesis κ≥0\kappa\ge0κ≥0 is implicit in the book (κ=λ/ρ>0\kappa=\lambda/\rho>0κ=λ/ρ>0) and is stated.

Preamble
import Mathlib
import Definitions.Def_BoydADMM_Prox_Basic

open Matrix
Formal statement
namespace BoydADMM.Prox

theorem softThreshold_eq_shrink (κ : ℝ) (hκ : 0 ≤ κ) (a : ℝ) (ha : a ≠ 0) :
    softThreshold κ a = max (1 - κ / |a|) 0 * 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, (4.2)
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