# Why isn't there necessarily a direct sum of rings?

I've just seen on Wikipedia that we can't speak of direct sum of rings. Let $$R$$ and $$S$$ be rings. It says we can't have a direct sum of rings because the direct sum $$R\times S$$ doesn't receive a natural ring homomorphism. I don't understand what it means by this, and why we need this natural ring homomorphism to have direct sum of rings.

• Are you familiar with what "product" and "coproduct" mean in category theory? Did you see note #3, which was cited in the section you link to?
– anon
Mar 27, 2015 at 17:30
• The problem is possibly with the definiion of "ring". The last sentence of the Wikipedia section speaks of a "rng", so we are hinted that their defiinition of "ring" is what some other authors might call "ring with unity" or similar. - Another problem is that the WP article lacks a clearly formulated definition of "direct sum" in the first place ... Mar 27, 2015 at 17:33
• @anon yes I'm familiar with it. However I didn't understand why direct sum of rings must be the coproduct in the category of rings. Mar 27, 2015 at 17:37
• @HagenvonEitzen so if we work over the rings without unit we can define direct sum of rings in this context? Mar 27, 2015 at 17:40
• @user42912 You can define the coproduct of rings in any context. You can form the "direct sum" of rings in any context as well. The point is that the coproduct is not the "direct sum" in the category of rings. I'm not sure if the category of rngs suffers the same problem. I have a feeling it's not just the preservation of identity that causes problems... Mar 27, 2015 at 17:50

The general categorical definitions of a direct sum (coproduct) of two objects $$R$$ and $$S$$ is the object $$R \oplus S$$ equipped with inclusion maps $$i_R \colon R \hookrightarrow R\oplus S$$ and $$i_S \colon S \hookrightarrow R\oplus S$$ such that for any other object $$C$$ into which we have inclusions $$c_R \colon R \hookrightarrow C$$ and $$c_S \colon S \hookrightarrow C$$, there's a unique map $$\phi \colon R \oplus S \to C$$ such that $$c_R = \phi i_R$$ and $$c_S = \phi i_S$$. So in a sense, the direct sum of $$R$$ and $$S$$ is the "smallest" thing into which both $$R$$ and $$S$$ include.
We may wish that the object $$R \times S$$ is the direct sum $$R \oplus S$$, with the inclusion maps being given by $$i_R \colon r \mapsto (r,0)$$ and $$i_S \colon s \mapsto (0,s)$$, but ring homomorphisms must send $$1$$ to $$1$$, and neither of these maps do this. So a direct sum object $$R \oplus S$$ with the property required in the last paragraph may not exist as a ring.
• the problem is you are assuming that the coproduct's maps are defined as $r\into (r,0); s\into (0,s)$, it can be a good guess but the question asks, if we assume there is a coproduct as $R\times S$ with $f:R\to R\times S$ and $g: S\to R\times S$ which should not satisfy the universal property. Jun 14 at 11:15
There is no natural ring homomorphism that maps $1$ to $(1,1)$ in the direct sum.
However projections onto the factors are natural ring homomorphisms, as they map $(1,1)$ onto $1$.
{"ft_lang_label":"__label__en","ft_lang_prob":0.9099411,"math_prob":0.99601394,"size":3384,"snap":"2022-40-2023-06","text_gpt3_token_len":964,"char_repetition_ratio":0.1331361,"word_repetition_ratio":0.010067114,"special_character_ratio":0.28280142,"punctuation_ratio":0.0927835,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99969554,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-10-07T20:20:27Z\",\"WARC-Record-ID\":\"<urn:uuid:03131ad4-0e36-4df8-bd3e-6d37e3926e77>\",\"Content-Length\":\"246231\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ac197bee-9aa5-4f32-a7e3-93d1acab4cd3>\",\"WARC-Concurrent-To\":\"<urn:uuid:e846d657-1ee0-4508-8335-83d5b744a388>\",\"WARC-IP-Address\":\"151.101.129.69\",\"WARC-Target-URI\":\"https://math.stackexchange.com/questions/1209200/why-isnt-there-necessarily-a-direct-sum-of-rings\",\"WARC-Payload-Digest\":\"sha1:2CYHB6JXHKWZNBYZZHRMN5ECHHSWWSMW\",\"WARC-Block-Digest\":\"sha1:MYHL2BTKZ2WKUE7LBUPM4NJ3TSMBJ4PE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-40/CC-MAIN-2022-40_segments_1664030338244.64_warc_CC-MAIN-20221007175237-20221007205237-00309.warc.gz\"}"}