Sum

Contents

Sum#

class discopy.balanced.Sum(terms, dom=None, cod=None)[source]#

Bases: discopy.braided.Sum, Box

A balanced sum is a braided sum and a balanced box.

Parameters:
  • terms (tuple[Diagram, ...]) – The terms of the formal sum.

  • dom (Ty) – The domain of the formal sum.

  • cod (Ty) – The codomain of the formal sum.