In mathematical analysis, semicontinuity (or semi-continuity) is a property of extended real-valued functions that is weaker than continuity. An extended real-valued function formula_1 is upper (respectively, lower) semicontinuous at a point formula_2 if, roughly speaking, the function values for arguments near formula_2 are not much higher (respectively, lower) than formula_4 Briefly, a function on a domain formula_5 is lower semi-continuous if its epigraph formula_6 is closed in formula_7, and upper semi-continuous if formula_8 is lower semi-continuous. A function is continuous if and only if it is both upper and lower semicontinuous. If we take a continuous function and increase its value at a certain point formula_2 to formula_10 for some formula_11, then the result is upper semicontinuous; if we decrease its value to formula_12 then the result is lower semicontinuous. The notion of upper and lower semicontinuous function was first introduced and studied by René Baire in his thesis in 1899. Definitions. Assume throughout that formula_5 is a topological space and formula_14 is a function with values in the extended real numbers formula_15. Upper semicontinuity. A function formula_14 is called upper semicontinuous at a point formula_17 if for every real formula_18 there exists a neighborhood formula_19 of formula_2 such that formula_21 for all formula_22. Equivalently, formula_1 is upper semicontinuous at formula_2 if and only if formula_25 where lim sup is the limit superior of the function formula_1 at the point formula_27 If formula_5 is a metric space with distance function formula_29 and formula_30 this can also be restated using an formula_31-formula_32 formulation, similar to the definition of continuous function. Namely, for each formula_33 there is a formula_34 such that formula_35 whenever formula_36 A function formula_14 is called upper semicontinuous if it satisfies any of the following equivalent conditions: (1) The function is upper semicontinuous at every point of its domain. (2) For each formula_38, the set formula_39 is open in formula_5, where formula_41. (3) For each formula_38, the formula_43-superlevel set formula_44 is closed in formula_5. (4) The hypograph formula_46 is closed in formula_7. (5) The function formula_1 is continuous when the codomain formula_49 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 formula_50. Lower semicontinuity. A function formula_14 is called lower semicontinuous at a point formula_52 if for every real formula_53 there exists a neighborhood formula_19 of formula_2 such that formula_56 for all formula_22. Equivalently, formula_1 is lower semicontinuous at formula_2 if and only if formula_60 where formula_61 is the limit inferior of the function formula_1 at point formula_27 If formula_5 is a metric space with distance function formula_29 and formula_30 this can also be restated as follows: For each formula_33 there is a formula_34 such that formula_69 whenever formula_36 A function formula_14 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 formula_38, the set formula_73 is open in formula_5, where formula_75. (3) For each formula_38, the formula_43-sublevel set formula_78 is closed in formula_5. (4) The epigraph formula_6 is closed in formula_7. (5) The function formula_1 is continuous when the codomain formula_49 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 formula_84. Examples. Consider the function formula_85 piecewise defined by: formula_86 This function is upper semicontinuous at formula_87 but not lower semicontinuous. The floor function formula_88 which returns the greatest integer less than or equal to a given real number formula_89 is everywhere upper semicontinuous. Similarly, the ceiling function formula_90 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. For example the function formula_91 is upper semicontinuous at formula_92 while the function limits from the left or right at zero do not even exist. If formula_93 is a Euclidean space (or more generally, a metric space) and formula_94 is the space of curves in formula_5 (with the supremum distance formula_96), then the length functional formula_97 which assigns to each curve formula_98 its length formula_99 is lower semicontinuous. 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 formula_100. Properties. Unless specified otherwise, all functions below are from a topological space formula_5 to the extended real numbers formula_102 "Several of the results hold for semicontinuity at a specific point, but for brevity they are only stated for semicontinuity over the whole domain." Binary operations on semicontinuous functions. Let formula_116. In particular, the limit of a monotone increasing sequence formula_148 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 formula_149 defined for formula_150 for formula_151 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. ("Proof for the upper semicontinuous case": By condition (5) in the definition, formula_1 is continuous when formula_49 is given the left order topology. So its image formula_162 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.) formula_168 and formula_169 If formula_1 does not take the value formula_171, the continuous functions can be taken to be real-valued. Additionally, every upper semicontinuous function formula_14 is the limit of a monotone decreasing sequence of extended real-valued continuous functions on formula_173 if formula_1 does not take the value formula_175 the continuous functions can be taken to be real-valued. Semicontinuity of set-valued functions. For set-valued functions, several concepts of semicontinuity have been defined, namely "upper", "lower", "outer", and "inner" semicontinuity, as well as "upper" and "lower hemicontinuity". A set-valued function formula_188 from a set formula_109 to a set formula_190 is written formula_191 For each formula_192 the function formula_188 defines a set formula_194 The preimage of a set formula_195 under formula_188 is defined as formula_197 That is, formula_198 is the set that contains every point formula_183 in formula_109 such that formula_201 is not disjoint from formula_202. Upper and lower semicontinuity. A set-valued map formula_203 is "upper semicontinuous" at formula_204 if for every open set formula_205 such that formula_206, there exists a neighborhood formula_207 of formula_183 such that formula_209 A set-valued map formula_203 is "lower semicontinuous" at formula_204 if for every open set formula_205 such that formula_213 there exists a neighborhood formula_207 of formula_183 such that formula_216 Upper and lower set-valued semicontinuity are also defined more generally for a set-valued maps between topological spaces by replacing formula_217 and formula_218 in the above definitions with arbitrary topological spaces. Note, that there is not a direct correspondence between single-valued lower and upper semicontinuity and set-valued lower and upper semicontinuouty. An upper semicontinuous single-valued function is not necessarily upper semicontinuous when considered as a set-valued map. For example, the function formula_219 defined by formula_86 is upper semicontinuous in the single-valued sense but the set-valued map formula_221 is not upper semicontinuous in the set-valued sense. Inner and outer semicontinuity. A set-valued function formula_203 is called "inner semicontinuous" at formula_183 if for every formula_224 and every convergent sequence formula_225 in formula_217 such that formula_227, there exists a sequence formula_228 in formula_218 such that formula_230 and formula_231 for all sufficiently large formula_232 A set-valued function formula_203 is called "outer semicontinuous" at formula_183 if for every convergence sequence formula_225 in formula_217 such that formula_227 and every convergent sequence formula_228 in formula_218 such that formula_240 for each formula_241 the sequence formula_228 converges to a point in formula_201 (that is, formula_244).