Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§4.4.3, p. 32 — S_κ(a) = (a − κ)₊ − (−a − κ)₊

Proved
BoydADMM.Prox.softThreshold_eq_posPart

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∈Ra\in\mathbb Ra∈R, the soft thresholding operator

Sκ(a)={a−κa>κ0∣a∣≤κa+κa<−κS_\kappa(a)=\begin{cases}a-\kappa & a>\kappa\\ 0 & |a|\le\kappa\\ a+\kappa & a<-\kappa\end{cases}Sκ​(a)=⎩⎨⎧​a−κ0a+κ​a>κ∣a∣≤κa<−κ​

satisfies

Sκ(a)=(a−κ)+−(−a−κ)+,S_\kappa(a)=(a-\kappa)_+-(-a-\kappa)_+,Sκ​(a)=(a−κ)+​−(−a−κ)+​,

where (t)+=max⁡(t,0)(t)_+=\max(t,0)(t)+​=max(t,0).

This is the "equivalently" form of soft thresholding, written without cases.

Formalization Note The book leaves κ≥0\kappa\ge0κ≥0 implicit (it uses κ=λ/ρ\kappa=\lambda/\rhoκ=λ/ρ with λ,ρ>0\lambda,\rho>0λ,ρ>0); for κ<0\kappa<0κ<0 the identity fails (e.g. κ=−1\kappa=-1κ=−1, a=0a=0a=0), so the hypothesis is stated.

Preamble
import Mathlib
import Definitions.Def_BoydADMM_Prox_Basic

open Matrix
Formal statement
namespace BoydADMM.Prox

theorem softThreshold_eq_posPart (κ : ℝ) (hκ : 0 ≤ κ) (a : ℝ) :
    softThreshold κ a = max (a - κ) 0 - max (-a - κ) 0 := 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me