Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(20)–(21), p. 35, with (10), p. 9 — completing the square: minimizing Q_L(η, β) + λ‖η‖_q over ‖η‖₀ ≤ k is thresholding

Proved
SubsetShrink.DFO.eq_20_21

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

first-order-methodsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1thresholding

Let f:Rp→Rf:\mathbb R^p\to\mathbb Rf:Rp→R, β∈Rp\beta\in\mathbb R^pβ∈Rp, L>0L>0L>0, λ∈R\lambda\in\mathbb Rλ∈R, q∈{1,2}q\in\{1,2\}q∈{1,2} and k≥1k\ge1k≥1, and write QLQ_LQL​ for the quadratic model (9) of fff and S\mathrm SS for the thresholding operator (11).

  1. For every η∈Rp\eta\in\mathbb R^pη∈Rp,
QL(η,β)+λ∥η∥q=L2∥η−(β−1L∇f(β))∥22−12L∥∇f(β)∥22+f(β)+λ∥η∥q.Q_L(\eta,\beta)+\lambda\|\eta\|_q=\frac L2\Big\|\eta-\Big(\beta-\frac1L\nabla f(\beta)\Big)\Big\|_2^2-\frac1{2L}\|\nabla f(\beta)\|_2^2+f(\beta)+\lambda\|\eta\|_q .QL​(η,β)+λ∥η∥q​=2L​​η−(β−L1​∇f(β))​22​−2L1​∥∇f(β)∥22​+f(β)+λ∥η∥q​.
  1. Consequently, for every η^∈Rp\hat\eta\in\mathbb R^pη^​∈Rp,
η^∈S(β−1L∇f(β); k; λLℓq)  ⟺  ∥η^∥0≤k  and  QL(η^,β)+λ∥η^∥q≤QL(η,β)+λ∥η∥q  ∀ η: ∥η∥0≤k.\hat\eta\in\mathrm S\Big(\beta-\tfrac1L\nabla f(\beta);\,k;\,\tfrac\lambda L\ell_q\Big)\iff \|\hat\eta\|_0\le k\ \text{ and }\ Q_L(\hat\eta,\beta)+\lambda\|\hat\eta\|_q\le Q_L(\eta,\beta)+\lambda\|\eta\|_q\ \ \forall\,\eta:\ \|\eta\|_0\le k .η^​∈S(β−L1​∇f(β);k;Lλ​ℓq​)⟺∥η^​∥0​≤k  and  QL​(η^​,β)+λ∥η^​∥q​≤QL​(η,β)+λ∥η∥q​  ∀η: ∥η∥0​≤k.

Part 1 is the step from the third to the fourth line of the proof of Proposition 2(a); part 2 is the equivalence (10) that makes the minimizer η^\hat\etaη^​ of (20) a DFO step.

Formalization Note No smoothness of fff is needed: the identity is algebra on the vector ∇f(β)\nabla f(\beta)∇f(β). The infimum of (20) is not formed as a real number; the minimizer η^\hat\etaη^​ is described by the minimality predicate.

Preamble
import Mathlib
import Definitions.Def_SubsetShrink_DFO_Model
Formal statement
namespace SubsetShrink.DFO

/-- (20)–(21), p. 35, with the equivalence (10), p. 9 (Mazumder, Radchenko & Dedieu,
arXiv:1708.03288v4). For `L > 0`, `q ∈ {1, 2}`, `k ≥ 1`, any `f : ℝᵖ → ℝ` and `β ∈ ℝᵖ`:

1. completing the square, for every `η`,
   `Q_L(η, β) + λ‖η‖_q = (L/2)‖η − (β − (1/L)∇f(β))‖₂² − (1/(2L))‖∇f(β)‖₂² + f(β) + λ‖η‖_q`;
2. consequently `η̂ ∈ S(β − (1/L)∇f(β); k; (λ/L)ℓ_q)` if and only if `η̂` minimizes
   `η ↦ Q_L(η, β) + λ‖η‖_q` over `‖η‖₀ ≤ k`. -/
theorem eq_20_21 {p : ℕ} (f : E p → ℝ) (L lam : ℝ) (q k : ℕ)
    (hq : q = 1 ∨ q = 2) (hk : 1 ≤ k) (hLpos : 0 < L) (β : E p) :
    (∀ η : E p, QL f L η β + lam * lq q η =
        L / 2 * ‖η - (β - (1 / L) • gradient f β)‖ ^ 2 - 1 / (2 * L) * ‖gradient f β‖ ^ 2
          + f β + lam * lq q η) ∧
    (∀ ηhat : E p, IsThresh (β - (1 / L) • gradient f β) k (lam / L) q ηhat ↔
        (l0 ηhat ≤ k ∧ ∀ η : E p, l0 η ≤ k →
          QL f L ηhat β + lam * lq q ηhat ≤ QL f L η β + lam * lq q η)) := by sorry

end SubsetShrink.DFO
Source
Mazumder, Radchenko & Dedieu, Subset Selection with Shrinkage, arXiv:1708.03288v4, p. 35, proof of Proposition 2 (A.1), (20)–(21); p. 9, (10)
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

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