Extended real valued functions #
Functions of convex analysis take values in EReal = [-∞, +∞] (see DESIGN.md). This file
defines the basic notions for f : E → EReal on a real vector space E: the effective domain,
proper functions, the epigraph, convexity through the epigraph, and the indicator function, with
the bridges to Mathlib's ConvexOn.
Main definitions #
ConvexAnalysis.effectiveDomain f: the points wheref < ⊤.ConvexAnalysis.IsProper f:fnever takes the value⊥and is somewhere less than⊤.ConvexAnalysis.epigraph f: the set{(x, t) : E × ℝ | f x ≤ t}.ConvexAnalysis.ConvexFun f: the epigraph offis convex.ConvexAnalysis.convexIndicator C: the indicator function of convex analysis,0onCand⊤outsideC.
Main statements #
ConvexAnalysis.convexFun_coe_iff: for a real valuedf,ConvexAnalysis.ConvexFunagrees with Mathlib'sConvexOn ℝ univ f.ConvexAnalysis.convexFun_coe_add_convexIndicator_iff:f + ι_sis convex ifffis convex onsin the sense of Mathlib'sConvexOn ℝ s f.ConvexAnalysis.ConvexFun.convex_effectiveDomain: the domain of a convex function is convex.ConvexAnalysis.ConvexFun.add: the sum of two convex functions is convex if one of them never takes the value⊥;ConvexAnalysis.ConvexFun.sumfor finite sums of such functions.ConvexAnalysis.ConvexFun.iSup: a pointwise supremum of convex functions is convex.ConvexAnalysis.ConvexFun.apply_add_smul_lt_of_lt: monotone difference quotients along a ray.ConvexAnalysis.ConvexFun.const_mul,ConvexAnalysis.IsProper.const_mul,ConvexAnalysis.lowerSemicontinuous_const_mul: multiplesx ↦ (c : EReal) * f x, with the order isomorphismConvexAnalysis.mulOrderIsoofEReal.ConvexAnalysis.mem_interior_epigraph_of_eventually_leandConvexAnalysis.lt_of_mem_interior_epigraph: the interior of the epigraph, as used in separation arguments.ConvexAnalysis.lowerSemicontinuous_iff_isClosed_epigraph:fis lower semicontinuous iff its epigraph inE × ℝis closed. It isprotected, since Mathlib has a root lemma of the same name for the epigraph with heights inEReal.ConvexAnalysis.ConvexFun.eq_bot_of_lowerSemicontinuous: a lower semicontinuous convex function that takes the value⊥somewhere is⊥on its domain; so it is proper as soon as it has one finite value (ConvexAnalysis.ConvexFun.isProper_of_lowerSemicontinuous).ConvexAnalysis.convexFun_convexIndicator_iff: the indicator ofCis convex iffCis convex.ConvexAnalysis.lowerSemicontinuous_convexIndicator_iff: the indicator ofCis lower semicontinuous iffCis closed.
References #
- H. H. Bauschke, P. L. Combettes, Convex Analysis and Monotone Operator Theory in Hilbert Spaces, 2nd ed., Springer, 2017, Chapters 1, 8 and 9.
- R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970, Section 4.
Tags #
extended real valued function, effective domain, proper function, epigraph, convex function, indicator function, lower semicontinuity
Membership in the effective domain: f x < ⊤.
A function is proper if it never takes the value ⊥ and its effective domain is
nonempty.
The function is everywhere greater than
⊥.- nonempty_effectiveDomain : (effectiveDomain f).Nonempty
The function takes a value less than
⊤somewhere.
Instances For
A point is in the effective domain iff f is below some real number there.
The effective domain is the projection of the epigraph.
Minimizers of f + g for a real valued f and a proper g: z minimizes f + g iff
g z = s is finite and f z + s ≤ f w + r whenever g w = r is finite. This links the
statements about minimizers of f + g in the forward–backward method and FISTA, written with
IsMinOn, with the rates, which compare finite values.
Multiples x ↦ (c : EReal) * f x of f : α → EReal, written with multiplication since
EReal has no scalar multiplication by reals. Mathlib's EReal has 0 * ⊤ = 0 * ⊥ = 0, so the
multiple with c = 0 is the zero function, the convention 0 · ∞ = 0 of R, Section 4; it is
not the indicator of dom f.
Multiplication by a positive real number, as an order isomorphism of EReal. Mathlib has no
such lemma; a candidate for Mathlib/Data/EReal/Inv.lean.
Equations
- ConvexAnalysis.mulOrderIso hc = { toFun := fun (a : EReal) => ↑c * a, invFun := fun (a : EReal) => ↑c⁻¹ * a, left_inv := ⋯, right_inv := ⋯ }.toOrderIso ⋯ ⋯
Instances For
The order isomorphism mulOrderIso hc is the multiplication by c.
Addition of a real number on the right, as an order isomorphism of EReal. Mathlib has no
such lemma; a candidate for Mathlib/Data/EReal/Operations.lean.
Equations
- ConvexAnalysis.addOrderIso c = { toFun := fun (a : EReal) => a + ↑c, invFun := fun (a : EReal) => a - ↑c, left_inv := ⋯, right_inv := ⋯ }.toOrderIso ⋯ ⋯
Instances For
The order isomorphism addOrderIso c is the addition of c.
A positive multiple c f has the same effective domain as f.
A function f : E → EReal is convex if its epigraph is a convex subset of E × ℝ
R, Section 4, BC, Definition 8.1.
Equations
Instances For
The zero function is convex.
The constant function ⊤ is convex: its epigraph is empty.
The constant function ⊥ is convex: its epigraph is everything.
Composition with a linear map preserves convexity: the epigraph of f ∘ A is the preimage of
the epigraph of f under A × id.
The convexity inequality, for real upper bounds t ≥ f x and s ≥ f y.
A nonnegative multiple of a convex function is convex. For c = 0 the multiple is the zero
function (see the section on scaling).
If f x = ⊥ and f y < ⊤, a convex f is ⊥ at every convex combination a • x + b • y
with a > 0 (and b ≥ 0, a + b = 1).
Along a ray, a convex function lies below the chord: if f x ≤ r and
f (x + t • d) < r + t α, then f (x + s • d) < r + s α for 0 < s ≤ t. In other words, the
difference quotients (f (x + t • d) - f x) / t are monotone in t.
For a convex f and x ∈ dom f, the inequality f x + t α ≤ f (x + t • d) for small
t > 0 implies it for all t > 0.
A pointwise supremum of convex functions is convex: its epigraph is the intersection of the epigraphs.
The sum of two convex functions is convex if the first one never takes the value ⊥; see
ConvexFun.add_of_bot_lt_right for the second. Some such hypothesis is needed, since
⊥ + ⊤ = ⊥ in EReal (DESIGN.md, section 3).
The effective domain of a convex function is convex.
f is lower semicontinuous iff its epigraph in α × ℝ is closed BC, Lemma 1.24.
A function that is upper semicontinuous at a point of its domain is bounded above by a real number near that point.
A nonnegative multiple of a lower semicontinuous function is lower semicontinuous.
A lower semicontinuous convex function that takes the value ⊥ somewhere is ⊥ on its whole
domain: convexity spreads ⊥ along the segment [y, z) from a point y with f y = ⊥ to a
point z of the domain (ConvexFun.apply_smul_add_smul_eq_bot), and lower semicontinuity at z
gives f z = ⊥ BC, Proposition 9.6. Only lower semicontinuity at z is used.
A convex function with a finite value at a point x where it is lower semicontinuous never
takes the value ⊥ (ConvexFun.eq_bot_of_lowerSemicontinuous).
A convex function with a finite value at a point where it is lower semicontinuous is proper.
The indicator function of convex analysis: 0 on C and ⊤ outside C. It is Mathlib's
Set.indicator of the complement with the constant ⊤.
Equations
- ConvexAnalysis.convexIndicator C = Cᶜ.indicator fun (x : E) => ⊤
Instances For
The indicator function of C is 0 on C.
The indicator function of C is ⊤ outside C.
The indicator function never takes the value ⊥.
The indicator function is nonnegative.
The indicator function of the whole space is 0.
The indicator function of the empty set is the constant ⊤.
The indicator of an intersection is the sum of the indicators: ι_{C ∩ D} = ι_C + ι_D.
The epigraph of ι_C is C × [0, ∞).
The effective domain of ι_C is C.
ι_C is proper iff C is nonempty.
ι_C is convex iff C is convex.
The indicator of C is continuous at interior points of C, where it is locally 0.
ι_C is lower semicontinuous iff C is closed.
A real valued f is convex on s in the sense of Mathlib's ConvexOn ℝ s f iff f + ι_s is
convex.
The lower semicontinuity bridge for f + ι_s with s closed: it is lower semicontinuous iff
f is lower semicontinuous on s in Mathlib's sense.