Compact#
- class discopy.para.Compact(dom, cod, inside, param=None, copar=None)[source]#
Bases:
Traced,discopy.abc.CompactCategoryParametric maps over a compact underlying category form a compact category, with the cups and caps of the underlying category.
- Parameters:
dom (ob)
cod (ob)
inside (category)
param (ob)
copar (ob)
- classmethod cups(left, right)[source]#
The cups of the underlying category, with empty parameter space.
- classmethod caps(left, right)[source]#
The caps of the underlying category, with empty parameter space.
- classmethod ev(base, exponent, left=True)#
The evaluation of the underlying category, with empty parameters.
- curry(n=1, left=False)#
Curry the last n objects of the domain if left else the first, i.e. everything but the parameters, which a left currying swaps out of the way the same as
Traced.trace().- Parameters:
n (int) – The number of objects to curry.
left (bool) – Whether to curry into a left or right exponential.
- Return type: