CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Views: 418346
LoadPackage( "ModulePresentationsForCAP" );
LoadPackage( "RingsForHomalg" );
QQ := HomalgFieldOfRationalsInSingular( );
R := QQ * "x,y";
S := FreeLeftPresentation( 1, R );
S2 := FreeLeftPresentation( 2, R );
alpha := PresentationMorphism( S, HomalgMatrix( [ [ 1, 2 ] ], R ), S2 );
id := IdentityMorphism( S );
p := PreCompose( id, alpha );
IsIdenticalObj( p, alpha );