The differentials are stored as the members in a chain complex map of degree -1. The map C.dd_i is the one whose source is the module C_i, and it is arranged to be zero if no map has been stored in that spot.
i1 : R = ZZ/101[a,b]; |
i2 : C = resolution cokernel vars R |
i3 : C.dd |
i4 : C.dd_2 |
See also ChainComplex.