Assume throughout that is a topological space and is a function with values in the extended real numbers .
Upper semicontinuity
A function is called upper semicontinuous at a point if for every real there exists a neighborhood of such that for all .[2]
Equivalently, is upper semicontinuous at if and only if
where lim sup is the limit superior of the function at the point
If is a metric space with distance function and this can also be restated using an - formulation, similar to the definition of continuous function. Namely, for each there is a such that whenever
A function is called upper semicontinuous if it satisfies any of the following equivalent conditions:[2]
- (1) The function is upper semicontinuous at every point of its domain.
- (2) For each , the set is open in , where .
- (3) For each , the -superlevel set is closed in .
- (4) The hypograph is closed in .
- (5) The function is continuous when the codomain is given the left order topology. This is just a restatement of condition (2) since the left order topology is generated by all the intervals .
Lower semicontinuity
A function is called lower semicontinuous at a point if for every real there exists a neighborhood of such that for all .
Equivalently, is lower semicontinuous at if and only if
where is the limit inferior of the function at point
If is a metric space with distance function and this can also be restated as follows: For each there is a such that whenever
A function is called lower semicontinuous if it satisfies any of the following equivalent conditions:
- (1) The function is lower semicontinuous at every point of its domain.
- (2) For each , the set is open in , where .
- (3) For each , the -sublevel set is closed in .
- (4) The epigraph is closed in .[3]: 207
- (5) The function is continuous when the codomain is given the right order topology. This is just a restatement of condition (2) since the right order topology is generated by all the intervals .
Consider the function piecewise defined by:
This function is upper semicontinuous at but not lower semicontinuous.
The floor function which returns the greatest integer less than or equal to a given real number is everywhere upper semicontinuous. Similarly, the ceiling function is lower semicontinuous.
Upper and lower semicontinuity bear no relation to continuity from the left or from the right for functions of a real variable. Semicontinuity is defined in terms of an ordering in the range of the functions, not in the domain.[4] For example the function
is upper semicontinuous at while the function limits from the left or right at zero do not even exist.
If is a Euclidean space (or more generally, a metric space) and is the space of curves in (with the supremum distance ), then the length functional which assigns to each curve its length is lower semicontinuous.[5] As an example, consider approximating the unit square diagonal by a staircase from below. The staircase always has length 2, while the diagonal line has only length .
Let be a measure space and let denote the set of positive measurable functions endowed with the
topology of convergence in measure with respect to Then by Fatou's lemma the integral, seen as an operator from to is lower semicontinuous.
Tonelli's theorem in functional analysis characterizes the weak lower semicontinuity of nonlinear functionals on Lp spaces in terms of the convexity of another function.
Unless specified otherwise, all functions below are from a topological space to the extended real numbers Several of the results hold for semicontinuity at a specific point, but for brevity they are only stated for semicontinuity over the whole domain.
- A function is continuous if and only if it is both upper and lower semicontinuous.
- The characteristic function or indicator function of a set (defined by if and if ) is upper semicontinuous if and only if is a closed set. It is lower semicontinuous if and only if is an open set.
- In the field of convex analysis, the characteristic function of a set is defined differently, as if and if . With that definition, the characteristic function of any closed set is lower semicontinuous, and the characteristic function of any open set is upper semicontinuous.
Binary Operations on Semicontinuous Functions
Let .
- If and are lower semicontinuous, then the sum is lower semicontinuous[6] (provided the sum is well-defined, i.e., is not the indeterminate form ). The same holds for upper semicontinuous functions.
- If and are lower semicontinuous and non-negative, then the product function is lower semicontinuous. The corresponding result holds for upper semicontinuous functions.
- The function is lower semicontinuous if and only if is upper semicontinuous.
- If and are upper semicontinuous and is non-decreasing, then the composition is upper semicontinuous. On the other hand, if is not non-decreasing, then may not be upper semicontinuous.[7]
- If and are lower semicontinuous, their (pointwise) maximum and minimum (defined by and ) are also lower semicontinuous. Consequently, the set of all lower semicontinuous functions from to (or to ) forms a lattice. The corresponding statements also hold for upper semicontinuous functions.
Optimization of Semicontinuous Functions
- The (pointwise) supremum of an arbitrary family of lower semicontinuous functions (defined by ) is lower semicontinuous.[8]
- In particular, the limit of a monotone increasing sequence of continuous functions is lower semicontinuous. (The Theorem of Baire below provides a partial converse.) The limit function will only be lower semicontinuous in general, not continuous. An example is given by the functions defined for for
- Likewise, the infimum of an arbitrary family of upper semicontinuous functions is upper semicontinuous. And the limit of a monotone decreasing sequence of continuous functions is upper semicontinuous.
- If is a compact space (for instance a closed bounded interval ) and is upper semicontinuous, then attains a maximum on If is lower semicontinuous on it attains a minimum on
- (Proof for the upper semicontinuous case: By condition (5) in the definition, is continuous when is given the left order topology. So its image is compact in that topology. And the compact sets in that topology are exactly the sets with a maximum. For an alternative proof, see the article on the extreme value theorem.)
Other Properties
- (Theorem of Baire)[note 1] Let be a metric space. Every lower semicontinuous function is the limit of a point-wise increasing sequence of extended real-valued continuous functions on In particular, there exists a sequence of continuous functions such that
- and
- If does not take the value , the continuous functions can be taken to be real-valued.[9][10]
- Additionally, every upper semicontinuous function is the limit of a monotone decreasing sequence of extended real-valued continuous functions on if does not take the value the continuous functions can be taken to be real-valued.
- Any upper semicontinuous function on an arbitrary topological space is locally constant on some dense open subset of
- If the topological space is sequential, then is upper semi-continuous if and only if it is sequentially upper semi-continuous, that is, if for any and any sequence that converges towards , there holds . Equivalently, in a sequential space, is upper semicontinuous if and only if its superlevel sets are sequentially closed for all . In general, upper semicontinuous functions are sequentially upper semicontinuous, but the converse may be false.
The result was proved by René Baire in 1904 for real-valued function defined on . It was extended to metric spaces by Hans Hahn in 1917, and Hing Tong showed in 1952 that the most general class of spaces where the theorem holds is the class of perfectly normal spaces. (See Engelking, Exercise 1.7.15(c), p. 62 for details and specific references.)
In particular, there exists such that for every natural number . The necessisty of only considering the tail of comes from the fact that for small values of the set may be empty.
Stromberg, p. 132, Exercise 4
Willard, p. 49, problem 7K
Stromberg, p. 132, Exercise 4(g)
- Benesova, B.; Kruzik, M. (2017). "Weak Lower Semicontinuity of Integral Functionals and Applications". SIAM Review. 59 (4): 703–766. arXiv:1601.00390. doi:10.1137/16M1060947. S2CID 119668631.
- Bourbaki, Nicolas (1998). Elements of Mathematics: General Topology, 1–4. Springer. ISBN 0-201-00636-7.
- Bourbaki, Nicolas (1998). Elements of Mathematics: General Topology, 5–10. Springer. ISBN 3-540-64563-2.
- Engelking, Ryszard (1989). General Topology. Heldermann Verlag, Berlin. ISBN 3-88538-006-4.
- Gelbaum, Bernard R.; Olmsted, John M.H. (2003). Counterexamples in analysis. Dover Publications. ISBN 0-486-42875-3.
- Hyers, Donald H.; Isac, George; Rassias, Themistocles M. (1997). Topics in nonlinear analysis & applications. World Scientific. ISBN 981-02-2534-2.
- Stromberg, Karl (1981). Introduction to Classical Real Analysis. Wadsworth. ISBN 978-0-534-98012-2.
- Willard, Stephen (2004) [1970]. General Topology. Mineola, N.Y.: Dover Publications. ISBN 978-0-486-43479-7. OCLC 115240.
- Zălinescu, Constantin (30 July 2002). Convex Analysis in General Vector Spaces. River Edge, N.J. London: World Scientific Publishing. ISBN 978-981-4488-15-0. MR 1921556. OCLC 285163112 – via Internet Archive.