I need to prove that $(R^{ \oplus A_1 })^{ \oplus A_2 } \cong R^{ \oplus (A_1 \times A_2)}$ as $R$-modules.
Recall that
if $N$ is an $R$-module and $A$ is a set, then we can construct $R$-module $N^{ \oplus A} = \{ \alpha: A \to N \ | \ \alpha(a) \neq 0$ for only finitely many $a \in A \}$.
An $R$-module structure is defined componentwise: if $r \in R, \alpha, \beta \in N^{ \oplus A}$, then
$(\alpha+\beta)(a) = \alpha(a) + \beta(a)$
$0_{N^{ \oplus A}} = 0: A \to N$ such that $\forall a \in A \ \ 0(a) = 0$
$(- \alpha)(a) = -\alpha(a)$
$(r\alpha)(a) = r(\alpha(a))$
Now we have two such $R$-modules. Since $R^{\oplus (A_1 \times A_2)}$ is the free $R$-module on a set $A_1 \times A_2$ , every function $\alpha \in R^{ \oplus (A_1 \times A_2) }$ can be written as a finite sum $\sum\nolimits_{x \in A_1, y \in A_2} r_{x,y}j_{x,y}$ such that $r_{x,y} = \alpha(x,y)$ and $j_{x,y}(x',y') = 1$ if $x' = x$ and $y' = y$ and $j_{x,y}(x',y') = 0$ is $x' \neq x$ or $y' \neq y$.
So we need to construct an $R$-module isomorphism $\phi: R^{ \oplus (A_1 \times A_2)} \to (R^{ \oplus A_1 })^{ \oplus A_2 }$.
Since $\phi$ must be an $R$-module homomorphism,
$\phi( \sum\nolimits_{x \in A_1, y \in A_2} r_{x,y}j_{x,y} ) = \sum\nolimits_{x \in A_1, y \in A_2} r_{x,y}\phi(j_{x,y})$
So we it suffices to define an image of each $j_{x,y}$. Any ideas?
Assumed background: basic properties of rings and modules, categories and universal properties( such as the one of a free $R$-module or a categorical product ) are introduced, but functors, limits and colimits are not. So this is not a duplicate of this question.