## FANDOM

1,099 Pages

A (real) interval is a set of real numbers between two other numbers. Intervals of $x$ are commonly used in graphs. An open interval excludes the end points, while the end points of a closed interval are elements. Some intervals may partially open and closed.

An (integer) interval is basically the same as a real interval, except it consists of integers.

## Formal definitions

### Real interval

• Open interval: $(a,b)=\{x\in\R:a
• Closed interval: $[a,b]=\{x\in\R:a\le x\le b\}$
• Left open, right closed: $(a,b]=\{x\in\R:a
• Right closed, right open: $[a,b)=\{x\in\R:a\le x

### Integer interval

• Open interval: $(a,b)=\{x\in\Z:a
• Closed interval: $[a,b]=\{x\in\Z:a\le x\le b\}$
• Left open, right closed: $(a,b]=\{x\in\Z:a
• Right closed, right open: $[a,b)=\{x\in\Z:a\le x

### Arbitrary partially ordered set

Let $(S,\le)$ be a poset.

Let $<$ be the irreflexive kernel of $\le$

Then, an interval may be defined as:

• Open interval: $(a,b)=\{x\in S:a
• Closed interval: $[a,b]=\{x\in S:a\le x\le b\}$
• Left open, right closed: $(a,b]=\{x\in S:a
• Right closed, right open: $[a,b)=\{x\in S:a\le x