Box

Contents

Box#

class discopy.closed.Box(name, dom, cod, **params)[source]#

Bases: discopy.monoidal.Box, Diagram

A closed box is a monoidal box in a closed diagram.

Parameters:
  • name (str) – The name of the box.

  • dom (Ty) – The domain of the box, i.e. its input.

  • cod (Ty) – The codomain of the box, i.e. its output.