Documentation

ConvexAnalysis.Prox

The proximal operator #

The proximal point prox f x of f : H → EReal at x minimizes y ↦ f y + ‖y - x‖² / 2. For a proper lower semicontinuous convex f on a real Hilbert space it exists, is unique, is characterized by x - prox f x ∈ ∂f (prox f x), and prox f is firmly nonexpansive.

Main definitions #

Main statements #

Implementation notes #

Existence needs no weak compactness. The objective g y = f y + ‖y - x‖² / 2 is bounded below, because f has an affine minorant (ConvexAnalysis.ConvexFun.exists_affine_minorant), and it is strongly convex: by the parallelogram law, ‖a - b‖² / 4 ≤ g a + g b - 2 inf g. So a minimizing sequence is a Cauchy sequence, and its limit is a minimizer because g is lower semicontinuous. The characterization x - p ∈ ∂f p is proved directly, by comparing p with the points p + t (y - p) and letting t → 0, so it needs neither the sum rule nor completeness.

Completeness is needed for existence. Let H be the finitely supported sequences with the ℓ² inner product, a = (1 / n) ∈ ℓ² \ H and f = ⟪·, a⟫; the only candidate for a proximal point at 0 is -a ∉ H. Convexity is needed in infinite dimension (the indicator of {(1 + 1/n) eₙ} in ℓ² has no nearest point to 0), and lower semicontinuity (the indicator of an open ball).

prox f x is defined for every f and x, as a choice of a proximal point if one exists and as x otherwise. For f ≡ ⊤ every point is a proximal point, so prox ⊤ x is unspecified.

References #

Tags #

proximal operator, proximal point, firmly nonexpansive map, Moreau decomposition, projection, nearest point

def ConvexAnalysis.IsProxAt {H : Type u_1} [NormedAddCommGroup H] (f : H → EReal) (p x : H) :

p is a proximal point of f at x: it minimizes y ↦ f y + ‖y - x‖² / 2 BC, Definition 12.23.

Equations
Instances For
    theorem ConvexAnalysis.isProxAt_iff_isMinOn {H : Type u_1} [NormedAddCommGroup H] {f : H → EReal} {x p : H} :
    IsProxAt f p x ↔ IsMinOn (fun (y : H) => f y + ↑(‖y - x‖ ^ 2 / 2)) Set.univ p

    p is a proximal point of f at x iff it minimizes y ↦ f y + ‖y - x‖² / 2, in the form of Mathlib's IsMinOn.

    theorem ConvexAnalysis.HasSubgradientAt.add_norm_sq_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p : H} (h : HasSubgradientAt f (x - p) p) (y : H) :
    f p + ↑(‖p - x‖ ^ 2 / 2 + ‖y - p‖ ^ 2 / 2) ≤ f y + ↑(‖y - x‖ ^ 2 / 2)

    Three-point inequality, for every f: if x - p ∈ ∂f p, then f p + ‖p - x‖² / 2 + ‖y - p‖² / 2 ≤ f y + ‖y - x‖² / 2.

    theorem ConvexAnalysis.HasSubgradientAt.isProxAt {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p : H} (h : HasSubgradientAt f (x - p) p) :
    IsProxAt f p x

    If x - p ∈ ∂f p, then p is a proximal point of f at x, for every f.

    theorem ConvexAnalysis.HasSubgradientAt.isProxAt_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p q : H} (h : HasSubgradientAt f (x - p) p) :
    IsProxAt f q x ↔ q = p

    If x - p ∈ ∂f p, then p is the only proximal point of f at x, for every f.

    theorem ConvexAnalysis.IsProxAt.lt_top {H : Type u_1} [NormedAddCommGroup H] {f : H → EReal} {x p : H} (hdom : (effectiveDomain f).Nonempty) (h : IsProxAt f p x) :
    f p < ⊤

    At a proximal point of an f with nonempty domain, the value of f is less than ⊤.

    theorem ConvexAnalysis.IsProxAt.hasSubgradientAt {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p : H} (hf : ConvexFun f) (hp : IsProper f) (h : IsProxAt f p x) :

    At a proximal point p of a proper convex f at x, x - p ∈ ∂f p BC, Propositions 12.26 and 16.44 (there for lower semicontinuous f).

    theorem ConvexAnalysis.isProxAt_iff_hasSubgradientAt {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p : H} (hf : ConvexFun f) (hp : IsProper f) :
    IsProxAt f p x ↔ HasSubgradientAt f (x - p) p

    For proper convex f, p is a proximal point of f at x iff x - p ∈ ∂f p BC, Propositions 12.26 and 16.44 (there for lower semicontinuous f).

    theorem ConvexAnalysis.IsProxAt.eq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p q : H} (hf : ConvexFun f) (hp : IsProper f) (h₁ : IsProxAt f p x) (h₂ : IsProxAt f q x) :
    p = q

    Proximal points are unique for proper convex f.

    theorem ConvexAnalysis.IsProxAt.norm_sub_sq_le_inner {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x y p q : H} (hf : ConvexFun f) (hp : IsProper f) (h₁ : IsProxAt f p x) (h₂ : IsProxAt f q y) :
    ‖p - q‖ ^ 2 ≤ inner ℝ (p - q) (x - y)

    Firm nonexpansiveness BC, Proposition 12.28: for proximal points p at x and q at y of a proper convex f, ‖p - q‖² ≤ ⟪p - q, x - y⟫.

    theorem ConvexAnalysis.IsProxAt.norm_sub_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x y p q : H} (hf : ConvexFun f) (hp : IsProper f) (h₁ : IsProxAt f p x) (h₂ : IsProxAt f q y) :

    Proximal points depend nonexpansively on the base point.

    theorem ConvexAnalysis.IsProxAt.norm_sub_sub_sub_sq_le_inner {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x y p q : H} (hf : ConvexFun f) (hp : IsProper f) (h₁ : IsProxAt f p x) (h₂ : IsProxAt f q y) :
    ‖x - p - (y - q)‖ ^ 2 ≤ inner ℝ (x - p - (y - q)) (x - y)

    Firm nonexpansiveness of id - prox: for proximal points p at x and q at y of a proper convex f, ‖(x - p) - (y - q)‖² ≤ ⟪(x - p) - (y - q), x - y⟫.

    theorem ConvexAnalysis.ConvexFun.exists_isProxAt {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} [CompleteSpace H] (hf : ConvexFun f) (hlsc : LowerSemicontinuous f) (x : H) :
    ∃ (p : H), IsProxAt f p x

    Existence of proximal points BC, Proposition 12.15, Definition 12.23: a lower semicontinuous convex function on a complete space has a proximal point at every x. The proof for proper f takes a minimizing sequence, a Cauchy sequence by strong convexity; if f takes the value ⊥ at z, then z is a proximal point, and if f ≡ ⊤, every point is.

    noncomputable def ConvexAnalysis.prox {H : Type u_1} [NormedAddCommGroup H] (f : H → EReal) (x : H) :
    H

    The proximal point of f at x BC, Definition 12.23: a minimizer of y ↦ f y + ‖y - x‖² / 2 if one exists, and x otherwise. Minimizers are unique for proper convex f (IsProxAt.eq) and exist for lower semicontinuous convex f on a complete space (ConvexFun.exists_isProxAt).

    Equations
    Instances For
      theorem ConvexAnalysis.isProxAt_prox_of_exists {H : Type u_1} [NormedAddCommGroup H] {f : H → EReal} {x : H} (h : ∃ (p : H), IsProxAt f p x) :
      IsProxAt f (prox f x) x

      If a proximal point exists, prox f x is one.

      theorem ConvexAnalysis.prox_of_not_exists {H : Type u_1} [NormedAddCommGroup H] {f : H → EReal} {x : H} (h : ¬∃ (q : H), IsProxAt f q x) :
      prox f x = x

      Without a proximal point at x, prox f x = x.

      theorem ConvexAnalysis.HasSubgradientAt.prox_eq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p : H} (h : HasSubgradientAt f (x - p) p) :
      prox f x = p

      prox f x = p whenever x - p ∈ ∂f p, for every f.

      For a lower semicontinuous convex f, prox f x is a proximal point.

      theorem ConvexAnalysis.ConvexFun.prox_eq_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p : H} [CompleteSpace H] (hf : ConvexFun f) (hlsc : LowerSemicontinuous f) (hp : IsProper f) :
      prox f x = p ↔ HasSubgradientAt f (x - p) p

      prox f x = p ↔ x - p ∈ ∂f p for proper lower semicontinuous convex f BC, Proposition 16.44.

      x - prox f x ∈ ∂f (prox f x) for proper lower semicontinuous convex f.

      theorem ConvexAnalysis.ConvexFun.norm_prox_sub_prox_sq_le_inner {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} [CompleteSpace H] (hf : ConvexFun f) (hlsc : LowerSemicontinuous f) (hp : IsProper f) (x y : H) :
      ‖prox f x - prox f y‖ ^ 2 ≤ inner ℝ (prox f x - prox f y) (x - y)

      prox f is firmly nonexpansive BC, Proposition 12.28.

      prox f is nonexpansive.

      prox f is continuous, for a proper lower semicontinuous convex f.

      The fixed points of prox f are the minimizers of f BC, Proposition 12.29.

      Moreau decomposition BC, Theorem 14.3: prox f x + prox f* x = x for proper lower semicontinuous convex f.

      theorem ConvexAnalysis.ConvexFun.sub_prox_eq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} [CompleteSpace H] (hf : ConvexFun f) (hlsc : LowerSemicontinuous f) (hp : IsProper f) (x : H) :

      id - prox f = prox f*, by the Moreau decomposition.

      theorem ConvexAnalysis.ConvexFun.norm_sub_prox_sub_sub_prox_sq_le_inner {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} [CompleteSpace H] (hf : ConvexFun f) (hlsc : LowerSemicontinuous f) (hp : IsProper f) (x y : H) :
      ‖x - prox f x - (y - prox f y)‖ ^ 2 ≤ inner ℝ (x - prox f x - (y - prox f y)) (x - y)

      id - prox f is firmly nonexpansive BC, Proposition 12.28.

      id - prox f is nonexpansive.

      theorem ConvexAnalysis.ConvexFun.prox_const_mul_eq_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p : H} [CompleteSpace H] (hf : ConvexFun f) (hlsc : LowerSemicontinuous f) (hp : IsProper f) {γ : ℝ} (hγ : 0 < γ) :
      prox (fun (y : H) => ↑γ * f y) x = p ↔ HasSubgradientAt f (γ⁻¹ • (x - p)) p

      prox (γ f) x = p ↔ (x - p) / γ ∈ ∂f p for γ > 0 BC, Propositions 16.6 and 16.44.

      theorem ConvexAnalysis.isProxAt_convexIndicator_iff {H : Type u_1} [NormedAddCommGroup H] {x p : H} {C : Set H} (hC : C.Nonempty) :
      IsProxAt (convexIndicator C) p x ↔ p ∈ C ∧ ∀ y ∈ C, ‖p - x‖ ≤ ‖y - x‖

      The proximal point of the indicator of a nonempty set C is a nearest point of C.

      For a nonempty convex C, p is the nearest point of C to x iff x - p ∈ N_C p, the variational characterization of the projection (Mathlib's norm_eq_iInf_iff_real_inner_le_zero).

      theorem ConvexAnalysis.exists_isProxAt_convexIndicator {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {C : Set H} (hne : C.Nonempty) (hcomp : IsComplete C) (hC : Convex ℝ C) (x : H) :
      ∃ (p : H), IsProxAt (convexIndicator C) p x

      A nonempty complete convex set has a nearest point to every x, by Mathlib's exists_norm_eq_iInf_of_complete_convex; no completeness of H is needed.

      Mathlib's orthogonal projection onto a subspace K is prox of the indicator of K.

      theorem ConvexAnalysis.isProxAt_const_mul_iff_hasSubgradientAt {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p : H} (hf : ConvexFun f) (hp : IsProper f) {γ : ℝ} (hγ : 0 < γ) :
      IsProxAt (fun (y : H) => ↑γ * f y) p x ↔ HasSubgradientAt f (γ⁻¹ • (x - p)) p

      The proximal point of γ f, γ > 0, is characterized by (x - p) / γ ∈ ∂f p BC, Propositions 16.6 and 16.44.

      theorem ConvexAnalysis.HasSubgradientAt.prox_const_mul_eq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p : H} {γ : ℝ} (hγ : 0 < γ) (h : HasSubgradientAt f (γ⁻¹ • (x - p)) p) :
      prox (fun (y : H) => ↑γ * f y) x = p

      If γ⁻¹ (x - p) ∈ ∂f p with γ > 0, then prox_{γf} x = p, for every f.

      theorem ConvexAnalysis.isProxAt_const_mul_iff_forall {H : Type u_1} [NormedAddCommGroup H] {f : H → EReal} {x p : H} {γ : ℝ} (hγ : 0 < γ) :
      IsProxAt (fun (y : H) => ↑γ * f y) p x ↔ ∀ (y : H), f p + ↑(‖p - x‖ ^ 2 / (2 * γ)) ≤ f y + ↑(‖y - x‖ ^ 2 / (2 * γ))

      A proximal point of γ f minimizes y ↦ f y + ‖y - x‖² / (2γ), for every f.

      theorem ConvexAnalysis.isProxAt_add_inner_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x p : H} (a : H) :
      IsProxAt (fun (y : H) => f y + ↑(inner ℝ a y)) p x ↔ IsProxAt f p (x - a)

      Tilting f by ⟪a, ·⟫ shifts the base point: p is a proximal point of f + ⟪a, ·⟫ at x iff it is one of f at x - a. The rule prox_{f + ⟪a, ·⟫} x = prox_f (x - a) is ConvexAnalysis.ConvexFun.prox_add_inner.

      theorem ConvexAnalysis.isProxAt_comp_add_right_iff {H : Type u_1} [NormedAddCommGroup H] {f : H → EReal} {x p : H} (z : H) :
      IsProxAt (fun (y : H) => f (y + z)) p x ↔ IsProxAt f (p + z) (x + z)

      Translation: p is a proximal point of f (· + z) at x iff p + z is a proximal point of f at x + z. The rule prox_{f (· + z)} x = prox_f (x + z) - z is ConvexAnalysis.ConvexFun.prox_comp_sub_right with -z.

      theorem ConvexAnalysis.prox_half_norm_sq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (x : H) :
      prox (fun (y : H) => ↑(‖y‖ ^ 2 / 2)) x = (1 / 2) • x

      prox (½‖·‖²) x = x / 2.