Ty#
- class discopy.grammar.abstract.Ty(*inside, dom=None, cod=None, _scan=True, **kwargs)[source]#
Bases:
discopy.closed.TyAn implicative type, the type of an abstract categorial grammar.
- Parameters:
inside (str | cat.Ob)
dom (C0)
cod (C0)
_scan (bool)
- classmethod from_categorial(old)[source]#
Translate a categorial type into an abstract type, collapsing left and right exponentials into a single exponential.
- Parameters:
old (Ty) – The categorial type to translate.
- Return type:
- abstraction_factory#
alias of
Abstraction
- application_factory#
alias of
Application