CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
1
2
1 CAP Categories
3
4
Categories are the main GAP objects in CAP. They are used to associate GAP
5
objects which represent objects and morphisms with their category. By
6
associating a GAP object to the category, one of two filters belonging to
7
the category (ObjectFilter/MorphismFilter) are set to true. Via Add methods,
8
functions for specific existential quantifiers can be associated to the
9
category and after that can be applied to GAP objects in the category. A GAP
10
category object also knows which constructions are currently possible in
11
this category.
12
13
14
1.1 Categories
15
16
1.1-1 IsCapCategory
17
18
IsCapCategory( object )  filter
19
Returns: true or false
20
21
The GAP category of CAP categories. Objects of this type handle the CAP
22
category information, the caching, and filters for objects in the CAP
23
category. Please note that the object itself is not related to methods, you
24
only need it as a handler and a presentation of the CAP category.
25
26
1.1-2 IsCapCategoryCell
27
28
IsCapCategoryCell( object )  filter
29
Returns: true or false
30
31
The GAP category of CAP category cells. Every object, morphism, and 2-cell
32
of a CAP category lies in this GAP category.
33
34
1.1-3 IsCapCategoryObject
35
36
IsCapCategoryObject( object )  filter
37
Returns: true or false
38
39
The GAP category of CAP category objects. Every object of a CAP category
40
lies in this GAP category.
41
42
1.1-4 IsCapCategoryMorphism
43
44
IsCapCategoryMorphism( object )  filter
45
Returns: true or false
46
47
The GAP category of CAP category morphisms. Every morphism of a CAP category
48
lies in this GAP category.
49
50
1.1-5 IsCapCategoryTwoCell
51
52
IsCapCategoryTwoCell( object )  filter
53
Returns: true or false
54
55
The GAP category of CAP category 2-cells. Every 2-cell of a CAP category
56
lies in this GAP category.
57
58
59
1.2 Constructor
60
61
1.2-1 CreateCapCategory
62
63
CreateCapCategory( )  operation
64
Returns: a category
65
66
Creates a new CAP category from scratch. It gets a generic name.
67
68
1.2-2 CreateCapCategory
69
70
CreateCapCategory( s )  operation
71
Returns: a category
72
73
The argument is a string s. This operation creates a new CAP category from
74
scratch. Its name is set to s.
75
76
77
1.3 Internal Attributes
78
79
Each category C stores various filters. They are used to apply the right
80
functions in the method selection.
81
82
1.3-1 CategoryFilter
83
84
CategoryFilter( C )  attribute
85
Returns: a filter
86
87
The argument is a cateogry C. The output is a filter in which C lies.
88
89
1.3-2 CellFilter
90
91
CellFilter( C )  attribute
92
Returns: a filter
93
94
The argument is a cateogry C. The output is a filter in which all cells of C
95
shall lie.
96
97
1.3-3 ObjectFilter
98
99
ObjectFilter( C )  attribute
100
Returns: a filter
101
102
The argument is a cateogry C. The output is a filter in which all objects of
103
C shall lie.
104
105
1.3-4 MorphismFilter
106
107
MorphismFilter( C )  attribute
108
Returns: a filter
109
110
The argument is a cateogry C. The output is a filter in which all morphisms
111
of C shall lie.
112
113
1.3-5 TwoCellFilter
114
115
TwoCellFilter( C )  attribute
116
Returns: a filter
117
118
The argument is a cateogry C. The output is a filter in which all 2-cells of
119
C shall lie.
120
121
122
1.4 Logic switcher
123
124
1.4-1 CapCategorySwitchLogicOn
125
126
CapCategorySwitchLogicOn( C )  function
127
128
Activates the predicate implication logic for the category C.
129
130
1.4-2 CapCategorySwitchLogicOff
131
132
CapCategorySwitchLogicOff( C )  function
133
134
Deactivates the predicate implication logic for the category C.
135
136
137
1.5 Tool functions
138
139
1.5-1 CanCompute
140
141
CanCompute( C, s )  operation
142
Returns: true or false
143
144
The argument is a category C and a string s, which should be the name of a
145
primitive operation, e.g., PreCompose. If applying this method is possible
146
in C, the method returns true, false otherwise. If the string is not the
147
name of a primitive operation, an error is raised.
148
149
1.5-2 CheckConstructivenessOfCategory
150
151
CheckConstructivenessOfCategory( C, s )  operation
152
Returns: a list
153
154
The arguments are a category C and a string s. If s is a categorical
155
property (e.g. "IsAbelianCategory"), the output is a list of strings with
156
basic operations which are missing in C to have the categorical property
157
constructively. If s is not a categorical property, an error is raised.
158
159
160
1.6 Well-Definedness of Cells
161
162
1.6-1 IsWellDefined
163
164
IsWellDefined( c )  property
165
Returns: a boolean
166
167
The argument is a cell c. The output is true if c is well-defined, otherwise
168
the output is false.
169
170
171
1.7 Type check
172
173
1.7-1 DisableBasicOperationTypeCheck
174
175
DisableBasicOperationTypeCheck( category )  function
176
EnableBasicOperationTypeCheck( arg )  function
177
178
Most basic operations have a prefunction, which does a (sometimes partial)
179
typecheck at the beginning of the operation. These functions enable or
180
disable this check for a category. (Enabled by default)
181
182
183