-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AddIsColiftable + AddColift for FinSets
- Loading branch information
1 parent
7b69c00
commit 7f818cc
Showing
5 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#! @Chunk Colift | ||
|
||
LoadPackage( "FinSetsForCAP" ); | ||
|
||
#! @Example | ||
m := FinSet( [ 1 .. 5 ] ); | ||
#! <An object in FinSets> | ||
n := FinSet( [ 1 .. 4 ] ); | ||
#! <An object in FinSets> | ||
f := MapOfFinSets( | ||
m, | ||
[ [ 1, 2 ], [ 2, 2 ], [ 3, 1 ], [ 4, 1 ], [ 5, 3 ] ], | ||
n ); | ||
#! <A morphism in FinSets> | ||
g := MapOfFinSets( | ||
m, | ||
[ [ 1, 5 ], [ 2, 5 ], [ 3, 4 ], [ 4, 4 ], [ 5, 5 ] ], | ||
m ); | ||
#! <A morphism in FinSets> | ||
IsColiftable( f, g ); | ||
#! true | ||
chi := Colift( f, g ); | ||
#! <A morphism in FinSets> | ||
Display( chi ); | ||
#! [ [ 1 .. 4 ], [ [ 1, 4 ], [ 2, 5 ], [ 3, 5 ], [ 4, 1 ] ], [ 1 .. 5 ] ] | ||
PreCompose( f, Colift( f, g ) ) = g; | ||
#! true | ||
IsColiftable( g, f ); | ||
#! false | ||
#! @EndExample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters