"Source: Text/Commut/PMod.text";
"Line: 2868";
"Date: Thu Sep 25 14:47:46 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Commut/PMod.text, line: 2868
// Example: H119E15 ()
print "Example: H119E15";
ei := GetEchoInput();
SetEchoInput(true);
R<x,y,z> := PolynomialRing(RationalField(), 3);
M := quo<GradedModule(R, 3) |
    [x*y, x*z, y*z], [y, x, y],
    [0, x^3 - x^2*z, x^2*y - x*y*z], [y*z, x^2, x*y]>;
N := quo<GradedModule(R, 2) |
    [x^2, y^2], [x^2, y*z], [x^2*z, x*y^2]>;    
M;
N;
H, f := Hom(M, N);
H;
h := f(H.1);
h;
$1 @@ f;
Degree(M.1);   
assert $1 eq 0;
h(M.1);
Degree(h(M.1));
assert $1 eq 1;
f(Basis(H));                                                                 
SetEchoInput(ei);
