What I'm asking comes from Bosch, Algebra, the first chapter on elementary group theory.
1) Let $X$ be a set and $G$ a group. Then the set $G^X$ of maps from $X$ to $G$ is a group in a natural way, that is for every $f,g\in G^X$, set $(f\cdot g)(x):=f(x)\cdot g(x)$.
2) Let $X$ be a set of indexes and $\left(G_x\right)_{x\in X}$ a collection of groups. Then the product set $\prod_{x\in X}G_x$ becomes a group if we define the product component-wise, that is $(g_x)_{x\in X}\cdot (h_x)_{x\in X}:=(g_x\cdot h_x)_{x\in X}$.
Now suppose that the groups $G_x$ are copies of the same group $G$. Then, using notations in 1), we have $$\displaystyle\prod_{x\in X}G_x=G^X$$ Well, I can't understand this equation. I mean, an element in the lefthandside is a collection $(g_x)_{x\in X}$ of elements of $G$, whereas on the righthandside we have functions taking values in $G$. How can the two objects be the same?
Strictly speaking, what we have is only an isomorphism of groups, given by $(g_x)_{x\in X}\mapsto (x\mapsto g_x)$ with inverse map $f\mapsto(f(x))_{x\in X}$. But this isomorphism is so canonical, the difference so shallow that actually calling it equality seems to be one of the lesser sins. For example, would you really object to the equation $(A\times B)\times C=A\times (B\times C)$ for cartesian products of sets?