The Moreau envelope #
The Moreau envelope e_γ f x = ⨅ y, f y + ‖y - x‖² / (2γ) of f : H → EReal. For a proper lower
semicontinuous convex f on a real Hilbert space it is a real valued convex C¹ function with a
γ⁻¹-Lipschitz gradient (x - prox_{γf} x) / γ, and it has the same minimizers as f.
Main definitions #
ConvexAnalysis.moreauEnvelope γ f x = ⨅ y, f y + ‖y - x‖² / (2γ), the Moreau envelope (Moreau– Yosida regularization) off : H → ERealwith parameterγ.
Main statements #
For every f and γ > 0:
ConvexAnalysis.moreauEnvelope_le,ConvexAnalysis.iInf_moreauEnvelope:e_γ f ≤ f, with the same infimum;ConvexAnalysis.moreauEnvelope_anti: the envelope decreases inγ, and increases asγ > 0decreases (ConvexAnalysis.antitoneOn_moreauEnvelope).ConvexAnalysis.moreauEnvelope_eq_infimalConvolution:e_γ f = f □ ‖·‖² / (2γ).ConvexAnalysis.IsProxAt.moreauEnvelope_eq: a proximal point ofγ fatxattains the envelope;ConvexAnalysis.IsProxAt.moreauEnvelope_le_add_inner: the descent inequalitye y ≤ e x + ⟪(x - p) / γ, y - x⟫ + ‖y - x‖² / (2γ).ConvexAnalysis.HasSubgradientAt.hasSubgradientAt_moreauEnvelope: if(x - p) / γ ∈ ∂f p, it is a subgradient of the envelope atx.ConvexAnalysis.fenchelConjugate_moreauEnvelope:(e_γ f)* = f* + γ ‖·‖² / 2.ConvexAnalysis.isMinOn_moreauEnvelope_iff: if⨅ f > ⊥andfis lower semicontinuous atx, thenxminimizese_γ fiff it minimizesf.
For convex f:
ConvexAnalysis.ConvexFun.convexFun_moreauEnvelope: the envelope is convex, for everyγ ≥ 0.ConvexAnalysis.ConvexFun.moreauEnvelope_eq_self_iff: for properfandγ > 0,e_γ f x = f xiffxminimizesf.
With γ = 1, for every f:
ConvexAnalysis.HasSubgradientAt.moreauEnvelope_add_moreauEnvelope_fenchelConjugate: Moreau's identitye₁ f x + e₁ f* x = ‖x‖² / 2at everyxwithx - p ∈ ∂f pfor somep; at everyxfor proper lower semicontinuous convexfon a complete space (ConvexAnalysis.ConvexFun.moreauEnvelope_add_moreauEnvelope_fenchelConjugate).
For proper lower semicontinuous convex f, γ > 0 and complete H, with
prox_{γf} = prox (fun y ↦ (γ : EReal) * f y):
ConvexAnalysis.ConvexFun.moreauEnvelope_eq: the infimum is attained atprox_{γf} x; the envelope is real valued (ConvexAnalysis.ConvexFun.toReal_moreauEnvelope) and convex as a real function (ConvexAnalysis.ConvexFun.convexOn_moreauEnvelope).ConvexAnalysis.ConvexFun.hasGradientAt_moreauEnvelope: it is Fréchet differentiable with gradient(x - prox_{γf} x) / γ(ConvexAnalysis.ConvexFun.gradient_moreauEnvelope), which isγ⁻¹-Lipschitz (ConvexAnalysis.ConvexFun.lipschitzWith_gradient_moreauEnvelope); so the envelope isC¹.ConvexAnalysis.ConvexFun.isMinOn_moreauEnvelope_iff:e_γ fandfhave the same minimizers.
Implementation notes #
Differentiability follows from a sandwich: with p = prox_{γf} x and g = (x - p) / γ,
0 ≤ e (x + h) - e x - ⟪g, h⟫ ≤ ‖h‖² / (2γ). The upper bound is the descent inequality (p is a
candidate at x + h), the lower bound says that g is a subgradient of the envelope. Convexity
is proved on the epigraph: near-optimal points y₁, y₂ for x₁, x₂ give the candidate
a y₁ + b y₂ for a x₁ + b x₂, and ‖·‖² is convex.
References #
- H. H. Bauschke, P. L. Combettes, Convex Analysis and Monotone Operator Theory in Hilbert Spaces, 2nd ed., Springer, 2017, Chapters 12, 13 and 14.
Tags #
Moreau envelope, Moreau–Yosida regularization, proximal operator, Moreau's identity, infimal convolution, smoothing
The Moreau envelope e_γ f x = ⨅ y, f y + ‖y - x‖² / (2γ) BC, Definition 12.20. It is
meant for γ > 0; for γ = 0 Lean's a / 0 = 0 makes it the constant ⨅ y, f y
(ConvexAnalysis.moreauEnvelope_zero).
Instances For
Every y gives an upper bound for the envelope at x.
At γ = 0, where Lean's a / 0 = 0 applies, the envelope is the constant ⨅ y, f y.
The envelope lies below the function.
The envelope has the same infimum as the function, for γ ≥ 0.
The envelope decreases as γ grows.
The Moreau envelope at x increases as γ > 0 decreases.
The Moreau envelope is the infimal convolution of f with ‖·‖² / (2γ)
BC, Definition 12.20.
The envelope is less than ⊤ everywhere if f is somewhere less than ⊤, for every γ.
Minimizers of f minimize the envelope, for γ ≥ 0.
A proximal point of γ f at x attains the envelope, for every f.
Descent inequality, for every f: if p is a proximal point of γ f at x, then
e y ≤ e x + ⟪(x - p) / γ, y - x⟫ + ‖y - x‖² / (2γ).
If (x - p) / γ ∈ ∂f p, it is a subgradient of the envelope at x, for every f.
The conjugate of the Moreau envelope: (e_γ f)* = f* + γ ‖·‖² / 2, for every f and γ > 0
BC, Proposition 13.24 (there for f with values in ]-∞, +∞]).
With γ = 1: if x - p ∈ ∂f p, the envelope at x is attained at p, for every f.
Moreau's identity e₁ f x + e₁ f* x = ‖x‖² / 2 BC, Theorem 14.3, at every x with
x - p ∈ ∂f p for some p, for every f. [BC17] states it at every x for proper lower
semicontinuous convex f; this pointwise form implies it.
e_γ f x = f x iff x minimizes f, for proper convex f BC, Proposition 17.5
(there also for lower semicontinuous f).
The Moreau envelope of a convex function is convex, for every γ ≥ 0: it is the infimal
convolution of f with the convex function ‖·‖² / (2γ), and BC, Proposition 12.11 (there
for convex functions with values in ]-∞, +∞]) says that infimal convolutions of convex functions
are convex. No lower semicontinuity, properness or completeness is needed. At γ = 0 the
envelope is the constant ⨅ y, f y (ConvexAnalysis.moreauEnvelope_zero).
The Moreau envelope and f have the same minimizers, for γ > 0 and every f with
⨅ f > ⊥ that is lower semicontinuous at the point; no convexity is needed, while
BC, Proposition 17.5 states it for proper lower semicontinuous convex f. A minimizer x of
the envelope has e_γ f x = ⨅ f; if f x > ⨅ f, then f > c > ⨅ f near x and the quadratic
term is at least δ² / (2γ) away from x, so e_γ f x > ⨅ f. Some bound ⨅ f > ⊥ is needed:
if f y = ⊥ somewhere, then e_γ f ≡ ⊥.
The infimum in the Moreau envelope is attained at prox_{γf} x
BC, Definition 12.23, Remark 12.24.
The Moreau envelope is real valued.
The value of the envelope as a real number: f (prox_{γf} x) + ‖prox_{γf} x - x‖² / (2γ).
(x - prox_{γf} x) / γ ∈ ∂(e_γ f) x.
The Moreau envelope is convex, as a real valued function.
The Moreau envelope is Fréchet differentiable with gradient (x - prox_{γf} x) / γ
BC, Proposition 12.30.
The gradient of the Moreau envelope as a function.
The gradient of the Moreau envelope is γ⁻¹-Lipschitz BC, Proposition 12.30.
The Moreau envelope is continuously differentiable.
The Moreau envelope and f have the same minimizers BC, Proposition 17.5. Here
⨅ f = ⨅ e_γ f is attained if the envelope has a minimizer, and the envelope is real valued, so
ConvexAnalysis.isMinOn_moreauEnvelope_iff applies.
Moreau's identity for proper lower semicontinuous convex f, at every x.