Skip to content

Commit

Permalink
Use ReinterpretationOfObject/Morphism
Browse files Browse the repository at this point in the history
  • Loading branch information
zickgraf committed May 2, 2023
1 parent 72af9ce commit dc73290
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Bicomplexes/PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SetPackageInfo( rec(

PackageName := "Bicomplexes",
Subtitle := "Bicomplexes for Abelian categories",
Version := "2023.05-01",
Version := "2023.05-02",
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
4 changes: 2 additions & 2 deletions Bicomplexes/gap/Morphisms.gi
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ InstallOtherMethod( CreateBicomplexMorphism,
InstallOtherMethod( CreateBicomplexMorphism,
[ IsBicomplexesCategory, IsChainOrCochainBicomplex, IsChainOrCochainMorphism, IsChainOrCochainBicomplex ],

{ bicomplexes_cat, source, m, range } -> ModeledMorphism( bicomplexes_cat, source, m, range )
{ bicomplexes_cat, source, m, range } -> ReinterpretationOfMorphism( bicomplexes_cat, source, m, range )
);

##
InstallOtherMethod( CreateBicomplexMorphism,
[ IsBicomplexesCategory, IsChainOrCochainMorphism ],

{ bicomplexes_cat, m } -> ModeledMorphism( bicomplexes_cat,
{ bicomplexes_cat, m } -> ReinterpretationOfMorphism( bicomplexes_cat,
CreateBicomplex( bicomplexes_cat, Source( m ) ),
m,
CreateBicomplex( bicomplexes_cat, Range( m ) ) )
Expand Down
2 changes: 1 addition & 1 deletion Bicomplexes/gap/Objects.gi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ObjectConstructor );
InstallOtherMethod( CreateBicomplex,
[ IsBicomplexesCategory, IsChainOrCochainComplex ],

{ bicomplexes_cat, o } -> ModeledObject( bicomplexes_cat, o )
{ bicomplexes_cat, o } -> ReinterpretationOfObject( bicomplexes_cat, o )
);

##
Expand Down
2 changes: 1 addition & 1 deletion Bicomplexes/tst/total-complex-left-presentations.tst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ gap> phi6 := PresentationMorphism( F1, HomalgIdentityMatrix( 1, ZZ ), F1 );;
gap> phi7 := PresentationMorphism( F1, 2 * HomalgIdentityMatrix( 1, ZZ ), F1 );;
gap> phi := CreateComplexMorphism( C10, [ phi5, phi6, phi7 ], 5, C9 );;
gap> o := CreateComplex( modeling_category, [ phi ], 10 );;
gap> bicomplex := ModeledObject( bicomplexes_cat, o );;
gap> bicomplex := ReinterpretationOfObject( bicomplexes_cat, o );;
gap> t := TotalComplex( bicomplex );;
gap> IsWellDefined( t ) and IsExact( t );
true

0 comments on commit dc73290

Please sign in to comment.