Ordered sets and Cartesian products
Another thing that is especially important in the set theoretic foundations of logic is the notion of an ordered set. As mentioned above, sets are, by nature, unordered. Again, if and , then . But sometimes, we do want to talk about ordered sets, where the ordering of the members does matter. Ordered sets to the rescue!
Unlike normal sets, which are enclosed by curly braces, ordered sets are denoted with the angled braces and . For example, if we take the ordered set of , , and in just this order, we can write . The ordered set is distinct from this, since it has its order reversed.
The fact that they are ordered is not the only difference between normal sets and ordered sets. Another important difference is that for ordered sets, duplicates do count for something. Namely, the ordered set and the ordered set are not the same ordered set (and in general, not the same set either). So in general, unlike normal sets, ordered sets can be distinguished at face value.
Sometimes, some ordered sets are called ordered -tuples, where is the number of members of the ordered set. For small , we have specific words for these tuples, but after a while, they become unwieldy, and aren’t generally used. So for example, is an ordered pair, is an ordered triple, is an ordered quadruple, and so on.
Another important notion in set theory is the Cartesian product of two sets. If and are two sets, their Cartesian product is denoted by . Indeed, Cartesian products are one way in which one may ‘make’ ordered sets out of regular sets. In particular, if and are sets, then , their Cartesian product, is the set of all ordered pairs such that their first member is in , and their second member is in .
For example, suppose and . Then, . Again, it is just the set of all ordered pairs with the first member of the pair in , and the second in .
Now importantly, and need not be different, so that is itself a set, the set of all ordered pairs made up of members of . So for example, if , then . From this, you may see why taking the Cartesian product of two sets is denoted by the (‘product’) operator, since if a set has members, then will have members, and so on. We can also write this more succinctly, akin to regular exponentiation, so that , , and so on.
The name ‘Cartesian product’ comes from an interesting historical fact. ‘Cartesian’ refers to René Descartes, one of the most important philosophers in history, who was also a pioneering mathematician. As such, he devised the coordinate system you probably already know from mathematics. What does this have to do with Cartesian products? For example, think of the Cartesian product of . Its members are all pairs of natural number . Like , , . But of course, these are exactly the coordinates of a two-dimensional coordinate system on the natural numbers.
Exercise 3.5. Answer the following questions. For each question, don’t forget to explain your reasoning.
-
What is the Cartesian product of the set with itself?
-
Is the set a subset of ?
You may be wondering what the relationship is between sets and ordered sets. In set theory books, it is customary to show how ordered sets are definable from the notion of a set. In particular, one can define the ordered pair to be the set . This is a kind of encoding, which allows one to determine the order of the two elements and from the set of two sets that are themselves not ordered in any way. This kind of definition can be further generalized to cover any -tuple (for any ), by iterating the ordered pairs. For example, an ordered triple would be the ordered pair of an ordered pair and a third thing. That is, . It is then possible to further analyze according to our set-based definition of ordered pairs. There are alternative ways to do essentially the same thing.