Definition of an interval An
interval is a
subset of the
real numbers that contains all real numbers lying between any two numbers of the subset. Examples are the numbers x from one to two, 1 \leq x \leq 2, and the numbers y greater than 10, i.e. y > 10. In particular, the
empty set \varnothing and the entire set of real numbers \R are both intervals. If the infimum does not exist and the interval is not empty, one says often that the corresponding endpoint is negative infinity, written -\infty. Similarly, if the supremum of a non-empty interval does not exist, one says that the corresponding endpoint is positive infinity, written +\infty. Non-empty intervals are completely determined by their endpoints and whether each endpoint belongs to the interval. This is a consequence of the
least-upper-bound property of the real numbers, which implies that if the elements of a non-empty interval are all less than some finite value, then the interval has a supremum. This characterization is used to specify intervals by means of '''', where a square or rounded bracket (parenthesis) indicates whether or not an endpoint belongs to the inteval.
Open and closed intervals An '''''''''' does not include any endpoint and can be succinctly indicated with parentheses. For example, (0, 1) = \{x \mid 0 is the interval of all real numbers greater than 0 and less than 1. (This interval can also be denoted by ]0,1[, see below). The open interval (0, +\infty) consists of real numbers greater than 0, i.e., positive real numbers. The open intervals have thus one of the forms :\begin{align} (a,b) &= \{x\in\mathbb R \mid a where a and b are real numbers such that a In the last case, the resulting interval is the
empty set and does not depend on . The open intervals are those intervals that are
open sets for the usual
topology on the real numbers, and they form a
base of the open sets. A '''''''''' is an interval that includes all its finite endpoints. When both endpoints are finite, they are enclosed in square brackets. For example, means greater than and less than or equal to , while means greater than or equal to and less than . The half-open intervals have the form :\begin{align} \left(a,b\right] &= \{x\in\R \mid a In summary, a set of the real numbers is an interval, if and only if it is an open interval, a closed interval, or a half-open interval. The only intervals that appear twice in the above classification are and that are both open and closed.
Degenerate intervals A '
is any set consisting of a single real number (i.e., an interval of the form ). Some authors include the empty set in this definition. A real interval that is neither empty nor degenerate is said to be ''', and has infinitely many elements.
Bounded intervals An interval is said to be
left-bounded or
right-bounded, if there is some real number that is, respectively, smaller than or larger than all its elements. An interval is said to be
bounded, if it is both left- and right-bounded; and is said to be
unbounded otherwise. Intervals that are bounded at only one end are said to be
half-bounded. The empty set is bounded, and the set of all reals is the only interval that is unbounded at both ends. Bounded intervals are also commonly known as
finite intervals. Bounded intervals are
bounded sets, in the sense that their
diameter (which is equal to the
absolute difference between the endpoints) is finite. The diameter may be called the
length,
width,
measure,
range, or
size of the interval. The size of unbounded intervals is usually defined as , and the size of the empty interval may be defined as (or left undefined). The
centre (
midpoint) of a bounded interval with endpoints and is , and its
radius is the half-length . These concepts are undefined for empty or unbounded intervals.
Categorisation by minimum and maximum elements An interval is said to be
left-open if and only if it contains no
minimum (an element that is smaller than all other elements);
right-open if it contains no
maximum; and
open if it contains neither. The interval , for example, is left-closed and right-open. The set of non-negative reals is a closed interval that is right-open but not left-open. An interval is said to be
left-closed if it has a minimum element or is left-unbounded,
right-closed if it has a maximum or is right unbounded; it is simply
closed if it is both left-closed and right closed.
Sub-intervals and related constructions An interval is a
subinterval of interval if is a
subset of . An interval is a
proper subinterval of if is a
proper subset of . The
interior of an interval is the largest open interval that is contained in ; it is also the set of points in which are not endpoints of . The
closure of is the smallest closed interval that contains ; which is also the set augmented with its finite endpoints. For any set of real numbers, the
interval enclosure or
interval span of is the unique interval that contains , and does not properly contain any other interval that also contains .
Segments and intervals There is conflicting terminology for the terms
segment and
interval, which have been employed in the literature in two essentially opposite ways, resulting in ambiguity when these terms are used. The
Encyclopedia of Mathematics defines
interval (without a qualifier) to exclude both endpoints (i.e., open interval) and
segment to include both endpoints (i.e., closed interval), while Rudin's
Principles of Mathematical Analysis calls sets of the form [
a,
b]
intervals and sets of the form (
a,
b)
segments throughout. These terms tend to appear in older works; modern texts increasingly favor the term
interval (qualified by
open,
closed, or
half-open), regardless of whether endpoints are included. ==Notations for intervals==