Here is the question I am trying to solve:
Let $A$ be a local ring, $M$ and $N$ finitely generated $A$ modules. Prove that if $M \otimes N = 0,$ then $M = 0$ or $N = 0.$
And here is the hint given in Atiyah & MacDonald:
And here is an interpretation of why tensoring over $k$ or over $A$ are the same:
But I did not get the idea of what is happening in the mathematical line between the two paragraphs, and what is the idea in general, could someone explain this to me please?
EDIT Here is the solution from the beginning (I beleive that this solution was not written accurately in terms on tensoring over $A$ or over $k$ am I correct?)
EDIT 2:
In general, my question is how to prove that:
proving $$R/\mathfrak m\otimes_R (M\otimes_R N)\simeq(R/\mathfrak m\otimes_R M)\otimes_{R/\mathfrak m}(R/\mathfrak m\otimes_R N)$$
it says here https://math.stackexchange.com/posts/321382/edit use the associativity and the following property of tensor product: $L\otimes_SS\simeq L$, where in this case $S=R/\mathfrak m$ and $L=R/\mathfrak m\otimes_RM$.
But also a comment there said that this is not correct and the correct thing is that $R/ \mathfrak m$ module is bi $( R/ \mathfrak m,R)$ module.
Could anyone explain to me the justification of the comment also and which what is the correct one?




Let $A,B$ be rings and let $B$ be an $A$-algebra i.e. there is a ring homomorphism $\phi:A\to B$. Let $N$ be a $B$-module and $M$ an $A$-module then $B\otimes_A M$ is a $B$-module and $N$ is an $A$-module by setting $a\cdot n = \phi(a)\cdot n$.
We need to prove the identity $$ N\otimes_B(B\otimes_A M)\cong N\otimes_A M$$ as $A$-modules. (These expressions all make sense because of what I wrote in the first parahraph) So we give two maps:
One checks that these maps are inverse to each other. Knowing this you can use associativity of tensor product to compute
$$R/\mathfrak{m} \otimes_R (M\otimes_R N) = (R/\mathfrak{m} \otimes_R M) \otimes_R N = (R/\mathfrak{m} \otimes_RM)\otimes_{R/\mathfrak{m}} (R/\mathfrak{m}\otimes_R N).$$
Btw this technique is called a base change.
Edit: In the last equation we use that we can regard $R/\mathfrak{m} \otimes_R M$ as an $R/\mathfrak{m}$-module and $N$ as an $R$-module then we use the base change formula established above. This only works because we can regard $R/\mathfrak{m}$ as an $R/\mathfrak{m}$ module.