Skip to content

Commit e62dd29

Browse files
improved AddExponentialOnObjects for SkeletalFinSets
1 parent 5cce836 commit e62dd29

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
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 := "2021.12-02",
13+
Version := "2021.12-03",
1414

1515
Date := Concatenation( "01/", ~.Version{[ 6, 7 ]}, "/", ~.Version{[ 1 .. 4 ]} ),
1616
License := "GPL-2.0-or-later",

gap/SkeletalFinSetsForCAP.gi

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,11 +816,12 @@ end );
816816
##
817817
AddExponentialOnObjects( SkeletalFinSets,
818818
function ( cat, M, N )
819-
local m;
819+
local m, n;
820820

821821
m := Length( M );
822+
n := Length( N );
822823

823-
return FinSet( SkeletalFinSets, Length( Tuples( AsList( N ), m ) ) );
824+
return FinSet( SkeletalFinSets, n ^ m );
824825

825826
end );
826827

gap/precompiled_categories/CategoryOfSkeletalFinSetsPrecompiled.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ end
274274

275275
########
276276
function ( cat_1, a_1, b_1 )
277-
return FinSet( cat_1, Length( Tuples( AsList( b_1 ), Length( a_1 ) ) ) );
277+
return FinSet( cat_1, Length( b_1 ) ^ Length( a_1 ) );
278278
end
279279
########
280280

0 commit comments

Comments
 (0)