This question has been in my head for a while. And today it appears again when I am reading Arveson's book on $C^*$-algebras. He says
Countable direct products of Polish spaces are Polish. Countable direct sums of Polish spaces are Polish.
But
What is the difference between a direct sum and a direct product?
It seems to me that these two are the same but Wiki says there are some cases where they are different (without pointing out these cases).
So can somebody clarify the difference between the two and maybe give some examples? Thanks!
Consider the category of groups for simplicity. Let $\left\{G_i\right\}_{i \in I}$ be a collection of groups. Then their direct product is a group that as a set is the set-theoretic product $G=\prod_{i \in I} G_i$ and the group operation is given element-wise using the group operation of the $i^{th}$ group. Each element of the direct product is a family of elements $(x_i)_{i \in I}$, where $x_i \in G_i$. The direct sum of the family $\left\{G_i\right\}_{i \in I}$ is defined as the subgroup of $G=\prod_{i \in I} G_i$ that consists of all elements $(x_i)_{i \in I}$ with the property that $x_i \neq 0$ for finitely-many $i \in I$. The two notions are distinct when the index set $I$ is infinite (under the assumption that only finitely many $G_i$ are zero) but coincide when $I$ is finite, i.e. the direct product of a finite number of groups is isomorphic to their direct sum.