Goto Chapter: Top 1 2 3 4 5 6 Ind
 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 

2 Examples and Tests
 2.1 Test functions

2 Examples and Tests

2.1 Test functions

2.1-1 AdditiveMonoidalCategoriesTest
‣ AdditiveMonoidalCategoriesTest( cat, a, L )( function )

The arguments are

This function checks for every operation declared in AdditiveMonoidalCategories.gd if it is computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-2 TestBraidingForInvertibility
‣ TestBraidingForInvertibility( cat, obj_1, obj_2 )( operation )

Returns: a boolean

This is a debug operation. The arguments are three objects obj_1, obj_2 in a braided monoidal category cat. The output is true if the braiding is invertible, false otherwise.

2.1-3 TestBraidingCompatibility
‣ TestBraidingCompatibility( cat, obj_1, obj_2, obj_3 )( operation )

Returns: a boolean

This is a debug operation. The arguments are three objects obj_1, obj_2, obj_3 in a braided monoidal category cat. The output is true if the braiding compatabilities with the associator hold, false otherwise.

2.1-4 TestBraidingCompatibilityForAllTriplesInList
‣ TestBraidingCompatibilityForAllTriplesInList( cat, L )( operation )

Returns: a boolean

This is a debug operation. The argument is a list L of objects in a braided monoidal category cat. The output is true if the braiding compatabilities with the associator hold for all triples of objects in L, otherwise false.

2.1-5 BraidedMonoidalCategoriesTest
‣ BraidedMonoidalCategoriesTest( cat, a, b )( function )

The arguments are

This function checks for every operation declared in BraidedMonoidalCategories.gd if it is computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-6 ClosedMonoidalCategoriesTest
‣ ClosedMonoidalCategoriesTest( cat, a, b, c, d, alpha, beta, gamma, delta, epsilon, zeta )( function )

The arguments are

This function checks for every operation declared in ClosedMonoidalCategories.gd if it is computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-7 ClosedMonoidalCategoriesTestWithGiven
‣ ClosedMonoidalCategoriesTestWithGiven( cat, a, b, c, d, alpha, beta )( function )

The arguments are

This function checks for some *WithGiven operations declared in ClosedMonoidalCategories.gd if they are computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-8 CoclosedMonoidalCategoriesTest
‣ CoclosedMonoidalCategoriesTest( cat, a, b, c, d, alpha, beta, gamma, delta, epsilon, zeta )( function )

The arguments are

This function checks for every operation declared in CoclosedMonoidalCategories.gd if it is computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-9 CoclosedMonoidalCategoriesTestWithGiven
‣ CoclosedMonoidalCategoriesTestWithGiven( cat, a, b, c, d, alpha, beta, gamma, delta, epsilon, zeta )( function )

The arguments are

This function checks for some *WithGiven operations declared in CoclosedMonoidalCategories.gd if they are computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-10 LeftClosedMonoidalCategoriesTest
‣ LeftClosedMonoidalCategoriesTest( cat, a, b, c, d, alpha, beta, gamma, delta, epsilon, zeta )( function )

The arguments are

This function checks for every operation declared in LeftClosedMonoidalCategories.gd if it is computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-11 LeftClosedMonoidalCategoriesTestWithGiven
‣ LeftClosedMonoidalCategoriesTestWithGiven( cat, a, b, c, d, alpha, beta, gamma, delta, epsilon, zeta )( function )

The arguments are

This function checks for some *WithGiven operationS declared in LeftClosedMonoidalCategories.gd if they are computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-12 LeftCoclosedMonoidalCategoriesTest
‣ LeftCoclosedMonoidalCategoriesTest( cat, a, b, c, d, alpha, beta, gamma, delta, epsilon, zeta )( function )

The arguments are

This function checks for every operation declared in LeftCoclosedMonoidalCategories.gd if it is computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-13 LeftCoclosedMonoidalCategoriesTestWithGiven
‣ LeftCoclosedMonoidalCategoriesTestWithGiven( cat, a, b, c, d, alpha, beta, gamma, delta, epsilon, zeta )( function )

The arguments are

This function checks for some *WithGiven operations declared in LeftCoclosedMonoidalCategories.gd if they are computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-14 MonoidalCategoriesTensorProductOnObjectsAndTensorUnitTest
‣ MonoidalCategoriesTensorProductOnObjectsAndTensorUnitTest( cat, a, b )( function )

The arguments are

This function checks for every operation declared in MonoidalCategoriesTensorProductOnObjectsAndTensorUnit.gd if it is computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-15 TestMonoidalUnitorsForInvertibility
‣ TestMonoidalUnitorsForInvertibility( cat, obj )( operation )

Returns: a boolean

This is a debug operation. The arguments are two objects obj in a monoidal category cat. The output is true if the left and right unitors are invertible for obj.

2.1-16 TestAssociatorForInvertibility
‣ TestAssociatorForInvertibility( cat, obj_1, obj_2, obj_3 )( operation )

Returns: a boolean

This is a debug operation. The arguments are two objects obj_1, obj_2, obj_3 in a monoidal category cat. The output is true if the associator are invertible for these 3 objects, false otherwise.

2.1-17 TestMonoidalTriangleIdentity
‣ TestMonoidalTriangleIdentity( cat, obj_1, obj_2 )( operation )

Returns: a boolean

This is a debug operation. The arguments are two objects obj_1, obj_2 in a monoidal category cat. The output is true if the triangle identity holds for these 2 objects, false otherwise.

2.1-18 TestMonoidalTriangleIdentityForAllPairsInList
‣ TestMonoidalTriangleIdentityForAllPairsInList( cat, L )( operation )

Returns: a boolean

This is a debug operation. The argument is a list L of objects in a monoidal category cat. The output is true if the triangle identity holds for all pairs of objects in L, otherwise false.

2.1-19 TestMonoidalPentagonIdentity
‣ TestMonoidalPentagonIdentity( cat, obj_1, obj_2, obj_3, obj_4 )( operation )

Returns: a boolean

This is a debug operation. The arguments are 4 objects obj_1, obj_2, obj_3, obj_4 in a monoidal category cat. The output is true if the pentagon identity holds for these 4 objects, false otherwise.

2.1-20 TestMonoidalPentagonIdentityUsingWithGivenOperations
‣ TestMonoidalPentagonIdentityUsingWithGivenOperations( cat, obj_1, obj_2, obj_3, obj_4 )( operation )

Returns: a boolean

This is a debug operation. The arguments are 4 objects obj_1, obj_2, obj_3, obj_4 in a monoidal category cat. The output is true if the pentagon identity holds for these 4 objects, false otherwise. This test uses the WithGiven-operations.

2.1-21 TestMonoidalPentagonIdentityForAllQuadruplesInList
‣ TestMonoidalPentagonIdentityForAllQuadruplesInList( cat, L )( operation )

Returns: a boolean

This is a debug operation. The argument is a list L of objects in a monoidal category cat. The output is true if the pentagon identity holds for all quadruples of objects in L, otherwise false.

2.1-22 MonoidalCategoriesTest
‣ MonoidalCategoriesTest( cat, a, b, c, alpha, beta )( function )

The arguments are

This function checks for every operation declared in MonoidalCategories.gd if it is computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-23 TestZigZagIdentitiesForDual
‣ TestZigZagIdentitiesForDual( cat, obj )( operation )

Returns: a boolean

This is a debug operation. The argument is an object obj in a rigid symmetric monoidal category cat. The output is true if the zig zag identity for duals hold, false otherwise.

2.1-24 RigidSymmetricClosedMonoidalCategoriesTest
‣ RigidSymmetricClosedMonoidalCategoriesTest( cat, a, b, c, d, alpha )( function )

The arguments are

This function checks for every object and morphism declared in RigidSymmetricClosedMonoidalCategories.gd if it is computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

2.1-25 RigidSymmetricCoclosedMonoidalCategoriesTest
‣ RigidSymmetricCoclosedMonoidalCategoriesTest( cat, a, b, c, d, alpha )( function )

The arguments are

This function checks for every object and morphism declared in RigidSymmetricCoclosedMonoidalCategories.gd if it is computable in the CAP category cat. If yes, then the operation is executed with the parameters given above and compared to the equivalent computation in the opposite category of cat. Pass the options

 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 
Goto Chapter: Top 1 2 3 4 5 6 Ind

generated by GAPDoc2HTML