Proposition

Let RR be a commutative ring and AA any set. Then HomRMod(RA,R)\Hom_{R\mathrm{-Mod}}(R^{\oplus A},R) satisfies the universal property of the product aAR\prod_{a \in A} R.

Proof

We will use HH to denote HomRMod(RA,R).\Hom_{R\mathrm{-Mod}}(R^{\oplus A},R).

Define πa:HR\pi_a : H \to R as ff(ga)f \mapsto f(g_a) where ga:ARg_a : A \to R is a finite support map given by

ga(a)={0Rif aa,1Rif a=a.g_a(a')={\begin{cases}0_R&{\text{if }}a \neq a',\\1_R &{\text{if }}a=a'.\end{cases}}

Let XX be some RR-module and let {fa}aA\{f_a\}_{a \in A} be a family of morphisms fa:XR.f_a : X \to R. We want to show that there exists a unique morphism σ:XH\sigma : X \to H such that for every aAa \in A we have πaσ=fa.\pi_a \circ \sigma = f_a.

Let xXx \in X be arbitrary and fix aA.a \in A. Now, we know that πa(σ(x))=σ(x)(ga)\pi_a(\sigma(x)) = \sigma(x)(g_a) and to make this equal to fa(x)f_a(x) we must have

σ(x)(h)=aAh(a)fa(x).\sigma(x)(h) = \sum_{a \in A} h(a)f_{a}(x).

This map is well-defined. Even though the sum is over an infinite set, hh has finite support and hence the whole sum has only finitely many non-zero terms.

It is easy to check that σ(x)()\sigma(x)(-) is an RR-module homomorphism: Let rRr \in R, h,hRAh, h' \in R^{\oplus A}, then

σ(x)(rh)=aA(rh)(a)fa(x)=aArh(a)fa(x)=raAh(a)fa(x)=rσ(x)(h),\begin{align*} \sigma(x)(rh) &= \sum_{a \in A} (rh)(a)f_{a}(x) \\ &= \sum_{a \in A} rh(a)f_{a}(x) \\ &= r\sum_{a \in A} h(a)f_{a}(x) \\ &= r\sigma(x)(h) , \end{align*}

and

σ(x)(h+h)=aA(h+h)(a)fa(x)=aA(h(a)+h(a))fa(x)=aA(h(a)fa(x)+h(a)fa(x))=aAh(a)fa(x)+aAh(a)fa(x)=σ(x)(h)+σ(x)(h).\begin{align*} \sigma(x)(h+h') &= \sum_{a \in A} (h+h')(a)f_{a}(x) \\ &= \sum_{a \in A} (h(a)+h'(a))f_{a}(x) \\ &= \sum_{a \in A} (h(a)f_{a}(x)+h'(a)f_{a}(x)) \\ &= \sum_{a \in A} h(a)f_{a}(x) + \sum_{a \in A}h'(a)f_{a}(x) \\ &= \sigma(x)(h)+\sigma(x)(h'). \end{align*}

We can also check that σ()\sigma(-) is an RR-module homomorphism: Let x,xXx,x' \in X, then

σ(x+x)(h)=aAh(a)fa(x+x)=aAh(a)(fa(x)+fa(x))=aA(h(a)fa(x)+h(a)fa(x))=aAh(a)fa(x)+aAh(a)fa(x)=σ(x)(h)+σ(x)(h),\begin{align*} \sigma(x + x')(h) & = \sum_{a \in A} h(a)f_{a}(x + x') \\ & = \sum_{a \in A} h(a)(f_{a}(x) + f_{a}(x')) \\ & = \sum_{a \in A} (h(a)f_{a}(x) + h(a)f_{a}(x')) \\ & = \sum_{a \in A} h(a)f_{a}(x) + \sum_{a \in A}h(a)f_{a}(x') \\ & = \sigma(x)(h) + \sigma(x')(h), \end{align*}

and

σ(rx)(h)=aAh(a)fa(rx)=aAh(a)rfa(x)=raAh(a)fa(x)=rσ(x)(h).\begin{align*} \sigma(rx)(h) & = \sum_{a \in A} h(a)f_{a}(rx) \\ & = \sum_{a \in A} h(a)rf_{a}(x) \\ & = r\sum_{a \in A} h(a)f_{a}(x) \\ & = r\sigma(x)(h). \end{align*}

Suppose another homomorphism σ:XH\sigma' : X \to H satisfies πaσ=πaσ\pi_a \circ \sigma' = \pi_a \circ \sigma for all aA.a \in A. Then we can look at πa(σ(x))=σ(x)(ga)\pi_a(\sigma'(x)) = \sigma'(x)(g_a) for all xXx \in X and observe that σ(x)(ga)=σ(x)(ga).\sigma'(x)(g_a) = \sigma(x)(g_a).

But since σ(x)()\sigma'(x)(-) is an RR-module homomorphism, it is completely determined by the values it takes on {ga}aA.\{g_a\}_{a \in A}. More explicitly, take any hRAh \in R^{\oplus A} and write it as a sum of the form

h=aAh(a)ga.h = \sum_{a \in A}h(a)g_a.

This sum has finitely many non-zero terms, and so poses no issue to us. Then

σ(x)(h)=aAσ(x)(h(a)ga)=aAh(a)σ(x)(ga)=aAh(a)σ(x)(ga)=σ(x)(h). \begin{align*} \sigma'(x)(h) &= \sum_{a \in A} \sigma'(x)(h(a)g_a) \\ &= \sum_{a \in A} h(a)\sigma'(x)(g_a) \\ &= \sum_{a \in A} h(a)\sigma(x)(g_a) \\ &= \sigma(x)(h).\\ \end{align*}

So σ:XH\sigma : X \to H is a unique morphism such that for every aAa \in A we have πaσ=fa.\pi_a \circ \sigma = f_a. Via σ\sigma, HH satisfies the universal property of the product aAR.\prod_{a \in A} R.

\blacksquare

NOTE

This proof demonstrates that HomRMod(RA,R)RA.\Hom_{R\mathrm{-Mod}}(R^{\oplus A},R) \cong R^{A}. It subsumes 6.6 as a special case where AA is finite. Since we have established that RA≇RAR^A \not\cong R^{\oplus A} in general (6.7), we now can conclude that in general

HomRMod(RA,R)≇RA.\Hom_{R\mathrm{-Mod}}(R^{\oplus A},R) \not\cong R^{\oplus A}.