Maintainer | Olaf Klinke |
---|---|
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Data.Searchable
Contents
Description
There exist two packages for exhaustive search: infinite-search and the Select monad transformer.
This module extends the former (which has a much smaller dependency footprint)
with the empty subset.
The resulting monad K
does not only support unions
but also intersections.
Data types
If sub-sets of a type admit
continuous universal quantification ∀,
then the empty sub-set is an isolated element:
Indeed, for no other set should ∀ (
be true. const
False
)
Therefore it is sound to have a separate constructor for the empty set.
intersection :: Eq a => K a -> K a -> K a Source #
If every compact set is clopen, then the space is discrete. Indeed, discreteness means singletons are open. Singletons are always compact.