Show that if $R$ is a commutative, semisimple ring with unity then $R$ is a direct sum of fields.
I have looked at the math.stackexchange post Commutative ring is semisimple iff it's isomorphic to a finite direct product of fields. but I have gone about trying to prove the $\Rightarrow$ direction in a different way.
Here is my attempt:
First we state a lemma.
Lemma: If $J$ is a maximal ideal of a commutative ring $R$ with unity, then the quotient ring $R/J$ is a field.
Since $R$ is semisimple, $R = \oplus_{i \in I} \space R_i$ where each $R_i$ is simple. Now let $J_i$ be a maximal ideal of $R_i$. Such is guaranteed to exist by Zorn's Lemma.
Now we show that $J_i$ is a submodule of $R_i$. Let $x, y \in R_i$ and $r \in R$. Then the sum $x + ry$ is an element of $J_i$ because $ry \in J_i$ by definition of ideal and ideals by definition are subgroups under addition. Hence, $x + ry \in J_i$ and $J_i$ is a submodule of $R_i$. But since $R_i$ is simple, this implies $J_i = \{0\}$.
Hence, $R_i/J_i = R_i$ and by the lemma, $R_i$ is a field. $\blacksquare$
Is this proof legitimate? I am concerned with the argument I make implying that $J_i$ is the trivial module. How about the case when $J_i = R_i$? Then the quotient is $0$ and I am unsure how to proceed.
This line of argument works, but there's one more step needed to finish it. You know that $R=\bigoplus R_i$ as an $R$-module, not as a ring. To say $R$ is a product of fields, you need to additionally show that the map $R\to \prod R_i$ is a ring-homomorphism. This may not actually be true unless you define the ring structure on $R_i$ carefully (as noted below the ring structure on them is not automatic).
Here's how you get the ring-isomorphism. The direct sum decomposition $R=\bigoplus R_i$ gives us a projection homomorphism $p_i:R\to R_i$ for each $i$ (these are $R$-module homomorphisms). Now choose the ring structure on $R_i$ such that each $p_i$ is a ring-homomorphism as well (in other words, give $R_i$ the ring structure of the quotient ring $R/\ker(p_i)$). Then our bijection $R\to \prod R_i$ is a ring-homomorphism, since the $i$th coordinate is just $p_i$ which is a ring-homomorphism.
Some other miscellaneous comments: