Functor

Contents

Functor#

class discopy.pivotal.Functor(ob=None, ar=None, dom=None, cod=None)[source]#

Bases: discopy.rigid.Functor

A pivotal functor is a rigid functor on a pivotal category.

Parameters:
  • ob (Mapping[Ty, Ty]) – Map from atomic Ty to cod.ob.

  • ar (Mapping[Box, Diagram]) – Map from Box to cod.ar.

  • cod (Category) – The codomain of the functor.

  • dom (T) –