Skip to content

Commit 4bc9151

Browse files
authored
Merge pull request #1362 from zickgraf/master
Do not take constructive implication into account in InfoStringOfInstalledOperationsOfCategory
2 parents 693f30e + cd6f611 commit 4bc9151

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CAP/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 := "CAP",
1212
Subtitle := "Categories, Algorithms, Programming",
13-
Version := "2023.06-06",
13+
Version := "2023.06-07",
1414
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)( ),
1515
License := "GPL-2.0-or-later",
1616

CAP/gap/PrintingFunctions.gi

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
InstallGlobalFunction( InfoStringOfInstalledOperationsOfCategory,
77

88
function( category )
9-
local list_of_mathematical_properties, list_of_potential_algorithmic_properties,
9+
local MaximalPropertiesWithRegardToImplication, list_of_mathematical_properties, list_of_potential_algorithmic_properties,
1010
list_of_algorithmic_properties, list_of_maximal_algorithmic_properties, property, result,
1111
list_of_non_algorithmic_mathematical_properties, list_of_maximal_non_algorithmic_mathematical_properties;
1212

@@ -15,15 +15,19 @@ InstallGlobalFunction( InfoStringOfInstalledOperationsOfCategory,
1515
return;
1616
fi;
1717

18+
MaximalPropertiesWithRegardToImplication := function ( list_of_properties )
19+
20+
return MaximalObjects( list_of_properties, { p1, p2 } -> p1 in ListImpliedFilters( ValueGlobal( p2 ) ) );
21+
22+
end;
23+
1824
list_of_mathematical_properties := ListKnownCategoricalProperties( category );
1925

2026
list_of_potential_algorithmic_properties := RecNames( CAP_INTERNAL_CONSTRUCTIVE_CATEGORIES_RECORD );
2127

2228
list_of_algorithmic_properties := Filtered( list_of_mathematical_properties, p -> p in list_of_potential_algorithmic_properties and IsEmpty( CheckConstructivenessOfCategory( category, p ) ) );
2329

24-
list_of_maximal_algorithmic_properties := MaximalObjects( list_of_algorithmic_properties, { p1, p2 } ->
25-
IsSubset( CAP_INTERNAL_CONSTRUCTIVE_CATEGORIES_RECORD.( p2 ), CAP_INTERNAL_CONSTRUCTIVE_CATEGORIES_RECORD.( p1 ) ) or
26-
p1 in ListImpliedFilters( ValueGlobal( p2 ) ) );
30+
list_of_maximal_algorithmic_properties := MaximalPropertiesWithRegardToImplication( list_of_algorithmic_properties );
2731

2832
StableSortBy( list_of_maximal_algorithmic_properties, p -> Length( CAP_INTERNAL_CONSTRUCTIVE_CATEGORIES_RECORD.( p ) ) );
2933

@@ -41,7 +45,7 @@ InstallGlobalFunction( InfoStringOfInstalledOperationsOfCategory,
4145

4246
list_of_non_algorithmic_mathematical_properties := Difference( list_of_mathematical_properties, list_of_algorithmic_properties );
4347

44-
list_of_maximal_non_algorithmic_mathematical_properties := MaximalObjects( list_of_non_algorithmic_mathematical_properties, { p1, p2 } -> p1 in ListImpliedFilters( ValueGlobal( p2 ) ) );
48+
list_of_maximal_non_algorithmic_mathematical_properties := MaximalPropertiesWithRegardToImplication( list_of_non_algorithmic_mathematical_properties );
4549

4650
if not IsEmpty( list_of_maximal_non_algorithmic_mathematical_properties ) then
4751
if not IsEmpty( list_of_maximal_algorithmic_properties ) then

0 commit comments

Comments
 (0)