Let $\{ X_i\} (i\in I)$ be a family such that $X_i\neq\varnothing$ for all $i\in I$.
Let $J\subset I$.
Let $\prod_{i\in J} X_i=\{ x\in (\bigcup_{i\in J} X_i)^{J} : \forall i(i\in J\to x_i\in X_i\}$
Prove, without axiom of choice (if possible), that $$\prod_{i\in J} X_i=\{ x|J : x\in\prod_{i\in I} X_i\}$$
Note:
- $\prod_{i\in I} X_i$ denotes the Cartesian product of the family $\{ X_i\} (i\in I)$.
- $Y^{X}$ is the set set of all functions from $X$ to $Y$.
- If $f:Y\to Z$ and $X\subset Y$, then $f|X$ denotes $f$ restricted to $X$.
You can prove without choice that the restriction map $x \mapsto x|J$ is given by the following composite $$\prod_{i \in I} X_i \xrightarrow{\cong} \left( \prod_{i \in I \setminus J} X_i \right) \times \left( \prod_{i \in J} X_i \right) \xrightarrow{\pi_2} \prod_{i \in J} X_i$$ where the first map is the bijection defined by $(x_i)_{i \in I} \mapsto ((x_i)_{i \in I \setminus J}, (x_i)_{i \in J})$, and the second map is the projection onto the second coordinate.
To say that each $x \in \prod_{i \in J} X_i$ is the restriction of some element of $\prod_{i \in I} X_i$ is therefore equivalent to saying that this projection map is surjective. This, in turn is equivalent to saying that $\prod_{i \in I \setminus J} X_i$ is inhabited.
...but saying that $\prod_{i \in I \setminus J} X_i$ is inhabited for all indexing sets $I$ and $J \subseteq I$ and all inhabited $X_i$ is equivalent to the axiom of choice. (To see why, consider the case when $J = \varnothing$.)