Idris2Doc : Data.Tensor

Data.Tensor

(source)
This module defines tensor products, which are later used to define
the concept of profunctor strength. The two primary tensor products
in `Idr` are the product (`Pair`) and the coproduct (`Either`).

Definitions

interfaceAssociative : (Type->Type->Type) ->Type
  A bifunctor that admits an *associator*, i.e. a bifunctor that is
associative up to isomorphism.

Laws:
* `mapFst assocl . assocl . assocl = assocl . mapSnd assocl`

Parameters: ten
Constraints: Bifunctor ten
Methods:
assocl : tena (tenbc) ->ten (tenab) c
assocr : ten (tenab) c->tena (tenbc)
assoc : tena (tenbc) <=>ten (tenab) c

Implementations:
AssociativePair
AssociativeEither
assocl : Associativeten=>tena (tenbc) ->ten (tenab) c
Totality: total
Visibility: public export
assocr : Associativeten=>ten (tenab) c->tena (tenbc)
Totality: total
Visibility: public export
assoc : Associativeten=>tena (tenbc) <=>ten (tenab) c
Totality: total
Visibility: public export
interfaceSymmetric : (Type->Type->Type) ->Type
  A bifunctor that admits a swap map, i.e. a bifunctor that is
symmetric up to isomorphism.

The bifunctor `ten` is generally also associative.

Parameters: ten
Constraints: Bifunctor ten
Methods:
swap' : tenab->tenba
symmetric : tenab<=>tenba

Implementations:
SymmetricPair
SymmetricEither
swap' : Symmetricten=>tenab->tenba
Totality: total
Visibility: public export
symmetric : Symmetricten=>tenab<=>tenba
Totality: total
Visibility: public export
interfaceTensor : (Type->Type->Type) ->Type->Type
  A tensor product is an associative bifunctor that has an identity element
up to isomorphism. Tensor products constitute the monoidal structure of a
monoidal category.

Laws:
* `mapSnd unitl.leftToRight = mapFst unitr.leftToRight . assocl`

Parameters: ten, i
Constraints: Associative ten
Methods:
unitl : tenia<=>a
unitr : tenai<=>a

Implementations:
TensorPair ()
TensorEitherVoid
unitl : Tensorteni=>tenia<=>a
Totality: total
Visibility: public export
unitr : Tensorteni=>tenai<=>a
Totality: total
Visibility: public export