homalg-project / FinSetsForCAP

The elementary topos of (skeletal) finite sets
https://homalg-project.github.io/FinSetsForCAP/
GNU General Public License v2.0
4 stars 7 forks source link

Fix corner case in IsColiftable #226

Closed mohamed-barakat closed 1 year ago

mohamed-barakat commented 1 year ago
gap> LoadPackage( "FinSets", false );
true
gap> I := InitialObject( SkeletalFinSets );
|0|
gap> alpha := UniversalMorphismIntoTerminalObject( I );
|0| → |1|
gap> beta := IdentityMorphism( I );
|0| → |0|
gap> IsColiftable( alpha, beta ); ## the answer is wrong
true
gap> wrong := Colift( alpha, beta );
|1| → |0|
gap> IsWellDefined( wrong );
false
gap> Display( wrong );
{ 0 } ⱶ[ 0 ]→ ∅