Skip to content

Commit b3159d0

Browse files
renamed IsSkeletalFiniteSet(Map) -> IsObject/MorphismInCategoryOfSkeletalFinSets
1 parent ab85ff2 commit b3159d0

File tree

5 files changed

+37
-37
lines changed

5 files changed

+37
-37
lines changed

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 := "FinSetsForCAP",
1212
Subtitle := "The elementary topos of (skeletal) finite sets",
13-
Version := "2023.05-09",
13+
Version := "2023.05-10",
1414

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",

gap/CompilerLogic.gi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ end );
154154
## Teach CompilerForCAP about the input type of the function so it can correctly type the function,
155155
## that can be done with the following code (adapted from the existing List type signature):
156156
##
157-
CapJitAddTypeSignature( "List", [ IsSkeletalFiniteSet, IsFunction ], function ( args, func_stack )
157+
CapJitAddTypeSignature( "List", [ IsObjectInCategoryOfSkeletalFinSets, IsFunction ], function ( args, func_stack )
158158

159159
args := ShallowCopy( args );
160160

@@ -175,7 +175,7 @@ end );
175175
CapJitAddLogicTemplate(
176176
rec(
177177
variable_names := [ "M", "func" ],
178-
variable_filters := [ IsSkeletalFiniteSet, IsObject ],
178+
variable_filters := [ IsObjectInCategoryOfSkeletalFinSets, IsObject ],
179179
src_template := "List( M, func )",
180180
dst_template := "List( [ 0 .. Length( M ) - 1 ], func )",
181181
)

gap/Julia.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ end );
3333

3434
##
3535
InstallMethod( MapOfFinSets,
36-
[ IsSkeletalFiniteSet, IsJuliaObject, IsSkeletalFiniteSet ],
36+
[ IsObjectInCategoryOfSkeletalFinSets, IsJuliaObject, IsObjectInCategoryOfSkeletalFinSets ],
3737

3838
function ( source, graph, range )
3939

gap/SkeletalFinSets.gd

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ DeclareCategory( "IsCategoryOfSkeletalFinSets",
1919
#! The GAP category of objects in the category
2020
#! of skeletal finite sets.
2121
#! @Arguments object
22-
DeclareCategory( "IsSkeletalFiniteSet",
22+
DeclareCategory( "IsObjectInCategoryOfSkeletalFinSets",
2323
IsCapCategoryObject );
2424

2525
#! @Description
2626
#! The GAP category of morphisms in the category
2727
#! of skeletal finite sets.
2828
#! @Arguments object
29-
DeclareCategory( "IsSkeletalFiniteSetMap",
29+
DeclareCategory( "IsMorphismInCategoryOfSkeletalFinSets",
3030
IsCapCategoryMorphism );
3131

3232
#! @Section Attributes
@@ -37,28 +37,28 @@ DeclareCategory( "IsSkeletalFiniteSetMap",
3737
#! @Arguments M
3838
#! @Returns an integer
3939
DeclareAttribute( "Length",
40-
IsSkeletalFiniteSet );
40+
IsObjectInCategoryOfSkeletalFinSets );
4141

42-
CapJitAddTypeSignature( "Length", [ IsSkeletalFiniteSet ], IsBigInt );
42+
CapJitAddTypeSignature( "Length", [ IsObjectInCategoryOfSkeletalFinSets ], IsBigInt );
4343

4444
#! @Description
4545
#! The list associated to a skeletal finite set, i.e.,
4646
#! <C>AsList( FinSet( n ) ) = [ 0 .. n - 1 ]</C>.
4747
#! @Arguments M
4848
#! @Returns a list
4949
DeclareAttribute( "AsList",
50-
IsSkeletalFiniteSet );
50+
IsObjectInCategoryOfSkeletalFinSets );
5151

52-
CapJitAddTypeSignature( "AsList", [ IsSkeletalFiniteSet ], rec( filter := IsList, element_type := rec( filter := IsBigInt ) ) );
52+
CapJitAddTypeSignature( "AsList", [ IsObjectInCategoryOfSkeletalFinSets ], rec( filter := IsList, element_type := rec( filter := IsBigInt ) ) );
5353

5454
#! @Description
55-
#! The graph defining the skeletal finite set morphism <A>phi</A>, see <Ref Oper="MapOfFinSets" Label="for IsSkeletalFiniteSet, IsList, IsSkeletalFiniteSet" />.
55+
#! The graph defining the skeletal finite set morphism <A>phi</A>, see <Ref Oper="MapOfFinSets" Label="for IsObjectInCategoryOfSkeletalFinSets, IsList, IsObjectInCategoryOfSkeletalFinSets" />.
5656
#! @Arguments phi
5757
#! @Returns a list
5858
DeclareAttribute( "AsList",
59-
IsSkeletalFiniteSetMap );
59+
IsMorphismInCategoryOfSkeletalFinSets );
6060

61-
CapJitAddTypeSignature( "AsList", [ IsSkeletalFiniteSetMap ], rec( filter := IsList, element_type := rec( filter := IsBigInt ) ) );
61+
CapJitAddTypeSignature( "AsList", [ IsMorphismInCategoryOfSkeletalFinSets ], rec( filter := IsList, element_type := rec( filter := IsBigInt ) ) );
6262

6363
#! @Section Constructors
6464

@@ -97,7 +97,7 @@ KeyDependentOperation( "FinSet", IsCategoryOfSkeletalFinSets, IsBigInt, ReturnTr
9797
#! @Arguments s, G, t
9898
#! @Returns a &CAP; morphism
9999
DeclareOperation( "MapOfFinSets",
100-
[ IsSkeletalFiniteSet, IsList, IsSkeletalFiniteSet ] );
100+
[ IsObjectInCategoryOfSkeletalFinSets, IsList, IsObjectInCategoryOfSkeletalFinSets ] );
101101
#! @InsertChunk SkeletalMapOfFinSets
102102

103103
#! @Section Tools
@@ -107,42 +107,42 @@ DeclareOperation( "MapOfFinSets",
107107
#! @Arguments s, f
108108
#! @Returns a list
109109
DeclareOperation( "ListOp",
110-
[ IsSkeletalFiniteSet, IsFunction ] );
110+
[ IsObjectInCategoryOfSkeletalFinSets, IsFunction ] );
111111

112112
#! @Description
113113
#! Construct the embedding $\iota:$<A>s</A>$\to$<A>t</A> of the finite sets <A>s</A> and <A>t</A>,
114114
#! where <A>s</A> must be subset of <A>t</A>.
115115
#! @Arguments s, t
116116
#! @Returns a &CAP; morphism
117117
DeclareOperation( "EmbeddingOfFinSets",
118-
[ IsSkeletalFiniteSet, IsSkeletalFiniteSet ] );
118+
[ IsObjectInCategoryOfSkeletalFinSets, IsObjectInCategoryOfSkeletalFinSets ] );
119119

120120
#! @Description
121121
#! Compute the Preimage of <A>t</A> under the morphism <A>phi</A>.
122122
#! @Arguments phi, t
123123
#! @Returns a &CAP; object
124124
DeclareOperation( "Preimage",
125-
[ IsSkeletalFiniteSetMap, IsList ] );
125+
[ IsMorphismInCategoryOfSkeletalFinSets, IsList ] );
126126

127127
#! @Description
128128
#! Compute the image of <A>s_</A> under the morphism <A>phi</A>.
129129
#! @Arguments phi, s_
130130
#! @Returns a &CAP; object
131131
DeclareOperation( "ImageObject",
132-
[ IsSkeletalFiniteSetMap, IsSkeletalFiniteSet ] );
132+
[ IsMorphismInCategoryOfSkeletalFinSets, IsObjectInCategoryOfSkeletalFinSets ] );
133133

134134
#! @Description
135135
#! Returns the image of <C><A>L</A>[1]</C> under the map <A>phi</A> assuming <C><A>L</A>[1]</C> is a nonnegative integer smaller than <C>Length( Source( <A>phi</A> ) )</C>.
136136
#! @Arguments phi, L
137137
#! @Returns a list
138138
# DeclareOperation( "CallFuncList",
139-
# [ IsSkeletalFiniteSetMap, IsList ] );
139+
# [ IsMorphismInCategoryOfSkeletalFinSets, IsList ] );
140140

141141
# Technical functions
142142
DeclareGlobalFunction( "INSTALL_FUNCTIONS_FOR_SKELETAL_FIN_SETS" );
143143

144144
DeclareGlobalFunction( "SKELETAL_FIN_SETS_ExplicitCoequalizer" );
145-
CapJitAddTypeSignature( "SKELETAL_FIN_SETS_ExplicitCoequalizer", [ IsSkeletalFiniteSet, IsList ], rec( filter := IsList, element_type := rec( filter := IsList, element_type := rec( filter := IsBigInt ) ) ) );
145+
CapJitAddTypeSignature( "SKELETAL_FIN_SETS_ExplicitCoequalizer", [ IsObjectInCategoryOfSkeletalFinSets, IsList ], rec( filter := IsList, element_type := rec( filter := IsList, element_type := rec( filter := IsBigInt ) ) ) );
146146

147147
DeclareGlobalFunction( "SKELETAL_FIN_SETS_IsMonomorphism" );
148148
CapJitAddTypeSignature( "SKELETAL_FIN_SETS_IsMonomorphism", [ IsList, IsBigInt ], IsBool );

gap/SkeletalFinSets.gi

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ InstallMethod( CategoryOfSkeletalFinSets,
1313

1414
cat := CreateCapCategoryWithDataTypes(
1515
"SkeletalFinSets", IsCategoryOfSkeletalFinSets,
16-
IsSkeletalFiniteSet, IsSkeletalFiniteSetMap, IsCapCategoryTwoCell,
16+
IsObjectInCategoryOfSkeletalFinSets, IsMorphismInCategoryOfSkeletalFinSets, IsCapCategoryTwoCell,
1717
IsBigInt, rec( filter := IsList, element_type := rec( filter := IsBigInt ) ), fail
1818
);
1919

@@ -63,7 +63,7 @@ end );
6363
##
6464
InstallMethod( AsList,
6565
"for a CAP skeletal finite set",
66-
[ IsSkeletalFiniteSet ],
66+
[ IsObjectInCategoryOfSkeletalFinSets ],
6767

6868
function ( s )
6969

@@ -74,7 +74,7 @@ end );
7474
##
7575
InstallMethod( ListOp,
7676
"for a CAP skeletal finite set and a function",
77-
[ IsSkeletalFiniteSet, IsFunction ],
77+
[ IsObjectInCategoryOfSkeletalFinSets, IsFunction ],
7878

7979
function ( s, f )
8080

@@ -87,7 +87,7 @@ end );
8787
##
8888
InstallOtherMethod( MapOfFinSets,
8989
"for a category of skeletal finite sets, two CAP skeletal finite sets and a list",
90-
[ IsCategoryOfSkeletalFinSets, IsSkeletalFiniteSet, IsList, IsSkeletalFiniteSet ],
90+
[ IsCategoryOfSkeletalFinSets, IsObjectInCategoryOfSkeletalFinSets, IsList, IsObjectInCategoryOfSkeletalFinSets ],
9191

9292
function ( cat, s, G, t )
9393

@@ -98,7 +98,7 @@ end );
9898
##
9999
InstallMethod( MapOfFinSets,
100100
"for two CAP skeletal finite sets and a list",
101-
[ IsSkeletalFiniteSet, IsList, IsSkeletalFiniteSet ],
101+
[ IsObjectInCategoryOfSkeletalFinSets, IsList, IsObjectInCategoryOfSkeletalFinSets ],
102102

103103
function ( s, G, t )
104104

@@ -109,7 +109,7 @@ end );
109109
##
110110
InstallMethod( EmbeddingOfFinSets,
111111
"for two CAP skeletal finite sets",
112-
[ IsSkeletalFiniteSet, IsSkeletalFiniteSet ],
112+
[ IsObjectInCategoryOfSkeletalFinSets, IsObjectInCategoryOfSkeletalFinSets ],
113113

114114
function ( s, t )
115115
local iota;
@@ -126,7 +126,7 @@ end );
126126
##
127127
InstallMethod( Preimage,
128128
"for a CAP map of skeletal finite sets and a CAP skeletal finite set",
129-
[ IsSkeletalFiniteSetMap, IsList ],
129+
[ IsMorphismInCategoryOfSkeletalFinSets, IsList ],
130130

131131
function ( phi, t )
132132
local S;
@@ -142,7 +142,7 @@ end );
142142
##
143143
InstallMethod( ImageObject,
144144
"for a CAP map of skeletal finite sets and a CAP skeletal finite set",
145-
[ IsSkeletalFiniteSetMap, IsSkeletalFiniteSet ],
145+
[ IsMorphismInCategoryOfSkeletalFinSets, IsObjectInCategoryOfSkeletalFinSets ],
146146
function ( phi, s_ )
147147

148148
return ImageObject( PreCompose( EmbeddingOfFinSets( s_, Source( phi ) ), phi ) );
@@ -152,7 +152,7 @@ end );
152152
##
153153
InstallMethod( CallFuncList,
154154
"for a CAP map of skeletal finite sets and a list",
155-
[ IsSkeletalFiniteSetMap, IsList ],
155+
[ IsMorphismInCategoryOfSkeletalFinSets, IsList ],
156156

157157
function ( phi, L )
158158
local x;
@@ -988,7 +988,7 @@ end );
988988
##
989989
InstallMethod( String,
990990
"for a CAP skeletal finite set",
991-
[ IsSkeletalFiniteSet ],
991+
[ IsObjectInCategoryOfSkeletalFinSets ],
992992

993993
function ( s )
994994
return Concatenation( "ObjectConstructor( SkeletalFinSets, ", String( Length( s ) ), " )" );
@@ -997,7 +997,7 @@ end );
997997
##
998998
InstallMethod( String,
999999
"for a CAP map of skeletal finite sets",
1000-
[ IsSkeletalFiniteSetMap ],
1000+
[ IsMorphismInCategoryOfSkeletalFinSets ],
10011001

10021002
function ( phi )
10031003
return Concatenation( "MorphismConstructor( SkeletalFinSets, ", String( Source( phi ) ), ", ", String( AsList( phi ) ), ", ", String( Range( phi ) ), " )" );
@@ -1006,7 +1006,7 @@ end );
10061006
##
10071007
InstallMethod( ViewString,
10081008
"for a CAP skeletal finite set",
1009-
[ IsSkeletalFiniteSet ],
1009+
[ IsObjectInCategoryOfSkeletalFinSets ],
10101010

10111011
function ( s )
10121012
return Concatenation( "|", String( Length( s ) ), "|" );
@@ -1015,7 +1015,7 @@ end );
10151015
##
10161016
InstallMethod( ViewString,
10171017
"for a CAP map of skeletal finite sets",
1018-
[ IsSkeletalFiniteSetMap ],
1018+
[ IsMorphismInCategoryOfSkeletalFinSets ],
10191019

10201020
function ( phi )
10211021
local arrow;
@@ -1049,7 +1049,7 @@ end );
10491049
##
10501050
InstallMethod( PrintString,
10511051
"for a CAP skeletal finite set",
1052-
[ IsSkeletalFiniteSet ],
1052+
[ IsObjectInCategoryOfSkeletalFinSets ],
10531053

10541054
function ( s )
10551055
local l, string;
@@ -1073,7 +1073,7 @@ end );
10731073
##
10741074
InstallMethod( PrintString,
10751075
"for a CAP map of skeletal finite sets",
1076-
[ IsSkeletalFiniteSetMap ],
1076+
[ IsMorphismInCategoryOfSkeletalFinSets ],
10771077

10781078
function ( phi )
10791079

@@ -1087,7 +1087,7 @@ end );
10871087
##
10881088
InstallMethod( DisplayString,
10891089
"for a CAP skeletal finite set",
1090-
[ IsSkeletalFiniteSet ],
1090+
[ IsObjectInCategoryOfSkeletalFinSets ],
10911091

10921092
function ( s )
10931093

@@ -1098,7 +1098,7 @@ end );
10981098
##
10991099
InstallMethod( DisplayString,
11001100
"for a CAP map of skeletal finite sets",
1101-
[ IsSkeletalFiniteSetMap ],
1101+
[ IsMorphismInCategoryOfSkeletalFinSets ],
11021102

11031103
function ( phi )
11041104

0 commit comments

Comments
 (0)