The cartesian product is a product in Set, the category of sets.
Given any family of sets, the cartesian product of the family is the set of all functions from the index set with in for each in .
As stated, the target of such a function depends on the argument, which is natural in dependent type theory; but if you don’t like this, then define to be the set of those functions from to the disjoint union such that (treating as a subset of as usual) for each in .
In traditional forms of set theory, one can also take the target of to be the union or even the class of all objects (equivalently, leave it unspecified).
Given sets and , the cartesian product of the binary family is written ; its elements are called ordered pairs. (In set theory, one often makes a special definition for this case, defining
rather than as a function so that ordered pairs can then be used in the definition of function. From a structural perspective, however, this is unnecessary.)
Given sets through , the cartesian product of the -ary family is written ; its elements are called ordered -tuples.
Given sets , , etc, the cartesian product of the countably infinitary family is written ; its elements are called infinite sequences.
Given a set , the cartesian product of the unary family may be identified with itself; that is, we identify the ordered singleton with .
The cartesian product of the empty family is the point, a set whose only element is the empty tuple ; we often call this set (or , when we're Urs) and write its element as .