Macaulay2 » Documentation
Packages » CanonicalMaps :: cokernelMap
next | previous | forward | backward | up | index | toc

cokernelMap -- canonical map associated to a cokernel object

Description

The cokernel of a map $f \colon M \to N$ of $R$-modules is an object $Q := \operatorname{Coker}(f)$, together with a map $g \colon N \to Q$ such that the following two properties hold: (1) $g \circ f = 0$, and (2) for any map $h \colon N \to L$ such that $h \circ f = 0$, there exists a unique map $u \colon Q \to L$ such that $u \circ g = h$.

We illustrate the cokernel map using a homomorphism of abelian groups.

i1 : f = matrix {{2, 0}, {0, 1}, {1, 4}}

o1 = | 2 0 |
     | 0 1 |
     | 1 4 |

              3       2
o1 : Matrix ZZ  <-- ZZ
i2 : g = cokernelMap f

o2 = | 1 8 -2 |
     | 0 0 0  |
     | 0 0 0  |

o2 : Matrix
i3 : assert(source g === target f and target g === coker f)
i4 : assert(g * f == 0)
i5 : h = map(ZZ^2, target f, {{2, 16, -4}, {3, 24, -6}})

o5 = | 2 16 -4 |
     | 3 24 -6 |

              2       3
o5 : Matrix ZZ  <-- ZZ
i6 : assert(h * f == 0)
i7 : u = cokernelMap(h, f)

o7 = | 2 16 -4 |
     | 3 24 -6 |

o7 : Matrix
i8 : assert(h == u * g)

For a second example, we work over a quotient of a polynomial ring.

i9 : R = QQ[a,b,c,d]/(a*d-b*c);
i10 : f = map(R^2,, matrix{{a,b},{c,d}})

o10 = | a b |
      | c d |

              2      2
o10 : Matrix R  <-- R
i11 : assert(coker f != 0)
i12 : g = cokernelMap f

o12 = | 1 0 |
      | 0 1 |

o12 : Matrix
i13 : assert(source g === target f and target g === coker f)
i14 : assert(g * f == 0)
i15 : h = map(R^{4}, target f,  {{a^3*c, -a^4}})

o15 = {-4} | a3c -a4 |

              1      2
o15 : Matrix R  <-- R
i16 : assert isHomogeneous h
i17 : assert(h * f == 0)
i18 : u = cokernelMap(h, f)

o18 = {-4} | a3c -a4 |

o18 : Matrix
i19 : assert(h == u * g)

Kernels are dual to cokernels in category theory.

See also

Ways to use cokernelMap:

  • cokernelMap(Matrix)
  • cokernelMap(Matrix,Matrix)

For the programmer

The object cokernelMap is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.26.11+ds/M2/Macaulay2/packages/CanonicalMaps.m2:523:0.