Aside. Dependent types I › Sums and dependent pairs in set theory [01DZ]

In set theory, the set of pairs A\times B can alternatively be described as the sum or disjoint union of A-many copies of B:

\sum _{x\in A} B= \coprod _{x\in A} B

So an element of the sum of A-many copies of B would be a pair (u,v) with u\in A and v\in B. If we instead have a different set B_x associated to each x\in A, we can consider the sum of the family (B_x)_{(x\in A)}:

\sum _{x\in A} B_x = \coprod _{x\in A} B_x

Then an element of the sum is a dependent pair (u,v) with u\in A and v\in B_u. In this sense, the sum of a family of sets is the set of dependent pairs in that family.