ogposets.OgMapPair
- class rewalt.ogposets.OgMapPair(fst, snd)
Bases:
tupleClass for pairs of maps of oriented graded posets.
This is used as the argument and/or return type of pushouts and coequalisers, which play a prominent role in the theory.
Methods
coequaliser(**params)Returns the coequaliser of a parallel pair of total maps, if it exists.
pushout(**params)Returns the pushout of a span of total maps, if it exists.
then(other, *others)Returns the composite with other maps or pairs of maps of oriented graded posets, when defined.
Attributes
Returns the first map in the pair.
Returns whether the pair is a cospan (has a common target).
Returns whether both maps are injective.
Returns whether the pair is parallel (both a span and a cospan).
Returns whether the pair is a span (has a common source).
Returns whether both maps are surjective.
Returns whether both maps are total.
Returns the second map in the pair.
Returns the pair of sources of the pair of maps, or, if a span, their common source.
Returns the pair of targets of the pair of maps, or, if a cospan, their common target.
- property fst
Returns the first map in the pair.
- Returns
fst – The first map in the pair.
- Return type
- property snd
Returns the second map in the pair.
- Returns
snd – The second map in the pair.
- Return type
- property source
Returns the pair of sources of the pair of maps, or, if a span, their common source.
- Returns
source – The source or sources of the pair.
- Return type
OgMap|tuple[OgMap]
- property target
Returns the pair of targets of the pair of maps, or, if a cospan, their common target.
- Returns
target – The target or targets of the pair.
- Return type
OgMap|tuple[OgMap]
- property isspan
Returns whether the pair is a span (has a common source).
- Returns
isspan –
Trueif and only if the pair is a span.- Return type
bool
- property iscospan
Returns whether the pair is a cospan (has a common target).
- Returns
iscospan –
Trueif and only if the pair is a cospan.- Return type
bool
- property isparallel
Returns whether the pair is parallel (both a span and a cospan).
- Returns
isparallel –
Trueif and only if the pair is parallel.- Return type
bool
- property istotal
Returns whether both maps are total.
- Returns
istotal –
Trueif and only if both maps are total.- Return type
bool
- property isinjective
Returns whether both maps are injective.
- Returns
isinjective –
Trueif and only if both maps are injective.- Return type
bool
- property issurjective
Returns whether both maps are surjective.
- Returns
issurjective –
Trueif and only if both maps are surjective.- Return type
bool
- then(other, *others)
Returns the composite with other maps or pairs of maps of oriented graded posets, when defined.
If given two pairs, it composes the first map with the first map, and the second map with the second map. If given a pair and a map, it composes both maps in the pair with the map.
- coequaliser(**params)
Returns the coequaliser of a parallel pair of total maps, if it exists.
- Keyword Arguments
wfcheck (
bool) – Check whether the coequaliser is well-defined.- Returns
coequaliser – The coequaliser of the pair of maps.
- Return type
- Raises
ValueError – If the pair is not total and parallel.
- pushout(**params)
Returns the pushout of a span of total maps, if it exists.
Pushouts do not always exist in the category of oriented graded posets and maps; however, pushouts of injective (total) maps do always exist.
- Keyword Arguments
wfcheck (
bool) – Check whether the pushout is well-defined.- Returns
pushout – The pushout cospan of the pair of maps.
- Return type
- Raises
ValueError – If the pair is not total and a span.