One of my homework questions asks me to prove that a commutative ring $A$ is reduced if and only if there exists fields $\{k_s\}_{s\in S}$ and an injective ring homomorphism $A\rightarrow \prod_{s\in S}k_s$.
This is my attempt:
Consider the collection $\{A/m: m ~\text{is a maximal ideal}~\}$ of fields, $\prod_{m_i\in I} A/m_i$ is a ring. Let $f: A\rightarrow \prod_{m_i\in I}A/m_i$ be the ring homomorphism defined by $$ a\mapsto \phi $$ where $\phi(i) =a + m_i$. If $f(a) = f(b)$, then $a + m_i = b + m_i$ for all maximal ideals $m_i$. $b-a\in m_i$ for all maximal ideals $m_i$. $b-a\in\bigcap_{i\in I} m_i$. I know if $A$ is reduced then the intersection of all prime ideals is $\{0\}$, but I can't convince myself that $\bigcap_{i\in I} m_i$ is $\{0\}$, so $a$ might not be equal to $b$.
Something must have gone wrong with my proof, or, did I choose the wrong fields? I think that there is an embedding into a direct product of integral domains, by replacing $A/m$ with $A/\mathfrak{p}$, the quotient ring by a prime ideal. I am not so sure.