-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added monoidal structure to AdditiveClosure
- Loading branch information
1 parent
6bbb7db
commit 0ef4253
Showing
2 changed files
with
337 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#! @Chapter Examples and Tests | ||
|
||
#! @Section Monoidal structure of AdditiveClosure | ||
|
||
#! @Example | ||
LoadPackage( "FreydCategoriesForCAP", false ); | ||
#! true | ||
T := TerminalCategoryWithMultipleObjects( ); | ||
#! TerminalCategoryWithMultipleObjects( ) | ||
A := "A" / T; | ||
#! <A zero object in TerminalCategoryWithMultipleObjects( )> | ||
B := "B" / T; | ||
#! <A zero object in TerminalCategoryWithMultipleObjects( )> | ||
AT := AdditiveClosure( T ); | ||
#! AdditiveClosure( TerminalCategoryWithMultipleObjects( ) ) | ||
ABAA := [ A, B, A, A ] / AT; | ||
#! <An object in AdditiveClosure( TerminalCategoryWithMultipleObjects( ) ) | ||
#! defined by 4 underlying objects> | ||
IsWellDefined( ABAA ); | ||
#! true | ||
BAB := [ B, A, B ] / AT; | ||
#! <An object in AdditiveClosure( TerminalCategoryWithMultipleObjects( ) ) | ||
#! defined by 3 underlying objects> | ||
IsWellDefined( BAB ); | ||
#! true | ||
mor_AB := MorphismConstructor( A, "A -> B", B ); | ||
#! <A zero, isomorphism in TerminalCategoryWithMultipleObjects( )> | ||
mor_BA := MorphismConstructor( B, "B -> A", A ); | ||
#! <A zero, isomorphism in TerminalCategoryWithMultipleObjects( )> | ||
id_A := IdentityMorphism( A ); | ||
#! <A zero, identity morphism in TerminalCategoryWithMultipleObjects( )> | ||
id_B := IdentityMorphism( B ); | ||
#! <A zero, identity morphism in TerminalCategoryWithMultipleObjects( )> | ||
alpha := MorphismConstructor( ABAA, | ||
[ [ mor_AB, id_A, mor_AB ], | ||
[ id_B, mor_BA, id_B ], | ||
[ mor_AB, id_A, mor_AB ], | ||
[ mor_AB, id_A, mor_AB ] ], | ||
BAB ); | ||
#! <A morphism in AdditiveClosure( TerminalCategoryWithMultipleObjects( ) ) | ||
#! defined by a 4 x 3 matrix of underlying morphisms> | ||
IsWellDefined( alpha ); | ||
#! true | ||
alpha2 := TensorProduct( alpha, alpha ); | ||
#! <A morphism in AdditiveClosure( TerminalCategoryWithMultipleObjects( ) ) | ||
#! defined by a 16 x 9 matrix of underlying morphisms> | ||
IsWellDefined( alpha2 ); | ||
#! true | ||
IsIsomorphism( alpha2 ); | ||
#! true | ||
left := LeftUnitor( ABAA ); | ||
#! <A morphism in AdditiveClosure( TerminalCategoryWithMultipleObjects( ) ) | ||
#! defined by a 4 x 4 matrix of underlying morphisms> | ||
IsWellDefined( left ); | ||
#! true | ||
left_inv := LeftUnitorInverse( ABAA ); | ||
#! <A morphism in AdditiveClosure( TerminalCategoryWithMultipleObjects( ) ) | ||
#! defined by a 4 x 4 matrix of underlying morphisms> | ||
IsOne( PreCompose( left, left_inv ) ); | ||
#! true | ||
IsOne( PreCompose( left_inv, left ) ); | ||
#! true | ||
right := RightUnitor( BAB ); | ||
#! <A morphism in AdditiveClosure( TerminalCategoryWithMultipleObjects( ) ) | ||
#! defined by a 3 x 3 matrix of underlying morphisms> | ||
IsWellDefined( right ); | ||
#! true | ||
right_inv := RightUnitorInverse( BAB ); | ||
#! <A morphism in AdditiveClosure( TerminalCategoryWithMultipleObjects( ) ) | ||
#! defined by a 3 x 3 matrix of underlying morphisms> | ||
IsOne( PreCompose( right, right_inv ) ); | ||
#! true | ||
IsOne( PreCompose( right_inv, right ) ); | ||
#! true | ||
#! @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