| Copyright | Guillaume Sabbagh 2022 |
|---|---|
| License | GPL-3 |
| Maintainer | guillaumesabbagh@protonmail.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Math.Categories.TotalOrder
Description
Any total (or linear) order induces a preorder category where elements are objects, there is an arrow between two objects iff the relation is satisfied.
(See Categories for the working mathematican. Saunders Mac Lane. p.11)
Synopsis
- data IsSmallerThan a = IsSmallerThan a a
- data TotalOrder a = TotalOrder
Documentation
data IsSmallerThan a Source #
IsSmallerThan is the type of morphisms in a linear order, it reminds the fact that there is a morphism from a source to a target iff the source is smaller than the target.
Constructors
| IsSmallerThan a a |
Instances
data TotalOrder a Source #
A TotalOrder category is the category induced by a total order.
(See Categories for the working mathematican. Saunders Mac Lane. p.11)
Constructors
| TotalOrder |
Instances
| PrettyPrint (TotalOrder a) Source # | |
Defined in Math.Categories.TotalOrder Methods pprint :: TotalOrder a -> String Source # | |
| Show (TotalOrder a) Source # | |
Defined in Math.Categories.TotalOrder Methods showsPrec :: Int -> TotalOrder a -> ShowS show :: TotalOrder a -> String showList :: [TotalOrder a] -> ShowS | |
| Eq (TotalOrder a) Source # | |
Defined in Math.Categories.TotalOrder | |
| (Eq a, Ord a) => Category (TotalOrder a) (IsSmallerThan a) a Source # | |
Defined in Math.Categories.TotalOrder Methods identity :: TotalOrder a -> a -> IsSmallerThan a Source # ar :: TotalOrder a -> a -> a -> Set (IsSmallerThan a) Source # genAr :: TotalOrder a -> a -> a -> Set (IsSmallerThan a) Source # decompose :: TotalOrder a -> IsSmallerThan a -> [IsSmallerThan a] Source # | |