GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
## <#GAPDoc Label="HomalgRing:module_element:example"> ## <Example><![CDATA[ ## gap> ZZ := HomalgRingOfIntegers( ); ## Z ## gap> a := HomalgElement( HomalgMap( "[[2]]", 1 * ZZ, 1 * ZZ ) ); ## 2 ## gap> IsIdenticalObj( ZZ, HomalgRing( a ) ); ## true ## ]]></Example> ## <#/GAPDoc> LoadPackage( "Modules" ); ZZ := HomalgRingOfIntegers( ); a := HomalgElement( HomalgMap( "[[2]]", 1 * ZZ, 1 * ZZ ) ); Assert( 0, IsIdenticalObj( ZZ, HomalgRing( a ) ) );