module Math.FiniteCategories.CommaCategory.Examples
(
exampleSlice,
exampleCoslice,
exampleArrowCategory,
)
where
import Math.Categories
import Math.FiniteCategories
exampleSlice :: CommaCategory NumberCategory NumberCategoryMorphism NumberCategoryObject One One One NumberCategory NumberCategoryMorphism NumberCategoryObject
Just CommaCategory
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
One
One
One
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
exampleSlice = NumberCategory
-> NumberCategoryObject
-> Maybe
(CommaCategory
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
One
One
One
NumberCategory
NumberCategoryMorphism
NumberCategoryObject)
forall c m o.
(FiniteCategory c m o, Morphism m o, Eq c, Eq m, Eq o) =>
c -> o -> Maybe (CommaCategory c m o One One One c m o)
sliceCategory (NumberCategoryObject -> NumberCategory
numberCategory NumberCategoryObject
4) NumberCategoryObject
2
exampleCoslice :: CommaCategory One One One NumberCategory NumberCategoryMorphism NumberCategoryObject NumberCategory NumberCategoryMorphism NumberCategoryObject
Just CommaCategory
One
One
One
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
exampleCoslice = NumberCategory
-> NumberCategoryObject
-> Maybe
(CommaCategory
One
One
One
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
NumberCategory
NumberCategoryMorphism
NumberCategoryObject)
forall c m o.
(FiniteCategory c m o, Morphism m o, Eq c, Eq m, Eq o) =>
c -> o -> Maybe (CommaCategory One One One c m o c m o)
cosliceCategory (NumberCategoryObject -> NumberCategory
numberCategory NumberCategoryObject
4) NumberCategoryObject
2
exampleArrowCategory :: CommaCategory NumberCategory NumberCategoryMorphism NumberCategoryObject NumberCategory NumberCategoryMorphism NumberCategoryObject NumberCategory NumberCategoryMorphism NumberCategoryObject
exampleArrowCategory :: CommaCategory
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
exampleArrowCategory = NumberCategory
-> CommaCategory
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
NumberCategory
NumberCategoryMorphism
NumberCategoryObject
forall c m o.
(FiniteCategory c m o, Morphism m o, Eq c, Eq m, Eq o) =>
c -> CommaCategory c m o c m o c m o
arrowCategory (NumberCategoryObject -> NumberCategory
numberCategory NumberCategoryObject
4)