Skip to content

Commit

Permalink
Merge pull request #1405 from zickgraf/master
Browse files Browse the repository at this point in the history
Some cleanups
  • Loading branch information
zickgraf authored Aug 1, 2023
2 parents 754c8ff + f3ab77d commit b37bc54
Show file tree
Hide file tree
Showing 34 changed files with 34 additions and 4,298 deletions.
2 changes: 1 addition & 1 deletion CAP/PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SetPackageInfo( rec(

PackageName := "CAP",
Subtitle := "Categories, Algorithms, Programming",
Version := "2023.07-10",
Version := "2023.08-01",
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)( ),
License := "GPL-2.0-or-later",

Expand Down
3 changes: 0 additions & 3 deletions CAP/gap/LogicForCAP.gd
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,3 @@ DeclareGlobalFunction( "ADD_EVAL_RULES_TO_CATEGORY" );
#############################

DeclareGlobalFunction( "INSTALL_LOGICAL_IMPLICATIONS_HELPER" );

DeclareAttribute( "CAP_CATEGORY_SOURCE_RANGE_THEOREM_INSTALL_HELPER",
IsCapCategoryMorphism );
68 changes: 29 additions & 39 deletions CAP/gap/MethodRecord.gi
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ BindGlobal( "CAP_INTERNAL_VALID_METHOD_NAME_RECORD_COMPONENTS",
# additional components which are deprecated or undocumented
BindGlobal( "CAP_INTERNAL_LEGACY_METHOD_NAME_RECORD_COMPONENTS",
[
"property_of",
"is_merely_set_theoretic",
"is_reflected_by_faithful_functor",
]
Expand Down Expand Up @@ -1243,7 +1242,6 @@ IsZeroForMorphisms := rec(
filter_list := [ "category", "morphism" ],
return_type := "bool",
dual_operation := "IsZeroForMorphisms",
property_of := "morphism",
is_reflected_by_faithful_functor := true,
compatible_with_congruence_of_morphisms := true,
),
Expand Down Expand Up @@ -2504,44 +2502,43 @@ IsZeroForObjects := rec(
filter_list := [ "category", "object" ],
return_type := "bool",
dual_operation := "IsZeroForObjects",
property_of := "object" ),
),

IsMonomorphism := rec(
filter_list := [ "category", "morphism" ],
return_type := "bool",
dual_operation := "IsEpimorphism",
property_of := "morphism",
is_reflected_by_faithful_functor := true ),
is_reflected_by_faithful_functor := true,
),

IsEpimorphism := rec(
filter_list := [ "category", "morphism" ],
return_type := "bool",
dual_operation := "IsMonomorphism",
property_of := "morphism",
is_reflected_by_faithful_functor := true ),
is_reflected_by_faithful_functor := true,
),

IsIsomorphism := rec(
filter_list := [ "category", "morphism" ],
dual_operation := "IsIsomorphism",
return_type := "bool",
property_of := "morphism" ),
),

IsEndomorphism := rec(
filter_list := [ "category", "morphism" ],
return_type := "bool",
dual_operation := "IsEndomorphism",
property_of := "morphism" ),
),

IsAutomorphism := rec(
filter_list := [ "category", "morphism" ],
return_type := "bool",
dual_operation := "IsAutomorphism",
property_of := "morphism" ),
),

IsOne := rec(
filter_list := [ "category", "morphism" ],
return_type := "bool",
property_of := "morphism",
dual_operation := "IsOne",
pre_function := function( cat, morphism )

Expand All @@ -2552,19 +2549,20 @@ IsOne := rec(
fi;

return [ true ];
end ),
end,
),

IsSplitMonomorphism := rec(
filter_list := [ "category", "morphism" ],
return_type := "bool",
dual_operation := "IsSplitEpimorphism",
property_of := "morphism" ),
),

IsSplitEpimorphism := rec(
filter_list := [ "category", "morphism" ],
return_type := "bool",
dual_operation := "IsSplitMonomorphism",
property_of := "morphism" ),
),

IsIdempotent := rec(
pre_function := function( cat, morphism )
Expand All @@ -2582,49 +2580,49 @@ IsIdempotent := rec(
filter_list := [ "category", "morphism" ],
return_type := "bool",
dual_operation := "IsIdempotent",
property_of := "morphism" ),
),

IsBijectiveObject := rec(
filter_list := [ "category", "object" ],
return_type := "bool",
dual_operation := "IsBijectiveObject",
property_of := "object" ),
),

IsProjective := rec(
filter_list := [ "category", "object" ],
return_type := "bool",
dual_operation := "IsInjective",
property_of := "object" ),
),

IsInjective := rec(
filter_list := [ "category", "object" ],
return_type := "bool",
dual_operation := "IsProjective",
property_of := "object" ),
),

IsTerminal := rec(
filter_list := [ "category", "object" ],
return_type := "bool",
dual_operation := "IsInitial",
property_of := "object" ),
),

IsInitial := rec(
filter_list := [ "category", "object" ],
return_type := "bool",
dual_operation := "IsTerminal",
property_of := "object" ),
),

IsEqualToIdentityMorphism := rec(
filter_list := [ "category", "morphism" ],
return_type := "bool",
dual_operation := "IsEqualToIdentityMorphism",
property_of := "morphism" ),
),

IsEqualToZeroMorphism := rec(
filter_list := [ "category", "morphism" ],
return_type := "bool",
dual_operation := "IsEqualToZeroMorphism",
property_of := "morphism" ),
),

CoastrictionToImage := rec(
filter_list := [ "category", "morphism" ],
Expand Down Expand Up @@ -4746,7 +4744,11 @@ InstallValue( CAP_INTERNAL_FIND_OPPOSITE_PROPERTY_PAIRS_IN_METHOD_NAME_RECORD,

current_rec := method_name_record.( current_recname );

if not IsBound( current_rec.property_of ) then
if not (current_rec.return_type = "bool" and Length( current_rec.filter_list ) = 2) then
continue;
fi;

if current_recname in [ "IsWellDefinedForObjects", "IsWellDefinedForMorphisms", "IsWellDefinedForTwoCells" ] then
continue;
fi;

Expand All @@ -4761,25 +4763,13 @@ InstallValue( CAP_INTERNAL_FIND_OPPOSITE_PROPERTY_PAIRS_IN_METHOD_NAME_RECORD,

fi;

if method_name_record.( current_recname ).property_of = "object" then

if not current_entry in CAP_INTERNAL_OPPOSITE_PROPERTY_PAIRS_FOR_OBJECTS then

Add( CAP_INTERNAL_OPPOSITE_PROPERTY_PAIRS_FOR_OBJECTS, current_entry );

fi;

elif method_name_record.( current_recname ).property_of = "morphism" then
if current_rec.filter_list[2] = "object" then

if not current_entry in CAP_INTERNAL_OPPOSITE_PROPERTY_PAIRS_FOR_MORPHISMS then

Add( CAP_INTERNAL_OPPOSITE_PROPERTY_PAIRS_FOR_MORPHISMS, current_entry );

fi;
AddSet( CAP_INTERNAL_OPPOSITE_PROPERTY_PAIRS_FOR_OBJECTS, current_entry );

else
elif current_rec.filter_list[2] = "morphism" then

Error( "this should never happen" );
AddSet( CAP_INTERNAL_OPPOSITE_PROPERTY_PAIRS_FOR_MORPHISMS, current_entry );

fi;

Expand Down
34 changes: 0 additions & 34 deletions DeductiveSystemForCAP/.gitignore

This file was deleted.

Loading

0 comments on commit b37bc54

Please sign in to comment.