FiniteCategories-0.2.0.0: Finite categories and usual categorical constructions on them.
CopyrightGuillaume Sabbagh 2022
LicenseGPL-3
Maintainerguillaumesabbagh@protonmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

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

Instances details
Eq a => Eq (IsSmallerThan a) Source # 
Instance details

Defined in Math.Categories.TotalOrder

Methods

(==) :: IsSmallerThan a -> IsSmallerThan a -> Bool

(/=) :: IsSmallerThan a -> IsSmallerThan a -> Bool

Show a => Show (IsSmallerThan a) Source # 
Instance details

Defined in Math.Categories.TotalOrder

Methods

showsPrec :: Int -> IsSmallerThan a -> ShowS

show :: IsSmallerThan a -> String

showList :: [IsSmallerThan a] -> ShowS

PrettyPrint a => PrettyPrint (IsSmallerThan a) Source # 
Instance details

Defined in Math.Categories.TotalOrder

Eq a => Morphism (IsSmallerThan a) a Source # 
Instance details

Defined in Math.Categories.TotalOrder

(Eq a, Ord a) => Category (TotalOrder a) (IsSmallerThan a) a Source # 
Instance details

Defined in Math.Categories.TotalOrder

(Enum a, Ord a) => Category (OrdinalCategory a) (IsSmallerThan a) a Source # 
Instance details

Defined in Math.Categories.OrdinalCategory

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

Instances details
Eq (TotalOrder a) Source # 
Instance details

Defined in Math.Categories.TotalOrder

Methods

(==) :: TotalOrder a -> TotalOrder a -> Bool

(/=) :: TotalOrder a -> TotalOrder a -> Bool

Show (TotalOrder a) Source # 
Instance details

Defined in Math.Categories.TotalOrder

Methods

showsPrec :: Int -> TotalOrder a -> ShowS

show :: TotalOrder a -> String

showList :: [TotalOrder a] -> ShowS

PrettyPrint (TotalOrder a) Source # 
Instance details

Defined in Math.Categories.TotalOrder

(Eq a, Ord a) => Category (TotalOrder a) (IsSmallerThan a) a Source # 
Instance details

Defined in Math.Categories.TotalOrder