| Portability | non-portable |
|---|---|
| Stability | experimental |
| Maintainer | sjoerd@w3future.com |
| Safe Haskell | Safe-Inferred |
Data.Category.Simplex
Description
The (augmented) simplex category.
Simplex Category
Constructors
| Z :: Simplex Z Z | |
| Y :: Simplex x y -> Simplex x (S y) | |
| X :: Simplex x (S y) -> Simplex (S x) (S y) |
Instances
| Category Simplex | The (augmented) simplex category is the category of finite ordinals and order preserving maps. |
| HasBinaryCoproducts Simplex | The coproduct in the simplex category is a merge operation. |
| HasInitialObject Simplex | The ordinal |
| HasTerminalObject Simplex | The ordinal |
Functor
Constructors
| Forget |
Constructors
| Add |
Instances
| Functor Add | Ordinal addition is a bifuntor, it concattenates the maps as it were. |
| TensorProduct Add | Ordinal addition makes the simplex category a monoidal category, with |
The universal monoid
universalMonoid :: MonoidObject (CoproductFunctor Simplex) (S Z)Source
The maps 0 -> 1 and 2 -> 1 form a monoid, which is universal, c.f. Replicate.