Example. Binary sums in terms of big sums [01HO]

Let A and B be two sets. We can express the binary sum A+B in terms of sums 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 sum \sum _{i:{\mathopen {}\left [2\right ]\mathclose {}}} \begin {cases} A & \text {if } i=0\\ B & \text {if } i=1 \end {cases} consists of pairs either of the form {\mathopen {}\left (0,a\right )\mathclose {}} with a:A or of the form {\mathopen {}\left (1,b\right )\mathclose {}} with b:B. This is, up to a change of notation, the same as an element of A+B.