This is a question related to this page.
https://ncatlab.org/nlab/show/restricted+product .
Let $I$ be a directed set. Let $X_i(i\in I)$ be a group. Let $\prod'_{i\in I}(X_i,Y_i)$ be a restricted product with respect to $Y_i$. That is , it is a set of tuples $(a_1,,a_2,\cdots )\in \prod_{i\in I} X_{i}$ such that almost all $a_i$ belongs to $Y_i$.
In the above linked page, $\prod'_{i\in I}(X_i,Y_i)$ is defined as $\varinjlim_{S\subset I \text{ runs finite subset of} I} (\prod_{i\in S} X_{i}\times \prod_{v\in I-S}Y_i)$.
My question is, is these two definiton equivalent ? I cannot see the isomorphism between them.
This is the end of my question.
$\cdots \cdots$
The following background is related to the theory of elliptic curves, but this question is purely algebraic, so you don't need to worry about it. I am only writing it in case someone who is also knowledgeable about elliptic curves happens to read it and provide comments. It is sufficient to read just this question itself.
In the above linked page, $X_i=H^1(G_{K_i},E)[2]$ where $E/K$ is an elliptic curve over number field $K$ and $G_{K_i}$ is the absolute galois group of $K_i$ and $Y_i$ is not explicitly written(may be unramified cohomology $H^1_{nr}(G_{K_i},E)[2]$). $S$ runs all finite set of places of $K$ and contains fixed bad primes of $E/K$ and infinite places.
Last Professor Wuthrich's comment says 'the sum is no longer a direct sum, but a restricted product'. But if above is correct, $Y_i=0$, $\bigoplus_{i\in I}X_i=\varinjlim_{S\subset I \text{ runs finite subset of} I} \oplus_{i\in S} X_{i}$ and contradicts Professor Wuthrich's comment because $\bigoplus_{i\in I}X_i\neq \prod'_{i\in I}X_i$.