Skip to content

Commit 9c414b2

Browse files
Update to MonoidalCategories/CartesianCategories v2025.07-04
1 parent bb6be4a commit 9c414b2

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
"Sebastian Posur <sebastian.posur@uni-muenster.de>",
88
"Fabian Zickgraf <f.zickgraf@dashdos.com>",
99
]
10-
version = "0.2.6"
10+
version = "0.2.7"
1111

1212
[deps]
1313
CAP = "d64df2ee-d2bb-46f4-8cbc-f03bb858f8cb"

src/gap/MonoidalCategoriesTest.gd.autogen.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88

99
#! @Section Test functions
1010

11+
#! @Description
12+
#! This is a debug operation.
13+
#! The arguments are two objects $obj$ in a monoidal category $cat$.
14+
#! The output is true if the left and right unitors are invertible for $obj$.
15+
#! @Returns a boolean
16+
#! @Arguments cat, obj
17+
@DeclareOperation( "TestMonoidalUnitorsForInvertibility",
18+
[ IsCapCategory, IsCapCategoryObject ] );
19+
1120
#! @Description
1221
#! This is a debug operation.
1322
#! The arguments are two objects $obj_1, obj_2$ in a monoidal category $cat$.

src/gap/MonoidalCategoriesTest.gi.autogen.jl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@
44
# Implementations
55
#
66

7+
##
8+
@InstallMethod( TestMonoidalUnitorsForInvertibility,
9+
[ IsCapCategory, IsCapCategoryObject ],
10+
11+
function( cat, object )
12+
13+
@Assert( 0, HasIsMonoidalCategory( cat ) && IsMonoidalCategory( cat ) );
14+
@Assert( 0, IsIdenticalObj( cat, CapCategory( object ) ) );
15+
16+
return IsOne( PreCompose( LeftUnitor( object ), LeftUnitorInverse( object ) ) ) &&
17+
IsOne( PreCompose( LeftUnitorInverse( object ), LeftUnitor( object ) ) ) &&
18+
IsOne( PreCompose( RightUnitor( object ), RightUnitorInverse( object ) ) ) &&
19+
IsOne( PreCompose( RightUnitorInverse( object ), RightUnitor( object ) ) );
20+
21+
end );
22+
723
##
824
@InstallMethod( TestMonoidalTriangleIdentity,
925
[ IsCapCategory, IsCapCategoryObject, IsCapCategoryObject ],
@@ -289,6 +305,8 @@ end );
289305

290306
if (IsEmpty( MissingOperationsForConstructivenessOfCategory( cat, "IsMonoidalCategory" ) ))
291307

308+
@Assert( 0, ForAll( [ a, b, c ], obj -> TestMonoidalUnitorsForInvertibility( cat, obj ) ) );
309+
292310
@Assert( 0, TestMonoidalTriangleIdentityForAllPairsInList( cat, [ a, b, c ] ) );
293311

294312
@Assert( 0, TestMonoidalPentagonIdentity( cat, a, b, c, b ) );
@@ -299,6 +317,8 @@ end );
299317

300318
if (IsEmpty( MissingOperationsForConstructivenessOfCategory( opposite, "IsMonoidalCategory" ) ))
301319

320+
@Assert( 0, ForAll( [ a_op, b_op, c_op ], obj -> TestMonoidalUnitorsForInvertibility( opposite, obj ) ) );
321+
302322
@Assert( 0, TestMonoidalTriangleIdentityForAllPairsInList( opposite, [ a_op, b_op, c_op ] ) );
303323

304324
@Assert( 0, TestMonoidalPentagonIdentity( opposite, a_op, b_op, c_op, b_op ) );

0 commit comments

Comments
 (0)