Ty#

class discopy.grammar.abstract.Ty(*inside, dom=None, cod=None, _scan=True, **kwargs)[source]#

Bases: discopy.closed.Ty

An 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:

Ty

abstraction_factory#

alias of Abstraction

application_factory#

alias of Application

constant_factory#

alias of Constant

exp_factory#

alias of Exp

factory#

alias of Ty

over_factory#

alias of Exp

under_factory#

alias of Exp

variable_factory#

alias of Variable