Documentation

ConvexAnalysis.Conjugate

The Fenchel conjugate #

The Fenchel conjugate f* u = ⨆ x, ⟪x, u⟫ - f x of an extended valued function f : H → EReal on a real inner product space, with the Fenchel–Young inequality, subgradients as the case of equality, weak Fenchel–Rockafellar duality, a calculus of conjugates, and support functions.

Main definitions #

Main statements #

Implementation notes #

The difference ⟪x, u⟫ - f x is taken in EReal, so a point with f x = ⊤ contributes ⊥ and a point with f x = ⊥ makes f* ≡ ⊤. Fenchel–Young is stated with the difference, which holds for every f; the form ⟪x, u⟫ ≤ f x + f* u fails exactly when f x = ⊥ or f ≡ ⊤, because ⊥ + ⊤ = ⊥ (DESIGN.md, section 3). The biconjugate is fenchelConjugate (fenchelConjugate f); the pairing is symmetric, so no separate definition is needed. There is no notation: f* would clash with multiplication and f⋆ with star.

References #

Tags #

Fenchel conjugate, Legendre–Fenchel transform, Fenchel–Young inequality, support function, biconjugate, weak duality

Helper lemmas on EReal subtraction. Mathlib's sub_le_comm and sub_add_eq_add_sub need an ordered group or a SubtractionCommMonoid, which EReal is not.

theorem ConvexAnalysis.ereal_sub_le_comm {a b c : EReal} :
a - b ≤ c ↔ a - c ≤ b

a - b ≤ c ↔ a - c ≤ b in EReal.

theorem ConvexAnalysis.ereal_sub_add_eq_add_sub (a b c : EReal) :
a - b + c = a + c - b

a - b + c = a + c - b in EReal.

theorem ConvexAnalysis.ereal_sub_add_coe (a b : EReal) (c : ℝ) :
a - (b + ↑c) = a - ↑c - b

a - (b + c) = a - c - b in EReal, for real c.

noncomputable def ConvexAnalysis.fenchelConjugate {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (f : H → EReal) (u : H) :

The Fenchel conjugate f* u = ⨆ x, ⟪x, u⟫ - f x BC, Definition 13.1, R, Section 12.

Equations
Instances For

    The Fenchel–Young inequality ⟪x, u⟫ - f x ≤ f* u, for every f.

    theorem ConvexAnalysis.fenchelConjugate_le_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {u : H} {c : EReal} :
    fenchelConjugate f u ≤ c ↔ ∀ (x : H), ↑(inner ℝ x u) - f x ≤ c

    f* u ≤ c iff ⟪x, u⟫ - f x ≤ c for every x.

    theorem ConvexAnalysis.convexFun_inner_sub {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (x : H) (c : EReal) :
    ConvexFun fun (u : H) => ↑(inner ℝ x u) - c

    The linear function ⟪x, ·⟫ minus an EReal constant is convex; for c = ⊥ it is ⊤, for c = ⊤ it is ⊥.

    theorem ConvexAnalysis.continuous_inner_sub {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (x : H) (c : EReal) :
    Continuous fun (u : H) => ↑(inner ℝ x u) - c

    The linear function ⟪x, ·⟫ minus an EReal constant is continuous.

    The biconjugate lies below the function: f** ≤ f.

    theorem ConvexAnalysis.fenchelConjugate_anti {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f g : H → EReal} (h : ∀ (x : H), f x ≤ g x) (u : H) :

    Conjugation reverses the order.

    theorem ConvexAnalysis.fenchelConjugate_eq_top_of_eq_bot {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x : H} (hx : f x = ⊥) (u : H) :

    If f takes the value ⊥ somewhere, then f* ≡ ⊤.

    @[simp]

    The conjugate of the constant function ⊤ is the constant ⊥.

    @[simp]

    The conjugate of the constant function ⊥ is the constant ⊤.

    If the domain of f is nonempty, then f* > ⊥ everywhere.

    theorem ConvexAnalysis.hasSubgradientAt_iff_fenchelConjugate_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {u x : H} {r : ℝ} (hr : f x = ↑r) :

    Subgradients through the conjugate: if f x = r, then u ∈ ∂f x iff f* u ≤ ⟪x, u⟫ - r.

    theorem ConvexAnalysis.hasSubgradientAt_iff_fenchelConjugate_eq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {u x : H} {r : ℝ} (hr : f x = ↑r) :

    Equality in Fenchel–Young BC, Proposition 16.10 (there for proper f): if f x = r, then u ∈ ∂f x iff f* u = ⟪x, u⟫ - r.

    At a subgradient, f* u = ⟪x, u⟫ - f x.

    If u ∈ ∂f x, then x ∈ ∂f* u, for every f. The converse holds wherever f** x = f x (HasSubgradientAt.of_hasSubgradientAt_fenchelConjugate).

    If f has a subgradient somewhere, then f* is proper.

    The converse of HasSubgradientAt.hasSubgradientAt_fenchelConjugate at points where f** x = f x: then x ∈ ∂f* u implies u ∈ ∂f x.

    At a point with a subgradient, f** x = f x; no convexity, lower semicontinuity or completeness is needed.

    theorem ConvexAnalysis.fenchelConjugate_le_iff' {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {u : H} {c : EReal} :
    fenchelConjugate f u ≤ c ↔ ∀ (x : H), ↑(inner ℝ x u) - c ≤ f x

    f* u ≤ c iff ⟪·, u⟫ - c is an affine minorant of f, for every c : EReal.

    theorem ConvexAnalysis.isProper_fenchelConjugate_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} :
    IsProper (fenchelConjugate f) ↔ (effectiveDomain f).Nonempty ∧ ∃ (u : H) (c : ℝ), ∀ (x : H), ↑(inner ℝ x u - c) ≤ f x

    f* is proper iff the domain of f is nonempty and f has an affine minorant.

    theorem ConvexAnalysis.fenchelConjugate_eq_bot_iff {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {u : H} :
    fenchelConjugate f u = ⊥ ↔ ∀ (x : H), f x = ⊤

    f* u = ⊥ iff f ≡ ⊤.

    theorem ConvexAnalysis.inner_le_add_fenchelConjugate {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {f : H → EReal} {x : H} (hx : ⊥ < f x) (hf : (effectiveDomain f).Nonempty) (u : H) :
    ↑(inner ℝ x u) ≤ f x + fenchelConjugate f u

    Fenchel–Young inequality, additive form ⟪x, u⟫ ≤ f x + f* u, if f x > ⊥ and the domain of f is nonempty; this is Fenchel's inequality of R, Section 12. Without these hypotheses it fails, since ⊥ + ⊤ = ⊥.

    Equality in Fenchel–Young BC, Proposition 16.10 (there for proper f), R, Theorem 23.5 ((a) ⇔ (d), there for convex f): u ∈ ∂f x iff f x + f* u = ⟪x, u⟫, for every f. If f is not proper, both sides fail: then f x = ⊥, f* u = ⊥ (for f ≡ ⊤) or f* u = ⊤ (if f takes the value ⊥), and ⊥ + ⊤ = ⊥ in EReal.

    f* 0 = -inf f.

    theorem ConvexAnalysis.fenchelConjugate_iInf {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {ι : Sort u_2} (f : ι → H → EReal) (u : H) :
    fenchelConjugate (fun (x : H) => ⨅ (i : ι), f i x) u = ⨆ (i : ι), fenchelConjugate (f i) u

    The conjugate of a pointwise infimum is the supremum of the conjugates, for every family.

    theorem ConvexAnalysis.fenchelConjugate_add_const {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (f : H → EReal) (c : ℝ) (u : H) :
    fenchelConjugate (fun (y : H) => f y + ↑c) u = fenchelConjugate f u - ↑c

    Conjugate of f + c: (f + c)* = f* - c.

    theorem ConvexAnalysis.fenchelConjugate_add_inner {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (f : H → EReal) (a u : H) :
    fenchelConjugate (fun (y : H) => f y + ↑(inner ℝ a y)) u = fenchelConjugate f (u - a)

    Conjugate of f + ⟪a, ·⟫: (f + ⟪a, ·⟫)* u = f* (u - a).

    theorem ConvexAnalysis.fenchelConjugate_comp_add_right {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (f : H → EReal) (a u : H) :
    fenchelConjugate (fun (y : H) => f (y + a)) u = fenchelConjugate f u - ↑(inner ℝ a u)

    Conjugate of a translate: (f (· + a))* u = f* u - ⟪a, u⟫.

    theorem ConvexAnalysis.fenchelConjugate_const_mul {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {c : ℝ} (hc : 0 < c) (f : H → EReal) (u : H) :
    fenchelConjugate (fun (y : H) => ↑c * f y) u = ↑c * fenchelConjugate f (c⁻¹ • u)

    Conjugate of a positive multiple: (c f)* u = c f* (u / c) for c > 0.

    Composition with a linear isometry equivalence U : H ≃ K: (f ∘ U)* = f* ∘ U.

    theorem ConvexAnalysis.neg_fenchelConjugate_le {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (f : H → EReal) (x u : H) :
    -fenchelConjugate f u ≤ f x - ↑(inner ℝ x u)

    -f* u ≤ f x - ⟪x, u⟫, for every f: Fenchel–Young in the form used for weak duality.

    (g ∘ A)* (A† w) ≤ g* w, for every g and every bounded linear map A.

    Composition with an invertible bounded linear map: (f ∘ A)* = f* ∘ (A⁻¹)†.

    Weak Fenchel–Rockafellar duality BC, Propositions 15.18 and 15.21 (there for proper f and g; compare R, Corollary 30.2.2 and the proof of R, Theorem 31.1), for every f, g and A: -f* (A† w) - g* (-w) ≤ f x + g (A x).

    Weak Fenchel–Rockafellar duality as sup ≤ inf.

    noncomputable def ConvexAnalysis.supportFunction {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] (C : Set H) (u : H) :

    The support function σ_C u = ⨆ x ∈ C, ⟪x, u⟫ of a set C R, Section 13; σ_∅ = ⊥.

    Equations
    Instances For
      theorem ConvexAnalysis.inner_le_supportFunction {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {x : H} {C : Set H} (hx : x ∈ C) (u : H) :

      ⟪x, u⟫ ≤ σ_C u for every x ∈ C.

      @[simp]

      The support function of the empty set is the constant ⊥.

      The support function of a nonempty set vanishes at 0.

      The support function is monotone in the set.

      theorem ConvexAnalysis.supportFunction_smul {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] {C : Set H} {c : ℝ} (hc : 0 < c) (u : H) :

      The support function is positively homogeneous.

      The support function does not distinguish a set from its closed convex hull.

      The conjugate of the indicator of C is the support function of C BC, Example 13.3.

      The normal cone through the support function: for x ∈ C, u ∈ N_C x iff σ_C u = ⟪x, u⟫.

      @[simp]

      The conjugate of the zero function is the indicator of {0}.

      The conjugate of the linear function ⟪a, ·⟫ is the indicator of {a}.

      theorem ConvexAnalysis.fenchelConjugate_half_norm_sq {H : Type u_1} [NormedAddCommGroup H] [InnerProductSpace ℝ H] :
      (fenchelConjugate fun (x : H) => ↑(‖x‖ ^ 2 / 2)) = fun (u : H) => ↑(‖u‖ ^ 2 / 2)

      ½‖·‖² is its own conjugate BC, Example 13.6.

      The conjugate of the norm is the indicator of the closed unit ball BC, Example 13.3.