FreeCategory#
- class discopy.cat.FreeCategory(inside, dom, cod, _scan=True)[source]#
Bases:
discopy.abc.CategoryA category whose arrows are paths of generating arrows.
Note
Subclasses are assumed to have a
generator_factoryclass attribute for the type of the generators and an arrow factoryarwhose constructor acceptsinside,dom,codand_scanas keyword arguments. New arrows are always built internally through that constructor by keyword (passing_scan=Falseto skip the composability check when it is guaranteed by construction), so that subclasses are free to expose a different, more user-friendly positional signature without breaking the machinery below.- Parameters:
dom (C0) –
cod (C0) –