Skip to content

Commit ea2eb9b

Browse files
use Braiding(Inverse)WithGivenTensorProducts in derivations
1 parent 9c6986f commit ea2eb9b

6 files changed

Lines changed: 46 additions & 22 deletions

File tree

CartesianCategories/PackageInfo.g

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "CartesianCategories",
1212
Subtitle := "Cartesian and cocartesian categories and various subdoctrines",
13-
Version := "2026.07-03",
13+
Version := "2026.08-01",
1414
Date := ~.Version{[ 1 .. 10 ]},
1515
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
1616
License := "GPL-2.0-or-later",
@@ -99,7 +99,7 @@ Dependencies := rec(
9999
GAP := ">= 4.13.0",
100100
NeededOtherPackages := [
101101
[ "CAP", ">= 2026.06-01" ],
102-
[ "MonoidalCategories", ">= 2026.07-02" ],
102+
[ "MonoidalCategories", ">= 2026.08-01" ],
103103
],
104104
SuggestedOtherPackages := [ ],
105105
ExternalConditions := [ ],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
The files of this package which include the line `THIS FILE WAS AUTOMATICALLY GENERATED` in their header have been autogenerated
22

3-
* from MonoidalCategories v2026.07-02
3+
* from MonoidalCategories v2026.08-01

CartesianCategories/gap/BraidedCartesianCategoriesDerivedMethods.gi

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,30 @@
1111
AddDerivationToCAP( CartesianBraidingInverseWithGivenDirectProducts,
1212
"CartesianBraidingInverseWithGivenDirectProducts as the inverse of the braiding",
1313
[ [ InverseForMorphisms, 1 ],
14-
[ CartesianBraiding, 1 ] ],
14+
[ CartesianBraidingWithGivenDirectProducts, 1 ] ],
1515

1616
function( cat, object_2_x_object_1, object_1, object_2, object_1_x_object_2 )
17-
##TODO: Use CartesianBraidingWithGiven
18-
return InverseForMorphisms( cat, CartesianBraiding( cat, object_1, object_2 ) );
17+
18+
return InverseForMorphisms( cat,
19+
CartesianBraidingWithGivenDirectProducts( cat,
20+
object_1_x_object_2,
21+
object_1, object_2,
22+
object_2_x_object_1 ) );
1923

2024
end : CategoryFilter := IsCartesianCategory );
2125

2226
##
2327
AddDerivationToCAP( CartesianBraidingWithGivenDirectProducts,
2428
"CartesianBraidingWithGivenDirectProducts as the inverse of CartesianBraidingInverse",
2529
[ [ InverseForMorphisms, 1 ],
26-
[ CartesianBraidingInverse, 1 ] ],
30+
[ CartesianBraidingInverseWithGivenDirectProducts, 1 ] ],
2731

2832
function( cat, object_1_x_object_2, object_1, object_2, object_2_x_object_1 )
29-
##TODO: Use CartesianBraidingInverseWithGiven
30-
return InverseForMorphisms( cat, CartesianBraidingInverse( cat, object_1, object_2 ) );
33+
34+
return InverseForMorphisms( cat,
35+
CartesianBraidingInverseWithGivenDirectProducts( cat,
36+
object_2_x_object_1,
37+
object_1, object_2,
38+
object_1_x_object_2 ) );
3139

3240
end : CategoryFilter := IsCartesianCategory );

CartesianCategories/gap/BraidedCocartesianCategoriesDerivedMethods.gi

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,30 @@
1111
AddDerivationToCAP( CocartesianBraidingInverseWithGivenCoproducts,
1212
"CocartesianBraidingInverseWithGivenCoproducts as the inverse of the braiding",
1313
[ [ InverseForMorphisms, 1 ],
14-
[ CocartesianBraiding, 1 ] ],
14+
[ CocartesianBraidingWithGivenCoproducts, 1 ] ],
1515

1616
function( cat, object_2_u_object_1, object_1, object_2, object_1_u_object_2 )
17-
##TODO: Use CocartesianBraidingWithGiven
18-
return InverseForMorphisms( cat, CocartesianBraiding( cat, object_1, object_2 ) );
17+
18+
return InverseForMorphisms( cat,
19+
CocartesianBraidingWithGivenCoproducts( cat,
20+
object_1_u_object_2,
21+
object_1, object_2,
22+
object_2_u_object_1 ) );
1923

2024
end : CategoryFilter := IsCocartesianCategory );
2125

2226
##
2327
AddDerivationToCAP( CocartesianBraidingWithGivenCoproducts,
2428
"CocartesianBraidingWithGivenCoproducts as the inverse of CocartesianBraidingInverse",
2529
[ [ InverseForMorphisms, 1 ],
26-
[ CocartesianBraidingInverse, 1 ] ],
30+
[ CocartesianBraidingInverseWithGivenCoproducts, 1 ] ],
2731

2832
function( cat, object_1_u_object_2, object_1, object_2, object_2_u_object_1 )
29-
##TODO: Use CocartesianBraidingInverseWithGiven
30-
return InverseForMorphisms( cat, CocartesianBraidingInverse( cat, object_1, object_2 ) );
33+
34+
return InverseForMorphisms( cat,
35+
CocartesianBraidingInverseWithGivenCoproducts( cat,
36+
object_2_u_object_1,
37+
object_1, object_2,
38+
object_1_u_object_2 ) );
3139

3240
end : CategoryFilter := IsCocartesianCategory );

MonoidalCategories/PackageInfo.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "MonoidalCategories",
1212
Subtitle := "Monoidal and monoidal (co)closed categories",
13-
Version := "2026.07-03",
13+
Version := "2026.08-01",
1414
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
1515
License := "GPL-2.0-or-later",
1616

MonoidalCategories/gap/BraidedMonoidalCategoriesDerivedMethods.gi

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,30 @@
88
AddDerivationToCAP( BraidingInverseWithGivenTensorProducts,
99
"BraidingInverseWithGivenTensorProducts as the inverse of the braiding",
1010
[ [ InverseForMorphisms, 1 ],
11-
[ Braiding, 1 ] ],
11+
[ BraidingWithGivenTensorProducts, 1 ] ],
1212

1313
function( cat, object_2_tensored_object_1, object_1, object_2, object_1_tensored_object_2 )
14-
##TODO: Use BraidingWithGiven
15-
return InverseForMorphisms( cat, Braiding( cat, object_1, object_2 ) );
14+
15+
return InverseForMorphisms( cat,
16+
BraidingWithGivenTensorProducts( cat,
17+
object_1_tensored_object_2,
18+
object_1, object_2,
19+
object_2_tensored_object_1 ) );
1620

1721
end : CategoryFilter := IsBraidedMonoidalCategory );
1822

1923
##
2024
AddDerivationToCAP( BraidingWithGivenTensorProducts,
2125
"BraidingWithGivenTensorProducts as the inverse of BraidingInverse",
2226
[ [ InverseForMorphisms, 1 ],
23-
[ BraidingInverse, 1 ] ],
27+
[ BraidingInverseWithGivenTensorProducts, 1 ] ],
2428

2529
function( cat, object_1_tensored_object_2, object_1, object_2, object_2_tensored_object_1 )
26-
##TODO: Use BraidingInverseWithGiven
27-
return InverseForMorphisms( cat, BraidingInverse( cat, object_1, object_2 ) );
30+
31+
return InverseForMorphisms( cat,
32+
BraidingInverseWithGivenTensorProducts( cat,
33+
object_2_tensored_object_1,
34+
object_1, object_2,
35+
object_1_tensored_object_2 ) );
2836

2937
end : CategoryFilter := IsBraidedMonoidalCategory );

0 commit comments

Comments
 (0)