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.FiniteCategories.NumberCategory

Description

By regarding each natural number as the linearly ordered set of all preceding natural number, it yields a category. 0, 1, 2, 3, ... are all number categories.

See (See "Categories for the Working Mathematican" Saunders Mac Lane. p.11)

Synopsis

Number category

type NumberCategoryObject = Natural Source #

An object in a NumberCategory.

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

type NumberCategory = InheritedFullSubcategory Omega (IsSmallerThan Natural) Natural Source #

A NumberCategory is an InheritedFullSubcategory of Omega containing successive numbers beginning from one.

numberCategory :: Natural -> NumberCategory Source #

The NumberCategory associated to a given number.