interval
An interval is a subset of a poset (typically the real numbers) which contains every element with an ordering between its endpoints.
Formally,
a closed interval
where
An open interval
If the endpoints
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.
With respect to the set of real numbers
An open interval does not include any endpoint, and is indicated with parentheses:
| interval notation | set notation |
|---|---|
A closed interval includes its endpoints, and is denoted with square brackets:
| interval notation | set notation |
|---|---|
A half-open interval has two endpoints and includes only one of them. It is said to be left-open or right-open depending on whether the excluded endpoint is on the left or on the right. The half-open intervals have the form
| interval notation | set notation |
|---|---|
See also
nested intervals
partition of an interval