uconf.core.cooperad¶
Typing protocols for cooperad-like objects used in this project.
Note
This package works exclusively with connected cooperads, i.e. cooperads C satisfying C(0) = 0 and C(1) = k (the ground field, spanned by the counit). Connectedness implies that every internal vertex of a tree in the cobar construction has arity >= 2, which bounds the number of vertices in arity n by n - 1. All concrete models and wrappers in this package are connected.
Module Attributes
Type alias for accepted cooperad inputs (class or factory instance). |
Classes
|
Structural contract for one fixed-arity cooperad component. |
|
Structural contract for cooperad factories and wrappers. |
- class uconf.core.cooperad.CooperadComponent(n, base_ring)[source]¶
Bases:
ComponentProtocol,ProtocolStructural contract for one fixed-arity cooperad component.
- Parameters:
n (int)
- factory: type[CooperadComponent] | CooperadFactory¶
Reference to the parent cooperad factory, used for printing and error messages.
- static counit(x)[source]¶
Returns the counit evaluation on
x.- Parameters:
x (Element)
- Return type:
object
- static unit_key()[source]¶
Returns the basis key of the counit generator in arity
1.- Return type:
Any
- class uconf.core.cooperad.CooperadFactory(*args, **kwargs)[source]¶
Bases:
ProtocolStructural contract for cooperad factories and wrappers.
- uconf.core.cooperad.CooperadLike: TypeAlias = type[uconf.core.cooperad.CooperadComponent] | uconf.core.cooperad.CooperadFactory¶
Type alias for accepted cooperad inputs (class or factory instance).