|
7 | 7 |
|
8 | 8 |
|
9 | 9 |
|
| 10 | +## |
| 11 | +InstallMethod( TestCocartesianBraidingCompatability, |
| 12 | + [ IsCapCategoryObject, IsCapCategoryObject, IsCapCategoryObject ], |
| 13 | + |
| 14 | + function( object_a, object_b, object_c ) |
| 15 | + local morphism_1, morphism_2; |
| 16 | + |
| 17 | + morphism_1 := CocartesianBraiding( Coproduct( object_a, object_b ), object_c ); |
| 18 | + |
| 19 | + morphism_1 := PreCompose( morphism_1, CocartesianAssociatorRightToLeft( object_c, object_a, object_b ) ); |
| 20 | + |
| 21 | + morphism_1 := PreCompose( morphism_1, |
| 22 | + CoproductOnMorphisms( CocartesianBraiding( object_c, object_a ), IdentityMorphism( object_b ) ) ); |
| 23 | + |
| 24 | + morphism_2 := CocartesianAssociatorLeftToRight( object_a, object_b, object_c ); |
| 25 | + |
| 26 | + morphism_2 := PreCompose( morphism_2, |
| 27 | + CoproductOnMorphisms( IdentityMorphism( object_a ), CocartesianBraiding( object_b, object_c ) ) ); |
| 28 | + |
| 29 | + morphism_2 := PreCompose( morphism_2, CocartesianAssociatorRightToLeft( object_a, object_c, object_b ) ); |
| 30 | + |
| 31 | + if not ( morphism_1 = morphism_2 ) then |
| 32 | + |
| 33 | + return false; |
| 34 | + |
| 35 | + fi; |
| 36 | + |
| 37 | + morphism_1 := CocartesianBraiding( object_a, Coproduct( object_b, object_c ) ); |
| 38 | + |
| 39 | + morphism_1 := PreCompose( morphism_1, CocartesianAssociatorLeftToRight( object_b, object_c, object_a ) ); |
| 40 | + |
| 41 | + morphism_1 := PreCompose( morphism_1, |
| 42 | + CoproductOnMorphisms( IdentityMorphism( object_b ), CocartesianBraiding( object_c, object_a ) ) ); |
| 43 | + |
| 44 | + morphism_2 := CocartesianAssociatorRightToLeft( object_a, object_b, object_c ); |
| 45 | + |
| 46 | + morphism_2 := PreCompose( morphism_2, |
| 47 | + CoproductOnMorphisms( CocartesianBraiding( object_a, object_b ), IdentityMorphism( object_c ) ) ); |
| 48 | + |
| 49 | + morphism_2 := PreCompose( morphism_2, CocartesianAssociatorLeftToRight( object_b, object_a, object_c ) ); |
| 50 | + |
| 51 | + return morphism_1 = morphism_2; |
| 52 | + |
| 53 | +end ); |
| 54 | + |
| 55 | +## |
| 56 | +InstallMethod( TestCocartesianBraidingCompatabilityForAllTriplesInList, |
| 57 | + [ IsList ], |
| 58 | + |
| 59 | + function( object_list ) |
| 60 | + local a, b, c, size, list, test; |
| 61 | + |
| 62 | + size := Size( object_list ); |
| 63 | + |
| 64 | + list := [ 1 .. size ]; |
| 65 | + |
| 66 | + for a in list do |
| 67 | + |
| 68 | + for b in list do |
| 69 | + |
| 70 | + for c in list do |
| 71 | + |
| 72 | + test := TestCocartesianBraidingCompatability( object_list[a], object_list[b], object_list[c] ); |
| 73 | + |
| 74 | + if not test then |
| 75 | + |
| 76 | + Print( "indices of failing triple: ", [ a, b, c ], "\n" ); |
| 77 | + |
| 78 | + return false; |
| 79 | + |
| 80 | + fi; |
| 81 | + |
| 82 | + od; |
| 83 | + |
| 84 | + od; |
| 85 | + |
| 86 | + od; |
| 87 | + |
| 88 | +end ); |
| 89 | + |
| 90 | +## |
10 | 91 | InstallGlobalFunction( "BraidedCocartesianCategoriesTest", |
11 | 92 |
|
12 | 93 | function( cat, opposite, a, b ) |
|
0 commit comments