Idris2Doc : Control.Category.Cocartesian

Control.Category.Cocartesian

(source)

Definitions

interfaceCocartesian : Homobj-> (obj->obj->obj) ->obj->Type
  A monoidal category is *cocartesian* if its tensor product
coincides with the categorical coproduct. This automatically
implies that it is symmetric (see `Braided`).

This interface may be implemented in two equivalent ways: by giving
a categorical coproduct structure (`injl`, `injr`, `coprod`) or a
universal monoid structure (`merge`, `intro`). Each set of methods
has a default definition in terms of the others.

This is the interface-style definition of a cocartesian monoidal category.
For the record-style definition, see `Control.Category.Records.CocartesianR`.

Laws for `injl`, `injr`, `coprod`:
* `coprod f g . injl = f`
* `coprod f g . injr = g`

Laws for `merge`, `intro`:
* `merge . mapl intro . unitl' = id`
* `merge . mapr intro . unitr' = id`

Parameters: cat, ten, i
Constraints: Monoidal cat ten i
Constructor: 
MkCocartesian

Methods:
injl : cata (tenab)
  The left injection of the coproduct.
injr : catb (tenab)
  The right injection of the coproduct.
coprod : catab->cata'b->cat (tenaa') b
  The universal property of the coproduct.
merge : cat (tenaa) a
  The join of the universal monoid structure.
intro : catia
  The unit of the universal monoid structure.

Implementations:
CocartesianMorphismEitherVoid
Monadm=>Cocartesian (Kleislimorphismm) EitherVoid
injl : Cocartesiancatteni=>cata (tenab)
  The left injection of the coproduct.

Totality: total
Visibility: public export
injr : Cocartesiancatteni=>catb (tenab)
  The right injection of the coproduct.

Totality: total
Visibility: public export
coprod : Cocartesiancatteni=>catab->cata'b->cat (tenaa') b
  The universal property of the coproduct.

Totality: total
Visibility: public export
merge : Cocartesiancatteni=>cat (tenaa) a
  The join of the universal monoid structure.

Totality: total
Visibility: public export
intro : Cocartesiancatteni=>catia
  The unit of the universal monoid structure.

Totality: total
Visibility: public export
(\|/) : Cocartesiancatteni=>catab->cata'b->cat (tenaa') b
  An operator synonym for `coprod`, the universal property of a
cocartesian monoidal category's coproduct structure.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 6
PreCocartesian : Homobj-> (obj->obj->obj) ->obj->Type
  See `PreMonoidal`.

Totality: total
Visibility: public export
inj : Cocartesiancatteni=> (x : Fin (lengthxs)) ->cat (index'xsx) (TenSeqtenixs)
Totality: total
Visibility: public export