Skip to content

Commit

Permalink
Compile closed tensor structure
Browse files Browse the repository at this point in the history
in ModulePresentationsForCAP
  • Loading branch information
Tom Kuhmichel committed Feb 27, 2023
1 parent 7ed58e2 commit c1a8a9a
Show file tree
Hide file tree
Showing 10 changed files with 2,234 additions and 1,095 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,25 @@ operations_for_arbitrary_ring := [

operations_for_commutative_ring := Concatenation(
operations_for_arbitrary_ring,
[ #"AssociatorLeftToRightWithGivenTensorProducts",
#"AssociatorRightToLeftWithGivenTensorProducts",
#"BraidingWithGivenTensorProducts",
#"CoevaluationMorphismWithGivenRange",
[ "AssociatorLeftToRightWithGivenTensorProducts",
"AssociatorRightToLeftWithGivenTensorProducts",
"BraidingWithGivenTensorProducts",
"CoevaluationMorphismWithGivenRange",
#"Colift",
#"ColiftOrFail",
#"EvaluationMorphismWithGivenSource",
#"InternalHomOnMorphismsWithGivenInternalHoms",
#"InternalHomOnObjects",
"EvaluationMorphismWithGivenSource",
"InternalHomOnMorphismsWithGivenInternalHoms",
"InternalHomOnObjects",
#"IsColiftable",
#"IsLiftable",
#"LeftUnitorWithGivenTensorProduct",
"LeftUnitorWithGivenTensorProduct",
#"Lift",
#"LiftOrFail",
"MultiplyWithElementOfCommutativeRingForMorphisms",
#"RightUnitorWithGivenTensorProduct",
#"TensorProductOnMorphismsWithGivenTensorProducts",
#"TensorProductOnObjects",
#"TensorUnit",
"RightUnitorWithGivenTensorProduct",
"TensorProductOnMorphismsWithGivenTensorProducts",
"TensorProductOnObjects",
"TensorUnit",
]
);;

Expand Down
12 changes: 10 additions & 2 deletions CompilerForCAP/gap/InferDataTypes.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1492,10 +1492,18 @@ CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "CertainRows", [ "IsHomalgM
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "CertainColumns", [ "IsHomalgMatrix", "IsList" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "KroneckerMat", [ "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "DualKroneckerMat", [ "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "SafeRightDivide", [ "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "LeftDivide", [ "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "LeftDivide", [ "IsHomalgMatrix", "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "SafeLeftDivide", [ "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "UniqueRightDivide", [ "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "UniqueLeftDivide", [ "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "RightDivide", [ "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "RightDivide", [ "IsHomalgMatrix", "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "SafeRightDivide", [ "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "UniqueRightDivide", [ "IsHomalgMatrix", "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "BasisOfRowModule", [ "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "BasisOfColumnModule", [ "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "ReducedBasisOfRowModule", [ "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "ReducedBasisOfColumnModule", [ "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "BasisOfRows", [ "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "BasisOfColumns", [ "IsHomalgMatrix" ], "IsHomalgMatrix" );
CapJitAddTypeSignatureDeferred( "MatricesForHomalg", "SyzygiesOfRows", [ "IsHomalgMatrix" ], "IsHomalgMatrix" );
Expand Down
2 changes: 1 addition & 1 deletion FreydCategoriesForCAP/gap/FreydCategory.gd
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ DeclareGlobalFunction( "IsValidInputForFreydCategory" );
#! into $\mathrm{\underline{Hom}}(A, b)$ is the internal Hom-embedding. This method returns this very map.
#! @Returns a (mono)morphism
#! @Arguments cat, a, b
DeclareOperationWithCache( "INTERNAL_HOM_EMBEDDING",
DeclareOperation( "INTERNAL_HOM_EMBEDDING",
[ IsFreydCategory, IsFreydCategoryObject, IsFreydCategoryObject ] );


Expand Down
2 changes: 1 addition & 1 deletion FreydCategoriesForCAP/gap/FreydCategory.gi
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ InstallOtherMethodForCompilerForCAP( MereExistenceOfWitnessForBeingCongruentToZe

end );

InstallMethodWithCacheFromObject( INTERNAL_HOM_EMBEDDING,
InstallMethodForCompilerForCAP( INTERNAL_HOM_EMBEDDING,
[ IsFreydCategory, IsFreydCategoryObject, IsFreydCategoryObject ],
function( cat, a, b )
local source, range, mor;
Expand Down
Loading

0 comments on commit c1a8a9a

Please sign in to comment.