Let R be a commutative ring and A any set. Then HomR−Mod(R⊕A,R) satisfies the universal property of the product ∏a∈AR.
Proof
We will use H to denote HomR−Mod(R⊕A,R).
Define πa:H→R as f↦f(ga) where ga:A→R is a finite support map given by
ga(a′)={0R1Rif a=a′,if a=a′.
Let X be some R-module and let {fa}a∈A be a family of morphisms fa:X→R. We want to show that there exists a unique morphism σ:X→H such that for every a∈A we have πa∘σ=fa.
Let x∈X be arbitrary and fix a∈A. Now, we know that πa(σ(x))=σ(x)(ga) and to make this equal to fa(x) we must have
σ(x)(h)=a∈A∑h(a)fa(x).
This map is well-defined. Even though the sum is over an infinite set, h has finite support and hence the whole sum has only finitely many non-zero terms.
It is easy to check that σ(x)(−) is an R-module homomorphism: Let r∈R, h,h′∈R⊕A, then
Suppose another homomorphism σ′:X→H satisfies πa∘σ′=πa∘σ for all a∈A. Then we can look at πa(σ′(x))=σ′(x)(ga) for all x∈X and observe that σ′(x)(ga)=σ(x)(ga).
But since σ′(x)(−) is an R-module homomorphism, it is completely determined by the values it takes on {ga}a∈A. More explicitly, take any h∈R⊕A and write it as a sum of the form
h=a∈A∑h(a)ga.
This sum has finitely many non-zero terms, and so poses no issue to us. Then
So σ:X→H is a unique morphism such that for every a∈A we have πa∘σ=fa. Via σ, H satisfies the universal property of the product ∏a∈AR.
■
NOTE
This proof demonstrates that HomR−Mod(R⊕A,R)≅RA. It subsumes 6.6 as a special case where A is finite. Since we have established that RA≅R⊕A in general (6.7), we now can conclude that in general