Example. Binary products in terms of big products [01HM]

Let A and B be two sets. We can express the binary product A\times B in terms of products of families of sets by considering the following family of sets i:{\mathopen {}\left [2\right ]\mathclose {}}\mapsto \begin {cases} A & \text {if } i=0\\ B & \text {if } i=1 \end {cases} indexed in the standard finite set with two elements {\mathopen {}\left [2\right ]\mathclose {}}. In particular, the big product \prod _{i:{\mathopen {}\left [2\right ]\mathclose {}}} \begin {cases} A & \text {if } i=0\\ B & \text {if } i=1 \end {cases} consists of assignments that must send 0 to an element of A and 1 to an element of B. This is, up to a change of notation, the same as an element of A\times B.