tensorCommutativity(M, N)
Given $R$-modules $M$ and $N$, there exists a canonical isomorphism $f \colon M \otimes_R N \to N \otimes_R M$ interchanging the factors. This method implements this isomorphism.
Even for free modules, this map is not simply given by the identity matrix.
|
|
|
|
|
|
By giving the generators of $M$ and $N$ sufficiently different degrees, we see that the canonical generators for the two tensor products come in different orders. The isomorphism is given by the corresponding permutation matrix.
|
|
|
|
|
For completeness, we include an example when neither module is free.
|
|
|
|
|