Aside. Dependent types I › Products and dependent functions in set theory [01DE]

In set theory, the set of functions A\to B can be alternatively described as the product of A-many copies of B. This would be written as follows:

\prod _{x\in A} B

So we might say that the product of A-many copies of B is the set of functions from A to B, because we must assign an element of B to each x\in A. It is also possible to consider products where instead of having a bunch of copies of the same set, we can match a different set to each element of A. For example, if we have a family of sets (B_x)_{(x\in A)}, then we may consider the product of this family:

\prod _{x\in A} B_x

The above product \prod _{x\in A}B_x of the family (B_x)_{(x\in A)} is then the set of dependent functions from A to the family B. The same set theoretic ideas work in type theory, as we shall see.