Skip to content

Commit dfa939e

Browse files
deleted AddCoastrictionToImageWithGivenImageObject
and compiled CoastrictionToImage
1 parent 2d531a3 commit dfa939e

File tree

3 files changed

+10
-32
lines changed

3 files changed

+10
-32
lines changed

examples/PrecompileCategoryOfSkeletalFinSetsWithMorphismsGivenByLists.g

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ primitive_operations :=
2424
category_constructor( : no_precompiled_code := true ) );;
2525
list_of_operations :=
2626
SortedList( Concatenation( primitive_operations, [
27+
"CoastrictionToImage",
2728
"IsHomSetInhabited",
2829
"TruthMorphismOfImplies",
2930
#"HasPushoutComplement",

gap/SkeletalFinSets.gi

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -481,29 +481,6 @@ AddImageEmbedding( SkeletalFinSets,
481481

482482
end );
483483

484-
##
485-
AddCoastrictionToImageWithGivenImageObject( SkeletalFinSets,
486-
function ( cat, phi, image_object )
487-
local G, images, s, L, l, pi;
488-
489-
G := AsList( phi );
490-
491-
images := Set( G );
492-
493-
s := Source( phi );
494-
495-
L := List( s, i -> -1 + BigInt( SafePosition( images, G[1 + i] ) ) );
496-
497-
pi := MorphismConstructor( cat, s, L, image_object );
498-
499-
#% CAP_JIT_DROP_NEXT_STATEMENT
500-
Assert( 3, IsEpimorphism( cat, pi ) );
501-
502-
return pi;
503-
504-
end );
505-
506-
507484
## Limits
508485

509486
##

gap/precompiled_categories/SkeletalCategoryOfFiniteSetsWithMorphismsGivenByListsPrecompiled.gi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,21 +157,21 @@ end
157157
, 100 );
158158

159159
##
160-
AddCoastrictionToImageWithGivenImageObject( cat,
160+
AddCoastrictionToImage( cat,
161161

162162
########
163-
function ( cat_1, alpha_1, I_1 )
164-
local hoisted_2_1, deduped_3_1, deduped_4_1;
165-
deduped_4_1 := AsList( alpha_1 );
166-
deduped_3_1 := Source( alpha_1 );
167-
hoisted_2_1 := SSortedList( deduped_4_1 );
168-
return CreateCapCategoryMorphismWithAttributes( cat_1, deduped_3_1, I_1, AsList, List( [ 0 .. Length( deduped_3_1 ) - 1 ], function ( i_2 )
169-
return -1 + BigInt( SafePosition( hoisted_2_1, deduped_4_1[(1 + i_2)] ) );
163+
function ( cat_1, alpha_1 )
164+
local deduped_3_1, deduped_4_1, deduped_5_1;
165+
deduped_5_1 := AsList( alpha_1 );
166+
deduped_4_1 := Source( alpha_1 );
167+
deduped_3_1 := SSortedList( deduped_5_1 );
168+
return CreateCapCategoryMorphismWithAttributes( cat_1, deduped_4_1, CreateCapCategoryObjectWithAttributes( cat_1, Length, BigInt( Length( deduped_3_1 ) ) ), AsList, List( [ 0 .. Length( deduped_4_1 ) - 1 ], function ( x_2 )
169+
return -1 + BigInt( SafePosition( deduped_3_1, deduped_5_1[(1 + x_2)] ) );
170170
end ) );
171171
end
172172
########
173173

174-
, 100 );
174+
, 202 : IsPrecompiledDerivation := true );
175175

176176
##
177177
AddCoequalizer( cat,

0 commit comments

Comments
 (0)