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

3 Examples and Tests
 3.1 Test functions
 3.2 InfoOfInstalledOperationsOfCategory

3 Examples and Tests

3.1 Test functions

3.1-1 BraidedCartesianCategoriesTest
‣ BraidedCartesianCategoriesTest( cat, a, b )( function )

The arguments are

This function checks for every operation declared in BraidedCartesianCategories.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

3.1-2 BraidedCocartesianCategoriesTest
‣ BraidedCocartesianCategoriesTest( cat, a, b )( function )

The arguments are

This function checks for every operation declared in BraidedCocartesianCategories.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

3.1-3 CartesianCategoriesTest
‣ CartesianCategoriesTest( cat, a, b, c, alpha, beta )( function )

The arguments are

This function checks for every operation declared in CartesianCategories.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

3.1-4 CartesianClosedCategoriesTest
‣ CartesianClosedCategoriesTest( cat, a, b, c, d, alpha, beta, gamma, delta, epsilon, zeta )( function )

The arguments are

This function checks for every operation declared in CartesianClosedCategories.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

3.1-5 CocartesianCategoriesTest
‣ CocartesianCategoriesTest( cat, a, b, c, alpha, beta )( function )

The arguments are

This function checks for every operation declared in CocartesianCategories.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

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

The arguments are

This function checks for every operation declared in CocartesianCoclosedCategories.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

3.1-7 CodistributiveCocartesianCategoriesTest
‣ CodistributiveCocartesianCategoriesTest( cat, a, L )( function )

The arguments are

This function checks for every operation declared in CodistributiveCocartesianCategories.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

3.1-8 DistributiveCartesianCategoriesTest
‣ DistributiveCartesianCategoriesTest( cat, a, L )( function )

The arguments are

This function checks for every operation declared in DistributiveCartesianCategories.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

3.2 InfoOfInstalledOperationsOfCategory

gap> LoadPackage( "CartesianCategories", false );
true
gap> distributive := DummyCategory( rec(
>   list_of_operations_to_install :=
>     DuplicateFreeList( Concatenation(
>       CAP_INTERNAL_CONSTRUCTIVE_CATEGORIES_RECORD.IsCartesianClosedCategory,
>       CAP_INTERNAL_CONSTRUCTIVE_CATEGORIES_RECORD.IsCocartesianCategory ) ),
>   properties := [ "IsBicartesianClosedCategory", "IsSkeletalCategory" ] ) );;
gap> InfoOfInstalledOperationsOfCategory( distributive );
21 primitive operations were used to derive 121 operations for this category \
which algorithmically
* IsBicartesianClosedCategory
and not yet algorithmically
* IsDistributiveCategory
and furthermore mathematically
* IsSkeletalCategory
 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 
Goto Chapter: Top 1 2 3 4 5 6 Ind

generated by GAPDoc2HTML