Operations that preserve convexity: the epigraph-only ones #
The operations whose convexity proof needs nothing beyond the epigraph API. Those that instead read
a function off a convex set in E × ℝ — infimal convolution, convex hulls of families, images under
linear maps — live elsewhere.
Main results #
convexFn_iSup,ConvexFn.sup— pointwise suprema, viaepi_iSup.ConvexFn.add,ConvexFn.sum,dom_add— sums, and the effective domain of a sum.ConvexFn.smul— multiplication by a nonnegative real.ConvexFn.comp,ConvexFn.comp_extendTop— composition with a nondecreasing convex function of one real variable.ConvexFn.restrict,ConvexFn.add_indicatorFn— restriction to a convex set, the same operation as adding an indicator function.
Implementation notes #
Sums carry ∀ x, f x ≠ ⊥ where Rockafellar assumes properness: that is the half which avoids
∞ - ∞, and it cannot be dropped. On ℝ let f be ⊥ on Ioi 0 and ⊤ elsewhere, g be ⊥ on
Iio 0 and ⊤ elsewhere; both are convex, but f + g is ⊥ off 0 and ⊤ at 0, with a
nonconvex epigraph (ℝ \ {0}) ×ˢ univ. The other half, dom f nonempty, is irrelevant.
References #
- R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970, §5.
Epigraphs of suprema, sums and restrictions: no linear structure on E is used #
Convexity of the operations #
Its negative is convex too, which is why the functions both convex and concave are exactly the
affine ones. The pairing-presented form is convexFn_affineFn.
Pointwise suprema #
A pointwise supremum of convex functions is convex. The index is a Sort*, so the empty family
is allowed: the supremum is then ⊥, whose epigraph is all of E × ℝ.
Sums #
A sum of two convex functions is convex. Where the classical statement assumes properness this
needs only its ≠ ⊥ half, which prevents ∞ - ∞ and cannot be dropped; the module docstring has a
counterexample.
A finite sum of convex functions, none of which takes the value ⊥, is convex.
Multiplication by a nonnegative scalar #
Composition with a nondecreasing convex function #
A nondecreasing convex φ composed with a convex f is convex, stated for φ : EReal → EReal
rather than the classical φ : ℝ → (-∞, +∞]. EReal is not an ℝ-module, so convexity of φ is
required only where it is statable; off the reals the proof uses just monotonicity and φ ⊤ = ⊤.
That last is not decoration — a monotone convex φ : ℝ → EReal bounded above is constant, and
gluing a strictly larger finite value at ⊤ breaks convexity of φ ∘ f as soon as dom f has
nonconvex complement.
The same composition rule in its classical shape: φ is a nondecreasing convex function of one
real variable, and x ↦ φ (f x) is convex under the convention φ (+∞) = +∞.
Restriction to a convex set #
Adding the indicator function of a convex set is restriction to that set, and preserves convexity.