intervaltype
Intervaltype is a data concept used to represent a contiguous range of elements within a totally ordered set, most often the real numbers. It encodes an interval by storing its bounds and, optionally, whether each bound is included or excluded. An interval may be bounded (both ends finite) or unbounded (one or both ends extend to infinity).
A typical interval is described by a lower bound L and an upper bound U, with flags
Operations commonly defined for intervaltype include membership testing (whether a value x lies in the interval),
Applications span mathematics, computer science, and engineering. Intervaltype supports constraint programming, scheduling and temporal reasoning, uncertainty