Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
(...) :: Prd a => a -> a -> Interval a infix 3 Source #
Construct an interval from a pair of points.
If a <~ b
then a ... b = Empty
.
singleton :: a -> Interval a Source #
Construct an interval containing a single point.
>>>
singleton 1
1 ... 1
upset :: Max a => a -> Interval a Source #
\( X_\geq(x) = \{ y \in X | y \geq x \} \)
Construct the upper set of an element x.
This function is monotone wrt the containment order.